/* ========================================================================== */
/*  FOUNDATION | DARK TOKENS                                                  */
/* ========================================================================== */

body[data-theme-mode="dark"] {
    --gsw-dark-bg: #000000; --gsw-dark-surface: #000000; --gsw-dark-surface-soft: #0b1220; --gsw-dark-surface-strong: #111827; --gsw-dark-border: #22314a; --gsw-dark-border-soft: #1f2937; --gsw-dark-border-strong: #334155; --gsw-dark-heading: #ffffff; --gsw-dark-text: #cbd5e1; --gsw-dark-subtitle: #b5b5b5; --gsw-dark-muted: #94a3b8; --gsw-dark-placeholder: #818181; --gsw-dark-table: #d7d7d7; --gsw-dark-overlay: rgba(0, 0, 0, .78); --bg-body: #000000; --card-bg: #000000; --text-main: #ffffff; --text-muted: #b5b5b5; --gsw-modal-header-bg: #000000; --gsw-modal-header-border: #1f2937; --gsw-modal-header-title: #ffffff; --gsw-modal-header-text: #9ca3af; --gsw-modal-header-icon-bg: #2f2f2f; --gsw-modal-header-icon-border: #404040; --gsw-modal-header-icon-shadow: none; --gsw-modal-header-close-bg: #000000; --gsw-modal-header-close-border: #374151; --gsw-modal-header-close-color: #9ca3af; --gsw-modal-header-close-hover-border: #4b5563; --gsw-modal-header-close-hover-color: #e5e7eb;
}

body[data-theme-mode="dark"],
body[data-theme-mode="dark"] .content,
body[data-theme-mode="dark"] #app,
body[data-theme-mode="dark"] .content #app { background: var(--gsw-dark-bg) !important; color: var(--gsw-dark-text) !important; }

body[data-theme-mode="dark"] .gsw-global-tooltip { background: rgba(2, 6, 23, .96); color: #eff6ff; border-color: rgba(30, 41, 59, .75); box-shadow: 0 12px 24px rgba(2, 6, 23, .32); }
body[data-theme-mode="dark"] .ui-alert-success { background: #052e16 !important; color: #86efac !important; border-color: #14532d !important; }
body[data-theme-mode="dark"] .player-overlay-card { background: rgba(0, 0, 0, .88); border-color: var(--gsw-dark-border); box-shadow: none; }
body[data-theme-mode="dark"] .player-overlay-scrim { background: rgba(0, 0, 0, .82); }

/* ========================================================================== */
/*  TYPOGRAPHY | GLOBAL TEXT                                                  */
/* ========================================================================== */

body[data-theme-mode="dark"] .ui-text-muted-italic { color: var(--gsw-dark-text) !important; }
body[data-theme-mode="dark"] :is(.ui-page-subtitle, .ui-contact-secondary, .ui-empty-state, .ui-empty-cell, .ui-note-sm, .ui-loading-inline, .ui-role-muted, .ui-empty-text) { color: var(--gsw-dark-muted) !important; }
body[data-theme-mode="dark"] :is(.ui-contact-primary, .ui-time-strong) { color: #e5e7eb !important; }

body[data-theme-mode="dark"] .content #app :is(h1, h2, h3, h4, h5, h6, th, .modal-title, .modal-shell-title, .confirm-sheet-title, [class*="title"], [class*="heading"]) { color: var(--gsw-dark-heading) !important; }
body[data-theme-mode="dark"] .content #app :is(small, label, .modal-shell-desc, .modal-shell-text, .confirm-sheet-text, [class*="subtitle"], [class*="desc"], [class*="meta"], [class*="note"], [class*="helper"], [class*="muted"], [class*="label"], [class*="kicker"]) { color: var(--gsw-dark-subtitle) !important; }
body[data-theme-mode="dark"] .content #app :is(p, li, td, span, div):not([class*="icon"]):not([class*="avatar"]):not([class*="title"]):not([class*="heading"]) { color: var(--gsw-dark-text) !important; }
body[data-theme-mode="dark"] .content #app a:not(.ui-button):not(.ui-button-icon) { color: var(--gsw-dark-text) !important; }
body[data-theme-mode="dark"] .content #app table td { color: var(--gsw-dark-table) !important; }

