/* ============================================================
 *  \u590d\u76d8\u5f39\u7a97 #tdVipReplayModal\uff1aTV \u6241\u5e73\u98ce\u591c\u95f4\u6a21\u5f0f
 * ============================================================ */
body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-tool-dialog {
    border-color: #243447;
    background: linear-gradient(180deg, rgba(10, 20, 34, 0.99), rgba(7, 17, 30, 0.99));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 24px 48px -20px rgba(2, 6, 23, 0.72);
}

body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-tool-close {
    border-color: #243447;
    background: rgba(15, 23, 42, 0.6);
    color: #94a3b8;
}

body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-tool-close:hover,
body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-tool-close:focus-visible {
    border-color: #60a5fa;
    background: rgba(8, 47, 73, 0.5);
    color: #60a5fa;
}

body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-tool-kicker {
    color: #64748b;
}

body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-tool-title {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-tool-summary {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-tool-card {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.7);
}

body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-tool-card-label {
    color: #64748b;
}

body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-tool-card strong {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-tool-card small {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-replay-setup > strong {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-replay-field span {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-replay-field input,
body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-replay-field select {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.85);
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-replay-field input:hover,
body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-replay-field select:hover {
    border-color: #475569;
}

body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-replay-field input:focus,
body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-replay-field select:focus,
body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-replay-field input:focus-visible,
body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-replay-field select:focus-visible {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

/* Bug #4: \u591c\u95f4\u65e5\u5386\u56fe\u6807\u53cd\u8272 */
body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-replay-field input[type="datetime-local"]::-webkit-calendar-picker-indicator,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-field input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(0.85);
    opacity: 0.7;
}

body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-replay-field input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-field input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-replay-quick-actions {
    border-top-color: #243447;
}

body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-replay-quick-btn {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.7);
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-replay-quick-btn:hover,
body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-replay-quick-btn:focus-visible {
    border-color: #60a5fa;
    background: rgba(8, 47, 73, 0.5);
    color: #60a5fa;
}

body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-tool-actions {
    border-top-color: rgba(71, 85, 105, 0.6);
}

body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-tool-actions .td-vip-secondary-btn {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.7);
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-tool-actions .td-vip-secondary-btn:hover,
body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-tool-actions .td-vip-secondary-btn:focus-visible {
    border-color: #475569;
    background: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
}

/* disabled hover \u91cd\u7f6e */
body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-tool-actions .td-vip-primary-btn:disabled:hover,
body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-tool-actions .td-vip-primary-btn:disabled:focus-visible,
body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-tool-actions .td-vip-secondary-btn:disabled:hover,
body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-tool-actions .td-vip-secondary-btn:disabled:focus-visible,
body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-replay-quick-btn:disabled:hover,
body.td-vip-body.is-night-mode #tdVipReplayModal .td-vip-replay-quick-btn:disabled:focus-visible {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.7);
    color: #cbd5e1;
}

/* ============================================================
 *  \u8ba1\u5212\u5f39\u7a97 #tdVipRightPanel_plan\uff1aTV \u6241\u5e73\u98ce\u591c\u95f4\u6a21\u5f0f
 * ============================================================ */
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-tool-dialog {
    border-color: #243447;
    background: linear-gradient(180deg, rgba(10, 20, 34, 0.99), rgba(7, 17, 30, 0.99));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 24px 48px -20px rgba(2, 6, 23, 0.72);
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-tool-close {
    border-color: #243447;
    background: rgba(15, 23, 42, 0.6);
    color: #94a3b8;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-tool-close:hover,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-tool-close:focus-visible {
    border-color: #60a5fa;
    background: rgba(8, 47, 73, 0.5);
    color: #60a5fa;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-tool-kicker {
    color: #64748b;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-tool-title {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-tool-summary {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-meta {
    color: #64748b;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-form-wrap,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-list-wrap {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.7);
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-field span {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-field input,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-field select,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-field textarea {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.85);
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-field input:hover,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-field select:hover,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-field textarea:hover {
    border-color: #475569;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-field input:focus,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-field select:focus,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-field textarea:focus,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-field input:focus-visible,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-field select:focus-visible,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-field textarea:focus-visible {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-list-head strong {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-search {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.85);
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-search:focus,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-search:focus-visible {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-filter-btn {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.7);
    color: #94a3b8;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-filter-btn:hover,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-filter-btn:focus-visible {
    border-color: #475569;
    background: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-filter-btn.is-active {
    border-color: #60a5fa;
    background: rgba(8, 47, 73, 0.5);
    color: #60a5fa;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-empty {
    border-color: #475569;
    background: rgba(11, 22, 37, 0.5);
    color: #94a3b8;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-item {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.7);
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-item:hover {
    border-color: #475569;
    background: rgba(15, 23, 42, 0.85);
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-item.is-active {
    border-color: #60a5fa;
    box-shadow: inset 2px 0 0 0 #60a5fa;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-item.is-due-soon {
    box-shadow: inset 2px 0 0 0 #fbbf24;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-item-head strong {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-item-text,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-item-deadline,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-item-time {
    color: #94a3b8;
}

/* Bug #36 night: \u72b6\u6001\u8b66\u544a\u8272\u5728\u591c\u95f4\u4fdd\u6301\u8db3\u591f\u5bf9\u6bd4\u5ea6 */
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-item-deadline.is-overdue {
    color: #fca5a5;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-item-deadline.is-soon {
    color: #fcd34d;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-item-btn,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-new {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.7);
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-item-btn:hover,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-item-btn:focus-visible,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-new:hover,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-new:focus-visible {
    border-color: #60a5fa;
    background: rgba(8, 47, 73, 0.5);
    color: #60a5fa;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-item-btn--danger:hover,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-item-btn--danger:focus-visible {
    border-color: #f87171;
    background: rgba(127, 29, 29, 0.4);
    color: #fca5a5;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-tool-actions {
    border-top-color: rgba(71, 85, 105, 0.6);
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-tool-actions .td-vip-secondary-btn {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.7);
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-tool-actions .td-vip-secondary-btn:hover,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-tool-actions .td-vip-secondary-btn:focus-visible {
    border-color: #475569;
    background: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
}

/* disabled hover \u91cd\u7f6e */
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-tool-actions .td-vip-primary-btn:disabled:hover,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-tool-actions .td-vip-primary-btn:disabled:focus-visible,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-tool-actions .td-vip-secondary-btn:disabled:hover,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-tool-actions .td-vip-secondary-btn:disabled:focus-visible,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-item-btn:disabled:hover,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-item-btn:disabled:focus-visible,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-new:disabled:hover,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-new:disabled:focus-visible {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.7);
    color: #cbd5e1;
}

/* ============================================================
 *  VIP \u6307\u6807\u9762\u677f #tdVipIndicatorPopover\uff1aTV \u6241\u5e73\u98ce\u91cd\u505a
 *  scope \u5230 popover \u5bb9\u5668\uff0c\u4e0d\u5f71\u54cd\u5176\u4ed6\u4f7f\u7528\u540c\u540d class \u7684\u5730\u65b9
 * ============================================================ */

/* \u5217\u8868\u5bb9\u5668\uff1a\u53d6\u6d88 padding-right\uff0c\u7edf\u4e00 grid \u95f4\u8ddd */
#tdVipIndicatorPopover .td-vip-indicator-list--popover {
    grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
    gap: 8px;
}

/* === \u5361\u7247 .td-vip-indicator-item === */
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 13px 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

/* \u53bb\u9664\u539f\u6709\u5361\u7247\u88c5\u9970\u4f2a\u5143\u7d20\uff1a::before \u9876\u5149\u7ebf\u6761 + ::after \u53f3\u4e0a\u89d2\u4eae\u8272\u659c\u9762 */
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item::before,
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item::after {
    display: none;
}

#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item:hover {
    transform: none;
    border-color: #cbd5e1;
    background: #fbfcfd;
    box-shadow: none;
}

/* \u5df2\u542f\u7528\uff1a\u5de6\u4fa7 inset bar + \u54c1\u724c\u84dd\u8fb9\u6846 */
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item.is-enabled {
    border-color: #2962ff;
    background: #ffffff;
    box-shadow: inset 3px 0 0 0 #2962ff;
}

#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item.is-enabled:hover {
    border-color: #1d4ed8;
    background: #fbfcff;
}

/* \u9884\u7559\uff1a\u7070\u8c03\u80cc\u666f */
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item.is-reserved {
    border-color: #e5e7eb;
    background: #fafbfc;
}

/* PRO \u9501\u5b9a\uff1a\u8f7b\u5fae\u7f29\u51cf\u4e0d\u900f\u660e\u5ea6 */
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item.is-locked {
    border-color: #e5e7eb;
    background: #fafbfc;
}

/* \u6253\u5f00\u8bf4\u660e/\u8bbe\u5b9a\u9762\u677f\u65f6\uff1a\u6dbe\u84dd\u9ad8\u4eae */
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item.is-guide-open,
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item.is-settings-open {
    border-color: #2962ff;
    background: #fbfcff;
    box-shadow: inset 3px 0 0 0 #2962ff;
}

/* \u62d6\u62fd\u6392\u5e8f\u53cd\u9988 */
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item.is-dragging {
    opacity: 0.55;
}

#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item.is-drop-target {
    border-color: #60a5fa;
    background: #f0f7ff;
}

/* === \u5934\u90e8 head === */
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-title {
    font-size: 14px;
    font-weight: 700;
    color: #131722;
    letter-spacing: -0.005em;
    text-shadow: none;
    line-height: 1.2;
}

#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-subtitle {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #97a6b7;
    text-transform: none;
}

/* \u8d8b\u52bf\u63d0\u793a\u5fbd\u7ae0 trend-hint\uff1a\u626d\u9970 \u2192 \u626a\u5e73\u65b9\u5757 */
#tdVipIndicatorPopover .td-vip-indicator-trend-hint {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 20px;
    padding: 0 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #f5f7fa;
    color: #6b7785;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: none;
    box-shadow: none;
}

#tdVipIndicatorPopover .td-vip-indicator-trend-hint.is-bullish {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}

#tdVipIndicatorPopover .td-vip-indicator-trend-hint.is-bearish,
#tdVipIndicatorPopover .td-vip-indicator-trend-hint.is-warn {
    border-color: #fcd34d;
    background: #fffbeb;
    color: #92400e;
}

/* === head-actions \u5bb9\u5668 === */
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-head-actions {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
}

/* === \u72b6\u6001\u5fbd\u7ae0 status === */
#tdVipIndicatorPopover .td-vip-indicator-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid #e5ebf2;
    border-radius: 4px;
    background: #f5f7fa;
    box-shadow: none;
    color: #6b7785;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: none;
}

/* \u53bb\u9664\u539f\u6709\u53d1\u5149\u5706\u70b9 ::before */
#tdVipIndicatorPopover .td-vip-indicator-status::before {
    display: none;
}

#tdVipIndicatorPopover .td-vip-indicator-status--live {
    border-color: #6ee7b7;
    background: #ecfdf5;
    color: #047857;
}

#tdVipIndicatorPopover .td-vip-indicator-status--reserved {
    border-color: #e5e7eb;
    background: #f5f7fa;
    color: #6b7785;
}

/* === \u5217\u8868\u9879\u542f\u7528\u65f6 status \u5b9e\u4f53\u8868\u8fbe\u201c\u8fd0\u884c\u4e2d\u201d \u2192 \u54c1\u724c\u84dd === */
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item.is-enabled .td-vip-indicator-status--live {
    border-color: #2962ff;
    background: #2962ff;
    color: #ffffff;
}

/* === \u8bf4\u660e/\u8bbe\u5b9a\u6309\u94ae\uff1a\u626a\u5e73 outline ghost === */
#tdVipIndicatorPopover .td-vip-indicator-guide-trigger,
#tdVipIndicatorPopover .td-vip-indicator-settings-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid #e5ebf2;
    border-radius: 4px;
    background: #ffffff;
    color: #475569;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

#tdVipIndicatorPopover .td-vip-indicator-guide-trigger:hover,
#tdVipIndicatorPopover .td-vip-indicator-guide-trigger:focus-visible,
#tdVipIndicatorPopover .td-vip-indicator-settings-trigger:hover,
#tdVipIndicatorPopover .td-vip-indicator-settings-trigger:focus-visible {
    transform: none;
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #131722;
    box-shadow: none;
    outline: none;
}

#tdVipIndicatorPopover .td-vip-indicator-guide-trigger:focus-visible,
#tdVipIndicatorPopover .td-vip-indicator-settings-trigger:focus-visible {
    border-color: #2962ff;
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.16);
}

#tdVipIndicatorPopover .td-vip-indicator-guide-trigger.is-open,
#tdVipIndicatorPopover .td-vip-indicator-settings-trigger.is-open {
    border-color: #2962ff;
    background: #f0f4ff;
    color: #2962ff;
}

#tdVipIndicatorPopover .td-vip-indicator-guide-trigger:disabled,
#tdVipIndicatorPopover .td-vip-indicator-settings-trigger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* === actions \u5bb9\u5668 === */
#tdVipIndicatorPopover .td-vip-indicator-actions {
    display: block;
    margin-top: 0;
}

/* === toggle \u4e3b\u6309\u94ae\uff1a\u6807\u51c6 outline 32px === */
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    padding: 0 14px;
    border: 1px solid #2962ff;
    border-radius: 6px;
    background: #ffffff;
    color: #2962ff;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: none;
    box-shadow: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

/* \u53bb\u9664\u539f\u6709\u88c5\u9970\u5706\u70b9\u548c\u5185\u9636 */
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle::after,
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle::before {
    display: none;
}

#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle:hover,
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle:focus-visible {
    transform: none;
    border-color: #1d4ed8;
    background: #f0f4ff;
    color: #1d4ed8;
    box-shadow: none;
    outline: none;
}

#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.18);
}

/* \u5df2\u542f\u52a8\u72b6\u6001\uff08is-on\uff09\uff1a\u5b9e\u84dd\u5e95\u767d\u5b57\uff0c\u70b9\u51fb\u5373\u5173\u95ed */
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle.is-on {
    border-color: #2962ff;
    background: #2962ff;
    color: #ffffff;
    text-shadow: none;
    box-shadow: none;
}

#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle.is-on:hover,
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle.is-on:focus-visible {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #ffffff;
    box-shadow: none;
}

/* \u672a\u542f\u52a8\u72b6\u6001\uff08is-off\uff09\uff1a\u4e0e\u9ed8\u8ba4 outline \u4e00\u81f4 */
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle.is-off {
    border-color: #2962ff;
    background: #ffffff;
    color: #2962ff;
}

/* \u9501\u5b9a/\u7981\u7528 */
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle.is-locked,
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle:disabled {
    border-color: #e5ebf2;
    background: #f5f7fa;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 1;
    box-shadow: none;
}

#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle.is-locked:hover,
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle.is-locked:focus-visible,
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle:disabled:hover,
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle:disabled:focus-visible {
    border-color: #e5ebf2;
    background: #f5f7fa;
    color: #94a3b8;
    box-shadow: none;
}

/* \u53bb\u9664\u9501\u5b9a/\u7981\u7528\u72b6\u6001\u4e0b\u7684\u88c5\u9970\u5706\u70b9 */
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle.is-locked::after,
#tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle:disabled::after {
    display: none;
}

/* === \u7a7a\u72b6\u6001 === */
#tdVipIndicatorPopover .td-vip-indicator-empty {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 18px 16px;
    border: 1px dashed #e5ebf2;
    border-radius: 6px;
    background: #fbfcfd;
}

#tdVipIndicatorPopover .td-vip-indicator-empty strong {
    font-size: 13px;
    font-weight: 700;
    color: #131722;
}

#tdVipIndicatorPopover .td-vip-indicator-empty p {
    color: #6b7785;
    font-size: 12px;
    line-height: 1.6;
}

/* === \u54cd\u5e94\u5f0f\uff1a\u5c0f\u4e8e 720px \u65f6\u5355\u5217 === */
@media (max-width: 720px) {
    #tdVipIndicatorPopover .td-vip-indicator-list--popover {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item {
        padding: 10px 12px 10px 13px;
    }
}

/* ============================================================
 *  VIP \u6307\u6807\u9762\u677f #tdVipIndicatorPopover\uff1a\u591c\u95f4\u6a21\u5f0f
 * ============================================================ */

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.85);
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item:hover {
    border-color: #475569;
    background: rgba(15, 23, 42, 0.95);
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item.is-enabled {
    border-color: #60a5fa;
    background: rgba(11, 22, 37, 0.95);
    box-shadow: inset 3px 0 0 0 #60a5fa;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item.is-enabled:hover {
    border-color: #93c5fd;
    background: rgba(15, 23, 42, 0.98);
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item.is-reserved,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item.is-locked {
    border-color: #243447;
    background: rgba(8, 18, 32, 0.7);
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item.is-guide-open,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item.is-settings-open {
    border-color: #60a5fa;
    background: rgba(11, 28, 51, 0.92);
    box-shadow: inset 3px 0 0 0 #60a5fa;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item.is-drop-target {
    border-color: #93c5fd;
    background: rgba(8, 47, 73, 0.5);
}

/* \u6807\u9898 / \u526f\u6807\u9898 */
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-title {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-subtitle {
    color: #64748b;
}

/* trend-hint */
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-trend-hint {
    border-color: #243447;
    background: rgba(15, 23, 42, 0.85);
    color: #94a3b8;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-trend-hint.is-bullish {
    border-color: rgba(110, 231, 183, 0.4);
    background: rgba(6, 78, 59, 0.45);
    color: #6ee7b7;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-trend-hint.is-bearish,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-trend-hint.is-warn {
    border-color: rgba(252, 211, 77, 0.4);
    background: rgba(120, 53, 15, 0.45);
    color: #fcd34d;
}

/* status \u5fbd\u7ae0 */
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-status {
    border-color: #243447;
    background: rgba(15, 23, 42, 0.85);
    color: #94a3b8;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-status--live {
    border-color: rgba(110, 231, 183, 0.4);
    background: rgba(6, 78, 59, 0.45);
    color: #6ee7b7;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-status--reserved {
    border-color: #243447;
    background: rgba(15, 23, 42, 0.85);
    color: #94a3b8;
}

/* is-enabled \u4e0b\u7684 status \u54c1\u724c\u84dd \u2192 \u591c\u95f4\u4eae\u84dd */
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-item.is-enabled .td-vip-indicator-status--live {
    border-color: #60a5fa;
    background: #60a5fa;
    color: #0b1525;
}

/* \u8bf4\u660e/\u8bbe\u5b9a \u6309\u94ae */
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-guide-trigger,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings-trigger {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.7);
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-guide-trigger:hover,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-guide-trigger:focus-visible,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings-trigger:hover,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings-trigger:focus-visible {
    border-color: #475569;
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-guide-trigger:focus-visible,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings-trigger:focus-visible {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-guide-trigger.is-open,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings-trigger.is-open {
    border-color: #60a5fa;
    background: rgba(8, 47, 73, 0.55);
    color: #60a5fa;
}

/* toggle \u4e3b\u6309\u94ae\u591c\u95f4 */
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle {
    border-color: #60a5fa;
    background: rgba(11, 22, 37, 0.85);
    color: #60a5fa;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle:hover,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle:focus-visible {
    border-color: #93c5fd;
    background: rgba(8, 47, 73, 0.55);
    color: #93c5fd;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.22);
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle.is-on {
    border-color: #60a5fa;
    background: #60a5fa;
    color: #0b1525;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle.is-on:hover,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle.is-on:focus-visible {
    border-color: #93c5fd;
    background: #93c5fd;
    color: #0b1525;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle.is-off {
    border-color: #60a5fa;
    background: rgba(11, 22, 37, 0.85);
    color: #60a5fa;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle.is-locked,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle:disabled {
    border-color: #243447;
    background: rgba(15, 23, 42, 0.65);
    color: #64748b;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle.is-locked:hover,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle.is-locked:focus-visible,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle:disabled:hover,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-list--popover .td-vip-indicator-toggle:disabled:focus-visible {
    border-color: #243447;
    background: rgba(15, 23, 42, 0.65);
    color: #64748b;
}

/* \u7a7a\u72b6\u6001 */
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-empty {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.7);
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-empty strong {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-empty p {
    color: #94a3b8;
}

/* ============================================================
 *  VIP \u6307\u6807\u9762\u677f \u2014 \u5c55\u5f00\u9762\u677f\uff08\u8bf4\u660e/\u8bbe\u5b9a\uff09TV \u6241\u5e73\u98ce
 * ============================================================ */

/* === \u8bf4\u660e\u9762\u677f .td-vip-indicator-guide === */
#tdVipIndicatorPopover .td-vip-indicator-guide {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #e5ebf2;
    border-radius: 6px;
    background: #fbfcfd;
    box-shadow: none;
}

#tdVipIndicatorPopover .td-vip-indicator-guide-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #6b7785;
}

#tdVipIndicatorPopover .td-vip-indicator-guide-text {
    color: #475569;
    font-size: 12px;
    line-height: 1.6;
}

/* === \u8bbe\u5b9a\u9762\u677f .td-vip-indicator-settings === */
#tdVipIndicatorPopover .td-vip-indicator-settings {
    padding: 10px;
    border: 1px solid #e5ebf2;
    border-radius: 6px;
    background: #fbfcfd;
    box-shadow: none;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

#tdVipIndicatorPopover .td-vip-indicator-settings-brief {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

#tdVipIndicatorPopover .td-vip-indicator-settings-brief-chip,
#tdVipIndicatorPopover .td-vip-indicator-settings-section {
    border: 1px solid #e5ebf2;
    border-radius: 6px;
    background: #ffffff;
}

#tdVipIndicatorPopover .td-vip-indicator-settings-brief-chip {
    min-width: 0;
    padding: 6px 7px;
}

#tdVipIndicatorPopover .td-vip-indicator-settings-brief-chip b,
#tdVipIndicatorPopover .td-vip-indicator-settings-brief-chip em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
}

#tdVipIndicatorPopover .td-vip-indicator-settings-brief-chip b {
    color: #6b7785;
    font-size: 10px;
    font-weight: 700;
}

#tdVipIndicatorPopover .td-vip-indicator-settings-brief-chip em {
    color: #131722;
    font-size: 12px;
    font-weight: 800;
}

#tdVipIndicatorPopover .td-vip-indicator-settings-section {
    overflow: hidden;
}

#tdVipIndicatorPopover .td-vip-indicator-settings-section > summary {
    display: grid;
    grid-template-columns: minmax(86px, 0.4fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 9px;
    cursor: pointer;
    list-style: none;
}

#tdVipIndicatorPopover .td-vip-indicator-settings-section > summary::-webkit-details-marker {
    display: none;
}

#tdVipIndicatorPopover .td-vip-indicator-settings-section > summary::after {
    content: "";
    justify-self: end;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #6b7785;
    border-bottom: 1.5px solid #6b7785;
    transform: rotate(45deg);
}

#tdVipIndicatorPopover .td-vip-indicator-settings-section[open] > summary::after {
    transform: rotate(225deg);
}

#tdVipIndicatorPopover .td-vip-indicator-settings-section-title {
    color: #131722;
    font-size: 12px;
    font-weight: 800;
}

#tdVipIndicatorPopover .td-vip-indicator-settings-section-summary {
    min-width: 0;
    overflow: hidden;
    color: #6b7785;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#tdVipIndicatorPopover .td-vip-indicator-settings-section-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
    border-top: 1px solid #e5ebf2;
    background: #f8fafc;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-actions {
    position: sticky;
    bottom: -10px;
    z-index: 2;
    margin: 2px -10px -10px;
    padding: 8px 10px;
    border-top: 1px solid #e5ebf2;
    background: rgba(251, 252, 253, 0.96);
    backdrop-filter: blur(12px);
}

#tdVipIndicatorPopover .td-vip-indicator-setting-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #6b7785;
    text-transform: none;
}

#tdVipIndicatorPopover .td-vip-indicator-setting-input,
#tdVipIndicatorPopover .td-vip-indicator-setting-select {
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid #e5ebf2;
    border-radius: 4px;
    background: #ffffff;
    color: #131722;
    font-size: 11px;
    font-weight: 500;
}

#tdVipIndicatorPopover .td-vip-indicator-setting-input:focus,
#tdVipIndicatorPopover .td-vip-indicator-setting-input:focus-visible,
#tdVipIndicatorPopover .td-vip-indicator-setting-select:focus,
#tdVipIndicatorPopover .td-vip-indicator-setting-select:focus-visible {
    border-color: #2962ff;
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.16);
    outline: none;
}

#tdVipIndicatorPopover .td-vip-indicator-setting-color {
    min-height: 28px;
    padding: 2px;
    border: 1px solid #e5ebf2;
    border-radius: 4px;
    background: #ffffff;
}

#tdVipIndicatorPopover .td-vip-indicator-setting-color:focus-visible {
    border-color: #2962ff;
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.16);
    outline: none;
}

#tdVipIndicatorPopover .td-vip-indicator-setting-check {
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #e5ebf2;
    border-radius: 4px;
    background: #ffffff;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
}

#tdVipIndicatorPopover .td-vip-indicator-setting-check:focus-within {
    border-color: #2962ff;
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.16);
}

#tdVipIndicatorPopover .td-vip-indicator-setting-check input {
    accent-color: #2962ff;
}

/* === \u9884\u8bbe\u533a === */
#tdVipIndicatorPopover .td-vip-indicator-presets-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #6b7785;
}

#tdVipIndicatorPopover .td-vip-indicator-preset-btn {
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid #e5ebf2;
    border-radius: 4px;
    background: #ffffff;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    box-shadow: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

#tdVipIndicatorPopover .td-vip-indicator-preset-btn:hover,
#tdVipIndicatorPopover .td-vip-indicator-preset-btn:focus-visible {
    transform: none;
    border-color: #2962ff;
    background: #f0f4ff;
    color: #2962ff;
    box-shadow: none;
    outline: none;
}

#tdVipIndicatorPopover .td-vip-indicator-preset-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.16);
}

#tdVipIndicatorPopover .td-vip-indicator-preset-btn.is-active {
    border-color: rgba(15, 118, 110, 0.65);
    background: #ecfeff;
    color: #0f766e;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.15);
}

#tdVipIndicatorPopover .td-vip-indicator-preset-btn.is-active:hover,
#tdVipIndicatorPopover .td-vip-indicator-preset-btn.is-active:focus-visible {
    border-color: rgba(13, 99, 94, 0.78);
    background: #e0fdfa;
    color: #0d5c56;
}

/* === \u6a21\u677f\u533a === */
#tdVipIndicatorPopover .td-vip-indicator-templates {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid #e5ebf2;
    border-radius: 4px;
    background: #ffffff;
}

#tdVipIndicatorPopover .td-vip-indicator-templates-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #6b7785;
}

#tdVipIndicatorPopover .td-vip-indicator-templates-empty {
    color: #97a6b7;
    font-size: 11px;
    font-style: italic;
}

#tdVipIndicatorPopover .td-vip-indicator-template-btn {
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid #e5ebf2;
    border-radius: 4px;
    background: #ffffff;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    box-shadow: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

#tdVipIndicatorPopover .td-vip-indicator-template-btn:hover,
#tdVipIndicatorPopover .td-vip-indicator-template-btn:focus-visible {
    transform: none;
    border-color: #2962ff;
    background: #f0f4ff;
    color: #2962ff;
    outline: none;
}

#tdVipIndicatorPopover .td-vip-indicator-template-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.16);
}

/* === \u8bbe\u5b9a actions \u533a (\u91cd\u7f6e/\u4fdd\u5b58) === */
#tdVipIndicatorPopover .td-vip-indicator-setting-actions {
    grid-column: 1 / -1;
    margin-top: 4px;
}

#tdVipIndicatorPopover .td-vip-indicator-setting-btn {
    min-height: 30px;
    padding: 0 14px;
    border: 1px solid #e5ebf2;
    border-radius: 6px;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    box-shadow: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

#tdVipIndicatorPopover .td-vip-indicator-setting-btn:hover,
#tdVipIndicatorPopover .td-vip-indicator-setting-btn:focus-visible {
    transform: none;
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #131722;
    outline: none;
    box-shadow: none;
}

#tdVipIndicatorPopover .td-vip-indicator-setting-btn:focus-visible {
    border-color: #2962ff;
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.16);
}

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

#tdVipIndicatorPopover .td-vip-indicator-setting-btn--primary:hover,
#tdVipIndicatorPopover .td-vip-indicator-setting-btn--primary:focus-visible {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #ffffff;
}

/* === \u591c\u95f4\u6a21\u5f0f \u2014 \u5c55\u5f00\u9762\u677f === */
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-guide {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.7);
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-guide-label {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-guide-text {
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.7);
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings-brief-chip,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings-section {
    border-color: #243447;
    background: rgba(15, 23, 42, 0.88);
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings-section-body {
    border-top-color: #243447;
    background: rgba(11, 22, 37, 0.88);
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings-section-title,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings-brief-chip em {
    color: #f8fafc;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings-section-summary,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings-brief-chip b {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-actions {
    border-top-color: #243447;
    background: rgba(11, 22, 37, 0.94);
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-setting-label,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-presets-label,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-templates-label {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-setting-input,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-setting-select,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-setting-color,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-setting-check {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.85);
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-setting-input:focus,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-setting-input:focus-visible,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-setting-select:focus,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-setting-select:focus-visible,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-setting-color:focus-visible,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-setting-check:focus-within {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-setting-check input {
    accent-color: #60a5fa;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-preset-btn,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-template-btn {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.7);
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-preset-btn:hover,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-preset-btn:focus-visible,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-template-btn:hover,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-template-btn:focus-visible {
    border-color: #60a5fa;
    background: rgba(8, 47, 73, 0.5);
    color: #60a5fa;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-preset-btn.is-active {
    border-color: rgba(45, 212, 191, 0.55);
    background: rgba(6, 78, 59, 0.45);
    color: #5eead4;
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.2);
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-preset-btn.is-active:hover,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-preset-btn.is-active:focus-visible {
    border-color: rgba(94, 234, 212, 0.6);
    background: rgba(6, 95, 70, 0.55);
    color: #ccfbf1;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-templates {
    border-color: #243447;
    background: rgba(15, 23, 42, 0.7);
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-templates-empty {
    color: #64748b;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-setting-btn {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.7);
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-setting-btn:hover,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-setting-btn:focus-visible {
    border-color: #475569;
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-setting-btn:focus-visible {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-setting-btn--primary {
    border-color: #60a5fa;
    background: #60a5fa;
    color: #0b1525;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-setting-btn--primary:hover,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-setting-btn--primary:focus-visible {
    border-color: #93c5fd;
    background: #93c5fd;
    color: #0b1525;
}

/* ============================================================
 *  SMC \u81ea\u5b9a\u4e49\u5361\u7247\u5143\u7d20\uff08mode-btn / preset-btn / chip\uff09\u540c\u6b65 TV \u6241\u5e73\u98ce
 *  Bug #63 #64 #68\uff1aSMC tab \u5728\u6307\u6807\u9762\u677f\u5185\u4e0e\u5361\u7247\u98ce\u683c\u8131\u8282
 * ============================================================ */

/* SMC chip\uff1a\u5706\u8c03\u80f6\u56ca \u2192 \u626a\u5e73\u65b9\u5757 */
#tdVipIndicatorPopover .td-vip-smc-indicator-chip {
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
}

/* SMC mode-btn / preset-btn\uff1a\u6e10\u53d8\u5706\u89d2 \u2192 outline ghost \u626a\u5e73 */
#tdVipIndicatorPopover .td-vip-smc-indicator-mode-btn,
#tdVipIndicatorPopover .td-vip-smc-indicator-preset-btn {
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid #e5ebf2;
    border-radius: 4px;
    background: #ffffff;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

#tdVipIndicatorPopover .td-vip-smc-indicator-mode-btn:hover,
#tdVipIndicatorPopover .td-vip-smc-indicator-mode-btn:focus-visible,
#tdVipIndicatorPopover .td-vip-smc-indicator-preset-btn:hover,
#tdVipIndicatorPopover .td-vip-smc-indicator-preset-btn:focus-visible {
    transform: none;
    outline: none;
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #131722;
    box-shadow: none;
}

#tdVipIndicatorPopover .td-vip-smc-indicator-mode-btn:focus-visible,
#tdVipIndicatorPopover .td-vip-smc-indicator-preset-btn:focus-visible {
    border-color: #2962ff;
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.16);
}

#tdVipIndicatorPopover .td-vip-smc-indicator-mode-btn.is-active {
    border-color: #2962ff;
    background: #f0f4ff;
    color: #2962ff;
}

#tdVipIndicatorPopover .td-vip-smc-indicator-mode-btn.is-locked,
#tdVipIndicatorPopover .td-vip-smc-indicator-preset-btn.is-locked {
    border-color: #e5ebf2;
    background: #f5f7fa;
    color: #94a3b8;
    cursor: not-allowed;
}

#tdVipIndicatorPopover .td-vip-smc-indicator-mode-btn.is-locked:hover,
#tdVipIndicatorPopover .td-vip-smc-indicator-mode-btn.is-locked:focus-visible,
#tdVipIndicatorPopover .td-vip-smc-indicator-preset-btn.is-locked:hover,
#tdVipIndicatorPopover .td-vip-smc-indicator-preset-btn.is-locked:focus-visible {
    border-color: #e5ebf2;
    background: #f5f7fa;
    color: #94a3b8;
    box-shadow: none;
}

/* SMC caption\uff1a\u8bf4\u660e\u6587\u672c\u989c\u8272\u5fae\u8c03 */
#tdVipIndicatorPopover .td-vip-smc-indicator-caption {
    font-size: 11px;
    color: #6b7785;
    line-height: 1.55;
}

/* === \u591c\u95f4\u6a21\u5f0f \u2014 SMC \u81ea\u5b9a\u4e49\u5143\u7d20 === */
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-smc-indicator-chip {
    border-color: rgba(96, 165, 250, 0.36);
    background: rgba(8, 47, 73, 0.5);
    color: #93c5fd;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-smc-indicator-mode-btn,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-smc-indicator-preset-btn {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.7);
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-smc-indicator-mode-btn:hover,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-smc-indicator-mode-btn:focus-visible,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-smc-indicator-preset-btn:hover,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-smc-indicator-preset-btn:focus-visible {
    border-color: #475569;
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-smc-indicator-mode-btn:focus-visible,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-smc-indicator-preset-btn:focus-visible {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-smc-indicator-mode-btn.is-active {
    border-color: #60a5fa;
    background: rgba(8, 47, 73, 0.55);
    color: #60a5fa;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-smc-indicator-mode-btn.is-locked,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-smc-indicator-preset-btn.is-locked {
    border-color: #243447;
    background: rgba(15, 23, 42, 0.65);
    color: #64748b;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-smc-indicator-mode-btn.is-locked:hover,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-smc-indicator-mode-btn.is-locked:focus-visible,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-smc-indicator-preset-btn.is-locked:hover,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-smc-indicator-preset-btn.is-locked:focus-visible {
    border-color: #243447;
    background: rgba(15, 23, 42, 0.65);
    color: #64748b;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-smc-indicator-caption {
    color: #94a3b8;
}

/* ============================================================
 *  Replay V1.0 \u2014 MT \u98ce\u4e0b\u5355\u5f39\u7a97
 *  scope: #tdVipReplayOrderModal
 * ============================================================ */

.td-vip-replay-order-modal {
    position: fixed;
    inset: 0;
    z-index: 1000700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.td-vip-replay-order-modal:not([hidden]),
.td-vip-replay-order-modal.is-open {
    display: flex;
}

.td-vip-replay-order-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.td-vip-replay-order-card {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 20px 48px -16px rgba(15, 23, 42, 0.32);
    display: flex;
    flex-direction: column;
}

.td-vip-replay-order-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 12px;
    border-bottom: 1px solid #eef0f3;
}

.td-vip-replay-order-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.td-vip-replay-order-title strong {
    font-size: 16px;
    font-weight: 700;
    color: #131722;
    letter-spacing: -0.005em;
}

.td-vip-replay-order-subtitle {
    font-size: 11px;
    color: #6b7785;
}

.td-vip-replay-order-close {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #e5ebf2;
    background: #ffffff;
    color: #6b7785;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.td-vip-replay-order-close:hover,
.td-vip-replay-order-close:focus-visible {
    outline: none;
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #131722;
}

/* === \u62a5\u4ef7\u533a === */
.td-vip-replay-order-quote {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #eef0f3;
}

.td-vip-replay-order-quote-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.td-vip-replay-order-quote-cell:last-of-type {
    align-items: flex-end;
    text-align: right;
}

.td-vip-replay-order-quote-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #97a6b7;
    text-transform: uppercase;
}

.td-vip-replay-order-quote-value {
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #131722;
}

.td-vip-replay-order-quote-ask {
    color: #2962ff;
}

.td-vip-replay-order-quote-bid {
    color: #ef5350;
}

.td-vip-replay-order-quote-spread {
    padding: 4px 10px;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid #e5ebf2;
    font-size: 11px;
    font-weight: 600;
    color: #6b7785;
    white-space: nowrap;
}

/* === \u8ba2\u5355\u7c7b\u578b tab === */
.td-vip-replay-order-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 12px 18px 0;
    border-bottom: 1px solid #eef0f3;
}

.td-vip-replay-order-tab {
    appearance: none;
    height: 32px;
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #6b7785;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.td-vip-replay-order-tab:hover,
.td-vip-replay-order-tab:focus-visible {
    outline: none;
    color: #131722;
}

.td-vip-replay-order-tab.is-active {
    color: #2962ff;
    border-bottom-color: #2962ff;
}

/* === \u8868\u5355\u533a === */
.td-vip-replay-order-form {
    padding: 14px 18px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.td-vip-replay-order-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.td-vip-replay-order-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.td-vip-replay-order-field--wide {
    grid-column: 1 / -1;
}

.td-vip-replay-order-field > span {
    font-size: 11px;
    font-weight: 600;
    color: #6b7785;
}

.td-vip-replay-order-field input {
    height: 32px;
    padding: 0 10px;
    border: 1px solid #e5ebf2;
    border-radius: 4px;
    background: #ffffff;
    color: #131722;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.td-vip-replay-order-field input:hover {
    border-color: #cbd5e1;
}

.td-vip-replay-order-field input:focus,
.td-vip-replay-order-field input:focus-visible {
    outline: none;
    border-color: #2962ff;
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.16);
}

.td-vip-replay-order-field input::placeholder {
    color: #b0bcc8;
}

/* === \u4f30\u7b97\u533a === */
.td-vip-replay-order-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 18px 14px;
    border-top: 1px dashed #eef0f3;
    margin-top: 4px;
}

.td-vip-replay-order-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: #fbfcfd;
    border: 1px solid #eef0f3;
    border-radius: 4px;
    font-size: 11px;
}

.td-vip-replay-order-stat span {
    color: #6b7785;
}

.td-vip-replay-order-stat strong {
    color: #131722;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.td-vip-replay-order-stat strong.is-risky {
    color: #f59e0b;
}

.td-vip-replay-order-stat strong.is-danger {
    color: #ef5350;
}

/* === \u9519\u8bef\u63d0\u793a === */
.td-vip-replay-order-error {
    margin: 0 18px 12px;
    padding: 8px 12px;
    background: rgba(239, 83, 80, 0.08);
    border: 1px solid rgba(239, 83, 80, 0.32);
    border-radius: 4px;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 600;
}

/* === \u5e95\u90e8\u64cd\u4f5c === */
.td-vip-replay-order-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 16px;
    border-top: 1px solid #eef0f3;
    background: #fbfcfd;
}

.td-vip-replay-order-actions-buy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    flex: 1;
    margin-left: 12px;
}

.td-vip-replay-order-submit {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 0 14px;
    height: 40px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

.td-vip-replay-order-submit-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.td-vip-replay-order-submit-price {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.86;
    font-variant-numeric: tabular-nums;
}

.td-vip-replay-order-submit--buy {
    background: #2962ff;
    border-color: #2962ff;
    color: #ffffff;
}

.td-vip-replay-order-submit--buy:hover,
.td-vip-replay-order-submit--buy:focus-visible {
    outline: none;
    filter: brightness(1.06);
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.22);
}

.td-vip-replay-order-submit--sell {
    background: #ef5350;
    border-color: #ef5350;
    color: #ffffff;
}

.td-vip-replay-order-submit--sell:hover,
.td-vip-replay-order-submit--sell:focus-visible {
    outline: none;
    filter: brightness(1.06);
    box-shadow: 0 0 0 3px rgba(239, 83, 80, 0.22);
}

.td-vip-replay-order-submit:active {
    transform: translateY(1px);
}

/* === \u591c\u95f4\u6a21\u5f0f === */
body.td-vip-body.is-night-mode .td-vip-replay-order-card {
    background: #0f1623;
    border-color: #243447;
    box-shadow: 0 24px 56px -20px rgba(0, 0, 0, 0.6);
}

body.td-vip-body.is-night-mode .td-vip-replay-order-head,
body.td-vip-body.is-night-mode .td-vip-replay-order-tabs,
body.td-vip-body.is-night-mode .td-vip-replay-order-actions {
    border-color: #1d2a3d;
}

body.td-vip-body.is-night-mode .td-vip-replay-order-actions {
    background: rgba(11, 22, 37, 0.7);
}

body.td-vip-body.is-night-mode .td-vip-replay-order-title strong {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-replay-order-subtitle,
body.td-vip-body.is-night-mode .td-vip-replay-order-tab,
body.td-vip-body.is-night-mode .td-vip-replay-order-quote-label,
body.td-vip-body.is-night-mode .td-vip-replay-order-field > span,
body.td-vip-body.is-night-mode .td-vip-replay-order-stat span {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-replay-order-tab.is-active {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
}

body.td-vip-body.is-night-mode .td-vip-replay-order-tab:hover,
body.td-vip-body.is-night-mode .td-vip-replay-order-tab:focus-visible {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-replay-order-close {
    background: rgba(11, 22, 37, 0.7);
    border-color: #243447;
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-replay-order-close:hover,
body.td-vip-body.is-night-mode .td-vip-replay-order-close:focus-visible {
    background: rgba(15, 23, 42, 0.95);
    border-color: #475569;
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-replay-order-quote {
    background: rgba(11, 22, 37, 0.55);
}

body.td-vip-body.is-night-mode .td-vip-replay-order-quote-value {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-replay-order-quote-ask {
    color: #60a5fa;
}

body.td-vip-body.is-night-mode .td-vip-replay-order-quote-bid {
    color: #f87171;
}

body.td-vip-body.is-night-mode .td-vip-replay-order-quote-spread {
    background: rgba(11, 22, 37, 0.7);
    border-color: #243447;
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode .td-vip-replay-order-field input {
    background: rgba(11, 22, 37, 0.7);
    border-color: #243447;
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-replay-order-field input:hover {
    border-color: #475569;
}

body.td-vip-body.is-night-mode .td-vip-replay-order-field input:focus,
body.td-vip-body.is-night-mode .td-vip-replay-order-field input:focus-visible {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

body.td-vip-body.is-night-mode .td-vip-replay-order-field input::placeholder {
    color: #475569;
}

body.td-vip-body.is-night-mode .td-vip-replay-order-stat {
    background: rgba(11, 22, 37, 0.55);
    border-color: #243447;
}

body.td-vip-body.is-night-mode .td-vip-replay-order-stat strong {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-replay-order-stat strong.is-risky {
    color: #fbbf24;
}

body.td-vip-body.is-night-mode .td-vip-replay-order-stat strong.is-danger {
    color: #f87171;
}

body.td-vip-body.is-night-mode .td-vip-replay-order-stats {
    border-top-color: #243447;
}

body.td-vip-body.is-night-mode .td-vip-replay-order-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.36);
    color: #fca5a5;
}

/* === \u8d26\u6237\u5fbd\u7ae0\u989d\u5916\u6837\u5f0f\uff08\u5728\u73b0\u6709 .td-vip-replay-virtual-summary \u91cd\u7528\uff09 === */
.td-vip-replay-virtual-summary.is-account-mode {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background: #f8fafc;
    border: 1px solid #eef0f3;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #131722;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.td-vip-replay-virtual-summary.is-account-mode.is-margin-call {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.42);
    color: #b45309;
}

body.td-vip-body.is-night-mode .td-vip-replay-virtual-summary.is-account-mode {
    background: rgba(11, 22, 37, 0.7);
    border-color: #243447;
    color: #e2e8f0;
}

/* ============================================================
 *  Replay V1.0 Week 2 \u2014 \u6301\u4ed3 / \u6302\u5355 / \u5386\u53f2 \u9762\u677f
 *  scope: #tdVipReplayPositionPanel
 * ============================================================ */

.td-vip-replay-position-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 950;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 16px -8px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    max-height: min(48vh, 380px);
    transition: max-height 0.18s ease;
}

.td-vip-replay-position-panel.is-collapsed {
    max-height: 44px;
    overflow: hidden;
}

.td-vip-replay-position-panel.is-collapsed .td-vip-replay-position-panel-body {
    display: none;
}

/* Reserve space at the bottom of the page so the fixed-position panel doesn't
 * cover the chart. .td-vip-page is the root fixed-inset container; its
 * padding-bottom shrinks the live grid area inside .td-vip-terminal, letting
 * the chart resize observer pick up the new height automatically.
 *
 * Body classes (set by position-panel module):
 *   has-replay-position-panel            — panel visible (full size)
 *   has-replay-position-panel-collapsed  — panel visible but collapsed (44px)
 */
body.has-replay-position-panel .td-vip-page {
    padding-bottom: min(48vh, 380px);
    transition: padding-bottom 0.18s ease;
}

body.has-replay-position-panel-collapsed .td-vip-page {
    padding-bottom: 44px;
}

.td-vip-replay-position-panel-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 12px;
    border-bottom: 1px solid #eef0f3;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    min-height: 44px;
    flex: 0 0 auto;
}

.td-vip-replay-position-panel-tabs {
    display: flex;
    gap: 0;
    flex: 0 0 auto;
}

.td-vip-replay-position-panel-tab {
    appearance: none;
    height: 32px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #6b7785;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.td-vip-replay-position-panel-tab:hover,
.td-vip-replay-position-panel-tab:focus-visible {
    outline: none;
    color: #131722;
}

.td-vip-replay-position-panel-tab.is-active {
    color: #2962ff;
    border-bottom-color: #2962ff;
}

.td-vip-replay-position-panel-tab-count {
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 9px;
    background: #eef0f3;
    color: #6b7785;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.td-vip-replay-position-panel-tab.is-active .td-vip-replay-position-panel-tab-count {
    background: rgba(41, 98, 255, 0.14);
    color: #2962ff;
}

.td-vip-replay-position-panel-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.td-vip-replay-position-panel-summary-cell {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.td-vip-replay-position-panel-summary-cell strong {
    font-size: 13px;
    font-weight: 700;
    color: #131722;
}

.td-vip-replay-position-panel-summary-cell.is-profit strong {
    color: #16a34a;
}

.td-vip-replay-position-panel-summary-cell.is-loss strong {
    color: #ef5350;
}

.td-vip-replay-position-panel-summary-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #97a6b7;
    text-transform: uppercase;
}

.td-vip-replay-position-panel-summary-muted {
    font-size: 12px;
    color: #97a6b7;
    font-weight: 600;
}

.td-vip-replay-position-panel-summary .td-vip-replay-pnl-pct {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.78;
}

.td-vip-replay-position-panel-tools {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    /* Hide scrollbar but keep scrollability for ultra-narrow viewports */
    scrollbar-width: none;
}
.td-vip-replay-position-panel-tools::-webkit-scrollbar { display: none; }

/* Semantic separator between toolbar groups (notes / session / batch / utility).
 * Inserted by adding `is-divider` to a button or by using <span class="td-vip-replay-tool-divider"> */
.td-vip-replay-tool-divider {
    width: 1px;
    height: 20px;
    background: #e5ebf2;
    margin: 0 2px;
    flex: 0 0 auto;
}

.td-vip-replay-position-panel-tool-btn {
    appearance: none;
    height: 28px;
    padding: 0 10px;
    border: 1px solid #e5ebf2;
    border-radius: 6px;
    background: #ffffff;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.td-vip-replay-position-panel-tool-btn:hover,
.td-vip-replay-position-panel-tool-btn:focus-visible {
    outline: none;
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #131722;
}

.td-vip-replay-position-panel-tool-btn:active {
    transform: translateY(1px);
}

.td-vip-replay-position-panel-tool-btn:focus-visible {
    border-color: #2962ff;
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.16);
}

/* Semantic variants for the toolbar:
 *  - data-action="add-note"        — primary accent (start a note)
 *  - data-action="export-notes-md" — soft accent (export)
 *  - data-action="show-kbd-help"   — round icon-only button
 *  - data-action="close-all" / cancel-all-pending — danger tint on hover */
.td-vip-replay-position-panel-tool-btn[data-action="add-note"] {
    background: #2962ff;
    border-color: #2962ff;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(41, 98, 255, 0.28);
}
.td-vip-replay-position-panel-tool-btn[data-action="add-note"]:hover,
.td-vip-replay-position-panel-tool-btn[data-action="add-note"]:focus-visible {
    background: #1e4ee0;
    border-color: #1e4ee0;
    color: #ffffff;
}

.td-vip-replay-position-panel-tool-btn[data-action="export-notes-md"],
.td-vip-replay-position-panel-tool-btn[data-action="export-csv"] {
    background: rgba(41, 98, 255, 0.06);
    border-color: rgba(41, 98, 255, 0.22);
    color: #2962ff;
}
.td-vip-replay-position-panel-tool-btn[data-action="export-notes-md"]:hover,
.td-vip-replay-position-panel-tool-btn[data-action="export-csv"]:hover {
    background: rgba(41, 98, 255, 0.12);
    border-color: rgba(41, 98, 255, 0.4);
    color: #1e4ee0;
}

.td-vip-replay-position-panel-tool-btn[data-action="close-all"]:hover,
.td-vip-replay-position-panel-tool-btn[data-action="cancel-all-pending"]:hover {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #dc2626;
}

.td-vip-replay-position-panel-tool-btn[data-action="show-kbd-help"] {
    width: 28px;
    padding: 0;
    border-radius: 50%;
    font-size: 13px;
    color: #6b7785;
}
.td-vip-replay-position-panel-tool-btn[data-action="show-kbd-help"]:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
}

.td-vip-replay-position-panel-collapse {
    appearance: none;
    width: 28px;
    height: 28px;
    border: 1px solid #e5ebf2;
    border-radius: 4px;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.td-vip-replay-position-panel-collapse:hover,
.td-vip-replay-position-panel-collapse:focus-visible {
    outline: none;
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #131722;
}

.td-vip-replay-position-panel-body {
    flex: 1;
    overflow: auto;
    padding: 0;
}

/* === \u8868\u683c === */
.td-vip-replay-position-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.td-vip-replay-position-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fbfcfd;
}

.td-vip-replay-position-table th {
    text-align: left;
    padding: 8px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #97a6b7;
    text-transform: uppercase;
    border-bottom: 1px solid #eef0f3;
    white-space: nowrap;
}

.td-vip-replay-position-table th.is-num,
.td-vip-replay-position-table td.is-num {
    text-align: right;
}

.td-vip-replay-position-table tbody tr {
    transition: background-color 0.12s ease;
}

.td-vip-replay-position-table tbody tr:hover {
    background: #f8fafc;
}

.td-vip-replay-position-table tbody tr + tr td {
    border-top: 1px solid #f5f7fa;
}

.td-vip-replay-position-table td {
    padding: 8px 10px;
    color: #131722;
    white-space: nowrap;
}

.td-vip-replay-cell-muted {
    color: #97a6b7;
    font-size: 11px;
}

.td-vip-replay-pnl-cell {
    font-weight: 700;
}

.td-vip-replay-pnl-cell.is-profit {
    color: #16a34a;
}

.td-vip-replay-pnl-cell.is-loss {
    color: #ef5350;
}

.td-vip-replay-pnl-pct {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.78;
}

.td-vip-replay-side-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
}

.td-vip-replay-side-buy {
    background: rgba(41, 98, 255, 0.12);
    color: #2962ff;
}

.td-vip-replay-side-sell {
    background: rgba(239, 83, 80, 0.12);
    color: #ef5350;
}

.td-vip-replay-row-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.td-vip-replay-row-actions button {
    appearance: none;
    height: 24px;
    padding: 0 10px;
    border: 1px solid #e5ebf2;
    border-radius: 3px;
    background: #ffffff;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.td-vip-replay-row-actions button:hover,
.td-vip-replay-row-actions button:focus-visible {
    outline: none;
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #131722;
}

.td-vip-replay-row-actions button:focus-visible {
    border-color: #2962ff;
    box-shadow: 0 0 0 2px rgba(41, 98, 255, 0.18);
}

.td-vip-replay-row-actions button.is-danger {
    border-color: rgba(239, 83, 80, 0.32);
    color: #ef5350;
}

.td-vip-replay-row-actions button.is-danger:hover,
.td-vip-replay-row-actions button.is-danger:focus-visible {
    border-color: #ef5350;
    background: rgba(239, 83, 80, 0.08);
    color: #b91c1c;
}

.td-vip-replay-table-empty {
    padding: 32px 16px;
    text-align: center;
    color: #97a6b7;
    font-size: 12px;
    line-height: 1.6;
}

.td-vip-replay-table-note {
    margin: 8px 12px;
    padding: 8px 12px;
    background: #fbfcfd;
    border: 1px dashed #e5ebf2;
    border-radius: 4px;
    color: #6b7785;
    font-size: 11px;
}

/* === \u4fee\u6539 SL/TP \u5f39\u7a97\u8868\u5355 === */
.td-vip-replay-modify-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.td-vip-replay-modify-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.td-vip-replay-modify-form label > span {
    font-size: 11px;
    font-weight: 600;
    color: #6b7785;
}

.td-vip-replay-modify-form input {
    height: 32px;
    padding: 0 10px;
    border: 1px solid #e5ebf2;
    border-radius: 4px;
    background: #ffffff;
    color: #131722;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.td-vip-replay-modify-form input:focus,
.td-vip-replay-modify-form input:focus-visible {
    outline: none;
    border-color: #2962ff;
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.16);
}

.td-vip-replay-modify-hint {
    margin: 0;
    color: #6b7785;
    font-size: 11px;
}

.td-vip-replay-modify-error {
    margin: 0;
    padding: 6px 10px;
    background: rgba(239, 83, 80, 0.08);
    border: 1px solid rgba(239, 83, 80, 0.32);
    border-radius: 4px;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 600;
}

.td-vip-replay-modify-form label > span small {
    margin-left: 6px;
    font-size: 10px;
    font-weight: 500;
    color: #97a6b7;
}

.td-vip-replay-partial-quick {
    display: flex;
    gap: 6px;
    margin-top: -2px;
}

.td-vip-replay-partial-quick button {
    appearance: none;
    flex: 1;
    height: 28px;
    border: 1px solid #e5ebf2;
    border-radius: 4px;
    background: #ffffff;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.td-vip-replay-partial-quick button:hover,
.td-vip-replay-partial-quick button:focus-visible {
    outline: none;
    border-color: #2962ff;
    color: #2962ff;
    background: rgba(41, 98, 255, 0.06);
}

/* === \u4f1a\u8bdd\u7ba1\u7406\u5217\u8868 === */
.td-vip-replay-sessions-list {
    min-height: 240px;
    max-height: 60vh;
    overflow: auto;
    padding: 4px 0;
}

.td-vip-replay-sessions-loading,
.td-vip-replay-sessions-empty {
    padding: 32px 16px;
    text-align: center;
    color: #97a6b7;
    font-size: 13px;
    line-height: 1.6;
}

.td-vip-replay-sessions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.td-vip-replay-sessions-table th {
    text-align: left;
    padding: 8px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #97a6b7;
    text-transform: uppercase;
    border-bottom: 1px solid #eef0f3;
    white-space: nowrap;
    background: #fbfcfd;
    position: sticky;
    top: 0;
}

.td-vip-replay-sessions-table th.is-num,
.td-vip-replay-sessions-table td.is-num {
    text-align: right;
}

.td-vip-replay-sessions-table td {
    padding: 10px;
    border-top: 1px solid #f5f7fa;
    color: #131722;
}

.td-vip-replay-sessions-table tbody tr:hover {
    background: #f8fafc;
}

.td-vip-replay-sessions-table tbody tr.is-current {
    background: rgba(41, 98, 255, 0.06);
}

.td-vip-replay-sessions-table tbody tr.is-current strong {
    color: #2962ff;
}

.td-vip-replay-sessions-table small {
    color: #97a6b7;
    font-size: 10px;
    margin-left: 4px;
}

.td-vip-replay-sessions-table small.is-profit { color: #16a34a; }
.td-vip-replay-sessions-table small.is-loss { color: #ef5350; }

.td-vip-replay-sessions-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(41, 98, 255, 0.18);
    color: #2962ff;
    font-size: 10px;
    font-weight: 700;
}

body.td-vip-body.is-night-mode .td-vip-replay-sessions-loading,
body.td-vip-body.is-night-mode .td-vip-replay-sessions-empty {
    color: #64748b;
}

body.td-vip-body.is-night-mode .td-vip-replay-sessions-table th {
    background: rgba(11, 22, 37, 0.95);
    color: #64748b;
    border-bottom-color: #1d2a3d;
}

body.td-vip-body.is-night-mode .td-vip-replay-sessions-table td {
    color: #e2e8f0;
    border-top-color: #1d2a3d;
}

body.td-vip-body.is-night-mode .td-vip-replay-sessions-table tbody tr:hover {
    background: rgba(15, 23, 42, 0.5);
}

body.td-vip-body.is-night-mode .td-vip-replay-sessions-table tbody tr.is-current {
    background: rgba(96, 165, 250, 0.1);
}

body.td-vip-body.is-night-mode .td-vip-replay-sessions-table tbody tr.is-current strong {
    color: #60a5fa;
}

body.td-vip-body.is-night-mode .td-vip-replay-sessions-tag {
    background: rgba(96, 165, 250, 0.18);
    color: #60a5fa;
}

body.td-vip-body.is-night-mode .td-vip-replay-sessions-table small.is-profit { color: #4ade80; }
body.td-vip-body.is-night-mode .td-vip-replay-sessions-table small.is-loss { color: #f87171; }

/* === Equity \u66f2\u7ebf tab === */
.td-vip-replay-equity-wrap {
    padding: 12px 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.td-vip-replay-equity-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding: 8px 12px;
    background: #fbfcfd;
    border: 1px solid #eef0f3;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
}

.td-vip-replay-equity-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.15;
}

.td-vip-replay-equity-stat span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #97a6b7;
    text-transform: uppercase;
}

.td-vip-replay-equity-stat strong {
    font-size: 13px;
    font-weight: 700;
    color: #131722;
}

.td-vip-replay-equity-stat strong small {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.78;
    margin-left: 2px;
}

.td-vip-replay-equity-stat.is-profit strong { color: #16a34a; }
.td-vip-replay-equity-stat.is-loss strong { color: #ef5350; }

.td-vip-replay-equity-legend {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: #6b7785;
    padding-left: 4px;
}

.td-vip-replay-equity-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.td-vip-replay-equity-legend-item i {
    width: 14px;
    height: 2px;
    border-radius: 1px;
    display: inline-block;
}

.td-vip-replay-equity-legend-balance { background: #f59e0b; }
.td-vip-replay-equity-legend-equity { background: #2962ff; }
.td-vip-replay-equity-legend-start {
    background: transparent;
    border-top: 1px dashed #94a3b8;
    height: 0;
}

.td-vip-replay-equity-svg {
    width: 100%;
    height: auto;
    max-height: 280px;
    display: block;
}

.td-vip-replay-equity-grid {
    stroke: #eef0f3;
    stroke-width: 1;
    fill: none;
}

.td-vip-replay-equity-zero {
    stroke: #94a3b8;
    stroke-width: 1;
    stroke-dasharray: 4 3;
    fill: none;
}

.td-vip-replay-equity-line-balance {
    stroke: #f59e0b;
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.td-vip-replay-equity-line-equity {
    stroke: #2962ff;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.td-vip-replay-equity-axis {
    fill: #97a6b7;
    font-size: 10px;
    font-family: var(--td-vip-font-ui, system-ui, sans-serif);
    font-variant-numeric: tabular-nums;
}

.td-vip-replay-equity-axis-start {
    fill: #94a3b8;
    font-size: 10px;
    font-weight: 600;
    font-family: var(--td-vip-font-ui, system-ui, sans-serif);
}

body.td-vip-body.is-night-mode .td-vip-replay-equity-stats {
    background: rgba(11, 22, 37, 0.55);
    border-color: #243447;
}

body.td-vip-body.is-night-mode .td-vip-replay-equity-stat span,
body.td-vip-body.is-night-mode .td-vip-replay-equity-legend {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-replay-equity-stat strong { color: #e2e8f0; }
body.td-vip-body.is-night-mode .td-vip-replay-equity-stat.is-profit strong { color: #4ade80; }
body.td-vip-body.is-night-mode .td-vip-replay-equity-stat.is-loss strong { color: #f87171; }

body.td-vip-body.is-night-mode .td-vip-replay-equity-grid { stroke: #1d2a3d; }
body.td-vip-body.is-night-mode .td-vip-replay-equity-zero { stroke: #475569; }
body.td-vip-body.is-night-mode .td-vip-replay-equity-line-equity { stroke: #60a5fa; }
body.td-vip-body.is-night-mode .td-vip-replay-equity-line-balance { stroke: #fbbf24; }
body.td-vip-body.is-night-mode .td-vip-replay-equity-axis { fill: #64748b; }
body.td-vip-body.is-night-mode .td-vip-replay-equity-axis-start { fill: #64748b; }

/* ============================================================
 * V1.1 — History tab stats summary + filter pills
 *        (refined: tighter cells, subtle accent strip, dividers)
 * ============================================================ */

/* Stats summary bar — 9 KPI cells in a responsive grid. Each cell shows
 * a small uppercase label + larger numeric value. Hover reveals a
 * subtle highlight. The whole bar has a left accent strip for visual
 * anchoring + contrast against the table below. */
.td-vip-replay-history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    gap: 0;
    margin: 0 0 12px;
    padding: 10px 14px;
    background: linear-gradient(180deg, rgba(41, 98, 255, 0.04) 0%, rgba(41, 98, 255, 0.015) 100%);
    border: 1px solid rgba(41, 98, 255, 0.16);
    border-left-width: 3px;
    border-left-color: #2962ff;
    border-radius: 6px;
}

.td-vip-replay-history-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px 10px;
    border-right: 1px solid rgba(15, 23, 42, 0.06);
    cursor: help;
    transition: background 0.15s ease;
}

.td-vip-replay-history-stat:hover {
    background: rgba(41, 98, 255, 0.04);
    border-radius: 4px;
}

.td-vip-replay-history-stat:last-child { border-right: none; }

.td-vip-replay-history-stat-label {
    font-size: 10px;
    font-weight: 600;
    color: #97a6b7;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.td-vip-replay-history-stat strong {
    font-size: 15px;
    font-weight: 700;
    color: #131722;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.td-vip-replay-history-stat.is-good strong  { color: #16a34a; }
.td-vip-replay-history-stat.is-bad strong   { color: #dc2626; }
.td-vip-replay-history-stat.is-neutral strong { color: #2962ff; }

/* Cells with multi-value strings (e.g. "+$10000 / -$5000") need extra
 * width to render without clipping. They span 2 columns of the grid. */
.td-vip-replay-history-stat.is-wide {
    grid-column: span 2;
}
.td-vip-replay-history-stat.is-wide strong {
    font-size: 13px;   /* slight downsize so the dual value still fits cleanly */
}

body.td-vip-body.is-night-mode .td-vip-replay-history-stats {
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.07) 0%, rgba(96, 165, 250, 0.025) 100%);
    border-color: rgba(96, 165, 250, 0.22);
    border-left-color: #60a5fa;
}

body.td-vip-body.is-night-mode .td-vip-replay-history-stat {
    border-right-color: rgba(255, 255, 255, 0.04);
}
body.td-vip-body.is-night-mode .td-vip-replay-history-stat:hover {
    background: rgba(96, 165, 250, 0.08);
}
body.td-vip-body.is-night-mode .td-vip-replay-history-stat strong { color: #e2e8f0; }
body.td-vip-body.is-night-mode .td-vip-replay-history-stat-label  { color: #64748b; }

body.td-vip-body.is-night-mode .td-vip-replay-history-stat.is-good strong  { color: #4ade80; }
body.td-vip-body.is-night-mode .td-vip-replay-history-stat.is-bad strong   { color: #f87171; }
body.td-vip-body.is-night-mode .td-vip-replay-history-stat.is-neutral strong { color: #60a5fa; }

/* Filter pills — flex row of rounded buttons with count badges.
 * The active pill is filled with the accent color and shows a white
 * count badge. The whole row sits above the trades table with a
 * dotted separator. */
.td-vip-replay-history-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
    padding: 0 0 10px;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.08);
}

.td-vip-replay-history-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.td-vip-replay-history-filter-pill:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #131722;
}

.td-vip-replay-history-filter-pill.is-active {
    background: #2962ff;
    border-color: #2962ff;
    color: #fff;
    box-shadow: 0 1px 4px rgba(41, 98, 255, 0.32);
}

.td-vip-replay-history-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: inherit;
    font-size: 10px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.td-vip-replay-history-filter-pill.is-active .td-vip-replay-history-filter-count {
    background: rgba(255, 255, 255, 0.26);
}

body.td-vip-body.is-night-mode .td-vip-replay-history-filter {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.td-vip-body.is-night-mode .td-vip-replay-history-filter-pill {
    background: #16202e;
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-replay-history-filter-pill:hover {
    background: #1d2a3d;
    border-color: rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-replay-history-filter-pill.is-active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 1px 6px rgba(59, 130, 246, 0.4);
}

body.td-vip-body.is-night-mode .td-vip-replay-history-filter-count {
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
 * V1.1 — Keyboard shortcut help modal
 * ============================================================ */

.td-vip-replay-kbd-help-intro {
    margin: 0 0 14px;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(41, 98, 255, 0.06) 0%, rgba(41, 98, 255, 0.02) 100%);
    border-left: 3px solid #2962ff;
    border-radius: 4px;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.td-vip-replay-kbd-help-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.td-vip-replay-kbd-help-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    color: #475569;
}

.td-vip-replay-kbd-help-table tr:last-child td { border-bottom: none; }
.td-vip-replay-kbd-help-table tr:hover td { background: rgba(41, 98, 255, 0.03); }

.td-vip-replay-kbd-help-table td:first-child {
    width: 38%;
    text-align: left;
    white-space: nowrap;
}

.td-vip-replay-kbd-help-table kbd {
    display: inline-block;
    min-width: 22px;
    padding: 2px 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    border-bottom-width: 2px;
    border-radius: 5px;
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
    text-align: center;
}

body.td-vip-body.is-night-mode .td-vip-replay-kbd-help-intro {
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.1) 0%, rgba(96, 165, 250, 0.03) 100%);
    border-left-color: #3b82f6;
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-replay-kbd-help-table td {
    border-bottom-color: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}
body.td-vip-body.is-night-mode .td-vip-replay-kbd-help-table tr:hover td {
    background: rgba(96, 165, 250, 0.06);
}

body.td-vip-body.is-night-mode .td-vip-replay-kbd-help-table kbd {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
    color: #e2e8f0;
}

/* ============================================================
 * V1.1 — Notes tab + add-note dialog
 * ============================================================ */

/* Empty-state hero with friendly copy + tutorial nudge */
.td-vip-replay-notes-empty {
    text-align: center;
    padding: 48px 24px;
    color: #6b7785;
    line-height: 1.7;
}

.td-vip-replay-notes-empty p:first-child {
    font-size: 24px;
    margin-bottom: 8px;
}

.td-vip-replay-notes-empty p {
    margin: 0 0 6px;
    font-size: 13px;
}

.td-vip-replay-notes-empty strong {
    color: #2962ff;
    font-weight: 700;
}

body.td-vip-body.is-night-mode .td-vip-replay-notes-empty { color: #94a3b8; }
body.td-vip-body.is-night-mode .td-vip-replay-notes-empty strong { color: #60a5fa; }

/* Chronological list of note cards. Each card is a self-contained
 * unit with header (time + price + actions) and body (text + tags). */
.td-vip-replay-notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0;
}

.td-vip-replay-note-card {
    border: 1px solid #e5ebf2;
    border-left: 3px solid #2962ff;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.08s ease;
}

.td-vip-replay-note-card:hover {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.td-vip-replay-note-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    font-size: 12px;
    color: #64748b;
}

.td-vip-replay-note-card-time {
    font-weight: 700;
    color: #131722;
    font-variant-numeric: tabular-nums;
}

.td-vip-replay-note-card-price {
    font-variant-numeric: tabular-nums;
    color: #475569;
}

.td-vip-replay-note-card-actions {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.td-vip-replay-note-card-actions button {
    appearance: none;
    height: 24px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #6b7785;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.td-vip-replay-note-card-actions button:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #131722;
}

.td-vip-replay-note-card-actions button.is-danger:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.td-vip-replay-note-card-body {
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.6;
    color: #131722;
    word-wrap: break-word;
    white-space: normal;
}

.td-vip-replay-note-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px 12px;
}

.td-vip-replay-note-tag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    background: rgba(41, 98, 255, 0.08);
    color: #2962ff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

body.td-vip-body.is-night-mode .td-vip-replay-note-card {
    background: #16202e;
    border-color: #243447;
    border-left-color: #60a5fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

body.td-vip-body.is-night-mode .td-vip-replay-note-card-head {
    background: rgba(96, 165, 250, 0.05);
    border-bottom-color: #243447;
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-replay-note-card-time { color: #e2e8f0; }
body.td-vip-body.is-night-mode .td-vip-replay-note-card-price { color: #cbd5e1; }
body.td-vip-body.is-night-mode .td-vip-replay-note-card-body { color: #e2e8f0; }

body.td-vip-body.is-night-mode .td-vip-replay-note-card-actions button { color: #94a3b8; }
body.td-vip-body.is-night-mode .td-vip-replay-note-card-actions button:hover {
    background: #0f1623;
    border-color: #334155;
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-replay-note-tag {
    background: rgba(96, 165, 250, 0.14);
    color: #60a5fa;
}

/* Add-note modal — header, textarea + tags input */
.td-vip-replay-note-head {
    margin: 0 0 14px;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(41, 98, 255, 0.06) 0%, rgba(41, 98, 255, 0.02) 100%);
    border-left: 3px solid #2962ff;
    border-radius: 4px;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.td-vip-replay-note-head strong { color: #131722; font-weight: 700; }

.td-vip-replay-note-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.td-vip-replay-note-field > span {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.02em;
}

.td-vip-replay-note-field textarea,
.td-vip-replay-note-field input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #e5ebf2;
    border-radius: 6px;
    background: #ffffff;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.55;
    color: #131722;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    resize: vertical;
}

.td-vip-replay-note-field textarea {
    min-height: 110px;
}

.td-vip-replay-note-field textarea:focus,
.td-vip-replay-note-field input[type="text"]:focus {
    outline: none;
    border-color: #2962ff;
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.16);
}

body.td-vip-body.is-night-mode .td-vip-replay-note-head {
    background: linear-gradient(180deg, rgba(96, 165, 250, 0.1) 0%, rgba(96, 165, 250, 0.03) 100%);
    border-left-color: #3b82f6;
    color: #94a3b8;
}
body.td-vip-body.is-night-mode .td-vip-replay-note-head strong { color: #e2e8f0; }

body.td-vip-body.is-night-mode .td-vip-replay-note-field > span { color: #94a3b8; }

body.td-vip-body.is-night-mode .td-vip-replay-note-field textarea,
body.td-vip-body.is-night-mode .td-vip-replay-note-field input[type="text"] {
    background: #0f1623;
    border-color: #243447;
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-replay-note-field textarea:focus,
body.td-vip-body.is-night-mode .td-vip-replay-note-field input[type="text"]:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

/* Responsive — narrow viewports collapse the stats grid into 2 cols
 * and switch the notes header to wrap. */
@media (max-width: 720px) {
    .td-vip-replay-history-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 8px 10px;
    }
    .td-vip-replay-history-stat {
        border-right: none;
        border-bottom: 1px solid rgba(15, 23, 42, 0.05);
        padding: 6px 4px;
    }
    .td-vip-replay-history-stat:nth-last-child(-n+2) { border-bottom: none; }

    .td-vip-replay-note-card-head {
        flex-wrap: wrap;
        gap: 6px;
    }
    .td-vip-replay-note-card-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
        margin-top: 4px;
    }
}

/* Partial-close tag in the history table — clarifies which closed-trade
 * entries originated from a partial close vs a full close. */
.td-vip-replay-partial-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 4px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.18);
    color: #2962ff;
    font-size: 10px;
    font-weight: 700;
    cursor: help;
    vertical-align: middle;
}

body.td-vip-body.is-night-mode .td-vip-replay-partial-tag {
    background: rgba(96, 165, 250, 0.22);
    color: #60a5fa;
}

/* Trailing badge displayed next to the SL value in the positions table */
.td-vip-replay-trailing-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 4px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
    font-size: 10px;
    font-weight: 700;
    cursor: help;
    vertical-align: middle;
}

/* === \u5934\u90e8\u8b66\u62a5\u6761 \uff08\u4fdd\u8bc1\u91d1\u4e0d\u8db3 / \u5f3a\u5e73\uff09=== */
.td-vip-replay-margin-call-banner {
    margin: 0 0 10px;
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.42);
    border-radius: 4px;
    color: #b45309;
    font-size: 12px;
    font-weight: 700;
}

/* === \u54cd\u5e94\u5f0f === */
@media (max-width: 720px) {
    .td-vip-replay-position-panel {
        max-height: min(60vh, 320px);
    }
    .td-vip-replay-position-panel-head {
        flex-wrap: wrap;
        padding: 6px 10px;
    }
    .td-vip-replay-position-panel-summary {
        order: 3;
        width: 100%;
        gap: 10px;
        padding-top: 4px;
        border-top: 1px dashed #eef0f3;
        flex-wrap: wrap;
    }
    .td-vip-replay-position-panel-summary-cell strong {
        font-size: 12px;
    }
    .td-vip-replay-position-panel-tools {
        margin-left: auto;
    }
    .td-vip-replay-position-panel-tool-btn {
        padding: 0 8px;
        font-size: 10px;
    }
    .td-vip-replay-position-table {
        font-size: 11px;
    }
    .td-vip-replay-position-table th,
    .td-vip-replay-position-table td {
        padding: 6px 8px;
    }
}

/* === \u591c\u95f4\u6a21\u5f0f === */
body.td-vip-body.is-night-mode .td-vip-replay-position-panel {
    background: #0f1623;
    border-top-color: #243447;
    box-shadow: 0 -4px 16px -8px rgba(0, 0, 0, 0.5);
}

body.td-vip-body.is-night-mode .td-vip-replay-position-panel-head {
    background: rgba(11, 22, 37, 0.7);
    border-bottom-color: #1d2a3d;
}

body.td-vip-body.is-night-mode .td-vip-replay-position-panel-tab {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-replay-position-panel-tab:hover,
body.td-vip-body.is-night-mode .td-vip-replay-position-panel-tab:focus-visible {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-replay-position-panel-tab.is-active {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
}

body.td-vip-body.is-night-mode .td-vip-replay-position-panel-tab-count {
    background: rgba(15, 23, 42, 0.95);
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-replay-position-panel-tab.is-active .td-vip-replay-position-panel-tab-count {
    background: rgba(96, 165, 250, 0.18);
    color: #60a5fa;
}

body.td-vip-body.is-night-mode .td-vip-replay-position-panel-summary-cell strong {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-replay-position-panel-summary-cell.is-profit strong {
    color: #4ade80;
}

body.td-vip-body.is-night-mode .td-vip-replay-position-panel-summary-cell.is-loss strong {
    color: #f87171;
}

body.td-vip-body.is-night-mode .td-vip-replay-position-panel-summary-label {
    color: #64748b;
}

body.td-vip-body.is-night-mode .td-vip-replay-position-panel-summary-muted {
    color: #64748b;
}

body.td-vip-body.is-night-mode .td-vip-replay-position-panel-tool-btn,
body.td-vip-body.is-night-mode .td-vip-replay-position-panel-collapse {
    background: rgba(11, 22, 37, 0.7);
    border-color: #243447;
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode .td-vip-replay-position-panel-tool-btn:hover,
body.td-vip-body.is-night-mode .td-vip-replay-position-panel-tool-btn:focus-visible,
body.td-vip-body.is-night-mode .td-vip-replay-position-panel-collapse:hover,
body.td-vip-body.is-night-mode .td-vip-replay-position-panel-collapse:focus-visible {
    border-color: #475569;
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-replay-position-panel-tool-btn:focus-visible,
body.td-vip-body.is-night-mode .td-vip-replay-position-panel-collapse:focus-visible {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

body.td-vip-body.is-night-mode .td-vip-replay-position-table thead {
    background: rgba(11, 22, 37, 0.95);
}

body.td-vip-body.is-night-mode .td-vip-replay-position-table th {
    color: #64748b;
    border-bottom-color: #1d2a3d;
}

body.td-vip-body.is-night-mode .td-vip-replay-position-table tbody tr:hover {
    background: rgba(15, 23, 42, 0.5);
}

body.td-vip-body.is-night-mode .td-vip-replay-position-table tbody tr + tr td {
    border-top-color: #1d2a3d;
}

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

body.td-vip-body.is-night-mode .td-vip-replay-cell-muted {
    color: #64748b;
}

body.td-vip-body.is-night-mode .td-vip-replay-pnl-cell.is-profit {
    color: #4ade80;
}

body.td-vip-body.is-night-mode .td-vip-replay-pnl-cell.is-loss {
    color: #f87171;
}

body.td-vip-body.is-night-mode .td-vip-replay-side-buy {
    background: rgba(96, 165, 250, 0.18);
    color: #60a5fa;
}

body.td-vip-body.is-night-mode .td-vip-replay-side-sell {
    background: rgba(248, 113, 113, 0.18);
    color: #f87171;
}

body.td-vip-body.is-night-mode .td-vip-replay-row-actions button {
    background: rgba(11, 22, 37, 0.7);
    border-color: #243447;
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode .td-vip-replay-row-actions button:hover,
body.td-vip-body.is-night-mode .td-vip-replay-row-actions button:focus-visible {
    border-color: #475569;
    background: rgba(15, 23, 42, 0.95);
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-replay-row-actions button.is-danger {
    border-color: rgba(248, 113, 113, 0.36);
    color: #f87171;
}

body.td-vip-body.is-night-mode .td-vip-replay-row-actions button.is-danger:hover,
body.td-vip-body.is-night-mode .td-vip-replay-row-actions button.is-danger:focus-visible {
    border-color: #f87171;
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

body.td-vip-body.is-night-mode .td-vip-replay-table-empty,
body.td-vip-body.is-night-mode .td-vip-replay-table-note {
    color: #64748b;
}

body.td-vip-body.is-night-mode .td-vip-replay-table-note {
    background: rgba(11, 22, 37, 0.55);
    border-color: #243447;
}

body.td-vip-body.is-night-mode .td-vip-replay-modify-form input {
    background: rgba(11, 22, 37, 0.7);
    border-color: #243447;
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode .td-vip-replay-modify-form input:focus,
body.td-vip-body.is-night-mode .td-vip-replay-modify-form input:focus-visible {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

body.td-vip-body.is-night-mode .td-vip-replay-modify-form label > span {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-replay-modify-hint {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode .td-vip-replay-modify-error {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.36);
    color: #fca5a5;
}

body.td-vip-body.is-night-mode .td-vip-replay-margin-call-banner {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.42);
    color: #fbbf24;
}

body.td-vip-body.is-night-mode .td-vip-replay-modify-form label > span small {
    color: #64748b;
}

body.td-vip-body.is-night-mode .td-vip-replay-partial-quick button {
    background: rgba(11, 22, 37, 0.7);
    border-color: #243447;
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode .td-vip-replay-partial-quick button:hover,
body.td-vip-body.is-night-mode .td-vip-replay-partial-quick button:focus-visible {
    border-color: #60a5fa;
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

body.td-vip-body.is-night-mode .td-vip-replay-trailing-badge {
    background: rgba(245, 158, 11, 0.22);
    color: #fbbf24;
}

.td-vip-trend-filter-notice {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    max-width: min(620px, calc(100% - 32px));
    min-height: 34px;
    padding: 6px 8px 6px 10px;
    gap: 8px;
    border: 1px solid rgba(245, 158, 11, 0.42);
    border-radius: 8px;
    background: rgba(255, 251, 235, 0.94);
    box-shadow: 0 14px 32px -24px rgba(15, 23, 42, 0.46);
    color: #78350f;
    pointer-events: auto;
}

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

.td-vip-trend-filter-notice-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.td-vip-trend-filter-notice strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.td-vip-trend-filter-notice button {
    flex: 0 0 auto;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid rgba(180, 83, 9, 0.34);
    border-radius: 7px;
    background: #ffffff;
    color: #92400e;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.td-vip-trend-filter-notice button:hover,
.td-vip-trend-filter-notice button:focus-visible {
    border-color: #f59e0b;
    outline: none;
    background: #fffbeb;
}

body.td-vip-body.is-night-mode .td-vip-trend-filter-notice {
    border-color: rgba(245, 158, 11, 0.38);
    background: rgba(69, 39, 8, 0.92);
    color: #fef3c7;
}

body.td-vip-body.is-night-mode .td-vip-trend-filter-notice button {
    border-color: rgba(245, 158, 11, 0.34);
    background: rgba(15, 23, 42, 0.72);
    color: #fbbf24;
}

@media (max-width: 720px) {
    .td-vip-trend-filter-notice {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
}

/* Layered settings popover: match the flatter D+ settings surface. */
#tdVipIndicatorPopover .td-vip-indicator-settings--layered {
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-presets,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-templates {
    align-items: center;
    column-gap: 9px;
    row-gap: 4px;
    margin-top: 0;
    padding: 6px 0 7px;
    border: 0;
    border-bottom: 1px solid #e5ebf2;
    border-radius: 0;
    background: transparent;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-presets {
    grid-template-columns: auto minmax(0, 1fr);
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-templates {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-presets-label,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-templates-label {
    grid-column: 1;
    grid-row: 1;
    white-space: nowrap;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-templates-head {
    display: contents;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-templates-list {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-template-save {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: auto;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-templates-empty {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-brief {
    gap: 0;
    padding: 7px 0 8px;
    border-bottom: 1px solid #e5ebf2;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-brief-chip {
    min-height: 31px;
    padding: 0 9px;
    border: 0;
    border-left: 1px solid #e5ebf2;
    border-radius: 0;
    background: transparent;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-brief-chip:first-child,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-brief-chip:nth-child(odd) {
    border-left: 0;
    padding-left: 1px;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-brief-chip b,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-brief-chip em {
    letter-spacing: 0;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-brief-chip em {
    margin-top: 3px;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-section {
    border: 0;
    border-bottom: 1px solid #e5ebf2;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-section > summary {
    min-height: 34px;
    padding: 0 1px;
    grid-template-columns: minmax(80px, 0.32fr) minmax(0, 1fr) 14px;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-section-title,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-section-summary,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-label,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-presets-label,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-templates-label {
    letter-spacing: 0;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-section-body {
    gap: 7px;
    padding: 0 0 8px;
    border-top: 0;
    background: transparent;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-field,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-check {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-field {
    gap: 5px;
    padding: 0;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-check {
    min-height: 30px;
    padding: 0;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-input,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-select,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-color {
    min-height: 28px;
    border-color: #dbe3ed;
    border-radius: 5px;
    background: #f9fafb;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-actions {
    margin: 1px -10px -10px;
    padding: 7px 10px;
    border-top: 1px solid #e5ebf2;
    background: rgba(251, 252, 253, 0.97);
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-preset-btn,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-template-btn,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-template-save,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-btn {
    min-height: 25px;
    padding: 0 8px;
    font-size: 11px;
}

/* Refined compact tone for layered settings inside the popover. */
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-presets,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-templates,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-brief,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-section {
    border-bottom-color: #e8eef5;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-brief-chip {
    border-left-color: #e8eef5;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-presets-label,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-templates-label,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-label,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-brief-chip b {
    color: #66768a;
    font-weight: 650;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-section-title,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-brief-chip em {
    color: #101828;
    font-weight: 760;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-section-summary {
    color: #58677d;
    font-weight: 650;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-templates-empty {
    color: #8b9ab0;
    font-size: 11px;
    font-style: normal;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-section > summary:hover {
    background: rgba(255, 255, 255, 0.54);
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-input,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-select,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-color {
    border-color: #d8e1ec;
    background: #ffffff;
    color: #101828;
    font-weight: 650;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-input:focus-visible,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-select:focus-visible {
    border-color: rgba(20, 184, 166, 0.54);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
    outline: none;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-preset-btn,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-template-btn,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-template-save,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-btn {
    border-color: #d9e2ec;
    background: #ffffff;
    color: #2d3b4f;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-preset-btn:hover,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-template-save:hover,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-btn:hover {
    border-color: rgba(20, 184, 166, 0.34);
    background: #fbfefd;
    color: #0f766e;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-preset-btn.is-active {
    border-color: rgba(20, 184, 166, 0.46);
    background: #ecfdf8;
    color: #0f766e;
    box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.1), 0 1px 2px rgba(15, 23, 42, 0.04);
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-actions {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.72), rgba(255, 255, 255, 0.98));
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-btn--primary {
    border-color: rgba(15, 118, 110, 0.86);
    background: #0f8b7d;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
}

/* More distinctive compact table layout for professional parameter scanning. */
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-presets {
    margin: 0 0 4px;
    padding: 6px 8px;
    border-bottom: 0;
    border-radius: 6px;
    background: #eef3f8;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-presets-row {
    padding: 2px;
    border-radius: 6px;
    background: #e7edf5;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-preset-btn {
    min-height: 24px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: #334155;
    font-weight: 720;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-preset-btn:hover {
    background: rgba(255, 255, 255, 0.62);
    color: #0f766e;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-preset-btn.is-active {
    border-color: rgba(20, 184, 166, 0.26);
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-templates {
    padding: 4px 0 6px;
    border-bottom-color: rgba(226, 232, 240, 0.8);
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-template-save {
    min-height: 24px;
    border-color: rgba(203, 213, 225, 0.78);
    background: #ffffff;
    box-shadow: none;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-brief {
    margin: 5px 0 7px;
    padding: 6px 8px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 6px;
    background: #ffffff;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-brief-chip {
    min-height: 28px;
    padding: 0 12px;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-brief-chip em {
    margin-top: 1px;
    font-size: 12px;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-section {
    background: transparent;
    border-bottom-color: rgba(226, 232, 240, 0.86);
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-section > summary {
    min-height: 31px;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-section[open] > summary {
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.08), rgba(255, 255, 255, 0));
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-section[open] .td-vip-indicator-settings-section-title {
    color: #0f766e;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-section-body {
    gap: 5px;
    padding: 2px 0 9px;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-field {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 31px;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #6b7a90;
    font-size: 11px;
    line-height: 1.2;
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-input,
#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-select {
    min-height: 28px;
    border-radius: 4px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

#tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-actions {
    padding: 6px 10px;
    background: rgba(251, 252, 254, 0.98);
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings--layered,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-presets,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-templates,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-section,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-section-body,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-brief-chip,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-field,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-check {
    background: transparent;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-presets,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-templates,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-brief,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-section,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-settings-brief-chip,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-actions {
    border-color: #243447;
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-input,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-select,
body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-color {
    border-color: #243447;
    background: rgba(11, 22, 37, 0.86);
}

body.td-vip-body.is-night-mode #tdVipIndicatorPopover .td-vip-indicator-settings--layered .td-vip-indicator-setting-actions {
    background: rgba(11, 22, 37, 0.94);
}

/* ============================================================
 *  交易计划面板 · 海龟范式重制（P0 结构化价位 + P1 视觉统一）
 *  作用域 #tdVipRightPanel_plan .td-vip-plan-form--refined
 *  浅色高级感 token：纯白底 / rgba(15,23,42,0.07) 发丝线 /
 *  #0f172a·#475569·#94a3b8 文字 / #10b981·#047857 主色绿
 *  说明：主资产 vip-chart-terminal.css 已冻结，新样式落在此 feature 文件。
 * ============================================================ */
#tdVipRightPanel_plan .td-vip-plan-form--refined {
    display: grid;
    gap: 14px;
}

#tdVipRightPanel_plan .td-vip-plan-grid2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 16px;
}

#tdVipRightPanel_plan .td-vip-plan-form--refined .td-vip-plan-field {
    display: grid;
    gap: 7px;
    align-content: start;
}

#tdVipRightPanel_plan .td-vip-plan-form--refined .td-vip-plan-field--full {
    grid-column: 1 / -1;
}

#tdVipRightPanel_plan .td-vip-plan-form--refined .td-vip-plan-field > span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #94a3b8;
    text-transform: none;
}

/* segmented 分段控件（方向 / 状态 / 优先级） */
#tdVipRightPanel_plan .td-vip-plan-seg {
    display: inline-flex;
    background: #fafbfc;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
    flex-wrap: wrap;
}

#tdVipRightPanel_plan .td-vip-plan-seg button {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    transition: color 0.13s ease, background-color 0.13s ease, box-shadow 0.13s ease;
    white-space: nowrap;
}

#tdVipRightPanel_plan .td-vip-plan-seg button:hover {
    color: #0f172a;
}

#tdVipRightPanel_plan .td-vip-plan-seg button.is-active {
    background: #ffffff;
    color: #047857;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.10);
}

#tdVipRightPanel_plan .td-vip-plan-seg--priority button {
    min-width: 38px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* 数字价位输入 */
#tdVipRightPanel_plan .td-vip-plan-num {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

#tdVipRightPanel_plan .td-vip-plan-num input[type="number"] {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#tdVipRightPanel_plan .td-vip-plan-num input[type="number"]::-webkit-outer-spin-button,
#tdVipRightPanel_plan .td-vip-plan-num input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#tdVipRightPanel_plan .td-vip-plan-num input[type="number"]:focus,
#tdVipRightPanel_plan .td-vip-plan-num input[type="number"]:focus-visible {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.10);
}

#tdVipRightPanel_plan .td-vip-plan-num-now {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    background: #fafbfc;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

#tdVipRightPanel_plan .td-vip-plan-num-now:hover {
    border-color: #10b981;
    color: #047857;
    background: rgba(16, 185, 129, 0.08);
}

/* R:R 显示徽标 */
#tdVipRightPanel_plan .td-vip-plan-rr {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 8px;
    background: #fafbfc;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

#tdVipRightPanel_plan .td-vip-plan-rr.is-good {
    border-color: rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
}

#tdVipRightPanel_plan .td-vip-plan-rr.is-bad {
    border-color: rgba(234, 88, 12, 0.24);
    background: rgba(234, 88, 12, 0.07);
    color: #c2410c;
}

/* refined textarea / datetime 输入对齐发丝线 */
#tdVipRightPanel_plan .td-vip-plan-form--refined textarea,
#tdVipRightPanel_plan .td-vip-plan-form--refined input[type="datetime-local"] {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-size: 12.5px;
}

#tdVipRightPanel_plan .td-vip-plan-form--refined input[type="datetime-local"] {
    min-height: 34px;
    padding: 0 12px;
}

#tdVipRightPanel_plan .td-vip-plan-form--refined textarea {
    padding: 8px 12px;
    line-height: 1.6;
    resize: vertical;
}

#tdVipRightPanel_plan .td-vip-plan-form--refined textarea:focus,
#tdVipRightPanel_plan .td-vip-plan-form--refined textarea:focus-visible,
#tdVipRightPanel_plan .td-vip-plan-form--refined input[type="datetime-local"]:focus,
#tdVipRightPanel_plan .td-vip-plan-form--refined input[type="datetime-local"]:focus-visible {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.10);
}

/* 列表项：结构化价位行 */
#tdVipRightPanel_plan .td-vip-plan-item-prices {
    margin: 2px 0 0;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

/* 窄屏：两列回落单列 */
@media (max-width: 720px) {
    #tdVipRightPanel_plan .td-vip-plan-grid2 {
        grid-template-columns: 1fr;
    }
}

/* 夜间模式适配 */
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-seg {
    background: rgba(8, 18, 32, 0.9);
    border-color: #243447;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-seg button {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-seg button.is-active {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    box-shadow: none;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-num input[type="number"],
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-num-now,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-rr {
    background: rgba(11, 22, 37, 0.85);
    border-color: #243447;
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-rr.is-good {
    background: rgba(6, 95, 70, 0.32);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-item-prices {
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-item-status--closed {
    background: rgba(51, 65, 85, 0.5);
    color: #cbd5e1;
}

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

/* ============================================================
 *  交易计划 · 右栏面板布局（方案B 2026-05）
 *  从居中模态迁为右侧镶嵌面板，纵向单栏：表单 → 操作条 → 列表。
 *  作用域 #tdVipRightPanel_plan。窄栏宽度约 300-360px。
 * ============================================================ */
#tdVipRightPanel_plan .td-vip-plan-rail-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 2px 8px;
}

#tdVipRightPanel_plan .td-vip-plan-meta {
    margin: 0;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

#tdVipRightPanel_plan .td-vip-plan-form--refined {
    display: grid;
    gap: 12px;
}

/* 窄栏下两列网格仍保留两列（价位/RR、截止/优先级），但收紧间距 */
#tdVipRightPanel_plan .td-vip-plan-grid2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 10px;
}

/* 操作条：保存进度文案 + 转日记/保存按钮 */
#tdVipRightPanel_plan .td-vip-plan-rail-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

#tdVipRightPanel_plan .td-vip-plan-rail-actions .td-vip-plan-saved {
    margin: 0;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
}

#tdVipRightPanel_plan .td-vip-plan-rail-actions-btns {
    display: flex;
    gap: 8px;
}

#tdVipRightPanel_plan .td-vip-plan-rail-actions-btns .td-vip-primary-btn,
#tdVipRightPanel_plan .td-vip-plan-rail-actions-btns .td-vip-secondary-btn {
    flex: 1 1 0;
    min-height: 34px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
}

#tdVipRightPanel_plan .td-vip-plan-rail-actions-btns .td-vip-primary-btn {
    background: #10b981;
    border: 0;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.28);
}

#tdVipRightPanel_plan .td-vip-plan-rail-actions-btns .td-vip-primary-btn:hover {
    background: #0ea372;
}

/* 列表区：纵向铺满，头部 search/filter 竖排 */
#tdVipRightPanel_plan .td-vip-plan-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#tdVipRightPanel_plan .td-vip-plan-list-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

#tdVipRightPanel_plan .td-vip-plan-list-head-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#tdVipRightPanel_plan .td-vip-plan-list-head strong {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #475569;
    text-transform: uppercase;
}

#tdVipRightPanel_plan .td-vip-plan-search-wrap {
    display: block;
}

#tdVipRightPanel_plan .td-vip-plan-search {
    width: 100%;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    background: #ffffff;
    font-size: 12px;
    color: #0f172a;
    box-shadow: none;
}

#tdVipRightPanel_plan .td-vip-plan-search:focus,
#tdVipRightPanel_plan .td-vip-plan-search:focus-visible {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.10);
}

#tdVipRightPanel_plan .td-vip-plan-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#tdVipRightPanel_plan .td-vip-plan-new {
    align-self: flex-start;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    background: #fafbfc;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

#tdVipRightPanel_plan .td-vip-plan-new:hover,
#tdVipRightPanel_plan .td-vip-plan-new:focus-visible {
    border-color: #10b981;
    color: #047857;
    background: rgba(16, 185, 129, 0.08);
    outline: none;
}

#tdVipRightPanel_plan .td-vip-plan-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 列表项 actions 在窄栏纵向排列，避免横向溢出 */
#tdVipRightPanel_plan .td-vip-plan-item-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

#tdVipRightPanel_plan .td-vip-plan-item-priority-actions,
#tdVipRightPanel_plan .td-vip-plan-item-status-actions,
#tdVipRightPanel_plan .td-vip-plan-item-action-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* 夜间模式：搜索/新建按钮 */
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-search,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-new {
    background: rgba(11, 22, 37, 0.85);
    border-color: #243447;
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-rail-actions {
    border-color: #243447;
}

/* ============================================================
 *  交易计划面板 · 分组骨架重排（2026-05-30 高级感优化）
 *  目标：引导语 + 大写小标题 + 发丝线分组 + R:R 结果条，
 *  形成清晰的「方向 → 价位 → 设置 → 备注 → 列表」步骤感。
 * ============================================================ */
#tdVipRightPanel_plan .td-vip-plan-rail-body {
    gap: 0;
    padding: 2px 12px 12px;
}

#tdVipRightPanel_plan .td-vip-plan-guide {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.16);
    color: #047857;
    font-size: 11.5px;
    line-height: 1.6;
}

#tdVipRightPanel_plan .td-vip-plan-meta {
    margin: 0 0 4px;
    padding-bottom: 12px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

#tdVipRightPanel_plan .td-vip-plan-form--refined {
    display: block;
    gap: 0;
}

/* 分组 section：发丝线分隔 + 大写小标题 */
#tdVipRightPanel_plan .td-vip-plan-section {
    padding: 16px 0 4px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

#tdVipRightPanel_plan .td-vip-plan-section:last-child {
    border-bottom: 0;
}

#tdVipRightPanel_plan .td-vip-plan-section-label {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #94a3b8;
}

#tdVipRightPanel_plan .td-vip-plan-section .td-vip-plan-field + .td-vip-plan-grid2,
#tdVipRightPanel_plan .td-vip-plan-section .td-vip-plan-grid2 + .td-vip-plan-field,
#tdVipRightPanel_plan .td-vip-plan-section .td-vip-plan-field + .td-vip-plan-field {
    margin-top: 12px;
}

/* 方向分段控件占满整行、加高，作为面板第一落点 */
#tdVipRightPanel_plan .td-vip-plan-seg--direction {
    display: flex;
    width: 100%;
}

#tdVipRightPanel_plan .td-vip-plan-seg--direction button {
    flex: 1 1 0;
    padding: 8px 0;
    text-align: center;
}

/* R:R 结果条：价位填完后的反馈，而非普通字段 */
#tdVipRightPanel_plan .td-vip-plan-rr-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #fafbfc;
    border: 1px solid rgba(15, 23, 42, 0.07);
}

#tdVipRightPanel_plan .td-vip-plan-rr-bar-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #94a3b8;
    text-transform: uppercase;
}

#tdVipRightPanel_plan .td-vip-plan-rr-bar .td-vip-plan-rr {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
}

/* 操作条：贴近表单，主按钮更突出 */
#tdVipRightPanel_plan .td-vip-plan-rail-actions {
    margin-top: 16px;
    padding: 14px 0 0;
    border-top: 0;
    border-bottom: 0;
    gap: 10px;
}

/* 列表头：标题 + 新建一行，搜索/筛选各自成行 */
#tdVipRightPanel_plan .td-vip-plan-list-wrap {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    gap: 12px;
}

#tdVipRightPanel_plan .td-vip-plan-list-head {
    gap: 10px;
}

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

#tdVipRightPanel_plan .td-vip-plan-list-head-top .td-vip-plan-section-label {
    margin: 0;
}

#tdVipRightPanel_plan .td-vip-plan-list-head-top .td-vip-plan-new {
    align-self: auto;
}

/* 夜间模式 */
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-guide {
    background: rgba(6, 95, 70, 0.18);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-section,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-meta,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-list-wrap {
    border-color: #243447;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-rr-bar {
    background: rgba(11, 22, 37, 0.7);
    border-color: #243447;
}

/* ============================================================
 *  交易计划 · 小白默认版（2026-06）
 *  默认只露出方向、三价位和一句理由；状态/截止/优先级/计划助手
 *  收入高级折叠层。低 chrome：用明度与留白分组，减少线框。
 * ============================================================ */
#tdVipRightPanel_plan .td-vip-side-head {
    padding: 7px 12px 0;
}

#tdVipRightPanel_plan .td-vip-side-head h3 {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

#tdVipRightPanel_plan .td-vip-plan-rail-body {
    padding: 0 12px 10px;
    background: #ffffff;
}

#tdVipRightPanel_plan .td-vip-plan-guide {
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 0;
    border-radius: 14px;
    background: #f4faf7;
    color: #047857;
    font-size: 12px;
    line-height: 1.65;
}

#tdVipRightPanel_plan .td-vip-plan-meta {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    color: #94a3b8;
}

#tdVipRightPanel_plan .td-vip-plan-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    margin: 0 0 8px;
    padding: 3px;
    border: 0;
    border-radius: 13px;
    background: #f8fafc;
}

#tdVipRightPanel_plan .td-vip-plan-tabs button {
    min-height: 32px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

#tdVipRightPanel_plan .td-vip-plan-tabs button:hover,
#tdVipRightPanel_plan .td-vip-plan-tabs button:focus-visible {
    color: #0f172a;
    outline: none;
}

#tdVipRightPanel_plan .td-vip-plan-tabs button.is-active {
    background: #ffffff;
    color: #047857;
    box-shadow: 0 8px 18px -14px rgba(15, 23, 42, 0.55);
}

#tdVipRightPanel_plan .td-vip-plan-view[hidden] {
    display: none !important;
}

#tdVipRightPanel_plan .td-vip-plan-view--saved.td-vip-plan-list-wrap {
    margin-top: 8px;
}

#tdVipRightPanel_plan .td-vip-plan-form--refined {
    display: block;
}

#tdVipRightPanel_plan .td-vip-plan-form--refined .td-vip-plan-field {
    gap: 5px;
}

#tdVipRightPanel_plan .td-vip-plan-section {
    padding: 8px 0 0;
    border: 0;
}

#tdVipRightPanel_plan .td-vip-plan-section + .td-vip-plan-section,
#tdVipRightPanel_plan .td-vip-plan-section + .td-vip-plan-advanced {
    margin-top: 8px;
}

#tdVipRightPanel_plan .td-vip-plan-section .td-vip-plan-field + .td-vip-plan-grid2,
#tdVipRightPanel_plan .td-vip-plan-section .td-vip-plan-grid2 + .td-vip-plan-field,
#tdVipRightPanel_plan .td-vip-plan-section .td-vip-plan-field + .td-vip-plan-field {
    margin-top: 8px;
}

#tdVipRightPanel_plan .td-vip-plan-section-label {
    margin: 0 0 9px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
}

#tdVipRightPanel_plan .td-vip-plan-form--refined .td-vip-plan-field > span {
    color: #64748b;
    font-size: 11px;
    letter-spacing: 0.02em;
}

#tdVipRightPanel_plan .td-vip-plan-seg {
    border: 0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 2px;
}

#tdVipRightPanel_plan .td-vip-plan-seg button {
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 12.5px;
}

#tdVipRightPanel_plan .td-vip-plan-seg--direction button {
    padding: 7px 0;
}

#tdVipRightPanel_plan .td-vip-plan-seg button.is-active {
    color: #047857;
    background: #ffffff;
    box-shadow: 0 6px 16px -12px rgba(15, 23, 42, 0.45);
}

#tdVipRightPanel_plan .td-vip-plan-grid2 {
    gap: 8px;
}

#tdVipRightPanel_plan .td-vip-plan-price-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

#tdVipRightPanel_plan .td-vip-plan-price-grid .td-vip-plan-field {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

#tdVipRightPanel_plan .td-vip-plan-price-grid .td-vip-plan-field > span {
    align-self: center;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}

#tdVipRightPanel_plan .td-vip-plan-price-grid .td-vip-plan-num {
    width: 100%;
}

#tdVipRightPanel_plan .td-vip-plan-price-grid .td-vip-plan-num input[type="number"] {
    width: 100%;
}

#tdVipRightPanel_plan .td-vip-plan-form--refined textarea,
#tdVipRightPanel_plan .td-vip-plan-form--refined input[type="datetime-local"],
#tdVipRightPanel_plan .td-vip-plan-num input[type="number"] {
    min-height: 34px;
    border: 0;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 12.5px;
}

#tdVipRightPanel_plan .td-vip-plan-num-now {
    min-height: 34px;
    border: 0;
    border-radius: 10px;
    background: #eef6f2;
    color: #047857;
}

#tdVipRightPanel_plan .td-vip-plan-form--refined textarea {
    min-height: 48px;
    padding: 7px 10px;
}

#tdVipRightPanel_plan .td-vip-plan-form--refined textarea:focus,
#tdVipRightPanel_plan .td-vip-plan-form--refined textarea:focus-visible,
#tdVipRightPanel_plan .td-vip-plan-form--refined input[type="datetime-local"]:focus,
#tdVipRightPanel_plan .td-vip-plan-form--refined input[type="datetime-local"]:focus-visible,
#tdVipRightPanel_plan .td-vip-plan-num input[type="number"]:focus,
#tdVipRightPanel_plan .td-vip-plan-num input[type="number"]:focus-visible {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

#tdVipRightPanel_plan .td-vip-plan-rr-bar {
    border: 0;
    border-radius: 10px;
    background: #f8fafc;
    margin-top: 8px;
    padding: 7px 10px;
}

#tdVipRightPanel_plan .td-vip-plan-advanced {
    margin-top: 9px;
    border: 0;
    border-radius: 12px;
    background: #f8fafc;
}

#tdVipRightPanel_plan .td-vip-plan-advanced summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    list-style: none;
    cursor: pointer;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

#tdVipRightPanel_plan .td-vip-plan-advanced summary::-webkit-details-marker {
    display: none;
}

#tdVipRightPanel_plan .td-vip-plan-advanced summary small {
    margin-left: auto;
    color: #94a3b8;
    font-size: 10.5px;
    font-weight: 600;
}

#tdVipRightPanel_plan .td-vip-plan-advanced summary::after {
    content: "展开";
    flex: 0 0 auto;
    color: #10b981;
    font-size: 11px;
    font-weight: 700;
}

#tdVipRightPanel_plan .td-vip-plan-advanced[open] summary::after {
    content: "收起";
}

#tdVipRightPanel_plan .td-vip-plan-advanced-body {
    padding: 0 10px 10px;
}

#tdVipRightPanel_plan .td-vip-plan-section--advanced {
    padding: 0;
}

#tdVipRightPanel_plan .td-vip-plan-section--advanced .td-vip-plan-section-label {
    color: #94a3b8;
}

#tdVipRightPanel_plan .td-vip-plan-advanced .td-vip-plan-tools-entry {
    justify-content: center;
    width: 100%;
    height: 32px;
    margin: 9px 0 0;
    border: 0;
    border-radius: 10px;
    background: #ffffff;
    color: #047857;
}

#tdVipRightPanel_plan .td-vip-plan-rail-actions {
    margin-top: 10px;
    padding-top: 2px;
    gap: 7px;
}

#tdVipRightPanel_plan .td-vip-plan-rail-actions-btns .td-vip-primary-btn {
    min-height: 36px;
    border-radius: 11px;
}

#tdVipRightPanel_plan .td-vip-plan-list-wrap {
    margin-top: 12px;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: #f8fafc;
    gap: 9px;
}

#tdVipRightPanel_plan .td-vip-plan-search {
    border: 0;
    border-radius: 12px;
    background: #ffffff;
}

#tdVipRightPanel_plan .td-vip-plan-filter-btn,
#tdVipRightPanel_plan .td-vip-plan-new,
#tdVipRightPanel_plan .td-vip-plan-item,
#tdVipRightPanel_plan .td-vip-plan-item-btn {
    border: 0;
}

#tdVipRightPanel_plan .td-vip-plan-item {
    border-radius: 14px;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-side-head h3 {
    color: #e2e8f0;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-rail-body {
    background: #07111e;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-guide {
    border: 0;
    background: rgba(6, 95, 70, 0.22);
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-advanced,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-list-wrap,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-tabs,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-seg,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-rr-bar {
    border: 0;
    background: rgba(15, 23, 42, 0.76);
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-tabs button {
    color: #94a3b8;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-tabs button.is-active {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    box-shadow: none;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-advanced summary {
    color: #cbd5e1;
}

body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-advanced .td-vip-plan-tools-entry,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-search,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-form--refined textarea,
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-form--refined input[type="datetime-local"],
body.td-vip-body.is-night-mode #tdVipRightPanel_plan .td-vip-plan-num input[type="number"] {
    border: 0;
    background: rgba(11, 22, 37, 0.95);
}
