/**
 * Admin light theme — surfaces that still use dark hard-coded colors in app.css.
 * Active when html.admin-theme-light (see layouts/app.blade.php + admin layout JS).
 */
html.admin-theme-light body.admin-body,
html.admin-theme-light body.admin-body .main,
html.admin-theme-light body.admin-body .admin-main-scroll {
    background: var(--bg);
    color: var(--text);
}

/* Sidebar */
html.admin-theme-light body.admin-body .sidebar,
html.admin-theme-light body.admin-body .brand {
    background: var(--panel);
}

html.admin-theme-light body.admin-body .sidebar-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

html.admin-theme-light body.admin-body .sidebar-pill {
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body .sidebar-pill.active,
html.admin-theme-light body.admin-body .primary-nav a.active {
    background: #e2e8f0;
    color: #0f172a;
}

html.admin-theme-light body.admin-body .user-info-container {
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body .user-info-container span {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .user-info-ace-balance {
    color: #1f2937 !important;
}

html.admin-theme-light body.admin-body .user-info-stat-card {
    background: linear-gradient(135deg, #e0f2fe 0%, #f8fafc 42%, #ede9fe 100%);
    border: 2px solid #0ea5e9;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 4px 14px rgba(14, 165, 233, 0.15);
}

html.admin-theme-light body.admin-body .user-info-stat-role {
    color: #0f172a !important;
    font-weight: 700 !important;
}

html.admin-theme-light body.admin-body .user-info-stat-login {
    color: #0369a1 !important;
    font-weight: 800 !important;
}

html.admin-theme-light body.admin-body .user-info-my-info-btn {
    border-color: #0284c7;
    background: #0284c7;
    color: #fff !important;
}

html.admin-theme-light body.admin-body .user-info-my-info-btn:hover {
    border-color: #0369a1;
    background: #0369a1;
    color: #fff !important;
}

html.admin-theme-light body.admin-body .user-info-stat-divider {
    background: #cbd5e1;
}

html.admin-theme-light body.admin-body .user-info-stat-al {
    color: #b45309;
}

html.admin-theme-light body.admin-body .user-info-stat-al .user-info-stat-label {
    color: #92400e;
    background: rgba(251, 191, 36, 0.35);
    border-color: rgba(217, 119, 6, 0.45);
}

html.admin-theme-light body.admin-body .user-info-stat-rolling,
html.admin-theme-light body.admin-body .user-info-stat-rolling-money,
html.admin-theme-light body.admin-body .user-info-stat-losing {
    color: #0f172a;
}

html.admin-theme-light body.admin-body .user-info-stat-rolling .user-info-stat-label {
    color: #0369a1;
    background: rgba(56, 189, 248, 0.28);
    border-color: rgba(2, 132, 199, 0.4);
}

html.admin-theme-light body.admin-body .user-info-stat-card .top-line-realtime-tag-slot,
html.admin-theme-light body.admin-body .user-info-stat-card .top-line-realtime-tag-casino {
    color: #fff;
}

html.admin-theme-light body.admin-body .user-info-stat-rolling-money .user-info-stat-label {
    color: #1d4ed8;
    background: rgba(147, 197, 253, 0.35);
    border-color: rgba(37, 99, 235, 0.35);
}

html.admin-theme-light body.admin-body .user-info-stat-losing .user-info-stat-label {
    color: #15803d;
    background: rgba(74, 222, 128, 0.28);
    border-color: rgba(22, 163, 74, 0.4);
}

html.admin-theme-light body.admin-body .user-info-rolling-convert-btn {
    border-color: #0284c7;
    color: #0284c7;
    background: rgba(224, 242, 254, 0.9);
}

/* Sidebar menu — default (override dark #d6ddeb / #dce3f1) */
html.admin-theme-light body.admin-body .nav a {
    color: #475569;
    font-weight: 500;
}

html.admin-theme-light body.admin-body a.nav.standalone-nav-link {
    color: #334155;
    font-weight: 700;
}

html.admin-theme-light body.admin-body .menu-group summary {
    color: #334155;
}

html.admin-theme-light body.admin-body .menu-group summary::after {
    color: #94a3b8;
}

html.admin-theme-light body.admin-body .menu-icon,
html.admin-theme-light body.admin-body a.nav.standalone-nav-link .menu-icon {
    color: #64748b;
}

html.admin-theme-light body.admin-body .submenu-icon {
    color: #64748b;
}

html.admin-theme-light body.admin-body .menu-group[open] > summary {
    color: #0f172a;
    background: #f8fafc;
}

html.admin-theme-light body.admin-body .menu-group[open] > summary .menu-icon {
    color: #0284c7;
}

html.admin-theme-light body.admin-body .menu-divider {
    border-top-color: var(--line);
}

html.admin-theme-light body.admin-body .sidebar-bottom,
html.admin-theme-light body.admin-body .sidebar-bottom a {
    color: #64748b;
}

html.admin-theme-light body.admin-body .sidebar-bottom button.sidebar-logout {
    color: #dc2626;
}

html.admin-theme-light body.admin-body .sidebar-bottom button.sidebar-logout .menu-icon {
    color: #dc2626;
}

html.admin-theme-light body.admin-body .nav a:hover,
html.admin-theme-light body.admin-body a.nav.standalone-nav-link:hover,
html.admin-theme-light body.admin-body .menu-group summary:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

html.admin-theme-light body.admin-body .sidebar-bottom button.sidebar-logout:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

html.admin-theme-light body.admin-body .sidebar-bottom button.sidebar-logout:hover .menu-icon {
    color: #dc2626 !important;
}

html.admin-theme-light body.admin-body .nav a:hover .submenu-icon,
html.admin-theme-light body.admin-body .menu-group summary:hover .menu-icon {
    color: #475569 !important;
}

html.admin-theme-light body.admin-body a.nav.standalone-nav-link:hover .menu-icon {
    color: #334155 !important;
}

html.admin-theme-light body.admin-body .nav a.active,
html.admin-theme-light body.admin-body a.nav.standalone-nav-link.active,
html.admin-theme-light body.admin-body .top-metrics-menu-title,
html.admin-theme-light body.admin-body .login-history-topbar-title.login-history-topbar-title-active,
html.admin-theme-light body.admin-body .page-title.login-history-topbar-title-active,
html.admin-theme-light body.admin-body .gpl-title.login-history-topbar-title-active,
html.admin-theme-light body.admin-body .coin-charge-tron-title.login-history-topbar-title-active,
html.admin-theme-light body.admin-body .coin-pool-page-title.login-history-topbar-title-active,
html.admin-theme-light body.admin-body .coin-wallet-change-title.login-history-topbar-title-active,
html.admin-theme-light body.admin-body .coin-config-page-title.login-history-topbar-title-active,
html.admin-theme-light body.admin-body .partners-list-title.login-history-topbar-title-active {
    background: rgba(19, 127, 236, 0.12) !important;
    color: #1d4ed8 !important;
    box-shadow: inset 0 0 0 1px rgba(19, 127, 236, 0.45);
    font-weight: 600;
}

html.admin-theme-light body.admin-body .nav a.active:hover,
html.admin-theme-light body.admin-body a.nav.standalone-nav-link.active:hover {
    background: rgba(19, 127, 236, 0.18) !important;
    color: #1e40af !important;
}

html.admin-theme-light body.admin-body .nav a.active .submenu-icon,
html.admin-theme-light body.admin-body a.nav.standalone-nav-link.active .menu-icon,
html.admin-theme-light body.admin-body .top-metrics-menu-title .menu-icon,
html.admin-theme-light body.admin-body .login-history-topbar-title.login-history-topbar-title-active .submenu-icon,
html.admin-theme-light body.admin-body .page-title.login-history-topbar-title-active .submenu-icon,
html.admin-theme-light body.admin-body .gpl-title.login-history-topbar-title-active .submenu-icon,
html.admin-theme-light body.admin-body .coin-charge-tron-title.login-history-topbar-title-active .submenu-icon,
html.admin-theme-light body.admin-body .coin-pool-page-title.login-history-topbar-title-active .submenu-icon,
html.admin-theme-light body.admin-body .coin-wallet-change-title.login-history-topbar-title-active .submenu-icon,
html.admin-theme-light body.admin-body .coin-config-page-title.login-history-topbar-title-active .submenu-icon,
html.admin-theme-light body.admin-body .partners-list-title.login-history-topbar-title-active .submenu-icon {
    color: #2563eb !important;
}

html.admin-theme-light body.admin-body .login-history-topbar-title-active.login-history-topbar-title-standalone .menu-icon,
html.admin-theme-light body.admin-body .page-title.login-history-topbar-title-active.login-history-topbar-title-standalone .menu-icon {
    color: #2563eb !important;
}

html.admin-theme-light body.admin-body .nav a.active:hover .submenu-icon,
html.admin-theme-light body.admin-body a.nav.standalone-nav-link.active:hover .menu-icon {
    color: #1d4ed8 !important;
}

html.admin-theme-light body.admin-body .nav a.active .submenu-image-icon,
html.admin-theme-light body.admin-body .login-history-topbar-title.login-history-topbar-title-active .submenu-image-icon {
    filter: none;
}

/* 본사 전용(B) 뱃지 — dark #ede9fe 는 라이트 배경에서 거의 안 보임 */
html.admin-theme-light body.admin-body .hq-only-mark {
    border-color: #7c3aed;
    background: #ede9fe;
    color: #5b21b6;
}

html.admin-theme-light body.admin-body .nav a:hover .hq-only-mark,
html.admin-theme-light body.admin-body .menu-group summary:hover .hq-only-mark,
html.admin-theme-light body.admin-body a.nav.standalone-nav-link:hover .hq-only-mark {
    border-color: #6d28d9;
    background: #ddd6fe;
    color: #4c1d95;
}

html.admin-theme-light body.admin-body .nav a.active .hq-only-mark,
html.admin-theme-light body.admin-body a.nav.standalone-nav-link.active .hq-only-mark {
    border-color: #2563eb;
    background: #dbeafe;
    color: #1e40af;
}

/* 상단 metric 알림 버튼 — 단순 B (박스·테두리 없음) */
html.admin-theme-light body.admin-body .metric-button .hq-only-mark {
    border: none;
    background: transparent;
    color: inherit;
}

/* Top bar & search */
html.admin-theme-light body.admin-body .top-metrics {
    color: var(--text);
}

/* 파트너 상단 빠른 실행 — date-filter-month-btn 과 동일 색 */
html.admin-theme-light body.admin-body .top-metrics-actions .top-metrics-action-btn.top-metrics-quick-action {
    border: 0;
    background: #4caf50;
    color: #ffffff;
    font-weight: 500;
    box-shadow: none;
}

html.admin-theme-light body.admin-body .top-metrics-actions .top-metrics-action-btn.top-metrics-quick-action:hover {
    background: #43a047;
    color: #ffffff;
    filter: none;
    box-shadow: none;
}

html.admin-theme-light body.admin-body .top-line-icon-btn:not(.top-line-logout-btn):hover {
    background: #f1f5f9;
    color: #334155;
}

html.admin-theme-light body.admin-body #top-line-alert-btn.is-open,
html.admin-theme-light body.admin-body #top-line-alert-btn:hover {
    background: #f1f5f9;
    color: #0284c7;
}

html.admin-theme-light body.admin-body .top-line-icon-btn.is-open:not(.top-line-logout-btn) {
    background: #f1f5f9;
    color: #334155;
}

html.admin-theme-light body.admin-body .top-line-badge {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 0 0 1px #ffffff;
}

html.admin-theme-light body.admin-body .top-line-alert-panel-tool {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

html.admin-theme-light body.admin-body .top-line-alert-panel-tool:hover {
    background: #dbeafe;
    border-color: #60a5fa;
    color: #1e40af;
}

html.admin-theme-light body.admin-body .top-line-alert-panel-tool.is-active {
    background: #bfdbfe;
    border-color: #3b82f6;
    color: #1e3a8a;
}

html.admin-theme-light body.admin-body .top-line-alert-panel-select-all {
    border-color: #7dd3fc;
    background: #f0f9ff;
    color: #0369a1;
}

html.admin-theme-light body.admin-body .top-line-alert-panel-select-all:hover {
    background: #e0f2fe;
    border-color: #38bdf8;
    color: #0c4a6e;
}

html.admin-theme-light body.admin-body .top-line-alert-panel-ack-all {
    border-color: #fdba74;
    background: #fff7ed;
    color: #c2410c;
}

html.admin-theme-light body.admin-body .top-line-alert-panel-ack-all:hover {
    background: #ffedd5;
    border-color: #fb923c;
    color: #9a3412;
}

html.admin-theme-light body.admin-body .top-line-alert-panel-clear-selected {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #dc2626;
}

html.admin-theme-light body.admin-body .top-line-alert-panel-clear-selected:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #b91c1c;
}

html.admin-theme-light body.admin-body .top-line-alert-item-row.is-badge-count {
    border-left-color: #ea580c;
    background: #fff7ed;
}

html.admin-theme-light body.admin-body .top-line-alert-item-row.is-badge-metric {
    border-left-color: #0284c7;
    background: #f0f9ff;
}

html.admin-theme-light body.admin-body .top-line-alert-item-row.is-acknowledged {
    opacity: 0.85;
}

html.admin-theme-light body.admin-body .top-line-alert-item-row.is-acknowledged.is-badge-count,
html.admin-theme-light body.admin-body .top-line-alert-item-row.is-acknowledged.is-badge-metric {
    border-left-color: #cbd5e1;
    background: #f8fafc;
}

html.admin-theme-light body.admin-body .top-line-alert-item-checkbox {
    accent-color: #0284c7;
}

html.admin-theme-light body.admin-body .top-line-alert-read-status.is-unread {
    background: #fee2e2;
    color: #dc2626;
}

html.admin-theme-light body.admin-body .top-line-alert-read-status.is-read {
    background: #f1f5f9;
    color: #64748b;
}

html.admin-theme-light body.admin-body .top-line-alert-empty,
html.admin-theme-light body.admin-body .top-line-alert-item-at,
html.admin-theme-light body.admin-body .top-line-alert-types-title {
    color: #64748b;
}

html.admin-theme-light body.admin-body .top-line-alert-retention-select {
    border-color: var(--line);
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light body.admin-body .top-line-alert-type-toggle {
    background: #cbd5e1;
}

html.admin-theme-light body.admin-body .top-line-alert-type-toggle:checked {
    background: #0284c7;
}

html.admin-theme-light .top-line-alert-detail-card {
    border-color: #dbe2ee;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

html.admin-theme-light .top-line-alert-detail-drag-handle {
    background: linear-gradient(to bottom, #ffffff 70%, rgba(255, 255, 255, 0));
}

html.admin-theme-light .top-line-alert-detail-summary {
    color: #64748b;
}

html.admin-theme-light .top-line-alert-detail-row {
    background: #f8fafc;
}

html.admin-theme-light .top-line-alert-detail-row dt {
    color: #64748b;
}

html.admin-theme-light .top-line-alert-detail-row dd {
    color: #1f2937;
}

html.admin-theme-light .top-line-alert-detail-row.is-emphasis {
    border-color: #fdba74;
    background: #fff7ed;
}

html.admin-theme-light .top-line-alert-detail-row.is-emphasis dt {
    color: #c2410c;
}

html.admin-theme-light .top-line-alert-detail-row.is-emphasis dd {
    color: #ea580c;
}

html.admin-theme-light .top-line-alert-detail-link {
    background: #e0f2fe;
    color: #0369a1;
}

html.admin-theme-light .top-line-alert-detail-link:hover {
    background: #bae6fd;
}

html.admin-theme-light .top-line-alert-detail-confirm-btn {
    background: linear-gradient(to right, #ea580c, #c2410c);
    color: #ffffff;
}

html.admin-theme-light .top-line-alert-detail-delete-btn {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #dc2626;
}

html.admin-theme-light .top-line-alert-detail-delete-btn:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #b91c1c;
}

html.admin-theme-light .top-line-alert-detail-close-btn {
    background: #f1f5f9;
    color: #334155;
}

html.admin-theme-light .top-line-alert-detail-close-btn:hover {
    background: #e2e8f0;
}

/* Top bar — sound panel */
html.admin-theme-light body.admin-body .top-line-sound-panel {
    background: var(--panel);
    border-color: var(--line);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

html.admin-theme-light body.admin-body .top-line-sound-panel-head {
    background: var(--panel-soft);
    border-bottom-color: var(--line);
}

html.admin-theme-light body.admin-body .top-line-sound-panel-head strong {
    color: var(--text);
}

html.admin-theme-light body.admin-body .top-line-sound-panel-badge {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .top-line-sound-panel-body {
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light body.admin-body .top-line-sound-section-title {
    color: var(--text);
}

html.admin-theme-light body.admin-body .top-line-sound-section-desc {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .top-line-sound-volume-head {
    color: var(--text);
}

html.admin-theme-light body.admin-body .top-line-sound-volume-head strong {
    color: #0284c7;
}

html.admin-theme-light body.admin-body .top-line-sound-volume-range,
html.admin-theme-light body.admin-body .top-line-sound-panel .top-line-alert-volume-range {
    accent-color: #0284c7;
}

html.admin-theme-light body.admin-body .top-line-sound-repeat-box {
    border-color: var(--line);
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body .top-line-sound-repeat-box .top-line-sound-section-desc {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .top-line-sound-repeat-divider {
    background: var(--line);
}

html.admin-theme-light body.admin-body .top-line-sound-repeat-row {
    color: var(--text);
}

html.admin-theme-light body.admin-body .top-line-sound-repeat-select,
html.admin-theme-light body.admin-body .top-line-sound-repeat-count {
    border-color: var(--line);
    background: #ffffff;
    color: var(--text);
}

html.admin-theme-light body.admin-body .top-line-sound-repeat-select:focus-visible,
html.admin-theme-light body.admin-body .top-line-sound-repeat-count:focus-visible {
    border-color: #0284c7;
    outline: none;
}

html.admin-theme-light body.admin-body .top-line-sound-type-row:hover {
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body .top-line-sound-type-label {
    color: var(--text);
}

html.admin-theme-light body.admin-body .top-line-sound-type-icon {
    background: #f1f5f9;
    border: 1px solid var(--line);
}

html.admin-theme-light body.admin-body .top-line-sound-preview-btn {
    color: #64748b;
}

html.admin-theme-light body.admin-body .top-line-sound-preview-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

html.admin-theme-light body.admin-body .top-line-sound-panel .top-line-alert-type-toggle {
    background: #cbd5e1;
}

html.admin-theme-light body.admin-body .top-line-sound-panel .top-line-alert-type-toggle:checked {
    background: #0284c7;
}

html.admin-theme-light body.admin-body .top-line-sound-status {
    border-top-color: var(--line);
    color: var(--muted);
}

html.admin-theme-light body.admin-body .top-line-sound-master-toggle.is-off {
    background: #cbd5e1;
}

html.admin-theme-light body.admin-body .top-line-realtime {
    border-color: rgba(14, 165, 233, 0.35);
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.08), rgba(59, 130, 246, 0.08));
    color: #0284c7;
}

html.admin-theme-light body.admin-body .dash-sticky-metrics .top-line-realtime {
    border-color: rgba(2, 132, 199, 0.42);
    background: linear-gradient(90deg, #e0f2fe, #dbeafe);
    color: #0369a1;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 1px 2px rgba(15, 23, 42, 0.06);
}

html.admin-theme-light body.admin-body .dash-sticky-metrics .top-line-realtime:hover {
    border-color: rgba(3, 105, 161, 0.55);
    background: linear-gradient(90deg, #bae6fd, #bfdbfe);
    color: #0c4a6e;
}

html.admin-theme-light body.admin-body .dash-sticky-metrics .top-line-realtime-item > span:not(.top-line-realtime-tag) {
    color: #0c4a6e;
}

html.admin-theme-light body.admin-body .dash-sticky-metrics .top-line-realtime-tag-partner {
    color: #fff;
    background: #d97706;
}

html.admin-theme-light body.admin-body .dash-sticky-metrics .top-line-realtime-tag-slot {
    color: #fff;
    background: #0891b2;
}

html.admin-theme-light body.admin-body .dash-sticky-metrics .top-line-realtime-tag-casino {
    color: #fff;
    background: #7c3aed;
}

html.admin-theme-light body.admin-body .dash-sticky-metrics .top-line-realtime-tag-reel {
    color: #fff;
    background: #16a34a;
}

html.admin-theme-light body.admin-body .search-box {
    border-color: var(--line);
    background: var(--panel);
    color: var(--muted);
}

html.admin-theme-light body.admin-body .search-box input {
    color: var(--text);
}

html.admin-theme-light body.admin-body .top-metrics-coin-wallet-summary .is-usdt {
    color: #0369a1;
}

html.admin-theme-light body.admin-body .top-metrics-coin-wallet-summary .is-usdt-unit {
    color: #64748b;
}

html.admin-theme-light body.admin-body .top-metrics-coin-wallet-summary .is-sep {
    color: #94a3b8;
}

html.admin-theme-light body.admin-body .top-metrics-coin-wallet-summary .is-trx {
    color: #6d28d9;
}

html.admin-theme-light body.admin-body .top-metrics-coin-wallet-summary .is-trx-unit {
    color: #64748b;
}

/* Page shells & filters */
html.admin-theme-light body.admin-body .page-card,
html.admin-theme-light body.admin-body .login-history-topbar,
html.admin-theme-light body.admin-body .partners-list-topbar,
html.admin-theme-light body.admin-body .partners-tree-card {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

html.admin-theme-light body.admin-body .login-history-topbar-title:not(.login-history-topbar-title-active),
html.admin-theme-light body.admin-body .partners-list-title,
html.admin-theme-light body.admin-body .page-title:not(.login-history-topbar-title-active) {
    color: var(--text);
}

html.admin-theme-light body.admin-body .login-history-search-wrap {
    border-bottom-color: var(--line);
}

html.admin-theme-light body.admin-body .login-history-search-input,
html.admin-theme-light body.admin-body .login-history-date-input {
    color: var(--text);
    color-scheme: light;
}

html.admin-theme-light body.admin-body .login-history-date-wrap {
    border-bottom-color: var(--line);
}

html.admin-theme-light body.admin-body .date-filter-search-select,
html.admin-theme-light body.admin-body .partners-menu-search-input,
html.admin-theme-light body.admin-body #customtree .search-input,
html.admin-theme-light body.admin-body #members-tree .search-input,
html.admin-theme-light body.admin-body #cash-deposit-tree .search-input,
html.admin-theme-light body.admin-body #cash-withdraw-tree .search-input {
    border-color: var(--line);
    background-color: var(--panel);
    color: var(--text);
}

html.admin-theme-light body.admin-body .date-filter-submit-btn {
    background: #e2e8f0;
    color: #2563eb;
}

html.admin-theme-light body.admin-body .date-filter-form:has(.date-filter-vendor-kind--inline) .betting-list-query-totals {
    border-top: 0;
}

html.admin-theme-light body.admin-body .betting-list-query-totals-title {
    color: #475569;
}

html.admin-theme-light body.admin-body .betting-list-query-totals-scope {
    color: #64748b;
}

html.admin-theme-light body.admin-body .betting-list-query-totals-label {
    color: #64748b;
}

html.admin-theme-light body.admin-body .betting-list-query-totals-value {
    color: #0f172a;
}

html.admin-theme-light body.admin-body .betting-list-query-totals-value.is-win {
    color: #0369a1;
}

html.admin-theme-light body.admin-body .betting-list-query-totals-profit.is-plus {
    color: #15803d;
}

html.admin-theme-light body.admin-body .betting-list-query-totals-profit.is-minus {
    color: #dc2626;
}

html.admin-theme-light body.admin-body .date-filter-submit-btn:hover {
    background: #cbd5e1;
    color: #1d4ed8;
}

/* Data tables */
html.admin-theme-light body.admin-body .partners-data-table thead th {
    border-bottom-color: var(--line);
    background: #eef2f8;
    color: #475569;
}

html.admin-theme-light body.admin-body .coin-list-table-wrap .partners-data-table thead th {
    font-size: 12px;
    font-weight: 600;
    padding: 10px 8px;
    line-height: 1.25;
}

html.admin-theme-light body.admin-body .partners-data-table tbody td {
    border-bottom-color: var(--line);
    color: var(--text);
}

html.admin-theme-light body.admin-body .partners-data-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.06);
}

html.admin-theme-light body.admin-body .partners-data-table-empty {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .partners-table-nickname {
    color: #334155;
}

html.admin-theme-light body.admin-body .partners-table-login-id {
    color: #c2410c;
}

html.admin-theme-light body.admin-body .partners-table-outline-btn {
    border-color: #cbd5e1;
    background: #fff;
    color: #0f172a;
}

html.admin-theme-light body.admin-body .partners-table-outline-btn:hover {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.06);
    color: #2563eb;
}

html.admin-theme-light body.admin-body .admin-alert-list-at-relative {
    color: #0f172a;
}

html.admin-theme-light body.admin-body .admin-alert-list-at-exact {
    color: #64748b;
}

html.admin-theme-light body.admin-body .admin-alert-list-text span {
    color: #64748b;
}

html.admin-theme-light body.admin-body .admin-alert-list-row-read {
    border-color: #ea580c;
    background: #fff7ed;
    color: #c2410c;
    box-shadow: 0 1px 0 rgba(234, 88, 12, 0.12);
}

html.admin-theme-light body.admin-body .admin-alert-list-row-read:hover {
    border-color: #c2410c;
    background: #ffedd5;
    color: #9a3412;
}

html.admin-theme-light body.admin-body .admin-alert-list-row-delete {
    border-color: #dc2626;
    background: #fef2f2;
    color: #b91c1c;
    box-shadow: 0 1px 0 rgba(220, 38, 38, 0.1);
}

html.admin-theme-light body.admin-body .admin-alert-list-row-delete:hover {
    border-color: #b91c1c;
    background: #fee2e2;
    color: #991b1b;
}

html.admin-theme-light body.admin-body .admin-alert-list-row-detail {
    border-color: #0284c7;
    background: #e0f2fe;
    color: #0369a1;
    box-shadow: 0 1px 0 rgba(2, 132, 199, 0.12);
}

html.admin-theme-light body.admin-body .admin-alert-list-row-detail:hover {
    border-color: #0369a1;
    background: #bae6fd;
    color: #0c4a6e;
}

html.admin-theme-light body.admin-body .admin-alert-list-detail-empty {
    color: #94a3b8;
}

/* 하부(파트너) 목록 테이블 — tbody 행·통계 셀 */
html.admin-theme-light body.admin-body .subordinate-data-table tbody tr.subordinate-root-row {
    background: #f8fafc;
}

html.admin-theme-light body.admin-body .subordinate-data-table tbody tr.subordinate-child-row {
    background: #fff;
}

html.admin-theme-light body.admin-body .subordinate-data-table tbody tr.subordinate-root-row:hover,
html.admin-theme-light body.admin-body .subordinate-data-table tbody tr.subordinate-child-row:hover,
html.admin-theme-light body.admin-body .subordinate-data-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.06);
}

html.admin-theme-light body.admin-body .subordinate-data-table tbody tr.subordinate-total-row,
html.admin-theme-light body.admin-body .subordinate-data-table tbody tr.subordinate-total-row:hover {
    background: #eef2f8;
}

html.admin-theme-light body.admin-body .subordinate-data-table tbody td.subordinate-holdings-cell,
html.admin-theme-light body.admin-body .partners-data-table tbody td.subordinate-holdings-cell {
    background: rgba(6, 182, 212, 0.1);
    color: #a16207;
}

html.admin-theme-light body.admin-body .subordinate-list-body .partners-data-table thead th.subordinate-holdings-head {
    color: #a16207;
}

html.admin-theme-light body.admin-body .subordinate-data-table tbody td.subordinate-own-cell,
html.admin-theme-light body.admin-body .subordinate-data-table tbody td.subordinate-under-cell {
    color: #0e7490;
}

html.admin-theme-light body.admin-body .subordinate-total-row .subordinate-holdings-cell {
    background: rgba(6, 182, 212, 0.14);
    color: #a16207;
}

html.admin-theme-light body.admin-body .subordinate-total-row .subordinate-own-cell,
html.admin-theme-light body.admin-body .subordinate-total-row .subordinate-under-cell {
    color: #0e7490;
}

/* 하부 펴기/접기 — 밝은 헤더(#eef2f8)에서도 대비 */
html.admin-theme-light body.admin-body .subordinate-aff-toggle {
    border-color: #059669;
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
    box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.15);
}

html.admin-theme-light body.admin-body .subordinate-aff-toggle:hover {
    border-color: #047857;
    background: rgba(16, 185, 129, 0.22);
    color: #065f46;
}

html.admin-theme-light body.admin-body .subordinate-aff-toggle[aria-expanded="true"] {
    border-color: #047857;
    background: #059669;
    color: #fff;
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.35);
}

html.admin-theme-light body.admin-body .subordinate-total-label {
    color: #b45309;
}

html.admin-theme-light body.admin-body .subordinate-total-muted {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .subordinate-id-type,
html.admin-theme-light body.admin-body .subordinate-id-nickname {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .subordinate-under-money,
html.admin-theme-light body.admin-body .subordinate-under-label {
    color: #475569;
}

html.admin-theme-light body.admin-body .subordinate-under-label {
    background: rgba(251, 191, 36, 0.15);
    color: #92400e;
}

html.admin-theme-light body.admin-body .subordinate-money-cell {
    color: #b45309;
}

html.admin-theme-light body.admin-body .subordinate-rolling-rate-pill {
    background: rgba(234, 179, 8, 0.18);
    color: #a16207;
}

html.admin-theme-light body.admin-body .subordinate-losing-rate-pill {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

html.admin-theme-light body.admin-body .subordinate-member-count-pill {
    background: #e2e8f0;
    color: #334155;
}

html.admin-theme-light body.admin-body .subordinate-total-row .subordinate-member-count-pill {
    color: #475569;
}

html.admin-theme-light body.admin-body .subordinate-member-money {
    color: #059669;
}

html.admin-theme-light body.admin-body .subordinate-member-rolling {
    color: #c2410c;
}

html.admin-theme-light body.admin-body .subordinate-rolling-amount,
html.admin-theme-light body.admin-body .subordinate-rolling-badge {
    color: #c2410c;
}

html.admin-theme-light body.admin-body .subordinate-losing-loan {
    color: #15803d;
}

html.admin-theme-light body.admin-body .partners-menu-rolling-value,
html.admin-theme-light body.admin-body .text-rolling-orange {
    color: #c2410c !important;
}

html.admin-theme-light body.admin-body .subordinate-data-table .shop-command-select {
    border-color: #10b981;
    background-color: var(--panel);
    color: #047857;
}

html.admin-theme-light body.admin-body .subordinate-data-table .shop-command-select option {
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light body.admin-body .subordinate-data-table .shop-command-select option.shop-command-select-divider {
    color: rgba(5, 150, 105, 0.55);
    background: #f1f5f9;
}

html.admin-theme-light body.admin-body .shop-command-floating-menu {
    border-color: rgba(16, 185, 129, 0.45);
    background:
        linear-gradient(165deg, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.04),
        0 16px 36px rgba(15, 23, 42, 0.14),
        0 4px 12px rgba(16, 185, 129, 0.1);
}

html.admin-theme-light body.admin-body .shop-command-floating-item {
    color: #1e293b;
}

html.admin-theme-light body.admin-body .shop-command-floating-item.is-placeholder,
html.admin-theme-light body.admin-body .shop-command-floating-header {
    background: linear-gradient(180deg, #bbf7d0 0%, #a7f3d0 45%, #6ee7b7 100%);
    color: #065f46;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        inset 0 -1px 0 rgba(5, 150, 105, 0.12);
}

html.admin-theme-light body.admin-body .shop-command-floating-item.is-placeholder::before,
html.admin-theme-light body.admin-body .shop-command-floating-header-title::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 7h16M4 12h10M4 17h14' stroke='%23047857' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
    filter: none;
}

html.admin-theme-light body.admin-body .shop-command-floating-item.is-placeholder::after,
html.admin-theme-light body.admin-body .shop-command-floating-header::after {
    background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.35), transparent);
}

html.admin-theme-light body.admin-body .shop-command-floating-header-title {
    color: #065f46;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

html.admin-theme-light body.admin-body .shop-command-floating-header-close {
    background: rgba(5, 150, 105, 0.14);
    color: #047857;
}

html.admin-theme-light body.admin-body .shop-command-floating-header-close:hover,
html.admin-theme-light body.admin-body .shop-command-floating-header-close:focus-visible {
    background: rgba(5, 150, 105, 0.28);
    color: #065f46;
}

html.admin-theme-light body.admin-body .shop-command-floating-divider {
    border-top-color: rgba(16, 185, 129, 0.25);
}

html.admin-theme-light body.admin-body .shop-command-floating-divider.is-section-divider {
    margin: 7px 10px;
    border-top-color: rgba(5, 150, 105, 0.55);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85),
        0 -1px 0 rgba(5, 150, 105, 0.12);
}

html.admin-theme-light body.admin-body .shop-command-floating-item:not(.is-placeholder)::before {
    background: linear-gradient(180deg, #34d399, #059669);
}

html.admin-theme-light body.admin-body .shop-command-floating-item:not(.is-placeholder):hover,
html.admin-theme-light body.admin-body .shop-command-floating-item:not(.is-placeholder):focus-visible {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0.06) 100%);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.28);
    color: #047857;
}

html.admin-theme-light body.admin-body .has-member-identity-contextmenu .members-identity-cell {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, transparent 38%);
}

html.admin-theme-light body.admin-body .has-member-identity-contextmenu .members-identity-cell::before {
    border-color: rgba(5, 150, 105, 0.28);
}

html.admin-theme-light body.admin-body .has-member-identity-contextmenu .members-identity-cell::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 4a5.5 5.5 0 0 1 5.5 5.5V16a5.5 5.5 0 1 1-11 0V9.5A5.5 5.5 0 0 1 12 4z' stroke='%23047857' stroke-width='1.75'/%3E%3Cpath d='M12 4v8.25' stroke='%23047857' stroke-width='1.35' stroke-linecap='round'/%3E%3Cpath d='M12 4h5.5a5.5 5.5 0 0 1 5.5 5.5V12H12V4z' fill='%23047857' fill-opacity='0.52'/%3E%3Ccircle cx='12' cy='15.25' r='1.15' fill='%23047857' fill-opacity='0.85'/%3E%3C/svg%3E");
    opacity: 0.5;
}

html.admin-theme-light body.admin-body .has-member-identity-contextmenu .members-identity-cell:hover,
html.admin-theme-light body.admin-body .has-member-identity-contextmenu .members-identity-cell:focus-within {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0.05) 100%);
    box-shadow: inset 3px 0 0 #10b981;
}

html.admin-theme-light body.admin-body .has-member-identity-contextmenu .members-identity-cell:hover::before,
html.admin-theme-light body.admin-body .has-member-identity-contextmenu .members-identity-cell:focus-within::before {
    border-color: rgba(5, 150, 105, 0.45);
    background: rgba(16, 185, 129, 0.08);
}

html.admin-theme-light body.admin-body .has-member-identity-contextmenu .members-identity-cell .partners-menu-login-id,
html.admin-theme-light body.admin-body .has-member-identity-contextmenu .members-identity-cell .members-login-detail-link,
html.admin-theme-light body.admin-body .has-member-identity-contextmenu .members-identity-cell .partners-menu-login-id:hover,
html.admin-theme-light body.admin-body .has-member-identity-contextmenu .members-identity-cell .members-login-detail-link:hover {
    background: none;
    box-shadow: none;
    color: #0369a1;
    font-weight: 800;
}

html.admin-theme-light body.admin-body .has-member-identity-contextmenu .members-identity-cell .partners-menu-login-id:hover,
html.admin-theme-light body.admin-body .has-member-identity-contextmenu .members-identity-cell .members-login-detail-link:hover,
html.admin-theme-light body.admin-body .has-member-identity-contextmenu .members-identity-cell:hover .partners-menu-login-id,
html.admin-theme-light body.admin-body .has-member-identity-contextmenu .members-identity-cell:hover .members-login-detail-link,
html.admin-theme-light body.admin-body .has-member-identity-contextmenu .members-identity-cell:hover .members-affiliation-label,
html.admin-theme-light body.admin-body .has-member-identity-contextmenu .members-identity-cell .members-affiliation-label {
    color: #0c4a6e;
    text-decoration: none;
}

html.admin-theme-light body.admin-body .has-member-identity-contextmenu .members-identity-cell .partners-menu-login-id::before,
html.admin-theme-light body.admin-body .has-member-identity-contextmenu .members-identity-cell .partners-menu-login-id::after,
html.admin-theme-light body.admin-body .has-member-identity-contextmenu .members-identity-cell .members-login-detail-link::before,
html.admin-theme-light body.admin-body .has-member-identity-contextmenu .members-identity-cell .members-login-detail-link::after {
    content: none;
    display: none;
}

html.admin-theme-light body.admin-body.has-partner-tree-shop-command .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content,
html.admin-theme-light body.admin-body.has-partner-tree-shop-command #members-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content,
html.admin-theme-light body.admin-body.has-partner-tree-shop-command #customtree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content,
html.admin-theme-light body.admin-body.has-partner-tree-shop-command #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content,
html.admin-theme-light body.admin-body .has-money-log-tree-contextmenu #money-log-standalone-tree .tree-node[data-member-user-id] > .node-content {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, transparent 38%);
}

html.admin-theme-light body.admin-body.has-partner-tree-shop-command .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::before,
html.admin-theme-light body.admin-body.has-partner-tree-shop-command #members-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::before,
html.admin-theme-light body.admin-body.has-partner-tree-shop-command #customtree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::before,
html.admin-theme-light body.admin-body.has-partner-tree-shop-command #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::before,
html.admin-theme-light body.admin-body .has-money-log-tree-contextmenu #money-log-standalone-tree .tree-node[data-member-user-id] > .node-content::before {
    border-color: rgba(5, 150, 105, 0.28);
}

html.admin-theme-light body.admin-body.has-partner-tree-shop-command .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::after,
html.admin-theme-light body.admin-body.has-partner-tree-shop-command #members-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::after,
html.admin-theme-light body.admin-body.has-partner-tree-shop-command #customtree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::after,
html.admin-theme-light body.admin-body.has-partner-tree-shop-command #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::after,
html.admin-theme-light body.admin-body .has-money-log-tree-contextmenu #money-log-standalone-tree .tree-node[data-member-user-id] > .node-content::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 4a5.5 5.5 0 0 1 5.5 5.5V16a5.5 5.5 0 1 1-11 0V9.5A5.5 5.5 0 0 1 12 4z' stroke='%23047857' stroke-width='1.75'/%3E%3Cpath d='M12 4v8.25' stroke='%23047857' stroke-width='1.35' stroke-linecap='round'/%3E%3Cpath d='M12 4h5.5a5.5 5.5 0 0 1 5.5 5.5V12H12V4z' fill='%23047857' fill-opacity='0.52'/%3E%3Ccircle cx='12' cy='15.25' r='1.15' fill='%23047857' fill-opacity='0.85'/%3E%3C/svg%3E");
    opacity: 0.5;
}

html.admin-theme-light body.admin-body.has-partner-tree-shop-command .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover,
html.admin-theme-light body.admin-body.has-partner-tree-shop-command #members-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover,
html.admin-theme-light body.admin-body.has-partner-tree-shop-command #customtree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover,
html.admin-theme-light body.admin-body.has-partner-tree-shop-command #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover,
html.admin-theme-light body.admin-body .has-money-log-tree-contextmenu #money-log-standalone-tree .tree-node[data-member-user-id] > .node-content:hover {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0.05) 100%);
    box-shadow: inset 3px 0 0 #10b981;
}

html.admin-theme-light body.admin-body.has-partner-tree-shop-command .partners-tree-card .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover::before,
html.admin-theme-light body.admin-body.has-partner-tree-shop-command #members-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover::before,
html.admin-theme-light body.admin-body.has-partner-tree-shop-command #customtree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover::before,
html.admin-theme-light body.admin-body.has-partner-tree-shop-command #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content:hover::before,
html.admin-theme-light body.admin-body .has-money-log-tree-contextmenu #money-log-standalone-tree .tree-node[data-member-user-id] > .node-content:hover::before {
    border-color: rgba(5, 150, 105, 0.45);
    background: rgba(16, 185, 129, 0.08);
}

html.admin-theme-light body.admin-body.has-partner-tree-shop-command .subordinate-id-chip:not(.al-transfer-partner-id-chip) > .members-affiliation-trigger,
html.admin-theme-light body.admin-body.has-partner-tree-shop-command .partner-transfer-hierarchy-chip[data-partner-id]:not(.al-transfer-partner-id-chip) > .members-affiliation-trigger,
html.admin-theme-light body.admin-body.has-partner-tree-shop-command tr[data-partner-id] .partners-menu-login-id {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, transparent 38%);
}

html.admin-theme-light body.admin-body.has-partner-tree-shop-command .subordinate-id-chip:not(.al-transfer-partner-id-chip) > .members-affiliation-trigger::before,
html.admin-theme-light body.admin-body.has-partner-tree-shop-command .partner-transfer-hierarchy-chip[data-partner-id]:not(.al-transfer-partner-id-chip) > .members-affiliation-trigger::before,
html.admin-theme-light body.admin-body.has-partner-tree-shop-command tr[data-partner-id] .partners-menu-login-id::before {
    border-color: rgba(5, 150, 105, 0.28);
}

html.admin-theme-light body.admin-body.has-partner-tree-shop-command .subordinate-id-chip:not(.al-transfer-partner-id-chip) > .members-affiliation-trigger::after,
html.admin-theme-light body.admin-body.has-partner-tree-shop-command .partner-transfer-hierarchy-chip[data-partner-id]:not(.al-transfer-partner-id-chip) > .members-affiliation-trigger::after,
html.admin-theme-light body.admin-body.has-partner-tree-shop-command tr[data-partner-id] .partners-menu-login-id::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 4a5.5 5.5 0 0 1 5.5 5.5V16a5.5 5.5 0 1 1-11 0V9.5A5.5 5.5 0 0 1 12 4z' stroke='%23047857' stroke-width='1.75'/%3E%3Cpath d='M12 4v8.25' stroke='%23047857' stroke-width='1.35' stroke-linecap='round'/%3E%3Cpath d='M12 4h5.5a5.5 5.5 0 0 1 5.5 5.5V12H12V4z' fill='%23047857' fill-opacity='0.52'/%3E%3Ccircle cx='12' cy='15.25' r='1.15' fill='%23047857' fill-opacity='0.85'/%3E%3C/svg%3E");
    opacity: 0.5;
}

html.admin-theme-light body.admin-body .is-money-log-store-viewer.has-money-log-tree-contextmenu #money-log-standalone-tree .money-log-standalone-store-node:not(.is-selected),
html.admin-theme-light body.admin-body .is-money-log-store-viewer.has-money-log-tree-contextmenu #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content {
    cursor: pointer;
    background: transparent;
    box-shadow: none;
}

html.admin-theme-light body.admin-body .is-money-log-store-viewer.has-money-log-tree-contextmenu #money-log-standalone-tree .money-log-standalone-store-node:not(.is-selected)::before,
html.admin-theme-light body.admin-body .is-money-log-store-viewer.has-money-log-tree-contextmenu #money-log-standalone-tree .money-log-standalone-store-node:not(.is-selected)::after,
html.admin-theme-light body.admin-body .is-money-log-store-viewer.has-money-log-tree-contextmenu #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::before,
html.admin-theme-light body.admin-body .is-money-log-store-viewer.has-money-log-tree-contextmenu #money-log-standalone-tree .tree-node[data-partner-id]:not([data-member-user-id]) > .node-content::after {
    content: none;
    display: none;
}

html.admin-theme-light body.admin-body .is-money-log-store-viewer.has-money-log-tree-contextmenu #money-log-standalone-tree .money-log-standalone-store-node.is-selected {
    background: rgba(49, 93, 255, 0.16);
    border-bottom-color: transparent;
}

html.admin-theme-light body.admin-body .admin-page-loading-overlay {
    background: rgba(248, 250, 252, 0.72);
}

html.admin-theme-light body.admin-body .admin-page-loading-card {
    border-color: rgba(16, 185, 129, 0.35);
    background:
        linear-gradient(165deg, rgba(16, 185, 129, 0.1) 0%, transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.04),
        0 18px 36px rgba(15, 23, 42, 0.12);
}

html.admin-theme-light body.admin-body .admin-page-loading-text {
    color: #047857;
}

html.admin-theme-light body.admin-body .partners-detail-combobox-trigger {
    border-color: var(--line);
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light body.admin-body .partners-detail-combobox-trigger::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23475569' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html.admin-theme-light body.admin-body .partners-detail-combobox-trigger:hover:not(:disabled),
html.admin-theme-light body.admin-body .partners-detail-combobox.is-open .partners-detail-combobox-trigger {
    border-color: #2563eb;
}

html.admin-theme-light body.admin-body .partners-detail-combobox-menu {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

html.admin-theme-light body.admin-body .partners-detail-combobox-option {
    color: var(--text);
}

html.admin-theme-light body.admin-body .partners-detail-combobox-option:hover {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

html.admin-theme-light body.admin-body .notice-admin-table {
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light body.admin-body .notice-admin-table th,
html.admin-theme-light body.admin-body .notice-admin-table td {
    border-bottom-color: var(--line);
}

html.admin-theme-light body.admin-body .notice-admin-table th {
    background: #eef2f8;
    color: #475569;
}

html.admin-theme-light body.admin-body .notice-admin-table td {
    color: var(--text);
}

html.admin-theme-light body.admin-body .notice-admin-table tbody tr {
    transition: background-color 0.15s ease;
}

html.admin-theme-light body.admin-body .notice-admin-table tbody tr:hover td,
html.admin-theme-light body.admin-body .partner-notices-table tbody tr.partner-notice-row-clickable:hover td,
html.admin-theme-light body.admin-body .partner-inquiry-table tbody tr.partner-inquiry-row-clickable:hover td {
    background-color: rgba(37, 99, 235, 0.06);
}

html.admin-theme-light body.admin-body .notice-admin-table .notice-link {
    color: var(--text);
    border-radius: 4px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

html.admin-theme-light body.admin-body .notice-admin-table .notice-link-rich .notice-link-label :where(span, strong, em) {
    color: inherit;
}

html.admin-theme-light body.admin-body .notice-admin-table .notice-link:hover {
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.1);
    text-decoration: underline;
    text-underline-offset: 2px;
}

html.admin-theme-light body.admin-body .notice-admin-table .notice-link:focus-visible {
    color: #2563eb;
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}

html.admin-theme-light body.admin-body .partner-notices-table .partner-notice-title,
html.admin-theme-light body.admin-body .partner-notices-table .partner-notice-title:hover,
html.admin-theme-light body.admin-body .partner-notices-table .partner-notice-title:focus-visible {
    color: var(--text);
    background-color: transparent;
    text-decoration: none;
    outline: none;
}

/* Partner notice view dialog */
html.admin-theme-light body.admin-body #partner-notice-view-overlay.notice-overlay {
    background: rgba(15, 23, 42, 0.32);
}

html.admin-theme-light body.admin-body #partner-notice-view-overlay .partner-notice-view-dialog {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
}

html.admin-theme-light body.admin-body #partner-notice-view-overlay .notice-edit-title {
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
    color: #1e293b;
    font-weight: 700;
    line-height: 1.45;
}

/* HQ notice admin — edit dialog, simple view, popup preview */
html.admin-theme-light body.admin-body #notice-overlay.notice-overlay {
    background: rgba(15, 23, 42, 0.32);
}

html.admin-theme-light body.admin-body #notice-overlay .notice-dialog {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
}

html.admin-theme-light body.admin-body #notice-overlay .notice-dialog-title {
    border-bottom-color: var(--line);
    background: #f8fafc;
    color: #1e293b;
}

html.admin-theme-light body.admin-body #notice-overlay .notice-dialog-body {
    color: #475569;
    background: var(--panel);
}

html.admin-theme-light body.admin-body #notice-overlay .notice-dialog-body.notice-dialog-rich :where(p, div, span, li, strong, em, td, th) {
    color: inherit;
}

html.admin-theme-light body.admin-body #notice-overlay .notice-dialog-body.notice-dialog-rich a {
    color: #2563eb;
}

html.admin-theme-light body.admin-body #notice-overlay .notice-dialog-title.notice-dialog-rich :where(p, span, strong, em) {
    color: inherit;
}

html.admin-theme-light body.admin-body #notice-overlay .notice-dialog-actions {
    border-top-color: var(--line);
    background: #f8fafc;
}

html.admin-theme-light body.admin-body #notice-edit-overlay.notice-overlay {
    background: rgba(15, 23, 42, 0.32);
}

html.admin-theme-light body.admin-body #notice-edit-overlay .notice-edit-dialog {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
}

html.admin-theme-light body.admin-body #notice-edit-overlay .notice-edit-header,
html.admin-theme-light body.admin-body #notice-edit-overlay .notice-edit-actions {
    border-color: var(--line);
    background: #f8fafc;
}

html.admin-theme-light body.admin-body #notice-edit-overlay .notice-edit-title {
    color: #1e293b;
}

html.admin-theme-light body.admin-body #notice-edit-overlay .notice-edit-close {
    color: #64748b;
}

html.admin-theme-light body.admin-body #notice-edit-overlay .notice-edit-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

html.admin-theme-light body.admin-body #notice-edit-overlay .notice-edit-label,
html.admin-theme-light body.admin-body #notice-edit-overlay .notice-edit-check,
html.admin-theme-light body.admin-body #notice-edit-overlay .notice-edit-popup-size-label,
html.admin-theme-light body.admin-body #notice-edit-overlay .notice-edit-popup-size-field {
    color: #475569;
}

html.admin-theme-light body.admin-body #notice-edit-overlay .notice-edit-popup-size-hint {
    color: #64748b;
}

html.admin-theme-light body.admin-body #notice-edit-overlay .notice-edit-input,
html.admin-theme-light body.admin-body #notice-edit-overlay .notice-edit-textarea,
html.admin-theme-light body.admin-body #notice-edit-overlay .editor-content {
    border-color: var(--line);
    background: #fff;
    color: #0f172a;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
}

/* 다크 에디터용 밝은 글자색이 흰 배경에서 흐려 보이는 경우 */
html.admin-theme-light body.admin-body #notice-edit-overlay .editor-content :where(
    span[style*="color:#e8edf8"],
    span[style*="color: #e8edf8"],
    span[style*="color:#E8EDF8"],
    span[style*="color: #E8EDF8"],
    span[style*="color:#ffffff"],
    span[style*="color: #ffffff"],
    span[style*="color:#FFFFFF"],
    span[style*="color: #FFFFFF"],
    span[style*="color:#c8d0df"],
    span[style*="color: #c8d0df"],
    span[style*="color:#C8D0DF"],
    span[style*="color: #C8D0DF"],
    font[style*="color:#e8edf8"],
    font[style*="color: #e8edf8"],
    font[style*="color:#ffffff"],
    font[style*="color: #ffffff"],
    font[style*="color:#c8d0df"],
    font[style*="color: #c8d0df"]
) {
    color: #0f172a !important;
}

html.admin-theme-light body.admin-body #notice-edit-overlay .editor-content :where(p, div, li, strong, em, h1, h2, h3) {
    color: inherit;
}

html.admin-theme-light body.admin-body #notice-edit-overlay .editor-content:empty::before {
    color: #94a3b8;
}

html.admin-theme-light body.admin-body #notice-edit-overlay .editor-toolbar {
    border-color: var(--line);
    background: #f8fafc;
}

html.admin-theme-light body.admin-body #notice-edit-overlay .editor-toolbar-group {
    background: #fff;
}

html.admin-theme-light body.admin-body #notice-edit-overlay .editor-toolbar-btn {
    color: #64748b;
}

html.admin-theme-light body.admin-body #notice-edit-overlay .editor-toolbar-btn:hover,
html.admin-theme-light body.admin-body #notice-edit-overlay .editor-toolbar-btn.is-active {
    background: #e2e8f0;
    color: #0f172a;
}

html.admin-theme-light body.admin-body #notice-edit-overlay .editor-toolbar-divider {
    background: var(--line);
}

html.admin-theme-light body.admin-body #notice-edit-overlay .editor-color-menu {
    border-color: var(--line);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

html.admin-theme-light body.admin-body #inquiry-macro-edit-overlay .inquiry-macro-edit-content {
    border-color: var(--line);
    background: #fff;
    color: #0f172a;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
}

html.admin-theme-light body.admin-body #inquiry-macro-edit-overlay .inquiry-macro-edit-content :where(
    span[style*="color:#e8edf8"],
    span[style*="color: #e8edf8"],
    span[style*="color:#E8EDF8"],
    span[style*="color: #E8EDF8"],
    span[style*="color:#ffffff"],
    span[style*="color: #ffffff"],
    span[style*="color:#FFFFFF"],
    span[style*="color: #FFFFFF"],
    span[style*="color:#c8d0df"],
    span[style*="color: #c8d0df"],
    span[style*="color:#C8D0DF"],
    span[style*="color: #C8D0DF"],
    font[style*="color:#e8edf8"],
    font[style*="color: #e8edf8"],
    font[style*="color:#ffffff"],
    font[style*="color: #ffffff"],
    font[style*="color:#c8d0df"],
    font[style*="color: #c8d0df"]
) {
    color: #0f172a !important;
}

html.admin-theme-light body.admin-body #inquiry-macro-edit-overlay .inquiry-macro-edit-content :where(p, div, li, strong, em, h1, h2, h3) {
    color: inherit;
}

html.admin-theme-light body.admin-body #inquiry-macro-edit-overlay .inquiry-macro-edit-content:empty::before {
    color: #94a3b8;
}

html.admin-theme-light body.admin-body #inquiry-macro-edit-overlay .inquiry-macro-editor-container .editor-toolbar {
    border-color: var(--line);
    background: #f8fafc;
}

html.admin-theme-light body.admin-body #inquiry-macro-edit-overlay .inquiry-macro-editor-container .editor-toolbar-group {
    background: #fff;
}

html.admin-theme-light body.admin-body #inquiry-macro-edit-overlay .inquiry-macro-editor-container .editor-toolbar-btn {
    color: #64748b;
}

html.admin-theme-light body.admin-body #inquiry-macro-edit-overlay .inquiry-macro-editor-container .editor-toolbar-btn:hover,
html.admin-theme-light body.admin-body #inquiry-macro-edit-overlay .inquiry-macro-editor-container .editor-toolbar-btn.is-active {
    background: #e2e8f0;
    color: #0f172a;
}

html.admin-theme-light body.admin-body #inquiry-macro-edit-overlay .inquiry-macro-editor-container .editor-toolbar-divider {
    background: var(--line);
}

html.admin-theme-light body.admin-body #inquiry-macro-edit-overlay .inquiry-macro-editor-container .editor-color-menu {
    border-color: var(--line);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

html.admin-theme-light body.admin-body #notice-edit-overlay .notice-edit-btn-preview {
    background: #fff;
    color: #334155;
    border: 1px solid var(--line);
}

html.admin-theme-light body.admin-body #notice-edit-overlay .notice-edit-btn-cancel {
    background: #e2e8f0;
    color: #334155;
}

html.admin-theme-light body.admin-body #notice-edit-overlay .notice-edit-btn-save {
    background: #2563eb;
    color: #fff;
}

html.admin-theme-light body.admin-body #editor-link-overlay.notice-overlay {
    background: rgba(15, 23, 42, 0.32);
}

html.admin-theme-light body.admin-body #editor-link-overlay .editor-link-dialog {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
}

html.admin-theme-light body.admin-body .notice-edit-popup-preview-backdrop {
    background: rgba(15, 23, 42, 0.28);
}

html.admin-theme-light body.admin-body #partner-notice-view-overlay .partner-notice-view-body {
    padding: 28px 24px 32px;
    background: var(--panel);
    color: #475569;
    font-size: 14px;
    line-height: 1.75;
    min-height: 88px;
}

html.admin-theme-light body.admin-body #partner-notice-view-overlay .partner-notice-view-body :where(p, div, span, li, strong, em, a, td, th) {
    color: #475569 !important;
    background-color: transparent !important;
    background: none !important;
}

html.admin-theme-light body.admin-body #partner-notice-view-overlay .notice-dialog-actions {
    padding: 18px 20px 22px;
    min-height: 58px;
    border-top: 1px solid var(--line);
    background: #f8fafc;
}

html.admin-theme-light body.admin-body #partner-notice-view-overlay .notice-dialog-actions .page-btn-primary {
    background: #137fec;
    color: #fff;
}

html.admin-theme-light body.admin-body #partner-notice-view-overlay .notice-dialog-actions .page-btn-primary:hover {
    background: #0f6fd6;
    filter: none;
}

/* Partner 1:1 inquiry detail dialog */
html.admin-theme-light body.admin-body #partner-inquiry-detail-overlay.notice-overlay {
    background: rgba(15, 23, 42, 0.32);
}

html.admin-theme-light body.admin-body #partner-inquiry-detail-overlay .inquiry-answer-card {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
}

html.admin-theme-light body.admin-body #partner-inquiry-detail-overlay .inquiry-answer-header {
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}

html.admin-theme-light body.admin-body #partner-inquiry-detail-overlay .inquiry-answer-header .auto-card-title {
    color: var(--text);
}

html.admin-theme-light body.admin-body #partner-inquiry-detail-overlay .inquiry-answer-header .auto-card-close {
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: #64748b;
}

html.admin-theme-light body.admin-body #partner-inquiry-detail-overlay .inquiry-answer-header .auto-card-close:hover {
    background: #f1f5f9;
    color: var(--text);
}

html.admin-theme-light body.admin-body #partner-inquiry-detail-overlay .inquiry-answer-info-section {
    border-bottom-color: var(--line);
    background: var(--panel);
}

html.admin-theme-light body.admin-body #partner-inquiry-detail-overlay .inquiry-answer-info-section h3 {
    color: var(--text);
}

html.admin-theme-light body.admin-body #partner-inquiry-detail-overlay .partner-inquiry-detail-label {
    color: var(--muted);
}

html.admin-theme-light body.admin-body #partner-inquiry-detail-overlay .inquiry-answer-view-content {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body #partner-inquiry-detail-overlay #partner-inquiry-detail-question-content :where(p, div, span, li, strong, em, a, td, th) {
    color: var(--text) !important;
    background-color: transparent !important;
    background: none !important;
}

html.admin-theme-light body.admin-body #partner-inquiry-detail-overlay #partner-inquiry-detail-answer-label {
    color: #15803d;
}

html.admin-theme-light body.admin-body #partner-inquiry-detail-overlay #partner-inquiry-detail-answer-content {
    border-color: rgba(34, 197, 94, 0.35);
    background: #f0fdf4;
    color: #166534;
}

html.admin-theme-light body.admin-body #partner-inquiry-detail-overlay #partner-inquiry-detail-answer-content :where(p, div, span, li, strong, em, a, td, th) {
    color: #166534 !important;
    background-color: transparent !important;
    background: none !important;
}

html.admin-theme-light body.admin-body #partner-inquiry-detail-overlay .inquiry-answer-footer {
    border-top: 1px solid var(--line);
    background: #f8fafc;
}

html.admin-theme-light body.admin-body #partner-inquiry-detail-overlay .inquiry-answer-footer .auto-card-btn-primary {
    border: 0;
    background: #137fec;
    color: #fff;
}

html.admin-theme-light body.admin-body #partner-inquiry-detail-overlay .inquiry-answer-footer .auto-card-btn-primary:hover {
    background: #0f6fd6;
    filter: none;
}

/* 1:1 문의 답변·상세 모달 (menu-page, 회원상세) */
html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-card {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-header {
    border-bottom: 1px solid var(--line);
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-header .auto-card-title {
    color: var(--text);
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-header .auto-card-close {
    border: 1px solid var(--line);
    background: #fff;
    color: #64748b;
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-header .auto-card-close:hover {
    background: #f1f5f9;
    color: var(--text);
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-info-section,
html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-write-section {
    border-bottom-color: var(--line);
    background: var(--panel);
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-info-section h3,
html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-write-section h3,
html.admin-theme-light body.admin-body #inquiry-detail-overlay .inquiry-detail-answer-section h3 {
    color: var(--text);
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-info-grid {
    border-color: var(--line);
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-info-grid dt,
html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-info-grid dd {
    border-bottom-color: var(--line);
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-info-grid dt {
    color: #475569;
    background: #f1f5f9;
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-info-grid dd {
    color: var(--text);
    background: #fff;
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-field span {
    color: var(--text);
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-field em {
    color: var(--muted);
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-field select,
html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-field textarea,
html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-content-editor {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-field select {
    appearance: none;
    -webkit-appearance: none;
    border-color: var(--line);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    color: var(--text);
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-field select:focus {
    border-color: #315dff;
    box-shadow: 0 0 0 2px rgba(49, 93, 255, 0.16);
    outline: 0;
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-field select option {
    color: #0f172a;
    background: #fff;
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-editor-container .editor-toolbar {
    border-color: var(--line);
    background: #f8fafc;
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-editor-container .editor-toolbar-group {
    background: #fff;
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-editor-container .editor-toolbar-btn {
    color: #64748b;
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-editor-container .editor-toolbar-btn:hover,
html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-editor-container .editor-toolbar-btn.is-active {
    background: #e2e8f0;
    color: var(--text);
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-editor-container .editor-toolbar-divider {
    background: var(--line);
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-editor-container .editor-color-menu {
    border-color: var(--line);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-view-content {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-view-content :where(p, div, span, li, strong, em, a, td, th) {
    color: var(--text) !important;
    background-color: transparent !important;
    background: none !important;
}

html.admin-theme-light body.admin-body #inquiry-detail-overlay #inquiry-detail-answer-content {
    border-color: rgba(34, 197, 94, 0.35);
    background: #f0fdf4;
    color: #166534;
}

html.admin-theme-light body.admin-body #inquiry-detail-overlay #inquiry-detail-answer-content :where(p, div, span, li, strong, em, a, td, th) {
    color: #166534 !important;
    background-color: transparent !important;
    background: none !important;
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-footer {
    border-top: 1px solid var(--line);
    background: #f8fafc;
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-footer .auto-card-btn-cancel {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-footer .auto-card-btn-cancel:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: var(--text);
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-footer .auto-card-btn-primary {
    border: 0;
    background: #137fec;
    color: #fff;
}

html.admin-theme-light body.admin-body :is(
    #inquiry-answer-overlay,
    #inquiry-detail-overlay,
    #inquiry-answer-view-overlay,
    #user-detail-inquiry-detail-overlay,
    #user-detail-memo-detail-overlay
) .inquiry-answer-footer .auto-card-btn-primary:hover {
    background: #0f6fd6;
    filter: none;
}

/* 회원 상세 — 문의/메모 상세 블록 */
html.admin-theme-light body.admin-body :is(#user-detail-inquiry-detail-overlay, #user-detail-memo-detail-overlay) .partner-inquiry-detail-label {
    color: var(--muted);
}

html.admin-theme-light body.admin-body :is(#user-detail-inquiry-detail-overlay, #user-detail-memo-detail-overlay) .user-detail-inquiry-detail-block {
    border-color: var(--line);
}

html.admin-theme-light body.admin-body :is(#user-detail-inquiry-detail-overlay, #user-detail-memo-detail-overlay) .user-detail-inquiry-detail-block--question {
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body :is(#user-detail-inquiry-detail-overlay, #user-detail-memo-detail-overlay) .user-detail-inquiry-detail-title-text {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
}

html.admin-theme-light body.admin-body :is(#user-detail-inquiry-detail-overlay, #user-detail-memo-detail-overlay) .user-detail-inquiry-detail-question-content {
    background: #fff;
}

html.admin-theme-light body.admin-body :is(#user-detail-inquiry-detail-overlay, #user-detail-memo-detail-overlay) .user-detail-inquiry-detail-block--answer {
    background: #f0fdf4;
    border-color: rgba(34, 197, 94, 0.35);
}

html.admin-theme-light body.admin-body :is(#user-detail-inquiry-detail-overlay, #user-detail-memo-detail-overlay) .user-detail-inquiry-detail-answer-content {
    border-color: rgba(34, 197, 94, 0.35);
    background: #fff;
    color: #166534;
}

html.admin-theme-light body.admin-body :is(#user-detail-inquiry-detail-overlay, #user-detail-memo-detail-overlay) .user-detail-inquiry-detail-block--answer .partner-inquiry-detail-label {
    color: #15803d;
}

html.admin-theme-light body.admin-body .node-content {
    border-bottom-color: var(--line);
}

html.admin-theme-light body.admin-body .node-label {
    color: #334155;
    font-weight: 600;
}

html.admin-theme-light body.admin-body .node-label-nickname,
html.admin-theme-light body.admin-body .node-content.is-selected .node-label-nickname,
html.admin-theme-light body.admin-body .tree-node.is-selected > .node-content .node-label-nickname {
    color: var(--muted);
    font-weight: 500;
}

html.admin-theme-light body.admin-body .node-content.is-selected .node-label,
html.admin-theme-light body.admin-body .tree-node.is-selected > .node-content .node-label {
    color: #0f172a;
    font-weight: 800;
}

html.admin-theme-light body.admin-body .toggle-icon,
html.admin-theme-light body.admin-body .tree-node-toggle {
    color: #64748b;
    font-weight: 700;
}

html.admin-theme-light body.admin-body .node-content.is-selected .tree-node-toggle,
html.admin-theme-light body.admin-body .tree-node.is-selected > .node-content .tree-node-toggle {
    color: #0f172a;
}

html.admin-theme-light body.admin-body .toggle-icon:hover,
html.admin-theme-light body.admin-body .tree-node-toggle:hover {
    color: #0f172a;
}

html.admin-theme-light body.admin-body .node-content:hover {
    background: rgba(37, 99, 235, 0.08);
}

html.admin-theme-light body.admin-body .node-content.is-selected,
html.admin-theme-light body.admin-body .tree-node.is-selected > .node-content {
    background: rgba(37, 99, 235, 0.12);
}

/* Members / online members list table */
html.admin-theme-light body.admin-body .partners-table-shell,
html.admin-theme-light body.admin-body .partners-card-shell {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

html.admin-theme-light body.admin-body .cardview-card {
    border-color: var(--line);
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body .cardview-card.card-hover-effect:hover {
    background: #e8eef5;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

html.admin-theme-light body.admin-body .cardview-card-title h5 {
    color: #64748b;
}

html.admin-theme-light body.admin-body .cardview-card-value h4,
html.admin-theme-light body.admin-body .cardview-type-value {
    color: var(--text);
}

html.admin-theme-light body.admin-body .cardview-divider {
    border-top-color: var(--line);
}

html.admin-theme-light body.admin-body .cardview-empty {
    color: #64748b;
}

html.admin-theme-light body.admin-body .members-data-table-wrap,
html.admin-theme-light body.admin-body .members-list-body .members-table-scroll .custom-data-table {
    background: var(--panel);
}

html.admin-theme-light body.admin-body .members-list-body .members-data-table thead th,
html.admin-theme-light body.admin-body .members-data-table thead th {
    background-color: #eef2f8;
    color: #475569;
    box-shadow:
        0 1px 0 var(--line),
        0 8px 16px -4px rgba(15, 23, 42, 0.08);
}

html.admin-theme-light body.admin-body .members-data-table thead th .members-head-point-label {
    color: #334155;
}

html.admin-theme-light body.admin-body .members-data-table tbody td,
html.admin-theme-light body.admin-body .online-members-table tbody td {
    color: var(--text);
    border-bottom-color: var(--line);
}

html.admin-theme-light body.admin-body .members-data-table tfoot td,
html.admin-theme-light body.admin-body .members-total-row td {
    background: #f1f5f9;
    color: var(--text);
    border-bottom-color: var(--line);
}

html.admin-theme-light body.admin-body .subordinate-flag-open-btn {
    border-color: #0b5cad;
    background: rgba(11, 92, 173, 0.16);
    color: #0b5cad;
}

html.admin-theme-light body.admin-body .subordinate-flag-open-btn:hover {
    background: rgba(11, 92, 173, 0.26);
    color: #084a8c;
}

html.admin-theme-light body.admin-body .members-money-cell .members-point-value,
html.admin-theme-light body.admin-body .members-total-row .members-point-value {
    color: var(--text) !important;
}

html.admin-theme-light body.admin-body .members-money-row.is-total .members-money-label {
    color: #64748b;
}

html.admin-theme-light body.admin-body .members-money-row.is-main .members-money-label {
    color: #2563eb;
}

html.admin-theme-light body.admin-body .members-money-row.is-main .members-money-value {
    color: #1d4ed8;
}

html.admin-theme-light body.admin-body .members-money-row.is-mato .members-money-label {
    color: #059669;
}

html.admin-theme-light body.admin-body .members-money-row.is-mato .members-money-value {
    color: #047857;
}

html.admin-theme-light body.admin-body .members-affiliation-trigger {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body .members-affiliation-menu {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

html.admin-theme-light body.admin-body .members-affiliation-option {
    color: var(--text);
}

html.admin-theme-light body.admin-body .members-affiliation-option:hover {
    background: rgba(37, 99, 235, 0.08);
}

html.admin-theme-light body.admin-body .members-money-action-btn:not(.members-al-deposit-btn):not(.members-al-withdraw-btn):not(.partner-menu-manage-btn) {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body .members-monster-api-mark {
    border-color: #94a3b8;
    color: var(--text);
    background: rgba(15, 23, 42, 0.04);
}

html.admin-theme-light body.admin-body .online-members-summary {
    color: #334155;
    font-weight: 500;
}

html.admin-theme-light body.admin-body .online-members-summary strong {
    color: #047857;
    font-weight: 800;
}

html.admin-theme-light body.admin-body .online-members-last-game {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .online-members-last-game-name {
    color: var(--text);
}

html.admin-theme-light body.admin-body .partners-column-hide-item {
    border-bottom-color: var(--line);
    color: var(--text);
}

/* Dashboard */
html.admin-theme-light body.admin-body .dash-card,
html.admin-theme-light body.admin-body .dash-today {
    background: var(--panel);
    border-color: var(--line);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

html.admin-theme-light body.admin-body .dash-today-grid-toggle {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

html.admin-theme-light body.admin-body .dash-today-grid-toggle:hover,
html.admin-theme-light body.admin-body .dash-today-grid-toggle:focus-visible {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.18);
    color: #047857;
}

html.admin-theme-light body.admin-body .dash-today-head,
html.admin-theme-light body.admin-body .dash-today-detail-panel {
    border-color: var(--line);
}

html.admin-theme-light body.admin-body .dash-today-coin-rates {
    color: #334155;
}

html.admin-theme-light body.admin-body .dash-today-coin-rate-row {
    border-color: rgba(100, 116, 139, 0.45);
    background: #f1f5f9;
}

html.admin-theme-light body.admin-body .dash-today-coin-rate-group-usdt .dash-today-coin-rate-row {
    border-color: rgba(2, 132, 199, 0.4);
    background: rgba(14, 165, 233, 0.12);
}

html.admin-theme-light body.admin-body .dash-today-coin-rate-group-trx .dash-today-coin-rate-row {
    border-color: rgba(124, 58, 237, 0.38);
    background: rgba(139, 92, 246, 0.1);
}

html.admin-theme-light body.admin-body .dash-today-coin-rate-label {
    color: #1e293b;
    font-weight: 600;
}

html.admin-theme-light body.admin-body .dash-today-coin-rate-arrow {
    color: #64748b;
}

html.admin-theme-light body.admin-body .dash-today-coin-rate-unit {
    color: #475569;
    font-weight: 600;
}

html.admin-theme-light body.admin-body .dash-today-coin-rate-value-usdt-krw,
html.admin-theme-light body.admin-body .dash-today-coin-rate-value-trx-krw {
    color: #15803d;
}

html.admin-theme-light body.admin-body .dash-today-coin-rate-value-usdt {
    color: #0369a1;
}

html.admin-theme-light body.admin-body .dash-today-coin-rate-value-trx-amt {
    color: #5b21b6;
}

html.admin-theme-light body.admin-body .dash-today-grid article {
    border-right-color: var(--line);
}

html.admin-theme-light body.admin-body .dash-today-detail-table th,
html.admin-theme-light body.admin-body .dash-today-detail-table td {
    border-bottom-color: var(--line);
}

html.admin-theme-light body.admin-body .dash-today-detail-table thead th {
    background: var(--panel-soft);
    color: var(--muted);
}

html.admin-theme-light body.admin-body .dash-today-detail-table tbody td {
    color: var(--text);
}

html.admin-theme-light body.admin-body .dash-today-detail-btn {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .dash-today-detail-btn:hover,
html.admin-theme-light body.admin-body .dash-today-detail-btn.is-open {
    color: var(--text);
}

html.admin-theme-light body.admin-body .dash-online-kinds div {
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body .dash-refresh {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body .app-sidebar-watcher-status--top-metrics.is-active {
    border-color: rgba(22, 163, 74, 0.65);
    background: rgba(220, 252, 231, 0.95);
    color: #166534;
}

html.admin-theme-light body.admin-body .app-sidebar-watcher-status--top-metrics.is-active #watcherStatusIcon {
    color: #15803d;
}

html.admin-theme-light body.admin-body .app-sidebar-watcher-status--top-metrics.is-active .app-sidebar-watcher-status-label {
    color: #166534;
}

html.admin-theme-light body.admin-body .app-sidebar-watcher-status--top-metrics.is-inactive {
    border-color: var(--line);
    background: var(--panel-soft);
    color: #64748b;
}

html.admin-theme-light body.admin-body .app-sidebar-watcher-status--top-metrics.is-inactive #watcherStatusIcon,
html.admin-theme-light body.admin-body .app-sidebar-watcher-status--top-metrics.is-inactive .app-sidebar-watcher-status-label {
    color: #64748b;
}

html.admin-theme-light body.admin-body .dash-kpi {
    color: var(--text);
}

html.admin-theme-light body.admin-body .dash-kpi.tone-cyan {
    background: linear-gradient(180deg, #cffafe 0%, #ecfeff 100%);
    border: 1px solid #a5f3fc;
}

html.admin-theme-light body.admin-body .dash-kpi.tone-green {
    background: linear-gradient(180deg, #dcfce7 0%, #f0fdf4 100%);
    border: 1px solid #bbf7d0;
}

html.admin-theme-light body.admin-body .dash-kpi.tone-pink {
    background: linear-gradient(180deg, #fce7f3 0%, #fdf2f8 100%);
    border: 1px solid #fbcfe8;
}

html.admin-theme-light body.admin-body .dash-kpi.tone-purple {
    background: linear-gradient(180deg, #ede9fe 0%, #f5f3ff 100%);
    border: 1px solid #ddd6fe;
}

html.admin-theme-light body.admin-body .dash-kpi.tone-orange {
    background: linear-gradient(180deg, #ffedd5 0%, #fff7ed 100%);
    border: 1px solid #fed7aa;
}

html.admin-theme-light body.admin-body .dash-kpi-icon {
    background: rgba(15, 23, 42, 0.06);
}

/* Modals & cards */
html.admin-theme-light body.admin-body .auto-card,
html.admin-theme-light body.admin-body .partner-self-cash-card,
html.admin-theme-light body.admin-body .partner-inquiry-compose-card {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

html.admin-theme-light body.admin-body .auto-card-header.sticky-header,
html.admin-theme-light body.admin-body #partner-self-cash-overlay .auto-card-head,
html.admin-theme-light body.admin-body #partner-inquiry-compose-overlay .auto-card-head {
    border-bottom-color: var(--line);
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body .auto-card-title {
    color: var(--text);
}

html.admin-theme-light body.admin-body .auto-card-close {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .auto-card-close:hover {
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body .auto-card-footer {
    border-top-color: var(--line);
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body .auto-card-btn {
    border-color: var(--line);
    color: var(--text);
    background: var(--panel);
}

html.admin-theme-light body.admin-body .auto-card-btn:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

html.admin-theme-light body.admin-body .auto-card-btn-primary {
    border-color: #2563eb;
    color: #2563eb;
    background: #fff;
}

html.admin-theme-light body.admin-body .auto-card-btn-primary:hover {
    border-color: #1d4ed8;
    color: #fff;
    background: #2563eb;
}

/* AL 지급/회수 · 파트너 auto-dialog (partner-edit-overlay) */
html.admin-theme-light body.admin-body .partner-edit-overlay.notice-overlay {
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(4px);
}

html.admin-theme-light body.admin-body .partner-edit-overlay .auto-card {
    border-color: var(--line);
    background: var(--panel);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.04),
        0 16px 48px rgba(15, 23, 42, 0.14);
}

html.admin-theme-light body.admin-body .partner-edit-overlay .auto-card-header.sticky-header {
    border-bottom-color: var(--line);
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body .partner-edit-overlay .auto-card-title {
    color: var(--text);
}

html.admin-theme-light body.admin-body .partner-edit-overlay .auto-card-close {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .partner-edit-overlay .auto-card-close:hover {
    background: #e2e8f0;
    color: var(--text);
}

html.admin-theme-light body.admin-body .partner-edit-overlay .auto-card-divider {
    border-top-color: var(--line);
    box-shadow: none;
}

html.admin-theme-light body.admin-body .partner-edit-overlay .auto-card-footer {
    border-top-color: var(--line);
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body .partner-edit-overlay .auto-field-label {
    color: #64748b;
}

html.admin-theme-light body.admin-body .partner-edit-overlay .auto-field-input,
html.admin-theme-light body.admin-body .partner-edit-overlay .auto-field-select {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
}

html.admin-theme-light body.admin-body .partner-edit-overlay .auto-field-input.is-readonly {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #64748b;
}

html.admin-theme-light body.admin-body .partner-edit-overlay .auto-field-type.is-readonly {
    color: #1e293b;
}

html.admin-theme-light body.admin-body .partner-edit-overlay .auto-field-type span:not(.partner-type-badge) {
    color: #1e293b;
    font-weight: 600;
}

html.admin-theme-light body.admin-body .partner-edit-overlay .auto-field-type .partner-type-badge {
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.14);
}

html.admin-theme-light body.admin-body .partner-edit-overlay .auto-field-input:focus,
html.admin-theme-light body.admin-body .partner-edit-overlay .auto-field-select:focus {
    border-color: #315dff;
    box-shadow: 0 0 0 2px rgba(49, 93, 255, 0.16);
}

html.admin-theme-light body.admin-body .partner-edit-overlay .auto-field-select {
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html.admin-theme-light body.admin-body .partner-edit-overlay .al-deposit-amount-btn {
    border-color: var(--line);
    background: #fff;
    color: #315dff;
}

html.admin-theme-light body.admin-body .partner-edit-overlay .al-deposit-amount-btn-reset {
    color: #dc2626;
}

html.admin-theme-light body.admin-body .partner-edit-overlay .al-withdraw-full-amount {
    color: #059669;
}

html.admin-theme-light body.admin-body .partner-edit-overlay .al-deposit-amount-btn:hover {
    border-color: #315dff;
    background: #eff6ff;
    filter: none;
}

html.admin-theme-light body.admin-body .al-transfer-modal-form .al-transfer-partner-id-trigger {
    border-color: rgba(49, 93, 255, 0.45);
    background: rgba(49, 93, 255, 0.08);
}

html.admin-theme-light body.admin-body .al-transfer-modal-form .al-transfer-partner-id-trigger .members-affiliation-label {
    color: #0f172a;
}

html.admin-theme-light body.admin-body .al-transfer-modal-form .al-transfer-member-id-trigger.node-content {
    border-bottom-color: #cbd5e1;
}

html.admin-theme-light body.admin-body .al-transfer-modal-form .al-transfer-member-id-trigger .node-label {
    color: #0f172a;
}

html.admin-theme-light body.admin-body #al-deposit-overlay .al-deposit-amount-btn,
html.admin-theme-light body.admin-body #al-withdraw-overlay .al-deposit-amount-btn {
    border-width: 2px;
}

html.admin-theme-light body.admin-body #al-deposit-overlay .auto-card-btn-primary,
html.admin-theme-light body.admin-body #al-withdraw-overlay .auto-card-btn-primary,
html.admin-theme-light body.admin-body #member-al-deposit-overlay .auto-card-btn-primary,
html.admin-theme-light body.admin-body #member-al-withdraw-overlay .auto-card-btn-primary {
    border-color: #315dff;
    background: #315dff;
    color: #fff;
    font-weight: 700;
}

html.admin-theme-light body.admin-body #al-deposit-overlay .auto-card-btn-primary:hover,
html.admin-theme-light body.admin-body #al-withdraw-overlay .auto-card-btn-primary:hover,
html.admin-theme-light body.admin-body #member-al-deposit-overlay .auto-card-btn-primary:hover,
html.admin-theme-light body.admin-body #member-al-withdraw-overlay .auto-card-btn-primary:hover {
    border-color: #4a72ff;
    background: #4a72ff;
    color: #fff;
    filter: none;
}

html.admin-theme-light body.admin-body #al-deposit-overlay .auto-card-btn-cancel,
html.admin-theme-light body.admin-body #al-withdraw-overlay .auto-card-btn-cancel,
html.admin-theme-light body.admin-body #member-al-deposit-overlay .auto-card-btn-cancel,
html.admin-theme-light body.admin-body #member-al-withdraw-overlay .auto-card-btn-cancel {
    border-color: #cbd5e1;
    background: #fff;
    color: #475569;
}

html.admin-theme-light body.admin-body #al-deposit-overlay .auto-card-btn-cancel:hover,
html.admin-theme-light body.admin-body #al-withdraw-overlay .auto-card-btn-cancel:hover,
html.admin-theme-light body.admin-body #member-al-deposit-overlay .auto-card-btn-cancel:hover,
html.admin-theme-light body.admin-body #member-al-withdraw-overlay .auto-card-btn-cancel:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
    color: #1e293b;
    filter: none;
}

html.admin-theme-light body.admin-body .partner-al-history-panel {
    border-color: var(--line);
    background: #f8fafc;
}

html.admin-theme-light body.admin-body .partner-al-history-title {
    color: var(--text);
}

html.admin-theme-light body.admin-body .partner-al-history-table thead th {
    border-bottom-color: var(--line);
    background: #eef2f7;
    color: #64748b;
}

html.admin-theme-light body.admin-body .partner-al-history-table tbody td {
    border-bottom-color: #e2e8f0;
    color: var(--text);
}

html.admin-theme-light body.admin-body .partner-al-history-table .is-date {
    color: #64748b;
}

html.admin-theme-light body.admin-body .partner-al-history-kind.is-deposit {
    background: rgba(49, 93, 255, 0.12);
    color: #1d4ed8;
}

html.admin-theme-light body.admin-body .partner-al-history-kind.is-withdraw {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

html.admin-theme-light body.admin-body .partner-al-history-filter-btn {
    border-color: var(--line);
    background: #fff;
    color: #64748b;
}

html.admin-theme-light body.admin-body .partner-al-history-filter-btn:hover {
    border-color: #315dff;
    color: #315dff;
}

html.admin-theme-light body.admin-body .partner-al-history-filter-btn.is-active {
    border-color: #315dff;
    background: rgba(49, 93, 255, 0.1);
    color: #1d4ed8;
}

html.admin-theme-light body.admin-body .partner-al-history-filter-btn[data-partner-al-history-filter="deposit"] {
    border-color: rgba(49, 93, 255, 0.35);
    background: rgba(49, 93, 255, 0.12);
    color: #1d4ed8;
}

html.admin-theme-light body.admin-body .partner-al-history-filter-btn[data-partner-al-history-filter="deposit"]:hover,
html.admin-theme-light body.admin-body .partner-al-history-filter-btn[data-partner-al-history-filter="deposit"].is-active {
    border-color: rgba(49, 93, 255, 0.5);
    background: rgba(49, 93, 255, 0.16);
    color: #1e40af;
}

html.admin-theme-light body.admin-body .partner-al-history-filter-btn[data-partner-al-history-filter="withdraw"] {
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

html.admin-theme-light body.admin-body .partner-al-history-filter-btn[data-partner-al-history-filter="withdraw"]:hover,
html.admin-theme-light body.admin-body .partner-al-history-filter-btn[data-partner-al-history-filter="withdraw"].is-active {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.2);
    color: #065f46;
}

html.admin-theme-light body.admin-body .partner-al-history-total {
    border-color: var(--line);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

html.admin-theme-light body.admin-body .partner-al-history-total.is-deposit {
    background: rgba(49, 93, 255, 0.1);
    border-color: rgba(49, 93, 255, 0.28);
}

html.admin-theme-light body.admin-body .partner-al-history-total.is-deposit .partner-al-history-total-label {
    color: #1d4ed8;
}

html.admin-theme-light body.admin-body .partner-al-history-total.is-withdraw {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.28);
}

html.admin-theme-light body.admin-body .partner-al-history-total.is-withdraw .partner-al-history-total-label {
    color: #047857;
}

html.admin-theme-light body.admin-body .partner-al-history-total-value {
    color: var(--text);
}

html.admin-theme-light body.admin-body .partner-al-history-total.is-deposit .partner-al-history-total-value {
    color: #1d4ed8;
}

html.admin-theme-light body.admin-body .partner-al-history-total.is-withdraw .partner-al-history-total-value {
    color: #047857;
}

html.admin-theme-light body.admin-body .partner-al-history-table td.is-num.is-deposit {
    color: #1d4ed8;
}

html.admin-theme-light body.admin-body .partner-al-history-table td.is-num.is-withdraw {
    color: #047857;
}

html.admin-theme-light body.admin-body .partner-al-history-table th.is-balance-before,
html.admin-theme-light body.admin-body .partner-al-history-table td.is-balance-before {
    color: #94a3b8;
    font-weight: 500;
}

html.admin-theme-light body.admin-body .partner-al-history-table thead th.is-balance-before {
    color: #94a3b8;
}

html.admin-theme-light body.admin-body .partner-al-history-date-abs {
    color: #64748b;
}

html.admin-theme-light body.admin-body .partner-al-history-date-rel {
    color: #94a3b8;
}

html.admin-theme-light body.admin-body .partner-al-history-page-btn {
    border-color: var(--line);
    background: #fff;
    color: #475569;
}

html.admin-theme-light body.admin-body .partner-al-history-page-btn:hover:not(:disabled) {
    border-color: #315dff;
    color: #315dff;
}

html.admin-theme-light body.admin-body .partner-al-history-page-summary,
html.admin-theme-light body.admin-body .partner-al-history-empty,
html.admin-theme-light body.admin-body .partner-al-history-loading {
    color: #64748b;
}

/* Partner self-service: 충전 / 환전 / 1:1 문의 작성 */
html.admin-theme-light body.admin-body #partner-self-deposit-overlay.notice-overlay,
html.admin-theme-light body.admin-body #partner-self-cash-overlay.notice-overlay,
html.admin-theme-light body.admin-body #partner-inquiry-compose-overlay.notice-overlay {
    background: rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(2px);
}

html.admin-theme-light body.admin-body .partner-deposit-dialog {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
    color: var(--text);
    --partner-deposit-history-bg: var(--panel-soft);
    --partner-deposit-history-border: var(--line);
    --partner-deposit-history-title: var(--text);
    --partner-deposit-history-empty: var(--muted);
    --partner-deposit-history-table-border: var(--line);
    --partner-deposit-history-table-bg: #fff;
    --partner-deposit-history-row-border: var(--line);
    --partner-deposit-history-row-bg: #fff;
    --partner-deposit-history-row-bg-alt: #f8fafc;
    --partner-deposit-history-cell-border: var(--line);
    --partner-deposit-history-amount: #0f172a;
    --partner-deposit-history-date: #475569;
    --partner-deposit-history-status-bg: #f1f5f9;
    --partner-deposit-history-status-text: #64748b;
}

html.admin-theme-light body.admin-body .partner-deposit-history-item[data-status="pending"] .partner-deposit-history-status {
    background: #fef9c3;
    color: #a16207;
}

html.admin-theme-light body.admin-body .partner-deposit-history-item[data-status="approved"] .partner-deposit-history-status {
    background: transparent;
    color: var(--muted);
}

html.admin-theme-light body.admin-body .partner-deposit-history-item[data-status="rejected"] .partner-deposit-history-status,
html.admin-theme-light body.admin-body .partner-deposit-history-item[data-status="cancelled"] .partner-deposit-history-status {
    background: #e2e8f0;
    color: #475569;
    border: 1px solid #cbd5e1;
}

html.admin-theme-light body.admin-body .partner-deposit-history-cancel-btn {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #dc2626;
}

html.admin-theme-light body.admin-body .partner-deposit-history-cancel-btn:hover:not(:disabled) {
    border-color: #f87171;
    background: #fee2e2;
    color: #b91c1c;
}

html.admin-theme-light body.admin-body .partner-deposit-history-summary-item {
    border-color: var(--line);
    background: #f8fafc;
}

html.admin-theme-light body.admin-body .partner-deposit-history-summary-label {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .partner-deposit-history-summary-item.is-deposit .partner-deposit-history-summary-value {
    color: #15803d;
}

html.admin-theme-light body.admin-body .partner-deposit-history-summary-item.is-withdraw .partner-deposit-history-summary-value {
    color: #c2410c;
}

html.admin-theme-light body.admin-body .partner-deposit-history-item[data-type="deposit"] .partner-deposit-history-type,
html.admin-theme-light body.admin-body .partner-deposit-history-item[data-type="deposit"] .partner-deposit-history-amount {
    color: #15803d;
}

html.admin-theme-light body.admin-body .partner-deposit-history-item[data-type="withdraw"] .partner-deposit-history-type,
html.admin-theme-light body.admin-body .partner-deposit-history-item[data-type="withdraw"] .partner-deposit-history-amount {
    color: #c2410c;
}

html.admin-theme-light body.admin-body .partner-deposit-history-pagination {
    border-top-color: var(--line);
}

html.admin-theme-light body.admin-body .partner-deposit-history-page-label {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .partner-deposit-history-page-btn {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
}

html.admin-theme-light body.admin-body .partner-deposit-history-page-btn:hover:not(:disabled) {
    border-color: #fdba74;
    background: #fff7ed;
    color: #c2410c;
}

html.admin-theme-light body.admin-body .partner-deposit-dialog-title {
    color: #1e293b;
}

html.admin-theme-light body.admin-body .partner-deposit-account-card {
    border-color: var(--line);
    background: #f8fafc;
}

html.admin-theme-light body.admin-body .partner-deposit-section-title {
    color: var(--text);
}

html.admin-theme-light body.admin-body .partner-deposit-account-row dt {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .partner-deposit-account-row dd {
    color: var(--text);
}

html.admin-theme-light body.admin-body .partner-deposit-min-label {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .partner-deposit-min-label strong {
    color: #d97706;
}

html.admin-theme-light body.admin-body .partner-self-cash-label {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .partner-self-cash-balance-banner {
    border-color: var(--line);
    background: #f8fafc;
}

html.admin-theme-light body.admin-body .partner-self-cash-balance-label {
    color: var(--text);
}

html.admin-theme-light body.admin-body .partner-self-cash-balance-amount,
html.admin-theme-light body.admin-body .partner-self-cash-balance-unit {
    color: #ea580c;
    text-shadow: none;
}

html.admin-theme-light body.admin-body .partner-self-cash-input,
html.admin-theme-light body.admin-body .partner-self-cash-textarea {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body .partner-self-cash-input::placeholder,
html.admin-theme-light body.admin-body .partner-self-cash-textarea::placeholder {
    color: #94a3b8;
}

html.admin-theme-light body.admin-body .partner-self-cash-input:focus,
html.admin-theme-light body.admin-body .partner-self-cash-textarea:focus {
    border-color: #6e88ce;
}

html.admin-theme-light body.admin-body .partner-self-cash-input.is-readonly,
html.admin-theme-light body.admin-body .partner-self-cash-input[readonly] {
    background: #f1f5f9;
    color: #475569;
}

html.admin-theme-light body.admin-body #partner-deposit-depositor.is-deposit-depositor-missing-blink {
    background: #fef2f2;
    border-color: #fca5a5;
}

@keyframes partner-deposit-depositor-missing-blink-light {
    0%,
    100% {
        opacity: 1;
        color: #dc2626;
    }

    50% {
        opacity: 0.45;
        color: #ef4444;
    }
}

html.admin-theme-light body.admin-body #partner-deposit-depositor.is-deposit-depositor-missing-blink {
    animation-name: partner-deposit-depositor-missing-blink-light;
}

html.admin-theme-light body.admin-body #partner-withdraw-display-account.is-partner-account-missing-blink {
    color: #dc2626;
    animation: partner-deposit-depositor-missing-blink-light 1.1s ease-in-out infinite;
}

html.admin-theme-light body.admin-body #partner-self-cash-overlay .auto-card-body,
html.admin-theme-light body.admin-body #partner-inquiry-compose-overlay .auto-card-body,
html.admin-theme-light body.admin-body .partner-self-cash-body {
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light body.admin-body #partner-self-cash-overlay .partner-deposit-dialog-foot,
html.admin-theme-light body.admin-body #partner-inquiry-compose-overlay .auto-card-foot {
    background: var(--panel);
}

html.admin-theme-light body.admin-body #partner-self-deposit-overlay .partner-deposit-dialog-foot .auto-card-btn-cancel,
html.admin-theme-light body.admin-body #partner-self-cash-overlay .partner-deposit-dialog-foot .auto-card-btn-cancel,
html.admin-theme-light body.admin-body #partner-inquiry-compose-overlay .auto-card-foot .auto-card-btn-cancel {
    border-color: var(--line);
    background: var(--panel-soft);
    color: #334155;
}

html.admin-theme-light body.admin-body #partner-inquiry-compose-overlay .auto-card-foot .auto-card-btn-primary {
    border: 0;
    background: #137fec;
    color: #fff;
}

html.admin-theme-light body.admin-body #partner-inquiry-compose-overlay .auto-card-foot .auto-card-btn-primary:hover {
    background: #0f6fd6;
    color: #fff;
}

html.admin-theme-light body.admin-body #partner-inquiry-compose-overlay .auto-card-head .partner-modal-close,
html.admin-theme-light body.admin-body #partner-self-cash-overlay .auto-card-head .partner-modal-close,
html.admin-theme-light body.admin-body .partner-deposit-dialog .partner-modal-close {
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: #64748b;
}

html.admin-theme-light body.admin-body #partner-inquiry-compose-overlay .auto-card-head .partner-modal-close:hover,
html.admin-theme-light body.admin-body #partner-self-cash-overlay .auto-card-head .partner-modal-close:hover,
html.admin-theme-light body.admin-body .partner-deposit-dialog .partner-modal-close:hover {
    background: #f1f5f9;
    color: var(--text);
}

html.admin-theme-light body.admin-body .partner-deposit-dialog .partner-modal-refresh {
    border: 0;
    background: #16a34a;
    color: #fff;
}

html.admin-theme-light body.admin-body .partner-deposit-dialog .partner-modal-refresh:hover:not(:disabled) {
    background: #15803d;
    color: #fff;
}

/* Betting list detail modal */
html.admin-theme-light body.admin-body .betting-detail-card > .inquiry-answer-header {
    border-bottom: 1px solid var(--line);
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body .betting-detail-card .auto-card-footer {
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body .betting-detail-card .auto-card-btn-primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

html.admin-theme-light body.admin-body .betting-detail-card .auto-card-btn-primary:hover {
    background: #1d4ed8;
    color: #fff;
}

html.admin-theme-light body.admin-body .betting-detail-body {
    color: var(--text);
}

html.admin-theme-light body.admin-body .betting-detail-note {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .betting-detail-tabs {
    border-bottom-color: var(--line);
}

html.admin-theme-light body.admin-body .betting-detail-tab {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .betting-detail-tab.is-active {
    color: #1d4ed8;
    border-bottom-color: #2563eb;
}

html.admin-theme-light body.admin-body .betting-detail-section h3 {
    color: var(--text);
}

html.admin-theme-light body.admin-body .betting-detail-table-wrap {
    border-color: var(--line);
}

html.admin-theme-light body.admin-body .betting-detail-table th,
html.admin-theme-light body.admin-body .betting-detail-table td {
    border-bottom-color: var(--line);
    color: var(--text);
}

html.admin-theme-light body.admin-body .betting-detail-table th {
    background: #eef2f8;
    color: #92400e;
}

html.admin-theme-light body.admin-body .betting-detail-table td {
    background: var(--panel);
}

html.admin-theme-light body.admin-body .betting-detail-game-card {
    border-color: var(--line);
    background: var(--panel);
}

html.admin-theme-light body.admin-body .betting-detail-game-card-header {
    border-bottom-color: var(--line);
    background: #eef2f8;
    color: var(--text);
}

html.admin-theme-light body.admin-body .betting-detail-baccarat {
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body .betting-detail-side p {
    color: var(--text);
}

html.admin-theme-light body.admin-body .betting-detail-info-table {
    border-color: var(--line);
}

html.admin-theme-light body.admin-body .betting-detail-info-table th,
html.admin-theme-light body.admin-body .betting-detail-info-table td {
    border-bottom-color: var(--line);
}

html.admin-theme-light body.admin-body .betting-detail-info-table th {
    color: #92400e;
    background: #eef2f8;
}

html.admin-theme-light body.admin-body .betting-detail-info-table td {
    color: var(--text);
    background: var(--panel);
}

html.admin-theme-light body.admin-body .betting-detail-json {
    border-color: var(--line);
    background: #f8fafc;
    color: #334155;
}

html.admin-theme-light body.admin-body #user-detail-inquiry-detail-overlay .user-detail-inquiry-detail-block,
html.admin-theme-light body.admin-body #user-detail-memo-detail-overlay .user-detail-inquiry-detail-block {
    border-color: var(--line);
}

html.admin-theme-light body.admin-body #user-detail-inquiry-detail-overlay .user-detail-inquiry-detail-block--question,
html.admin-theme-light body.admin-body #user-detail-memo-detail-overlay .user-detail-inquiry-detail-block--question {
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body #user-detail-inquiry-detail-overlay .user-detail-inquiry-detail-title-text,
html.admin-theme-light body.admin-body #user-detail-memo-detail-overlay .user-detail-inquiry-detail-title-text,
html.admin-theme-light body.admin-body #user-detail-inquiry-detail-overlay .user-detail-inquiry-detail-question-content,
html.admin-theme-light body.admin-body #user-detail-memo-detail-overlay .user-detail-inquiry-detail-question-content {
    border-color: var(--line);
    background: var(--panel);
    color: var(--text);
}

/* Member / partner detail */
html.admin-theme-light body.admin-body .user-management-detail-summary {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

html.admin-theme-light body.admin-body .user-management-detail-summary-label {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .user-management-detail-summary-value {
    color: var(--text);
}

html.admin-theme-light body.admin-body .user-management-detail-tab {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--muted);
}

html.admin-theme-light body.admin-body .user-management-detail-tab:hover {
    color: var(--text);
    border-color: #94a3b8;
}

/* User / partner detail — info tab panels */
html.admin-theme-light body.admin-body .user-detail-expansion-panel {
    background: var(--panel);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

html.admin-theme-light body.admin-body .user-detail-expansion-body {
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light body.admin-body .user-detail-basic-field-group {
    border-color: var(--line);
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body .user-detail-joined-at-composite .user-detail-joined-at-label {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .user-detail-joined-at-composite .user-detail-joined-at-value {
    color: var(--text);
}

html.admin-theme-light body.admin-body .user-detail-field-label,
html.admin-theme-light body.admin-body .user-detail-field-hint {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .user-detail-duplicate-login-label,
html.admin-theme-light body.admin-body .user-detail-duplicate-login-label span {
    color: #0f172a;
    font-weight: 700;
}

html.admin-theme-light body.admin-body .user-detail-duplicate-login-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

html.admin-theme-light body.admin-body .user-detail-field-input,
html.admin-theme-light body.admin-body .user-detail-textarea,
html.admin-theme-light body.admin-body .user-detail-field select.user-detail-field-input {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body .user-detail-field-input.is-readonly {
    background: #f1f5f9;
    color: #475569;
}

html.admin-theme-light body.admin-body .user-detail-field-input:focus {
    border-color: #6e88ce;
}

html.admin-theme-light body.admin-body .user-detail-color-chip {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body .user-detail-color-option input:checked + .user-detail-color-chip {
    border-color: #4f6fbf;
    box-shadow: inset 0 0 0 1px #4f6fbf;
}

html.admin-theme-light body.admin-body .user-detail-rate-table th,
html.admin-theme-light body.admin-body .user-detail-rate-table td {
    border-color: var(--line);
}

html.admin-theme-light body.admin-body .user-detail-rate-table thead th,
html.admin-theme-light body.admin-body .user-detail-rate-table tbody th {
    background: #eef2f8;
    color: #334155;
}

html.admin-theme-light body.admin-body .user-detail-rate-table td {
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light body.admin-body .user-detail-rate-max {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .user-detail-rate-field .partner-rate-bounds.user-detail-rate-bounds {
    border-color: #fcd34d;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    box-shadow: 0 1px 4px rgba(180, 83, 9, 0.12);
}

html.admin-theme-light body.admin-body .user-detail-permission-badge.is-off,
html.admin-theme-light body.admin-body .user-detail-block-status-badge.is-off {
    color: #dc2626;
}

html.admin-theme-light body.admin-body .user-detail-permission-badge.is-on,
html.admin-theme-light body.admin-body .user-detail-block-status-badge.is-on {
    color: #059669;
}

html.admin-theme-light body.admin-body .user-detail-action-btn:not(.user-detail-action-btn-primary):not(.user-detail-action-btn-success):not(.user-detail-action-btn-danger) {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body .user-detail-action-btn-danger {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #b91c1c;
}

html.admin-theme-light body.admin-body .user-detail-game-block {
    border-color: var(--line);
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body .user-detail-game-heading {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .user-detail-game-current {
    color: var(--text);
}

html.admin-theme-light body.admin-body .user-management-detail-section-title,
html.admin-theme-light body.admin-body .user-detail-login-log-title {
    color: var(--text);
}

html.admin-theme-light body.admin-body .user-detail-inquiry-type-filter {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body .user-detail-inquiry-type-filter.is-active {
    border-color: #137fec;
    background: rgba(19, 127, 236, 0.12);
    color: #1d4ed8;
}

/* User detail — memo / inquiry tab tables */
html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] tbody tr.user-detail-memo-row-clickable > td,
html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] tbody tr.user-detail-inquiry-row-clickable > td {
    background-color: var(--panel);
    color: var(--text);
}

html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] tbody tr.user-detail-memo-row-clickable:hover > td,
html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] tbody tr.user-detail-memo-row-clickable:focus-within > td,
html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] tbody tr.user-detail-inquiry-row-clickable:hover > td,
html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] tbody tr.user-detail-inquiry-row-clickable:focus-within > td {
    background-color: rgba(37, 99, 235, 0.06);
}

html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] tbody tr.user-detail-memo-row-unread > td,
html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] tbody tr.user-detail-inquiry-row-pending > td {
    background-color: #fffbeb;
    color: var(--text);
}

html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] tbody tr.user-detail-memo-row-unread:hover > td,
html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] tbody tr.user-detail-memo-row-unread:focus-within > td,
html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] tbody tr.user-detail-inquiry-row-pending:hover > td,
html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] tbody tr.user-detail-inquiry-row-pending:focus-within > td {
    background-color: #fef3c7;
}

html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] td[data-col="title"],
html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] td[data-col="content"],
html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] td[data-col="title"],
html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] td[data-col="content"],
html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] td[data-col="answer"] {
    color: var(--text);
}

html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] th[data-col="before"],
html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td[data-col="before"] {
    color: #94a3b8;
}

html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] th[data-col="before"] .partners-table-th-label,
html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] th[data-col="before"] .user-detail-tab-th-label {
    color: #64748b;
}

html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] th[data-col="delta"] {
    color: #0f172a;
}

html.admin-theme-light body.admin-body .user-management-detail-page.is-money-log-standalone .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] thead th {
    background-color: #eef2f8;
    color: #475569;
    box-shadow: 0 1px 0 var(--line);
}

html.admin-theme-light body.admin-body .user-management-detail-page.is-money-log-standalone #user-detail-money-log-table-footer {
    background: var(--panel);
    border-top-color: var(--line);
}

html.admin-theme-light body.admin-body .user-management-detail-page.is-money-log-standalone .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] .partners-table-login-id-head .partners-table-th-label,
html.admin-theme-light body.admin-body .user-management-detail-page.is-money-log-standalone .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] thead th[data-col="before"],
html.admin-theme-light body.admin-body .user-management-detail-page.is-money-log-standalone .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] thead th[data-col="delta"] {
    color: #475569;
}

html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td[data-col="delta"] .user-detail-money-log-delta.is-plus {
    color: #059669;
}

html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td[data-col="delta"] .user-detail-money-log-delta.is-minus {
    color: #dc2626;
}

html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td[data-col="delta"] .user-detail-money-log-delta.is-zero {
    color: #64748b;
}

html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td.is-money-log-viewer-actor {
    color: #0f172a;
    font-weight: 800;
}

html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] .money-log-affiliation-chip {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] .money-log-affiliation-chip.money-log-affiliation-head-text {
    border-color: transparent;
    background: transparent;
}

html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td.is-money-log-viewer-actor .money-log-affiliation-chip:not(.money-log-affiliation-head-text) {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.12);
}

html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td.is-money-log-viewer-actor[data-col="to"] .money-log-affiliation-chip:not(.money-log-affiliation-head-text) {
    border-color: #d97706;
    background: rgba(245, 158, 11, 0.14);
}

html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td.is-money-log-viewer-actor .money-log-affiliation-chip.money-log-affiliation-head-text {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.12);
}

html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-money-log-hidden-columns"] td.is-money-log-viewer-actor[data-col="to"] .money-log-affiliation-chip.money-log-affiliation-head-text {
    border-color: #d97706;
    background: rgba(245, 158, 11, 0.14);
}

html.admin-theme-light body.admin-body button.table-text-btn.inquiry-row-delete,
html.admin-theme-light body.admin-body .inquiry-row-delete {
    border-width: 2px;
    border-style: solid;
    border-color: #e11d48;
    background: #fff1f2;
    color: #be123c;
}

html.admin-theme-light body.admin-body button.table-text-btn.inquiry-row-delete:hover,
html.admin-theme-light body.admin-body .inquiry-row-delete:hover {
    background: #ffe4e6;
    color: #9f1239;
    filter: none;
    text-decoration: none !important;
}

html.admin-theme-light body.admin-body button.table-text-btn.inquiry-row-answer,
html.admin-theme-light body.admin-body .inquiry-row-answer {
    border-width: 2px;
    border-style: solid;
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

html.admin-theme-light body.admin-body button.table-text-btn.inquiry-row-answer:hover,
html.admin-theme-light body.admin-body .inquiry-row-answer:hover {
    background: #dbeafe;
    color: #1e40af;
    filter: none;
    text-decoration: none !important;
}

html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] .gsb-inquiry-status.is-pending,
html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] .gsb-inquiry-status.is-pending {
    background: #fef3c7;
    color: #b45309;
}

html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-memo-hidden-columns"] .gsb-inquiry-status.is-complete,
html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] .gsb-inquiry-status.is-complete {
    background: #dcfce7;
    color: #15803d;
}

html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] .gsb-inquiry-type--general {
    background: #f3e8ff;
    color: #7e22ce;
}

html.admin-theme-light body.admin-body .user-detail-tab-table[data-storage-key="user-detail-inquiry-hidden-columns"] .gsb-inquiry-type--deposit_account {
    background: #ffedd5;
    color: #c2410c;
}

html.admin-theme-light body.admin-body .user-detail-tab-table .user-detail-tab-total-row td {
    background: #eef2f8;
    color: #334155;
}

html.admin-theme-light body.admin-body .member-detail-info-item {
    border-color: var(--line);
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body .member-detail-info-label {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .member-detail-info-value {
    color: var(--text);
}

/* Basic settings page */
html.admin-theme-light body.admin-body .basic-settings-card-title {
    color: var(--text);
}

html.admin-theme-light body.admin-body .basic-settings-label,
html.admin-theme-light body.admin-body .basic-settings-desc,
html.admin-theme-light body.admin-body .basic-settings-hint,
html.admin-theme-light body.admin-body .basic-settings-alert-desc {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .basic-settings-field + .basic-settings-field {
    border-top-color: var(--line);
}

html.admin-theme-light body.admin-body .basic-settings-gongbet-panel.is-rolling-result {
    border-color: rgba(147, 51, 234, 0.4);
}

html.admin-theme-light body.admin-body .basic-settings-radio {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body .basic-settings-radio:has(input:checked) {
    border-color: rgba(14, 165, 233, 0.55);
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}

html.admin-theme-light body.admin-body .basic-settings-gongbet-panel {
    border-color: var(--line);
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body .basic-settings-idle-logout-grid .basic-settings-idle-logout-panel {
    border-color: var(--line);
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body .basic-settings-idle-logout-grid .basic-settings-idle-logout-panel + .basic-settings-idle-logout-panel {
    border-top-color: var(--line);
}

html.admin-theme-light body.admin-body .basic-settings-gongbet-panel.is-casino {
    border-color: rgba(249, 115, 22, 0.45);
    background: linear-gradient(180deg, rgba(255, 237, 213, 0.65) 0%, var(--panel-soft) 100%);
}

html.admin-theme-light body.admin-body .basic-settings-gongbet-panel.is-slot {
    border-color: rgba(14, 165, 233, 0.45);
    background: linear-gradient(180deg, rgba(224, 242, 254, 0.75) 0%, var(--panel-soft) 100%);
}

html.admin-theme-light body.admin-body .basic-settings-gongbet-kind {
    color: var(--text);
}

html.admin-theme-light body.admin-body .betting-gongbet-head-badge {
    border: 1px solid rgba(217, 119, 6, 0.5);
    background: rgba(251, 191, 36, 0.45);
    color: #92400e;
}

html.admin-theme-light body.admin-body .betting-gongbet-tag.is-rolling-only {
    color: #0369a1;
    background: rgba(56, 189, 248, 0.22);
    border-color: rgba(2, 132, 199, 0.45);
}

html.admin-theme-light body.admin-body .betting-gongbet-tag.is-round-all {
    color: #c2410c;
    background: rgba(251, 146, 60, 0.22);
    border-color: rgba(234, 88, 12, 0.45);
}

html.admin-theme-light body.admin-body .basic-settings-coin-panel {
    border-color: var(--line);
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body .basic-settings-coin-title {
    color: var(--text);
}

html.admin-theme-light body.admin-body .basic-settings-coin-select {
    border-color: var(--line);
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light body.admin-body .basic-settings-coin-select:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

html.admin-theme-light body.admin-body .basic-settings-coin-panel--slot-counts .basic-settings-coin-subrows {
    border-top-color: var(--line);
}

html.admin-theme-light body.admin-body .basic-settings-coin-subrow-title {
    color: var(--text);
}

html.admin-theme-light body.admin-body .basic-settings-input {
    border-color: var(--line);
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light body.admin-body .basic-settings-input:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

html.admin-theme-light body.admin-body .basic-settings-alert-card.is-casino {
    border-color: rgba(244, 114, 182, 0.45);
    background: linear-gradient(180deg, rgba(252, 231, 243, 0.85) 0%, var(--panel) 100%);
}

html.admin-theme-light body.admin-body .basic-settings-alert-card.is-casino .basic-settings-card-title {
    color: #9d174d;
}

html.admin-theme-light body.admin-body .basic-settings-reclaim-check {
    color: #334155;
}

html.admin-theme-light body.admin-body .basic-settings-alert-card.is-slot {
    border-color: rgba(59, 130, 246, 0.45);
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.85) 0%, var(--panel) 100%);
}

html.admin-theme-light body.admin-body .basic-settings-alert-card.is-slot .basic-settings-card-title {
    color: #1e40af;
}

html.admin-theme-light body.admin-body .basic-settings-telegram-card {
    border-color: rgba(14, 165, 233, 0.45);
}

html.admin-theme-light body.admin-body .basic-settings-telegram-grid .basic-settings-field.basic-settings-telegram-alert-types-field:not(:last-child) {
    border-bottom-color: var(--line);
}

html.admin-theme-light body.admin-body .basic-settings-telegram-test-btn {
    border-color: rgba(14, 165, 233, 0.45);
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
}

html.admin-theme-light body.admin-body .basic-settings-telegram-test-btn:hover:not(:disabled) {
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(14, 165, 233, 0.65);
}

html.admin-theme-light body.admin-body .basic-settings-telegram-find-btn {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body .basic-settings-telegram-find-btn:hover:not(:disabled) {
    background: #e2e8f0;
    border-color: #94a3b8;
}

html.admin-theme-light body.admin-body .basic-settings-telegram-alert-types-title {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .basic-settings-telegram-alert-type-row {
    color: var(--text);
}

html.admin-theme-light body.admin-body .basic-settings-telegram-enabled-toggle {
    color: var(--text);
}

html.admin-theme-light body.admin-body .basic-settings-country-tool-btn {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body .basic-settings-country-tool-btn:hover {
    border-color: #137fec;
    color: #137fec;
    background: rgba(19, 127, 236, 0.08);
}

html.admin-theme-light body.admin-body .basic-settings-country-check {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body .basic-settings-country-check:has(input:checked) {
    border-color: #137fec;
    background: rgba(19, 127, 236, 0.1);
}

html.admin-theme-light body.admin-body .basic-settings-country-check.is-locked {
    border-color: var(--line);
    background: #f1f5f9;
}

html.admin-theme-light body.admin-body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
html.admin-theme-light body.admin-body select,
html.admin-theme-light body.admin-body textarea {
    color-scheme: light;
}

/* Notice admin (공지) — table & toggles */
html.admin-theme-light body.admin-body .page-table-scroll .notice-admin-table {
    background: var(--panel);
}

html.admin-theme-light body.admin-body .table-switch-track {
    background: #cbd5e1;
}

html.admin-theme-light body.admin-body .table-switch input:checked + .table-switch-track {
    background: #315dff;
}

html.admin-theme-light body.admin-body .subordinate-site-block-switch input:checked + .table-switch-track {
    background: #2563eb;
}

html.admin-theme-light body.admin-body .subordinate-perm-grant-switch input:checked + .table-switch-track {
    background: #059669;
}

html.admin-theme-light body.admin-body .payout-control-page .payout-control-table-switch input:checked + .table-switch-track {
    background: #059669;
}

/* Deposit account settings */
html.admin-theme-light body.admin-body .deposit-account-section-title {
    color: var(--text);
}

html.admin-theme-light body.admin-body .deposit-account-input-wrap {
    border-color: var(--line);
    background: var(--panel);
}

html.admin-theme-light body.admin-body .deposit-account-input {
    color: var(--text);
}

html.admin-theme-light body.admin-body .deposit-account-reset {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body .deposit-account-reset:hover {
    border-color: #94a3b8;
    background: #e2e8f0;
}

/* Game provider list (GPL) */
html.admin-theme-light body.admin-body .gpl-card {
    background: var(--panel);
    border-color: var(--line);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

html.admin-theme-light body.admin-body .gpl-limit-select {
    background: var(--panel);
    border-color: var(--line);
    color: var(--text);
}

html.admin-theme-light body.admin-body .gpl-api-note {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .gpl-friends-refresh-btn {
    border: 1px solid #2563eb;
    background: #eff6ff;
    color: #1e40af;
}

html.admin-theme-light body.admin-body .gpl-friends-refresh-btn:hover:not(:disabled) {
    border-color: #1d4ed8;
    background: #dbeafe;
}

html.admin-theme-light body.admin-body .gpl-dialog-backdrop {
    background: rgba(15, 23, 42, 0.38);
}

html.admin-theme-light body.admin-body .gpl-dialog-card {
    background: var(--panel);
    border-color: var(--line);
    color: var(--text);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}

html.admin-theme-light body.admin-body .gpl-dialog-title {
    color: #0f172a;
}

html.admin-theme-light body.admin-body .gpl-dialog-message {
    color: #475569;
}

html.admin-theme-light body.admin-body .gpl-dialog-btn {
    background: #2563eb;
}

html.admin-theme-light body.admin-body .gpl-dialog-btn:hover {
    background: #1d4ed8;
}

html.admin-theme-light body.admin-body .gpl-category-stats {
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body .gpl-category-tab.is-active {
    background: rgba(14, 165, 233, 0.12);
}

html.admin-theme-light body.admin-body .gpl-switch-ui::before {
    background: #cbd5e1;
}

html.admin-theme-light body.admin-body .gpl-switch-label {
    color: var(--muted);
}

/* Payout control (지급 제어) */
html.admin-theme-light body.admin-body .payout-control-section-title {
    color: var(--text);
}

html.admin-theme-light body.admin-body .payout-control-section-title-on {
    color: #0284c7;
}

html.admin-theme-light body.admin-body .payout-control-section-title-off {
    color: #dc2626;
}

html.admin-theme-light body.admin-body .payout-control-section-title-signup {
    color: #059669;
}

html.admin-theme-light body.admin-body .payout-control-desc,
html.admin-theme-light body.admin-body .payout-control-type-caption,
html.admin-theme-light body.admin-body .payout-control-preview-empty {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .payout-control-radio {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body .payout-control-radio:has(input:checked) {
    border-color: rgba(14, 165, 233, 0.55);
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}

html.admin-theme-light body.admin-body .payout-control-type-row {
    border-color: var(--line);
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body .payout-control-type-label,
html.admin-theme-light body.admin-body .payout-control-individual-title {
    color: var(--text);
}

html.admin-theme-light body.admin-body .payout-control-preview-list li {
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(254, 226, 226, 0.65);
    color: #b91c1c;
}

html.admin-theme-light body.admin-body .payout-control-individual-table-footer {
    border-top-color: var(--line);
    background: var(--panel);
}

html.admin-theme-light body.admin-body .partners-data-table-per-page-label,
html.admin-theme-light body.admin-body .partners-data-table-page-summary {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .partners-data-table-per-page-select {
    border-color: var(--line);
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light body.admin-body .partners-data-table-pages .pagination-page {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body .partners-data-table-pages .pagination-page:hover {
    border-color: rgba(249, 115, 22, 0.55);
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
}

/* Aff filter / search (하부·회원·루징조정·공베팅 통계 등) */
html.admin-theme-light body.admin-body .subordinate-aff-id-search {
    border-color: var(--line);
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light body.admin-body .subordinate-aff-id-search::placeholder {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .subordinate-aff-select {
    border-color: var(--line);
    background-color: var(--panel);
    color: var(--text);
}

html.admin-theme-light body.admin-body .subordinate-aff-order-btn {
    border-color: var(--line);
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light body.admin-body .subordinate-aff-order-btn:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
    color: #0f172a;
}

html.admin-theme-light body.admin-body .sub-head-order-drag-handle .sub-head-order-hint {
    color: var(--muted);
}

html.admin-theme-light body.admin-body select.date-filter-search-select.subordinate-aff-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--panel);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) 50%;
    background-size: 12px 8px;
}

/* Loss adjust card (카지노/슬롯 공베팅·루징 차감) */
html.admin-theme-light body.admin-body .loss-adjust-card-date,
html.admin-theme-light body.admin-body .loss-adjust-card-per-page {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .loss-adjust-card-body .loss-adjust-card-aff-form {
    border-bottom-color: var(--line);
}

html.admin-theme-light body.admin-body .loss-adjust-card-per-page-select {
    border-color: var(--line);
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light body.admin-body .loss-adjust-count-input {
    border-color: var(--line);
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light body.admin-body .loss-adjust-count-input.is-active {
    border-color: rgba(245, 158, 11, 0.75);
    background: #fffbeb;
    color: #b45309;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25);
}

html.admin-theme-light body.admin-body .loss-adjust-card-table-footer {
    border-top-color: var(--line);
    background: var(--panel);
}

/* Send message (쪽지) */
html.admin-theme-light body.admin-body .send-message-card {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

html.admin-theme-light body.admin-body .send-message-card-title {
    border-bottom-color: var(--line);
}

html.admin-theme-light body.admin-body .memo-tree-panel,
html.admin-theme-light body.admin-body .send-message-recipient-card.memo-tree-panel {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

html.admin-theme-light body.admin-body .memo-tree-row {
    color: var(--text);
}

html.admin-theme-light body.admin-body .memo-tree-label {
    color: var(--text);
}

html.admin-theme-light body.admin-body .memo-tree-row:hover,
html.admin-theme-light body.admin-body .memo-tree-row.is-selected {
    background: rgba(37, 99, 235, 0.08);
}

html.admin-theme-light body.admin-body .send-message-field input,
html.admin-theme-light body.admin-body .send-message-field textarea,
html.admin-theme-light body.admin-body .send-message-editor-content {
    border-color: var(--line);
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light body.admin-body .send-message-table th {
    color: #475569;
}

html.admin-theme-light body.admin-body .send-message-table th,
html.admin-theme-light body.admin-body .send-message-table td {
    border-bottom-color: var(--line);
}

html.admin-theme-light body.admin-body .send-message-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.06);
}

html.admin-theme-light body.admin-body .send-message-title-cell {
    color: var(--text);
}

html.admin-theme-light body.admin-body .send-message-content-cell {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .send-message-recipient-item {
    border-color: var(--line);
    background: var(--panel-soft);
}

html.admin-theme-light body.admin-body .send-message-page {
    color: var(--text);
}

html.admin-theme-light body.admin-body .send-message-header h1 {
    color: #0f172a;
}

html.admin-theme-light body.admin-body .send-message-kicker {
    border-color: rgba(37, 99, 235, 0.28);
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

html.admin-theme-light body.admin-body .send-message-card-title strong {
    color: #0f172a;
}

html.admin-theme-light body.admin-body .send-message-card-title span {
    color: #2563eb;
}

html.admin-theme-light body.admin-body .send-message-card-title em {
    color: #b45309;
}

html.admin-theme-light body.admin-body .send-message-form .send-message-field > span {
    color: #475569;
}

html.admin-theme-light body.admin-body .send-message-title-field span {
    background: #fff;
    color: #64748b;
}

html.admin-theme-light body.admin-body .send-message-title-field input {
    border-color: var(--line);
    background: #fff;
    color: #0f172a;
}

html.admin-theme-light body.admin-body .send-message-title-field input:focus + span,
html.admin-theme-light body.admin-body .send-message-title-field input:not(:placeholder-shown) + span {
    background: #fff;
    color: #2563eb;
}

html.admin-theme-light body.admin-body .send-message-field input:focus,
html.admin-theme-light body.admin-body .send-message-field textarea:focus,
html.admin-theme-light body.admin-body .send-message-editor-content:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

html.admin-theme-light body.admin-body .send-message-check {
    color: #334155;
}

html.admin-theme-light body.admin-body .send-message-help {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .send-message-submit {
    border-color: #2563eb;
    background: #fff;
    color: #1d4ed8;
}

html.admin-theme-light body.admin-body .send-message-submit:hover {
    border-color: #3b82f6;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

html.admin-theme-light body.admin-body .send-message-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

html.admin-theme-light body.admin-body .send-message-recipient-item strong {
    color: #0f172a;
}

html.admin-theme-light body.admin-body .send-message-recipient-item:hover,
html.admin-theme-light body.admin-body .send-message-recipient-item.is-selected {
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(37, 99, 235, 0.08);
}

html.admin-theme-light body.admin-body .send-message-page .send-message-editor-container .editor-toolbar {
    border-color: var(--line);
    background: #f8fafc;
}

html.admin-theme-light body.admin-body .send-message-page .send-message-editor-container .editor-toolbar-group {
    background: #fff;
}

html.admin-theme-light body.admin-body .send-message-page .send-message-editor-container .editor-toolbar-btn {
    color: #64748b;
}

html.admin-theme-light body.admin-body .send-message-page .send-message-editor-container .editor-toolbar-btn:hover,
html.admin-theme-light body.admin-body .send-message-page .send-message-editor-container .editor-toolbar-btn.is-active {
    background: #e2e8f0;
    color: #0f172a;
}

html.admin-theme-light body.admin-body .send-message-page .send-message-editor-container .editor-toolbar-divider {
    background: var(--line);
}

html.admin-theme-light body.admin-body .send-message-page .send-message-editor-container .editor-color-menu {
    border-color: var(--line);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

html.admin-theme-light body.admin-body .send-message-page #memo-tree-section .node-content:hover {
    background: rgba(37, 99, 235, 0.06);
}

html.admin-theme-light body.admin-body .send-message-page .memo-tree-title {
    border-bottom-color: var(--line);
}

html.admin-theme-light body.admin-body .send-message-page .memo-tree-title strong {
    color: #0f172a;
}

/* Cash deposit toolbar (전체/충전/환전 필터) */
html.admin-theme-light body.admin-body .date-filter-vendor-kind-track {
    border-color: var(--line);
    background: var(--panel-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html.admin-theme-light body.admin-body .date-filter-vendor-kind-option:hover:not(.is-active) {
    background: rgba(15, 23, 42, 0.06);
}

html.admin-theme-light body.admin-body .cash-deposit-summary,
html.admin-theme-light body.admin-body .cash-deposit-summary span {
    color: var(--text);
}

/* Daily summary / settlement / record stats tfoot */
html.admin-theme-light body.admin-body .daily-summary-table tfoot td,
html.admin-theme-light body.admin-body .daily-summary-total td,
html.admin-theme-light body.admin-body .partners-data-table tfoot .daily-summary-total td {
    background: #f1f5f9;
    color: var(--text);
    border-bottom-color: var(--line);
}

html.admin-theme-light body.admin-body .daily-summary-total .daily-summary-money-total {
    color: #ca8a04;
}

html.admin-theme-light body.admin-body .settlement-table tfoot td,
html.admin-theme-light body.admin-body .settlement-table .daily-summary-total td {
    background: #f1f5f9;
    color: var(--text);
}

/* Subordinate list command select */
html.admin-theme-light body.admin-body .shop-command-select {
    background-color: var(--panel);
    color: #059669;
}

html.admin-theme-light body.admin-body .shop-command-select option {
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light body.admin-body .shop-command-floating-menu {
    border-color: rgba(16, 185, 129, 0.45);
    background:
        linear-gradient(165deg, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.04),
        0 16px 36px rgba(15, 23, 42, 0.14),
        0 4px 12px rgba(16, 185, 129, 0.1);
}

html.admin-theme-light body.admin-body .shop-command-floating-item {
    color: #1e293b;
}

html.admin-theme-light body.admin-body .shop-command-floating-item.is-placeholder,
html.admin-theme-light body.admin-body .shop-command-floating-header {
    background: linear-gradient(180deg, #bbf7d0 0%, #a7f3d0 45%, #6ee7b7 100%);
    color: #065f46;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        inset 0 -1px 0 rgba(5, 150, 105, 0.12);
}

html.admin-theme-light body.admin-body .shop-command-floating-item.is-placeholder::before,
html.admin-theme-light body.admin-body .shop-command-floating-header-title::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 7h16M4 12h10M4 17h14' stroke='%23047857' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
    filter: none;
}

html.admin-theme-light body.admin-body .shop-command-floating-item.is-placeholder::after,
html.admin-theme-light body.admin-body .shop-command-floating-header::after {
    background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.35), transparent);
}

html.admin-theme-light body.admin-body .shop-command-floating-header-title {
    color: #065f46;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

html.admin-theme-light body.admin-body .shop-command-floating-header-close {
    background: rgba(5, 150, 105, 0.14);
    color: #047857;
}

html.admin-theme-light body.admin-body .shop-command-floating-header-close:hover,
html.admin-theme-light body.admin-body .shop-command-floating-header-close:focus-visible {
    background: rgba(5, 150, 105, 0.28);
    color: #065f46;
}

html.admin-theme-light body.admin-body .shop-command-floating-divider {
    border-top-color: rgba(16, 185, 129, 0.25);
}

html.admin-theme-light body.admin-body .shop-command-floating-divider.is-section-divider {
    margin: 7px 10px;
    border-top-color: rgba(5, 150, 105, 0.55);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85),
        0 -1px 0 rgba(5, 150, 105, 0.12);
}

html.admin-theme-light body.admin-body .shop-command-floating-item:not(.is-placeholder)::before {
    background: linear-gradient(180deg, #34d399, #059669);
}

html.admin-theme-light body.admin-body .shop-command-floating-item:not(.is-placeholder):hover,
html.admin-theme-light body.admin-body .shop-command-floating-item:not(.is-placeholder):focus-visible {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0.06) 100%);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.28);
    color: #047857;
}

/* Online members filter chips */
html.admin-theme-light body.admin-body .partners-list-sort-btn {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.admin-body .partners-list-sort-btn:hover {
    border-color: #315dff;
    color: #1d4ed8;
}

html.admin-theme-light body.admin-body .partners-list-sort-btn.is-active {
    border-color: #315dff;
    background: rgba(49, 93, 255, 0.12);
    color: #1e40af;
}

/* Confirm / alert dialogs (logout, rolling convert, admin alerts, etc.) */
html.admin-theme-light body.admin-body .message-dialog-overlay {
    background: rgba(15, 23, 42, 0.32);
}

html.admin-theme-light body.admin-body .message-dialog {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.16);
    color: var(--text);
}

html.admin-theme-light body.admin-body .message-dialog-title {
    border-bottom-color: var(--line);
    color: var(--text);
}

html.admin-theme-light body.admin-body .message-dialog-title .brand-logo {
    color: var(--text);
}

html.admin-theme-light body.admin-body .message-dialog-title .brand-mark {
    color: #0f172a;
    font-weight: 800;
}

html.admin-theme-light body.admin-body .message-dialog-body {
    color: #334155;
}

html.admin-theme-light body.admin-body .message-dialog-body .message-dialog-text {
    color: #334155;
}

html.admin-theme-light body.admin-body .message-dialog-password-input {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
}

html.admin-theme-light body.admin-body .message-dialog-password-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

html.admin-theme-light body.admin-body .message-dialog-password-input:focus {
    border-color: #315dff;
    box-shadow: 0 0 0 2px rgba(49, 93, 255, 0.16);
    outline: 0;
}

html.admin-theme-light body.admin-body .message-dialog-btn-cancel {
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: #334155;
}

html.admin-theme-light body.admin-body .message-dialog-btn-cancel:hover {
    background: #e2e8f0;
    filter: none;
}

html.admin-theme-light body.admin-body .message-dialog-btn-ok {
    background: #137fec;
    color: #fff;
}

html.admin-theme-light body.admin-body .message-dialog-btn-ok:hover {
    background: #0f6fd6;
    filter: none;
}

html.admin-theme-light body.admin-body .cash-deposit-memo-overlay .message-dialog.cash-deposit-memo-dialog {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: 0 22px 56px rgba(15, 23, 42, 0.16);
    color: var(--text);
}

html.admin-theme-light body.admin-body .cash-deposit-memo-overlay .cash-deposit-memo-dialog-title.message-dialog-title {
    border-bottom-color: var(--line);
    color: var(--text);
}

html.admin-theme-light body.admin-body .cash-deposit-memo-overlay .message-dialog-body.cash-deposit-memo-dialog-body {
    color: #334155;
}

html.admin-theme-light body.admin-body .cash-deposit-memo-input {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
}

html.admin-theme-light body.admin-body .cash-deposit-memo-input:focus {
    border-color: #315dff;
    box-shadow: 0 0 0 2px rgba(49, 93, 255, 0.16);
}

html.admin-theme-light body.admin-body .cash-deposit-btn-memo.is-memo-empty {
    background: #94a3b8 !important;
    border-color: #64748b;
    color: #1e293b;
}

html.admin-theme-light body.admin-body .cash-deposit-btn-memo.is-memo-filled {
    background: #137fec !important;
    border-color: #0f6fd6;
    color: #fff;
    box-shadow: 0 0 0 1px rgba(19, 127, 236, 0.22);
}

html.admin-theme-light body.admin-body .cash-deposit-memo-delete-btn {
    border-color: #f87171;
    background: #fef2f2 !important;
    color: #b91c1c;
}

html.admin-theme-light body.admin-body .cash-deposit-memo-delete-btn:hover:not(:disabled) {
    background: #fee2e2 !important;
}

html.admin-theme-light body.admin-body .head-direct-message-recipient {
    color: #64748b;
}

html.admin-theme-light body.admin-body .head-direct-message-label {
    color: #334155;
}

html.admin-theme-light body.admin-body .head-direct-message-input {
    border-color: var(--line);
    background: var(--panel);
    color: var(--text);
    color-scheme: light;
}

html.admin-theme-light body.admin-body .head-direct-message-input::placeholder {
    color: #94a3b8;
}

html.admin-theme-light body.admin-body .head-direct-message-input:focus {
    border-color: #137fec;
    box-shadow: 0 0 0 2px rgba(19, 127, 236, 0.2);
}

html.admin-theme-light body.admin-body .head-direct-message-error {
    color: #dc2626;
}

/* Rolling convert */
html.admin-theme-light body.admin-body .rolling-convert-summary-card {
    border-color: rgba(14, 165, 233, 0.35);
    background: rgba(224, 242, 254, 0.65);
    color: #0369a1;
}

html.admin-theme-light body.admin-body .rolling-convert-summary-card strong {
    color: #0284c7;
    text-shadow: none;
}

html.admin-theme-light body.admin-body .rolling-convert-amount-label {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .rolling-convert-amount-input {
    border-color: var(--line);
    background: var(--panel);
    color: var(--text);
}

html.admin-theme-light body.admin-body .rolling-convert-total-row td {
    background: #f1f5f9;
    color: var(--text);
    border-top-color: var(--line);
}

/* Mobile */
@media (max-width: 960px) {
    html.admin-theme-light body.admin-body .mobile-topbar {
        background: var(--panel);
        border-bottom: 1px solid var(--line);
        color: var(--text);
    }
}

/* 본사 로그인 (login-body) */
html.admin-theme-light body.login-body,
html.admin-theme-light body.login-body .main,
html.admin-theme-light body.login-body #app-shell {
    background: var(--bg);
    color: var(--text);
}

html.admin-theme-light body.login-body .login-copy {
    border-color: var(--line);
    background:
        radial-gradient(circle at top right, rgba(19, 127, 236, 0.14), transparent 38%),
        linear-gradient(135deg, #e0f2fe 0%, #f8fafc 52%, #eef2ff 100%);
}

html.admin-theme-light body.login-body .login-copy h1,
html.admin-theme-light body.login-body .head-login .login-brand-title h1 {
    color: #0f172a;
}

html.admin-theme-light body.login-body .head-login .login-brand-en {
    background: linear-gradient(90deg, #64748b 0%, #0284c7 42%, #137fec 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

html.admin-theme-light body.login-body .login-card {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
    color: var(--text);
}

html.admin-theme-light body.login-body .login-card h2 {
    color: var(--text);
}

html.admin-theme-light body.login-body .field label {
    color: var(--muted);
}

html.admin-theme-light body.login-body .field input,
html.admin-theme-light body.login-body .captcha-input {
    border-color: var(--line);
    background: var(--panel-soft);
    color: var(--text);
}

html.admin-theme-light body.login-body .field input:focus,
html.admin-theme-light body.login-body .captcha-input:focus {
    border-color: #6e88ce;
    outline: none;
}

html.admin-theme-light body.login-body .captcha_canvas {
    border-color: #cbd5e1;
    background: #f1f5f9;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    filter: none;
}

html.admin-theme-light body.login-body .login-card .btn {
    background: #137fec;
    color: #fff;
}

html.admin-theme-light body.login-body .login-card .btn:hover {
    background: #0f6fd6;
}

html.admin-theme-light body.login-body .notice {
    border-color: rgba(19, 127, 236, 0.35);
    background: rgba(19, 127, 236, 0.08);
    color: #0369a1;
}

html.admin-theme-light body.login-body .notice-danger {
    border-color: rgba(220, 38, 38, 0.35);
    background: rgba(254, 226, 226, 0.85);
    color: #b91c1c;
}

/* ------------------------------------------------------------------ */
/* Coin system admin pages (정산·충전·지갑·설정 등) — light theme      */
/* ------------------------------------------------------------------ */
html.admin-theme-light body.admin-body .coin-dash-kpi {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

html.admin-theme-light body.admin-body .coin-dash-kpi.is-success {
    border-color: rgba(22, 163, 74, 0.35);
    background: rgba(220, 252, 231, 0.65);
}

html.admin-theme-light body.admin-body .coin-dash-kpi.is-trx {
    border-color: rgba(124, 58, 237, 0.35);
    background: rgba(237, 233, 254, 0.75);
}

html.admin-theme-light body.admin-body .coin-dash-kpi-label,
html.admin-theme-light body.admin-body .coin-dash-kpi-sub,
html.admin-theme-light body.admin-body .coin-dash-section-title,
html.admin-theme-light body.admin-body .coin-muted,
html.admin-theme-light body.admin-body .coin-stub-ref,
html.admin-theme-light body.admin-body .coin-charge-poll-hint,
html.admin-theme-light body.admin-body .coin-pool-page-desc,
html.admin-theme-light body.admin-body .coin-pool-field-label,
html.admin-theme-light body.admin-body .coin-pool-filter-label,
html.admin-theme-light body.admin-body .coin-pool-balance-label,
html.admin-theme-light body.admin-body .coin-wallet-change-desc,
html.admin-theme-light body.admin-body .coin-wallet-change-muted,
html.admin-theme-light body.admin-body .coin-wallet-change-summary-note,
html.admin-theme-light body.admin-body .coin-wallet-change-metric-label,
html.admin-theme-light body.admin-body .coin-wallet-change-metric-unit,
html.admin-theme-light body.admin-body .coin-wallet-change-summary-latest,
html.admin-theme-light body.admin-body .coin-wallet-change-empty,
html.admin-theme-light body.admin-body .coin-system-wallet-memo,
html.admin-theme-light body.admin-body .coin-detail-close-link,
html.admin-theme-light body.admin-body .coin-charge-tron-intro,
html.admin-theme-light body.admin-body .coin-charge-tron-muted,
html.admin-theme-light body.admin-body .coin-charge-tron-muted-xs,
html.admin-theme-light body.admin-body .coin-charge-tron-close,
html.admin-theme-light body.admin-body .coin-charge-tron-empty,
html.admin-theme-light body.admin-body .coin-charge-tron-mono-sm {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .coin-dash-kpi-value,
html.admin-theme-light body.admin-body .coin-dash-kpi-sub.is-krw,
html.admin-theme-light body.admin-body .coin-pool-page-title,
html.admin-theme-light body.admin-body .coin-pool-field-em,
html.admin-theme-light body.admin-body .coin-wallet-change-title,
html.admin-theme-light body.admin-body .coin-wallet-change-summary-title,
html.admin-theme-light body.admin-body .coin-charge-tron-title,
html.admin-theme-light body.admin-body .coin-charge-tron-detail-title,
html.admin-theme-light body.admin-body .coin-charge-tron-white,
html.admin-theme-light body.admin-body .coin-charge-tron-card-title,
html.admin-theme-light body.admin-body .coin-charge-tron-intro strong,
html.admin-theme-light body.admin-body .coin-charge-poll-hint strong,
html.admin-theme-light body.admin-body .coin-config-page-title,
html.admin-theme-light body.admin-body .coin-config-section-title,
html.admin-theme-light body.admin-body .coin-detail-close-link:hover {
    color: var(--text);
}

html.admin-theme-light body.admin-body .coin-charge-tron-page {
    color: var(--text);
}

html.admin-theme-light body.admin-body .coin-config-page {
    color: var(--text);
}

html.admin-theme-light body.admin-body .coin-config-page-head {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

html.admin-theme-light body.admin-body .coin-inline-error {
    border-color: rgba(220, 38, 38, 0.35);
    background: #fef2f2;
    color: #b91c1c;
}

html.admin-theme-light body.admin-body .coin-inline-notice {
    border-color: rgba(37, 99, 235, 0.3);
    background: #eff6ff;
    color: #1d4ed8;
}

html.admin-theme-light body.admin-body .coin-settlement-wallet-btn,
html.admin-theme-light body.admin-body .coin-btn-secondary,
html.admin-theme-light body.admin-body .coin-pool-search-reset,
html.admin-theme-light body.admin-body .coin-charge-tron-btn-muted,
html.admin-theme-light body.admin-body .coin-action-btn-muted,
html.admin-theme-light body.admin-body .coin-wallet-change-ack-btn {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
}

html.admin-theme-light body.admin-body .coin-settlement-wallet-btn:hover,
html.admin-theme-light body.admin-body .coin-btn-secondary:hover,
html.admin-theme-light body.admin-body .coin-pool-search-reset:hover,
html.admin-theme-light body.admin-body .coin-charge-tron-btn-muted:hover,
html.admin-theme-light body.admin-body .coin-wallet-change-ack-btn:hover {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.06);
    color: #2563eb;
}

html.admin-theme-light body.admin-body .coin-wallet-change-summary-panel,
html.admin-theme-light body.admin-body .coin-wallet-change-summary-card,
html.admin-theme-light body.admin-body .coin-wallet-change-pool-usdt-panel,
html.admin-theme-light body.admin-body .coin-wallet-change-log-panel,
html.admin-theme-light body.admin-body .coin-detail-panel,
html.admin-theme-light body.admin-body .coin-pool-bulk-panel,
html.admin-theme-light body.admin-body .coin-pool-register-panel,
html.admin-theme-light body.admin-body .coin-pool-table-wrap,
html.admin-theme-light body.admin-body .coin-system-wallet-table-wrap,
html.admin-theme-light body.admin-body .coin-charge-tron-card,
html.admin-theme-light body.admin-body .coin-charge-tron-detail,
html.admin-theme-light body.admin-body .coin-charge-tron-recent-deps,
html.admin-theme-light body.admin-body .coin-config-rates-card,
html.admin-theme-light body.admin-body .coin-config-table-card,
html.admin-theme-light body.admin-body .coin-config-rate-card,
html.admin-theme-light body.admin-body .coin-charge-detail-rates {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

html.admin-theme-light body.admin-body .coin-wallet-change-summary-badge,
html.admin-theme-light body.admin-body .coin-pool-filter-pill {
    border-color: var(--line);
    background: #f1f5f9;
    color: #475569;
}

html.admin-theme-light body.admin-body .coin-pool-filter-pill.is-active,
html.admin-theme-light body.admin-body .coin-pool-filter-pill:hover {
    background: #2563eb;
    color: #fff;
}

html.admin-theme-light body.admin-body .coin-wallet-change-summary-card {
    background: #f8fafc;
}

html.admin-theme-light body.admin-body .coin-wallet-change-flash {
    border-color: rgba(37, 99, 235, 0.35);
    background: #eff6ff;
    color: #1e40af;
}

html.admin-theme-light body.admin-body .coin-pool-usdt-alert {
    border-color: rgba(8, 145, 178, 0.45);
    background: rgba(224, 242, 254, 0.85);
    color: #0e7490;
}

html.admin-theme-light body.admin-body .coin-charge-tron-pending-box {
    border-color: rgba(217, 119, 6, 0.45);
    background: #fffbeb;
}

html.admin-theme-light body.admin-body .coin-charge-tron-pending-label,
html.admin-theme-light body.admin-body .coin-charge-tron-pending-suffix {
    color: #92400e;
}

html.admin-theme-light body.admin-body .coin-charge-tron-flash-ok {
    border-color: rgba(22, 163, 74, 0.35);
    background: #ecfdf5;
    color: #15803d;
}

html.admin-theme-light body.admin-body .coin-charge-tron-detect-hint.is-ok {
    color: #15803d;
}

html.admin-theme-light body.admin-body .coin-charge-tron-detect-hint.is-warn,
html.admin-theme-light body.admin-body .coin-charge-tron-warn {
    color: #b45309;
}

html.admin-theme-light body.admin-body .coin-charge-tron-ok {
    color: #15803d;
}

html.admin-theme-light body.admin-body .coin-charge-tron-primary,
html.admin-theme-light body.admin-body .coin-wallet-change-summary-card-label,
html.admin-theme-light body.admin-body .coin-charge-detail-rates-title {
    color: #2563eb;
}

html.admin-theme-light body.admin-body .coin-wallet-change-metric-usdt {
    color: #047857;
}

html.admin-theme-light body.admin-body .coin-wallet-change-metric-trx {
    color: #6d28d9;
}

html.admin-theme-light body.admin-body .coin-yes {
    color: #15803d;
}

html.admin-theme-light body.admin-body .coin-no {
    color: #64748b;
}

html.admin-theme-light body.admin-body .coin-charge-tron-table thead {
    background: #eef2f8;
    color: #475569;
}

html.admin-theme-light body.admin-body .coin-charge-tron-table th,
html.admin-theme-light body.admin-body .coin-charge-tron-table td {
    border-bottom-color: var(--line);
    color: var(--text);
}

html.admin-theme-light body.admin-body .coin-charge-tron-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.06);
}

html.admin-theme-light body.admin-body .coin-charge-tron-card-title {
    border-bottom-color: var(--line);
}

html.admin-theme-light body.admin-body .coin-charge-tron-dispatch,
html.admin-theme-light body.admin-body .coin-charge-tron-input,
html.admin-theme-light body.admin-body .coin-pool-register-textarea,
html.admin-theme-light body.admin-body .coin-pool-register-input,
html.admin-theme-light body.admin-body .coin-pool-search-input,
html.admin-theme-light body.admin-body .coin-pool-bulk-textarea,
html.admin-theme-light body.admin-body .coin-wallet-change-filter-input,
html.admin-theme-light body.admin-body .coin-system-wallet-control,
html.admin-theme-light body.admin-body .coin-config-field input,
html.admin-theme-light body.admin-body .coin-config-field select,
html.admin-theme-light body.admin-body .coin-config-field textarea,
html.admin-theme-light body.admin-body .coin-time-input {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
    color-scheme: light;
}

html.admin-theme-light body.admin-body .coin-charge-tron-pill {
    border-color: var(--line);
    background: #f1f5f9;
    color: #475569;
}

html.admin-theme-light body.admin-body .coin-charge-tron-pill.is-active,
html.admin-theme-light body.admin-body .coin-charge-tron-pill:hover {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

html.admin-theme-light body.admin-body .coin-charge-tron-dialog-panel {
    border-color: var(--line);
    background: var(--panel);
    color: var(--text);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

html.admin-theme-light body.admin-body .coin-charge-tron-dialog-backdrop {
    background: rgba(15, 23, 42, 0.35);
}

html.admin-theme-light body.admin-body .coin-system-wallet-total-row {
    background: #f1f5f9;
    border-top-color: var(--line);
}

html.admin-theme-light body.admin-body .coin-config-notice-success {
    border-color: rgba(37, 99, 235, 0.35);
    background: #eff6ff;
    color: #1d4ed8;
}

html.admin-theme-light body.admin-body .coin-config-notice-error,
html.admin-theme-light body.admin-body .coin-config-alert-danger {
    border-color: rgba(220, 38, 38, 0.35);
    background: #fef2f2;
    color: #b91c1c;
}

html.admin-theme-light body.admin-body .coin-config-alert a {
    color: #2563eb;
}

html.admin-theme-light body.admin-body .coin-config-rate-heading {
    color: #0369a1;
}

html.admin-theme-light body.admin-body .coin-config-rate-heading-trx {
    color: #6d28d9;
}

html.admin-theme-light body.admin-body .coin-config-rate-value {
    color: var(--text);
}

html.admin-theme-light body.admin-body .coin-config-rate-block,
html.admin-theme-light body.admin-body .coin-config-rate-block-trx {
    background: #f8fafc;
}

/* 코인 시스템 설정: 라이트 모드 가독성 (app.css 다크 전용 색상 덮어쓰기) */
html.admin-theme-light body.admin-body .coin-config-rates-card {
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.12);
}

html.admin-theme-light body.admin-body .coin-config-rate-card {
    border-color: var(--line);
    background: #f1f5f9;
}

html.admin-theme-light body.admin-body .coin-config-rate-card.is-selected-usdt {
    border: 2px solid #0284c7;
    background: rgba(14, 165, 233, 0.12);
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.25);
}

html.admin-theme-light body.admin-body .coin-config-rate-card.is-selected-trx {
    border: 2px solid #7c3aed;
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.28);
}

html.admin-theme-light body.admin-body .coin-config-rate-card-label {
    color: var(--text);
}

html.admin-theme-light body.admin-body .coin-config-rate-badge {
    color: #0369a1;
}

html.admin-theme-light body.admin-body .coin-config-rate-badge-trx {
    color: #6d28d9;
}

html.admin-theme-light body.admin-body .coin-config-rate-value {
    color: #15803d;
}

html.admin-theme-light body.admin-body .coin-config-rate-won,
html.admin-theme-light body.admin-body .coin-config-rate-stale {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .coin-config-rate-error {
    color: #b45309;
}

html.admin-theme-light body.admin-body .coin-config-rate-saved {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .coin-config-rate-saved strong {
    color: var(--text);
}

html.admin-theme-light body.admin-body .coin-config-bonus-section {
    border-top-color: var(--line);
}

html.admin-theme-light body.admin-body .coin-config-bonus-title {
    color: #5b21b6;
}

html.admin-theme-light body.admin-body .coin-config-bonus-dispatch-label {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .coin-config-bonus-field-label {
    color: var(--text);
}

html.admin-theme-light body.admin-body .coin-config-table thead th {
    border-bottom-color: var(--line);
    color: var(--muted);
}

html.admin-theme-light body.admin-body .coin-config-table tbody tr {
    border-bottom-color: var(--line);
}

html.admin-theme-light body.admin-body .coin-config-section-cell {
    background: #f1f5f9;
    border-right-color: var(--line);
}

html.admin-theme-light body.admin-body .coin-config-section-badge {
    border-color: var(--line);
    background: #fff;
    color: #0369a1;
}

html.admin-theme-light body.admin-body .coin-config-label-title {
    color: var(--text);
}

html.admin-theme-light body.admin-body .coin-config-label-key,
html.admin-theme-light body.admin-body .coin-config-label-hint {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .coin-config-number-input,
html.admin-theme-light body.admin-body .coin-config-text-input,
html.admin-theme-light body.admin-body .coin-config-select {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
    color-scheme: light;
}

html.admin-theme-light body.admin-body .coin-config-select-usdt {
    border-color: rgba(2, 132, 199, 0.45);
}

html.admin-theme-light body.admin-body .coin-config-select-trx {
    border-color: rgba(124, 58, 237, 0.45);
}

html.admin-theme-light body.admin-body .coin-config-dispatch-select.is-auto {
    border-color: #16a34a;
    color: #15803d;
}

html.admin-theme-light body.admin-body .coin-config-dispatch-select.is-manual {
    border-color: rgba(124, 58, 237, 0.45);
    color: #5b21b6;
}

html.admin-theme-light body.admin-body .coin-config-bool-select.is-on {
    border-color: rgba(22, 163, 74, 0.55);
    background: #ecfdf5;
    color: #15803d;
}

html.admin-theme-light body.admin-body .coin-config-bool-select.is-off {
    border-color: rgba(220, 38, 38, 0.45);
    background: #fef2f2;
    color: #b91c1c;
}

html.admin-theme-light body.admin-body .coin-config-unit,
html.admin-theme-light body.admin-body .coin-config-empty {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .coin-config-unit-usdt {
    color: #2563eb;
}

html.admin-theme-light body.admin-body .coin-config-unit-trx,
html.admin-theme-light body.admin-body .coin-config-unit-krw {
    color: #6d28d9;
}

html.admin-theme-light body.admin-body .coin-config-unit-krw {
    color: #15803d;
}

html.admin-theme-light body.admin-body .coin-config-save-btn {
    background: #2563eb;
    color: #fff;
}

html.admin-theme-light body.admin-body .coin-config-notes {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .coin-config-notes-title,
html.admin-theme-light body.admin-body .coin-config-notes strong {
    color: var(--text);
}

html.admin-theme-light body.admin-body .coin-pool-flash--ok {
    background: #ecfdf5;
    color: #15803d;
}

html.admin-theme-light body.admin-body .coin-pool-flash--warn {
    background: #fffbeb;
    color: #b45309;
}

html.admin-theme-light body.admin-body .coin-mono-text {
    color: #334155;
}

/* 충전 신청 상세 (Tailwind 유틸 재정의) */
html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .text-white,
html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .text-gray-300 {
    color: var(--text) !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .text-\[\#9da8b9\],
html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .text-\[\#cbd5e1\] {
    color: var(--muted) !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .text-primary {
    color: #2563eb !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .text-green-300,
html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .text-green-400 {
    color: #15803d !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .text-amber-300,
html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .text-amber-400 {
    color: #b45309 !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .text-blue-300,
html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .text-sky-200,
html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .text-sky-300 {
    color: #0369a1 !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .text-violet-300 {
    color: #6d28d9 !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .bg-\[\#282f39\],
html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .bg-\[\#111418\],
html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .bg-\[\#111418\]\/40,
html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .bg-\[\#111418\]\/60 {
    background: #f1f5f9 !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .border-\[\#3b4554\] {
    border-color: var(--line) !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view].bg-primary\/5 {
    background: rgba(37, 99, 235, 0.06) !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .bg-sky-500\/5,
html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .bg-sky-500\/10,
html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .bg-blue-500\/10 {
    background: #eff6ff !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .bg-green-500\/10 {
    background: #ecfdf5 !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .bg-yellow-500\/10,
html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .bg-amber-500\/5 {
    background: #fffbeb !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .bg-orange-500\/10 {
    background: #fff7ed !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .bg-purple-500\/10,
html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .bg-violet-500\/5 {
    background: #f5f3ff !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .bg-red-500\/10,
html.admin-theme-light body.admin-body .coin-charge-tron-page [data-charge-detail-view] .bg-gray-500\/10 {
    background: #f8fafc !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-exception .border,
html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-sender-wrap .border {
    border-color: var(--line) !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-exception .bg-\[\#111418\],
html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-exception .bg-\[\#111418\]\/60,
html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-exception .bg-\[\#111418\]\/40,
html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-sender-wrap .rounded-xl {
    background: var(--panel) !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-exception .text-white,
html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-sender-wrap .text-white {
    color: var(--text) !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-exception .text-\[\#9da8b9\],
html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-sender-wrap .text-\[\#9da8b9\] {
    color: var(--muted) !important;
}

html.admin-theme-light body.admin-body .coin-pool-page .coin-pool-wallet-table thead th {
    background-color: #eef2f8;
    box-shadow: 0 1px 0 var(--line);
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 8px;
    line-height: 1.25;
}

html.admin-theme-light body.admin-body .coin-pool-page .coin-pool-wallet-table .coin-pool-total-row {
    border-top-color: var(--line);
    color: var(--text);
}

html.admin-theme-light body.admin-body .coin-pool-page .coin-pool-wallet-table .coin-pool-total-row td {
    color: var(--text);
    border-bottom-color: var(--line);
}

html.admin-theme-light body.admin-body .coin-pool-page .coin-pool-wallet-table .coin-pool-total-row--usable {
    background: #f1f5f9;
}

html.admin-theme-light body.admin-body .coin-pool-page .coin-pool-wallet-table .coin-pool-total-row--all {
    background: #e2e8f0;
}

html.admin-theme-light body.admin-body .coin-pool-page .coin-balance-usdt-num {
    color: #1d4ed8;
}

html.admin-theme-light body.admin-body .coin-pool-page .coin-balance-trx-num {
    color: #5b21b6;
}

html.admin-theme-light body.admin-body .coin-pool-page .coin-balance-krw-num {
    color: #047857;
}

html.admin-theme-light body.admin-body .coin-pool-page .coin-balance-unit {
    color: #64748b;
}

html.admin-theme-light body.admin-body .coin-pool-page .coin-balance-muted-xs {
    color: #64748b;
}

html.admin-theme-light body.admin-body .coin-pool-page .coin-balance-missing {
    color: #dc2626;
}

/* 메인 지갑 등록 폼 */
html.admin-theme-light body.admin-body .coin-system-wallet-add-form {
    border-color: var(--line);
    background: var(--panel);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

/* 가상지갑 — 지갑 등록 패널 · KPI · 검색 */
html.admin-theme-light body.admin-body .coin-pool-register-panel {
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

html.admin-theme-light body.admin-body .coin-pool-register-summary {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

html.admin-theme-light body.admin-body .coin-pool-register-summary:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
}

html.admin-theme-light body.admin-body .coin-pool-register-heading {
    color: var(--text);
}

html.admin-theme-light body.admin-body .coin-pool-kpi {
    background: var(--panel);
}

html.admin-theme-light body.admin-body .coin-pool-kpi--free {
    border-color: rgba(22, 163, 74, 0.35);
    background: rgba(236, 253, 245, 0.9);
}

html.admin-theme-light body.admin-body .coin-pool-kpi--free .coin-pool-kpi-value {
    color: #15803d;
}

html.admin-theme-light body.admin-body .coin-pool-kpi--assigned {
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(239, 246, 255, 0.95);
}

html.admin-theme-light body.admin-body .coin-pool-kpi--assigned .coin-pool-kpi-value {
    color: #2563eb;
}

html.admin-theme-light body.admin-body .coin-pool-kpi--disabled {
    border-color: rgba(100, 116, 139, 0.35);
    background: #f8fafc;
}

html.admin-theme-light body.admin-body .coin-pool-kpi--disabled .coin-pool-kpi-value {
    color: #64748b;
}

html.admin-theme-light body.admin-body .coin-pool-register-submit,
html.admin-theme-light body.admin-body .coin-pool-search-submit {
    background: #2563eb;
    color: #fff;
}

html.admin-theme-light body.admin-body .coin-pool-register-submit:hover:not(:disabled),
html.admin-theme-light body.admin-body .coin-pool-search-submit:hover {
    background: #1d4ed8;
}

html.admin-theme-light body.admin-body .coin-pool-code {
    background: #f1f5f9;
    color: #334155;
    padding: 2px 6px;
    border-radius: 4px;
}

html.admin-theme-light body.admin-body .coin-pool-bulk-panel summary {
    color: var(--text);
}

html.admin-theme-light body.admin-body .coin-pool-register-textarea::placeholder,
html.admin-theme-light body.admin-body .coin-pool-register-input::placeholder,
html.admin-theme-light body.admin-body .coin-pool-search-input::placeholder {
    color: #94a3b8;
}

html.admin-theme-light body.admin-body .coin-system-wallet-field label {
    color: #475569;
}

html.admin-theme-light body.admin-body .coin-system-wallet-control::placeholder {
    color: #94a3b8;
}

/* 지갑 변동내역 로그 테이블 */
html.admin-theme-light body.admin-body .coin-wallet-change-log-table thead {
    background: #eef2f8;
}

html.admin-theme-light body.admin-body .coin-wallet-change-log-table th,
html.admin-theme-light body.admin-body .coin-wallet-change-log-table td {
    border-bottom-color: var(--line);
    color: var(--text);
}

html.admin-theme-light body.admin-body .coin-wallet-change-log-table th {
    color: #475569;
}

html.admin-theme-light body.admin-body .coin-wallet-change-log-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.06);
}

html.admin-theme-light body.admin-body .coin-wallet-change-action-pill {
    background: #f1f5f9;
    border: 1px solid var(--line);
    color: #334155;
}

html.admin-theme-light body.admin-body .coin-wallet-change-address-copy {
    color: #0f172a;
}

html.admin-theme-light body.admin-body .coin-wallet-change-address-copy:hover,
html.admin-theme-light body.admin-body .coin-wallet-change-address-copy.is-copied {
    color: #2563eb;
}

html.admin-theme-light body.admin-body .coin-scan-link {
    border-color: var(--line);
    background: #f8fafc;
    color: #475569;
}

html.admin-theme-light body.admin-body .coin-scan-link:hover {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

html.admin-theme-light body.admin-body .coin-system-wallet-refresh-btn {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
}

html.admin-theme-light body.admin-body .coin-system-wallet-refresh-btn:hover:not(:disabled) {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

html.admin-theme-light body.admin-body .coin-sys-wallet-type.is-usdt {
    color: #0369a1;
    background: rgba(56, 189, 248, 0.12);
}

html.admin-theme-light body.admin-body .coin-sys-wallet-type.is-trx {
    color: #5b21b6;
    background: rgba(139, 92, 246, 0.12);
}

html.admin-theme-light body.admin-body .coin-system-wallet-table .coin-mono-text {
    color: #0f172a;
}

html.admin-theme-light body.admin-body .coin-pill.is-success {
    color: #15803d;
    background: #ecfdf5;
}

html.admin-theme-light body.admin-body .coin-pill.is-warn {
    color: #b45309;
    background: #fffbeb;
}

html.admin-theme-light body.admin-body .coin-action-btn {
    border-color: var(--line);
    background: #f8fafc;
    color: var(--text);
}

html.admin-theme-light body.admin-body .coin-action-btn:hover {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

html.admin-theme-light body.admin-body .coin-wallet-change-nowrap {
    color: var(--text);
}

html.admin-theme-light body.admin-body .coin-wallet-change-detail {
    color: var(--muted);
}

html.admin-theme-light body.admin-body .coin-wallet-change-log-total,
html.admin-theme-light body.admin-body .coin-wallet-change-log-footer {
    color: var(--muted);
}

/* 충전 신청 목록 (Tailwind 유틸 클래스 포함 wrap) */
html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-list-wrap,
html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-list-wrap.bg-\[\#111418\],
html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-list-wrap.border-\[\#3b4554\] {
    border-color: var(--line) !important;
    background: var(--panel) !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-list-table thead,
html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-list-wrap .bg-\[\#282f39\]\/50,
html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-list-table thead.bg-\[\#282f39\]\/50 {
    background: #eef2f8 !important;
    color: #475569;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-list-table tbody tr,
html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-list-table tbody.divide-y.divide-\[\#282f39\] > tr {
    border-bottom-color: var(--line);
}

html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-list-table tbody tr:hover,
html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-list-table tr.hover\:bg-\[\#282f39\]\/30:hover {
    background: rgba(37, 99, 235, 0.06) !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-list-wrap .text-white,
html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-list-table .text-white,
html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-list-table td {
    color: var(--text);
}

html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-list-wrap .text-white,
html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-list-table .text-white {
    color: var(--text) !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-list-wrap .text-\[\#9da8b9\],
html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-list-table .text-\[\#9da8b9\] {
    color: var(--muted) !important;
}

html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-list-wrap .text-\[\#6b7280\],
html.admin-theme-light body.admin-body .coin-charge-tron-page .coin-charge-tron-list-table .text-\[\#6b7280\] {
    color: #64748b !important;
}

/* max-win-alarm status — light mode */
html.admin-theme-light body.admin-body .max-win-alarm-page .max-win-alarm-status-item.is-casino {
    border-color: rgba(219, 39, 119, 0.35);
    background: linear-gradient(135deg, rgba(251, 207, 232, 0.95) 0%, rgba(254, 226, 226, 0.9) 45%, #ffffff 100%);
    box-shadow: 0 0 0 1px rgba(219, 39, 119, 0.12), 0 8px 18px rgba(219, 39, 119, 0.12);
}

html.admin-theme-light body.admin-body .max-win-alarm-page .max-win-alarm-status-item.is-casino .max-win-alarm-status-icon,
html.admin-theme-light body.admin-body .max-win-alarm-page .max-win-alarm-status-item.is-casino .max-win-alarm-status-kind {
    color: #be185d;
}

html.admin-theme-light body.admin-body .max-win-alarm-page .max-win-alarm-status-item.is-slot {
    border-color: rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, rgba(191, 219, 254, 0.95) 0%, rgba(224, 231, 255, 0.9) 45%, #ffffff 100%);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12), 0 8px 18px rgba(37, 99, 235, 0.12);
}

html.admin-theme-light body.admin-body .max-win-alarm-page .max-win-alarm-status-item.is-slot .max-win-alarm-status-icon,
html.admin-theme-light body.admin-body .max-win-alarm-page .max-win-alarm-status-item.is-slot .max-win-alarm-status-kind {
    color: #1d4ed8;
}

html.admin-theme-light body.admin-body .max-win-alarm-page .max-win-alarm-status-amount {
    color: #334155;
}

html.admin-theme-light body.admin-body .max-win-alarm-page .max-win-alarm-status-amount strong {
    color: #b45309;
    text-shadow: none;
}

html.admin-theme-light body.admin-body .max-win-alarm-page .max-win-alarm-status-flag.is-on {
    color: #065f46;
    background: linear-gradient(135deg, #bbf7d0 0%, #6ee7b7 100%);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

html.admin-theme-light body.admin-body .max-win-alarm-page .max-win-alarm-status-flag.is-off {
    color: #334155;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.35);
}

html.admin-theme-light body.admin-body .max-win-alarm-page .max-win-alarm-desc {
    color: #64748b;
}

html.admin-theme-light body.admin-body .max-win-alarm-page .max-win-alarm-status.is-success {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

html.admin-theme-light body.admin-body .max-win-alarm-page .max-win-alarm-status.is-partial {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

html.admin-theme-light body.admin-body .max-win-alarm-page .max-win-alarm-status.is-failed {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}
