/* ==========================================================================
   EVERGREEN HYDRA - UNIFORM ADMIN MENU SYSTEM
   Sticky navigation across /admin/ and /evergreen/
   Light Mode & Dark Mode compliant
   ========================================================================== */

#uniformAdminMenu {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
}

/* Light Mode (Default) */
:root,
html[data-theme="light"] #uniformAdminMenu,
html:not([data-theme="dark"]) #uniformAdminMenu {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

/* Dark Mode */
html[data-theme="dark"] #uniformAdminMenu {
    background: #090d16;
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.u-admin-bar-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 16px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
}

/* Left: Brand */
.u-admin-brand-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.u-admin-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    font-weight: 800;
    font-size: 14.5px;
    letter-spacing: -0.2px;
}
.u-admin-brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}
.u-admin-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    font-family: 'JetBrains Mono', monospace;
}
html:not([data-theme="dark"]) .u-admin-badge,
html[data-theme="light"] .u-admin-badge {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}
html[data-theme="dark"] .u-admin-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Center: Navigation Links */
.u-admin-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    overflow: visible;
}
.u-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

/* Light Mode link styling */
html:not([data-theme="dark"]) .u-admin-link,
html[data-theme="light"] .u-admin-link {
    color: #334155;
}
html:not([data-theme="dark"]) .u-admin-link:hover,
html[data-theme="light"] .u-admin-link:hover {
    background: #f1f5f9;
    color: #0284c7;
}
html:not([data-theme="dark"]) .u-admin-link.active,
html[data-theme="light"] .u-admin-link.active {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #bae6fd;
    font-weight: 700;
}

/* Dark Mode link styling */
html[data-theme="dark"] .u-admin-link {
    color: #cbd5e1;
}
html[data-theme="dark"] .u-admin-link:hover {
    background: #1e293b;
    color: #38bdf8;
}
html[data-theme="dark"] .u-admin-link.active {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
    font-weight: 700;
}

/* Special High-Visibility Links */
/* KPI Tools (Evergreen) */
.u-admin-link.link-kpi {
    font-weight: 800;
}
html:not([data-theme="dark"]) .u-admin-link.link-kpi,
html[data-theme="light"] .u-admin-link.link-kpi {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}
html:not([data-theme="dark"]) .u-admin-link.link-kpi:hover,
html[data-theme="light"] .u-admin-link.link-kpi:hover {
    background: #fde68a;
    color: #92400e;
}
html[data-theme="dark"] .u-admin-link.link-kpi {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}
html[data-theme="dark"] .u-admin-link.link-kpi:hover {
    background: rgba(245, 158, 11, 0.25);
    color: #fef08a;
}

/* Stock Picks */
.u-admin-link.link-picks {
    font-weight: 700;
}
html:not([data-theme="dark"]) .u-admin-link.link-picks,
html[data-theme="light"] .u-admin-link.link-picks {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
html:not([data-theme="dark"]) .u-admin-link.link-picks:hover,
html[data-theme="light"] .u-admin-link.link-picks:hover {
    background: #dcfce7;
    color: #166534;
}
html[data-theme="dark"] .u-admin-link.link-picks {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
html[data-theme="dark"] .u-admin-link.link-picks:hover {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

/* Internal FAQ link & Dropdown Button */
.u-admin-link.link-internal-faq,
.u-admin-dropdown-btn.link-internal-faq {
    font-weight: 700;
}
html:not([data-theme="dark"]) .u-admin-link.link-internal-faq,
html[data-theme="light"] .u-admin-link.link-internal-faq,
html:not([data-theme="dark"]) .u-admin-dropdown-btn.link-internal-faq,
html[data-theme="light"] .u-admin-dropdown-btn.link-internal-faq {
    color: #b91c1c;
}
html:not([data-theme="dark"]) .u-admin-dropdown-btn.link-internal-faq:hover,
html[data-theme="light"] .u-admin-dropdown-btn.link-internal-faq:hover {
    background: #fee2e2;
    color: #991b1b;
}
html:not([data-theme="dark"]) .u-admin-dropdown-btn.link-internal-faq.active,
html[data-theme="light"] .u-admin-dropdown-btn.link-internal-faq.active {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}
html[data-theme="dark"] .u-admin-link.link-internal-faq,
html[data-theme="dark"] .u-admin-dropdown-btn.link-internal-faq {
    color: #f87171;
}
html[data-theme="dark"] .u-admin-dropdown-btn.link-internal-faq:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}
html[data-theme="dark"] .u-admin-dropdown-btn.link-internal-faq.active {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

/* Public FAQ Dropdown Button */
.u-admin-dropdown-btn.link-public-faq {
    font-weight: 600;
}
html:not([data-theme="dark"]) .u-admin-dropdown-btn.link-public-faq,
html[data-theme="light"] .u-admin-dropdown-btn.link-public-faq {
    color: #0369a1;
}
html:not([data-theme="dark"]) .u-admin-dropdown-btn.link-public-faq:hover,
html[data-theme="light"] .u-admin-dropdown-btn.link-public-faq:hover {
    background: #e0f2fe;
    color: #0284c7;
}
html:not([data-theme="dark"]) .u-admin-dropdown-btn.link-public-faq.active,
html[data-theme="light"] .u-admin-dropdown-btn.link-public-faq.active {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #bae6fd;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}
html[data-theme="dark"] .u-admin-dropdown-btn.link-public-faq {
    color: #38bdf8;
}
html[data-theme="dark"] .u-admin-dropdown-btn.link-public-faq:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
}
html[data-theme="dark"] .u-admin-dropdown-btn.link-public-faq.active {
    background: rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

/* Admin Tools Dropdown */
.u-admin-dropdown {
    position: relative;
    display: inline-block;
}
.u-admin-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
    transition: all 0.15s ease;
}
.u-admin-dropdown-btn:hover {
    background: rgba(100, 116, 139, 0.12);
}
.u-admin-dropdown.open .u-admin-dropdown-btn {
    background: rgba(100, 116, 139, 0.18);
    border-color: rgba(100, 116, 139, 0.3);
}

/* KPI Tools Dropdown Button Styling */
.u-admin-dropdown-btn.link-kpi {
    font-weight: 800;
}
html:not([data-theme="dark"]) .u-admin-dropdown-btn.link-kpi,
html[data-theme="light"] .u-admin-dropdown-btn.link-kpi {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}
html:not([data-theme="dark"]) .u-admin-dropdown-btn.link-kpi:hover,
html[data-theme="light"] .u-admin-dropdown-btn.link-kpi:hover {
    background: #fde68a;
    color: #92400e;
}
html:not([data-theme="dark"]) .u-admin-dropdown-btn.link-kpi.active,
html[data-theme="light"] .u-admin-dropdown-btn.link-kpi.active {
    background: #fde68a;
    color: #78350f;
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}
html[data-theme="dark"] .u-admin-dropdown-btn.link-kpi {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}
html[data-theme="dark"] .u-admin-dropdown-btn.link-kpi:hover {
    background: rgba(245, 158, 11, 0.25);
    color: #fef08a;
}
html[data-theme="dark"] .u-admin-dropdown-btn.link-kpi.active {
    background: rgba(245, 158, 11, 0.28);
    color: #fef08a;
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3);
}

.u-admin-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 250px;
    border-radius: 8px;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 100001;
}
.u-admin-dropdown.dropdown-right .u-admin-dropdown-menu {
    left: auto;
    right: 0;
}
.u-admin-dropdown.open .u-admin-dropdown-menu {
    display: flex;
}
html:not([data-theme="dark"]) .u-admin-dropdown-menu,
html[data-theme="light"] .u-admin-dropdown-menu {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
html[data-theme="dark"] .u-admin-dropdown-menu {
    background: #0f172a;
    border: 1px solid #334155;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}
.u-admin-dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    color: inherit;
    transition: all 0.12s ease;
}
html:not([data-theme="dark"]) .u-admin-dropdown-item:hover,
html[data-theme="light"] .u-admin-dropdown-item:hover {
    background: #f1f5f9;
    color: #0284c7;
}
html[data-theme="dark"] .u-admin-dropdown-item:hover {
    background: #1e293b;
    color: #38bdf8;
}
html:not([data-theme="dark"]) .u-admin-dropdown-item.active,
html[data-theme="light"] .u-admin-dropdown-item.active {
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 700;
}
html[data-theme="dark"] .u-admin-dropdown-item.active {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    font-weight: 700;
}

/* ==========================================================================
   MEGA DROPDOWNS: MULTI-PANEL ROWS FOR INTERNAL FAQ & PUBLIC FAQ
   ========================================================================== */
.u-dropdown-mega {
    position: relative;
}

.u-mega-menu {
    position: absolute;
    top: calc(100% + 5px);
    border-radius: 10px;
    padding: 12px 14px;
    z-index: 100005;
    box-sizing: border-box;
    max-height: calc(88vh - 56px);
    overflow-y: auto;
    overflow-x: hidden;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Custom Slim Scrollbar for Mega Menus */
.u-mega-menu::-webkit-scrollbar {
    width: 6px;
}
.u-mega-menu::-webkit-scrollbar-track {
    background: transparent;
}
.u-mega-menu::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 4px;
}
.u-mega-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.65);
}

/* Light / Dark Mode Theming for Mega Menu */
html:not([data-theme="dark"]) .u-mega-menu,
html[data-theme="light"] .u-mega-menu {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
}
html[data-theme="dark"] .u-mega-menu {
    background: #0d131f;
    border: 1px solid #243049;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.8), 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* Header Strip */
.u-mega-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px 10px 4px;
    border-bottom: 1px solid;
    margin-bottom: 11px;
    font-size: 13px;
}
html:not([data-theme="dark"]) .u-mega-header,
html[data-theme="light"] .u-mega-header {
    border-color: #e2e8f0;
    color: #0f172a;
}
html[data-theme="dark"] .u-mega-header {
    border-color: #1e293b;
    color: #f8fafc;
}

.u-mega-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.u-mega-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.3px;
}
html:not([data-theme="dark"]) .u-mega-badge,
html[data-theme="light"] .u-mega-badge {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}
html[data-theme="dark"] .u-mega-badge {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.u-mega-badge.badge-internal {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}

.u-mega-view-hub {
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.15s ease;
}
html:not([data-theme="dark"]) .u-mega-view-hub,
html[data-theme="light"] .u-mega-view-hub {
    color: #0284c7;
}
html[data-theme="dark"] .u-mega-view-hub {
    color: #38bdf8;
}
.u-mega-view-hub:hover {
    text-decoration: underline;
    opacity: 0.85;
}

/* Multi-Panel Grid Layouts */
.u-mega-grid {
    display: grid;
    gap: 14px;
}
.u-mega-grid-2 {
    grid-template-columns: repeat(2, minmax(290px, 1fr));
}
.u-mega-grid-3 {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
}
.u-mega-grid-4 {
    grid-template-columns: repeat(4, minmax(240px, 1fr));
}

/* Individual Panel */
.u-mega-panel {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.u-mega-panel-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 7px;
    border-radius: 5px;
    margin-bottom: 3px;
    font-family: 'JetBrains Mono', monospace;
}
html:not([data-theme="dark"]) .u-mega-panel-title,
html[data-theme="light"] .u-mega-panel-title {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #f1f5f9;
}
html[data-theme="dark"] .u-mega-panel-title {
    background: #111827;
    color: #94a3b8;
    border: 1px solid #1e293b;
}

.u-mega-panel-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Individual Article Link (Compact) */
.u-mega-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 7px;
    border-radius: 5px;
    font-size: 11.5px;
    font-weight: 500;
    text-decoration: none;
    color: inherit;
    transition: all 0.12s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 25px;
    box-sizing: border-box;
    border: 1px solid transparent;
}
html:not([data-theme="dark"]) .u-mega-item,
html[data-theme="light"] .u-mega-item {
    color: #1e293b;
}
html:not([data-theme="dark"]) .u-mega-item:hover,
html[data-theme="light"] .u-mega-item:hover {
    background: #f1f5f9;
    color: #0284c7;
}
html:not([data-theme="dark"]) .u-mega-item.active,
html[data-theme="light"] .u-mega-item.active {
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 700;
    border-color: #bae6fd;
}
html[data-theme="dark"] .u-mega-item {
    color: #cbd5e1;
}
html[data-theme="dark"] .u-mega-item:hover {
    background: #1e293b;
    color: #38bdf8;
}
html[data-theme="dark"] .u-mega-item.active {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    font-weight: 700;
    border-color: rgba(56, 189, 248, 0.4);
}

.u-mega-item-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 18px;
    border-radius: 3px;
    font-size: 9.5px;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
}
html:not([data-theme="dark"]) .u-mega-item-badge,
html[data-theme="light"] .u-mega-item-badge {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
html[data-theme="dark"] .u-mega-item-badge {
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
}

.u-mega-item-badge.badge-internal {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}
.u-mega-item-badge.badge-ledger {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    width: auto !important;
    padding: 0 4px !important;
}
.u-mega-item-badge.badge-hub {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
}

.u-mega-item-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Specific Widths and Offsets */
.u-mega-internal {
    left: -100px;
    width: 680px;
    max-width: 95vw;
}
.u-mega-public {
    left: -280px;
    width: 1080px;
    max-width: 95vw;
}

/* Right: Search, Theme Toggle, Market Clock */
.u-admin-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Stock Market Ticking Clock */
.u-admin-clock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    user-select: none;
    line-height: 1;
    font-family: 'JetBrains Mono', -apple-system, BlinkMacSystemFont, "Segoe UI", monospace;
    transition: all 0.2s ease;
    cursor: default;
    border: 1px solid transparent;
}
.u-clock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.u-clock-status {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.u-clock-time {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* Status: Market Open (Green with Pulse) */
.u-admin-clock.status-open {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.35);
    color: #16a34a;
}
html[data-theme="dark"] .u-admin-clock.status-open {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.45);
    color: #4ade80;
}
.u-admin-clock.status-open .u-clock-dot {
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
    animation: uClockPulse 2s infinite;
}

@keyframes uClockPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Status: Pre-Market (Amber/Yellow) */
.u-admin-clock.status-pre {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.35);
    color: #d97706;
}
html[data-theme="dark"] .u-admin-clock.status-pre {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fbbf24;
}
.u-admin-clock.status-pre .u-clock-dot {
    background: #f59e0b;
    box-shadow: 0 0 6px #f59e0b;
}

/* Status: Post-Market / After-Hours (Blue/Purple) */
.u-admin-clock.status-post {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.35);
    color: #4f46e5;
}
html[data-theme="dark"] .u-admin-clock.status-post {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.45);
    color: #818cf8;
}
.u-admin-clock.status-post .u-clock-dot {
    background: #6366f1;
    box-shadow: 0 0 6px #6366f1;
}

/* Status: Closed (Slate/Gray) */
.u-admin-clock.status-closed {
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.25);
    color: #64748b;
}
html[data-theme="dark"] .u-admin-clock.status-closed {
    background: rgba(100, 116, 139, 0.15);
    border-color: rgba(100, 116, 139, 0.3);
    color: #94a3b8;
}
.u-admin-clock.status-closed .u-clock-dot {
    background: #94a3b8;
}

/* Search Box Container */
.u-admin-search-wrap {
    position: relative;
    width: 270px;
    transition: width 0.2s ease;
}
.u-admin-search-wrap:focus-within {
    width: 330px;
}
.u-admin-search-input {
    width: 100%;
    height: 34px;
    padding: 0 30px 0 32px;
    border-radius: 6px;
    font-size: 12px;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
    transition: all 0.15s ease;
}
html:not([data-theme="dark"]) .u-admin-search-input,
html[data-theme="light"] .u-admin-search-input {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}
html:not([data-theme="dark"]) .u-admin-search-input:focus,
html[data-theme="light"] .u-admin-search-input:focus {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
html[data-theme="dark"] .u-admin-search-input {
    background: #0f172a;
    border: 1px solid #334155;
    color: #ffffff;
}
html[data-theme="dark"] .u-admin-search-input:focus {
    background: #090d16;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}
.u-admin-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #64748b;
    pointer-events: none;
}
.u-admin-search-kbd {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-family: monospace;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.3);
    pointer-events: none;
}
.u-admin-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #64748b;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: none;
}

/* Theme Toggle Button */
.u-admin-theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid #cbd5e1;
    background: transparent;
    color: inherit;
    transition: all 0.15s ease;
    white-space: nowrap;
}
html:not([data-theme="dark"]) .u-admin-theme-btn,
html[data-theme="light"] .u-admin-theme-btn {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #334155;
}
html:not([data-theme="dark"]) .u-admin-theme-btn:hover,
html[data-theme="light"] .u-admin-theme-btn:hover {
    background: #f1f5f9;
    color: #0284c7;
}
html[data-theme="dark"] .u-admin-theme-btn {
    border-color: #334155;
    background: #0f172a;
    color: #cbd5e1;
}
html[data-theme="dark"] .u-admin-theme-btn:hover {
    background: #1e293b;
    color: #38bdf8;
}

/* Search Dropdown Results */
.u-admin-dropdown-results {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 480px;
    max-height: 520px;
    overflow-y: auto;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    z-index: 100002;
}
html:not([data-theme="dark"]) .u-admin-dropdown-results,
html[data-theme="light"] .u-admin-dropdown-results {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}
html[data-theme="dark"] .u-admin-dropdown-results {
    background: #0f172a;
    border: 1px solid #334155;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

.u-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.u-search-list {
    display: flex;
    flex-direction: column;
}
.u-search-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.12);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.12s ease;
}
.u-search-item:last-child {
    border-bottom: none;
}
html:not([data-theme="dark"]) .u-search-item:hover,
html:not([data-theme="dark"]) .u-search-item.selected,
html[data-theme="light"] .u-search-item:hover,
html[data-theme="light"] .u-search-item.selected {
    background: #f1f5f9;
}
html[data-theme="dark"] .u-search-item:hover,
html[data-theme="dark"] .u-search-item.selected {
    background: #1e293b;
}

.u-search-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}
.u-search-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
}
.u-search-snippet {
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}
html[data-theme="dark"] .u-search-snippet {
    color: #94a3b8;
}
.u-search-mark {
    background: rgba(234, 179, 8, 0.3);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 700;
}
.u-search-footer {
    padding: 8px 14px;
    border-top: 1px solid rgba(100, 116, 139, 0.2);
    font-size: 11px;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    background: rgba(100, 116, 139, 0.05);
}

/* Mobile Toggle */
.u-admin-hamburger {
    display: none;
    background: transparent;
    border: none;
    font-size: 18px;
    color: inherit;
    cursor: pointer;
    padding: 6px;
}

@media (max-width: 1240px) {
    .u-admin-link, .u-admin-dropdown-btn {
        padding: 5px 8px;
        font-size: 12px;
        gap: 4px;
    }
    .u-admin-search-wrap {
        width: 190px;
    }
    .u-admin-search-wrap:focus-within {
        width: 240px;
    }
}

@media (max-width: 1040px) {
    .u-admin-hamburger {
        display: block;
    }
    .u-admin-links {
        display: none;
        position: absolute;
        top: 52px;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 12px;
        gap: 6px;
        z-index: 100005;
    }
    html:not([data-theme="dark"]) .u-admin-links,
    html[data-theme="light"] .u-admin-links {
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    html[data-theme="dark"] .u-admin-links {
        background: #090d16;
        border-bottom: 1px solid #334155;
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    }
    #uniformAdminMenu.mobile-open .u-admin-links {
        display: flex;
    }
    .u-admin-dropdown {
        width: 100%;
    }
    .u-admin-dropdown-btn {
        width: 100%;
        justify-content: space-between;
    }
    .u-admin-dropdown-menu {
        position: static;
        width: 100%;
        box-sizing: border-box;
        box-shadow: none;
        margin-top: 4px;
        border: 1px solid rgba(148, 163, 184, 0.25);
    }
    .u-mega-internal,
    .u-mega-public {
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 480px;
    }
    .u-mega-grid-4,
    .u-mega-grid-3,
    .u-mega-grid-2 {
        grid-template-columns: 1fr;
    }
    .u-admin-search-wrap {
        width: 160px;
    }
    .u-admin-dropdown-results {
        width: calc(100vw - 32px);
        right: -50px;
    }
}

@media (max-width: 680px) {
    .u-admin-clock .u-clock-status {
        display: none;
    }
    .u-admin-clock {
        padding: 4px 6px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .u-admin-search-wrap {
        width: 120px;
    }
}

/* ==========================================================================
   UNIVERSAL PAGE LIGHT MODE (for /admin/* and /evergreen/* pages with Admin Menu)
   ========================================================================== */
html.u-theme-managed:not([data-theme="dark"]),
html.u-theme-managed[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-body: #f8fafc;
    --bg-base: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-subtle: #f1f5f9;
    --bg-card-hover: #e2e8f0;
    --bg-panel: #ffffff;
    --bg-input: #ffffff;
    --border-color: #cbd5e1;
    --border-card: #e2e8f0;
    --text-primary: #0f172a;
    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent-blue: #0284c7;
    --accent-cyan: #0284c7;
    --accent-green: #059669;
}

html.u-theme-managed:not([data-theme="dark"]) body,
html.u-theme-managed[data-theme="light"] body {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    color: #0f172a !important;
}

html.u-theme-managed:not([data-theme="dark"]) .card-box,
html.u-theme-managed[data-theme="light"] .card-box,
html.u-theme-managed:not([data-theme="dark"]) .kpi-card,
html.u-theme-managed[data-theme="light"] .kpi-card,
html.u-theme-managed:not([data-theme="dark"]) .metric-card,
html.u-theme-managed[data-theme="light"] .metric-card,
html.u-theme-managed:not([data-theme="dark"]) .module-card,
html.u-theme-managed[data-theme="light"] .module-card,
html.u-theme-managed:not([data-theme="dark"]) .panel,
html.u-theme-managed[data-theme="light"] .panel,
html.u-theme-managed:not([data-theme="dark"]) .filter-bar,
html.u-theme-managed[data-theme="light"] .filter-bar,
html.u-theme-managed:not([data-theme="dark"]) .hamburger-dropdown,
html.u-theme-managed[data-theme="light"] .hamburger-dropdown {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

html.u-theme-managed:not([data-theme="dark"]) .data-table th,
html.u-theme-managed[data-theme="light"] .data-table th,
html.u-theme-managed:not([data-theme="dark"]) table thead th,
html.u-theme-managed[data-theme="light"] table thead th {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}

html.u-theme-managed:not([data-theme="dark"]) .data-table td,
html.u-theme-managed[data-theme="light"] .data-table td,
html.u-theme-managed:not([data-theme="dark"]) table tbody td,
html.u-theme-managed[data-theme="light"] table tbody td {
    border-color: #e2e8f0 !important;
}

html.u-theme-managed:not([data-theme="dark"]) .form-input,
html.u-theme-managed[data-theme="light"] .form-input,
html.u-theme-managed:not([data-theme="dark"]) .form-select,
html.u-theme-managed[data-theme="light"] .form-select,
html.u-theme-managed:not([data-theme="dark"]) input[type="text"],
html.u-theme-managed[data-theme="light"] input[type="text"],
html.u-theme-managed:not([data-theme="dark"]) input[type="date"],
html.u-theme-managed[data-theme="light"] input[type="date"],
html.u-theme-managed:not([data-theme="dark"]) select,
html.u-theme-managed[data-theme="light"] select {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

html.u-theme-managed:not([data-theme="dark"]) h1[style*="color: #fff"],
html.u-theme-managed[data-theme="light"] h1[style*="color: #fff"],
html.u-theme-managed:not([data-theme="dark"]) h2[style*="color: #fff"],
html.u-theme-managed[data-theme="light"] h2[style*="color: #fff"],
html.u-theme-managed:not([data-theme="dark"]) h3[style*="color: #fff"],
html.u-theme-managed[data-theme="light"] h3[style*="color: #fff"],
html.u-theme-managed:not([data-theme="dark"]) strong[style*="color: #fff"],
html.u-theme-managed[data-theme="light"] strong[style*="color: #fff"],
html.u-theme-managed:not([data-theme="dark"]) strong[style*="color:#fff"],
html.u-theme-managed[data-theme="light"] strong[style*="color:#fff"],
html.u-theme-managed:not([data-theme="dark"]) td[style*="color: #fff"],
html.u-theme-managed[data-theme="light"] td[style*="color: #fff"],
html.u-theme-managed:not([data-theme="dark"]) span[style*="color: #fff"],
html.u-theme-managed[data-theme="light"] span[style*="color: #fff"],
html.u-theme-managed:not([data-theme="dark"]) .brand-title,
html.u-theme-managed[data-theme="light"] .brand-title,
html.u-theme-managed:not([data-theme="dark"]) .brand-title span,
html.u-theme-managed[data-theme="light"] .brand-title span,
html.u-theme-managed:not([data-theme="dark"]) .section-title,
html.u-theme-managed[data-theme="light"] .section-title,
html.u-theme-managed:not([data-theme="dark"]) .section-title span,
html.u-theme-managed[data-theme="light"] .section-title span,
html.u-theme-managed:not([data-theme="dark"]) .kpi-value,
html.u-theme-managed[data-theme="light"] .kpi-value,
html.u-theme-managed:not([data-theme="dark"]) .stat-val,
html.u-theme-managed[data-theme="light"] .stat-val,
html.u-theme-managed:not([data-theme="dark"]) .strip-val,
html.u-theme-managed[data-theme="light"] .strip-val,
html.u-theme-managed:not([data-theme="dark"]) .chart-title,
html.u-theme-managed[data-theme="light"] .chart-title,
html.u-theme-managed:not([data-theme="dark"]) .summary-text,
html.u-theme-managed[data-theme="light"] .summary-text,
html.u-theme-managed:not([data-theme="dark"]) #bannerActiveDate,
html.u-theme-managed[data-theme="light"] #bannerActiveDate,
html.u-theme-managed:not([data-theme="dark"]) #bannerActiveDate strong,
html.u-theme-managed[data-theme="light"] #bannerActiveDate strong,
html.u-theme-managed:not([data-theme="dark"]) .banner-separator,
html.u-theme-managed[data-theme="light"] .banner-separator,
html.u-theme-managed:not([data-theme="dark"]) div[style*="color: #fff"],
html.u-theme-managed[data-theme="light"] div[style*="color: #fff"],
html.u-theme-managed:not([data-theme="dark"]) table td,
html.u-theme-managed[data-theme="light"] table td,
html.u-theme-managed:not([data-theme="dark"]) table td.mono,
html.u-theme-managed[data-theme="light"] table td.mono {
    color: #0f172a !important;
}

html.u-theme-managed:not([data-theme="dark"]) .summary-banner,
html.u-theme-managed[data-theme="light"] .summary-banner,
html.u-theme-managed:not([data-theme="dark"]) .head-toggle-pills,
html.u-theme-managed[data-theme="light"] .head-toggle-pills,
html.u-theme-managed:not([data-theme="dark"]) .formula-box,
html.u-theme-managed[data-theme="light"] .formula-box,
html.u-theme-managed:not([data-theme="dark"]) .btn-group,
html.u-theme-managed[data-theme="light"] .btn-group,
html.u-theme-managed:not([data-theme="dark"]) .telemetry-pill,
html.u-theme-managed[data-theme="light"] .telemetry-pill,
html.u-theme-managed:not([data-theme="dark"]) .filter-controls-bar,
html.u-theme-managed[data-theme="light"] .filter-controls-bar,
html.u-theme-managed:not([data-theme="dark"]) .view-limit-toggle-group,
html.u-theme-managed[data-theme="light"] .view-limit-toggle-group,
html.u-theme-managed:not([data-theme="dark"]) .table-responsive-wrapper,
html.u-theme-managed[data-theme="light"] .table-responsive-wrapper,
html.u-theme-managed:not([data-theme="dark"]) .stat-card,
html.u-theme-managed[data-theme="light"] .stat-card,
html.u-theme-managed:not([data-theme="dark"]) .horizon-group,
html.u-theme-managed[data-theme="light"] .horizon-group,
html.u-theme-managed:not([data-theme="dark"]) .spy-stats-strip,
html.u-theme-managed[data-theme="light"] .spy-stats-strip,
html.u-theme-managed:not([data-theme="dark"]) .company-stats-strip,
html.u-theme-managed[data-theme="light"] .company-stats-strip,
html.u-theme-managed:not([data-theme="dark"]) div[style*="background: rgba(11, 15, 23"],
html.u-theme-managed[data-theme="light"] div[style*="background: rgba(11, 15, 23"],
html.u-theme-managed:not([data-theme="dark"]) div[style*="background: rgba(15, 23, 42"],
html.u-theme-managed[data-theme="light"] div[style*="background: rgba(15, 23, 42"],
html.u-theme-managed:not([data-theme="dark"]) div[style*="background: rgba(30, 41, 59"],
html.u-theme-managed[data-theme="light"] div[style*="background: rgba(30, 41, 59"] {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html.u-theme-managed:not([data-theme="dark"]) .head-toggle-pill,
html.u-theme-managed[data-theme="light"] .head-toggle-pill,
html.u-theme-managed:not([data-theme="dark"]) .horizon-btn,
html.u-theme-managed[data-theme="light"] .horizon-btn {
    color: #334155 !important;
}
html.u-theme-managed:not([data-theme="dark"]) .head-toggle-pill.active,
html.u-theme-managed[data-theme="light"] .head-toggle-pill.active,
html.u-theme-managed:not([data-theme="dark"]) .horizon-btn.active,
html.u-theme-managed[data-theme="light"] .horizon-btn.active {
    background: #0284c7 !important;
    color: #ffffff !important;
}

html.u-theme-managed:not([data-theme="dark"]) .text-yellow,
html.u-theme-managed[data-theme="light"] .text-yellow,
html.u-theme-managed:not([data-theme="dark"]) [style*="color: #facc15"],
html.u-theme-managed[data-theme="light"] [style*="color: #facc15"],
html.u-theme-managed:not([data-theme="dark"]) [style*="color: #fbbf24"],
html.u-theme-managed[data-theme="light"] [style*="color: #fbbf24"],
html.u-theme-managed:not([data-theme="dark"]) [style*="color: #eab308"],
html.u-theme-managed[data-theme="light"] [style*="color: #eab308"] {
    color: #b45309 !important;
}
html.u-theme-managed:not([data-theme="dark"]) .text-green,
html.u-theme-managed[data-theme="light"] .text-green,
html.u-theme-managed:not([data-theme="dark"]) [style*="color: #4ade80"],
html.u-theme-managed[data-theme="light"] [style*="color: #4ade80"],
html.u-theme-managed:not([data-theme="dark"]) [style*="color: #22c55e"],
html.u-theme-managed[data-theme="light"] [style*="color: #22c55e"],
html.u-theme-managed:not([data-theme="dark"]) [style*="color: #34d399"],
html.u-theme-managed[data-theme="light"] [style*="color: #34d399"] {
    color: #15803d !important;
}
html.u-theme-managed:not([data-theme="dark"]) .text-red,
html.u-theme-managed[data-theme="light"] .text-red,
html.u-theme-managed:not([data-theme="dark"]) [style*="color: #f87171"],
html.u-theme-managed[data-theme="light"] [style*="color: #f87171"],
html.u-theme-managed:not([data-theme="dark"]) [style*="color: #ef4444"],
html.u-theme-managed[data-theme="light"] [style*="color: #ef4444"] {
    color: #b91c1c !important;
}
html.u-theme-managed:not([data-theme="dark"]) [style*="color: #38bdf8"],
html.u-theme-managed[data-theme="light"] [style*="color: #38bdf8"] {
    color: #0369a1 !important;
}
html.u-theme-managed:not([data-theme="dark"]) [style*="color: #cbd5e1"],
html.u-theme-managed[data-theme="light"] [style*="color: #cbd5e1"],
html.u-theme-managed:not([data-theme="dark"]) [style*="color:#cbd5e1"],
html.u-theme-managed[data-theme="light"] [style*="color:#cbd5e1"],
html.u-theme-managed:not([data-theme="dark"]) [style*="color: #94a3b8"],
html.u-theme-managed[data-theme="light"] [style*="color: #94a3b8"],
html.u-theme-managed:not([data-theme="dark"]) [style*="color:#94a3b8"],
html.u-theme-managed[data-theme="light"] [style*="color:#94a3b8"],
html.u-theme-managed:not([data-theme="dark"]) .preset-label,
html.u-theme-managed[data-theme="light"] .preset-label {
    color: #475569 !important;
}
html.u-theme-managed:not([data-theme="dark"]) [style*="color: #c084fc"],
html.u-theme-managed[data-theme="light"] [style*="color: #c084fc"] {
    color: #7e22ce !important;
}
html.u-theme-managed:not([data-theme="dark"]) [style*="color: #f97316"],
html.u-theme-managed[data-theme="light"] [style*="color: #f97316"] {
    color: #c2410c !important;
}
html.u-theme-managed:not([data-theme="dark"]) [style*="color: #6ee7b7"],
html.u-theme-managed[data-theme="light"] [style*="color: #6ee7b7"],
html.u-theme-managed:not([data-theme="dark"]) [style*="color: #bbf7d0"],
html.u-theme-managed[data-theme="light"] [style*="color: #bbf7d0"],
html.u-theme-managed:not([data-theme="dark"]) [style*="74, 222, 128"],
html.u-theme-managed[data-theme="light"] [style*="74, 222, 128"] {
    color: #15803d !important;
}
html.u-theme-managed:not([data-theme="dark"]) [style*="color: #bae6fd"],
html.u-theme-managed[data-theme="light"] [style*="color: #bae6fd"],
html.u-theme-managed:not([data-theme="dark"]) .held-slot-tag,
html.u-theme-managed[data-theme="light"] .held-slot-tag {
    color: #0369a1 !important;
}
html.u-theme-managed:not([data-theme="dark"]) .summary-cap,
html.u-theme-managed[data-theme="light"] .summary-cap,
html.u-theme-managed:not([data-theme="dark"]) .controls-title,
html.u-theme-managed[data-theme="light"] .controls-title,
html.u-theme-managed:not([data-theme="dark"]) .dense-company,
html.u-theme-managed[data-theme="light"] .dense-company,
html.u-theme-managed:not([data-theme="dark"]) #chartHeading,
html.u-theme-managed[data-theme="light"] #chartHeading,
html.u-theme-managed:not([data-theme="dark"]) .ticker-pill:not(.ticker-pill-held),
html.u-theme-managed[data-theme="light"] .ticker-pill:not(.ticker-pill-held),
html.u-theme-managed:not([data-theme="dark"]) .score-pill:not(.score-pill-held),
html.u-theme-managed[data-theme="light"] .score-pill:not(.score-pill-held),
html.u-theme-managed:not([data-theme="dark"]) .top-header span[style*="color:#fff"],
html.u-theme-managed[data-theme="light"] .top-header span[style*="color:#fff"] {
    color: #0f172a !important;
}
html.u-theme-managed:not([data-theme="dark"]) .step-btn,
html.u-theme-managed[data-theme="light"] .step-btn {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
html.u-theme-managed:not([data-theme="dark"]) .hybrid-page-btn.active,
html.u-theme-managed[data-theme="light"] .hybrid-page-btn.active {
    background: #0284c7 !important;
    color: #ffffff !important;
}
html.u-theme-managed:not([data-theme="dark"]) .score-pill-held,
html.u-theme-managed[data-theme="light"] .score-pill-held {
    background: #059669 !important;
    color: #ffffff !important;
}
html.u-theme-managed:not([data-theme="dark"]) span[style*="background: rgb(30, 41, 59)"],
html.u-theme-managed[data-theme="light"] span[style*="background: rgb(30, 41, 59)"] {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}
html.u-theme-managed:not([data-theme="dark"]) .slot-ticker,
html.u-theme-managed[data-theme="light"] .slot-ticker,
html.u-theme-managed:not([data-theme="dark"]) .slot-val,
html.u-theme-managed[data-theme="light"] .slot-val,
html.u-theme-managed:not([data-theme="dark"]) .enhanced-ticker,
html.u-theme-managed[data-theme="light"] .enhanced-ticker,
html.u-theme-managed:not([data-theme="dark"]) .top-header span,
html.u-theme-managed[data-theme="light"] .top-header span,
html.u-theme-managed:not([data-theme="dark"]) [style*="color: #e2e8f0"],
html.u-theme-managed[data-theme="light"] [style*="color: #e2e8f0"],
html.u-theme-managed:not([data-theme="dark"]) [style*="226, 232, 240"],
html.u-theme-managed[data-theme="light"] [style*="226, 232, 240"] {
    color: #0f172a !important;
}
html.u-theme-managed:not([data-theme="dark"]) .ticker-pill-held,
html.u-theme-managed[data-theme="light"] .ticker-pill-held {
    background: #059669 !important;
    color: #ffffff !important;
}
html.u-theme-managed:not([data-theme="dark"]) .date-preset-pill,
html.u-theme-managed[data-theme="light"] .date-preset-pill {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
html.u-theme-managed:not([data-theme="dark"]) .preset-btn.active,
html.u-theme-managed[data-theme="light"] .preset-btn.active {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}
html.u-theme-managed:not([data-theme="dark"]) .widget-badge,
html.u-theme-managed[data-theme="light"] .widget-badge,
html.u-theme-managed:not([data-theme="dark"]) #btnCloseControlsCard,
html.u-theme-managed[data-theme="light"] #btnCloseControlsCard,
html.u-theme-managed:not([data-theme="dark"]) .badge-queue,
html.u-theme-managed[data-theme="light"] .badge-queue {
    color: #b45309 !important;
}
html.u-theme-managed:not([data-theme="dark"]) .badge-pass,
html.u-theme-managed[data-theme="light"] .badge-pass,
html.u-theme-managed:not([data-theme="dark"]) .badge-active,
html.u-theme-managed[data-theme="light"] .badge-active,
html.u-theme-managed:not([data-theme="dark"]) #heldLegendLabel,
html.u-theme-managed[data-theme="light"] #heldLegendLabel {
    color: #15803d !important;
}
html.u-theme-managed:not([data-theme="dark"]) .badge-monitored,
html.u-theme-managed[data-theme="light"] .badge-monitored,
html.u-theme-managed:not([data-theme="dark"]) [style*="203, 213, 225"],
html.u-theme-managed[data-theme="light"] [style*="203, 213, 225"] {
    color: #475569 !important;
}
html.u-theme-managed:not([data-theme="dark"]) [style*="color: #93c5fd"],
html.u-theme-managed[data-theme="light"] [style*="color: #93c5fd"] {
    color: #0369a1 !important;
}
html.u-theme-managed:not([data-theme="dark"]) [style*="color: #fdba74"],
html.u-theme-managed[data-theme="light"] [style*="color: #fdba74"] {
    color: #c2410c !important;
}
html.u-theme-managed:not([data-theme="dark"]) [style*="color: #fca5a5"],
html.u-theme-managed[data-theme="light"] [style*="color: #fca5a5"] {
    color: #b91c1c !important;
}
html.u-theme-managed:not([data-theme="dark"]) .summary-stat-card,
html.u-theme-managed[data-theme="light"] .summary-stat-card,
html.u-theme-managed:not([data-theme="dark"]) .controls-panel,
html.u-theme-managed[data-theme="light"] .controls-panel,
html.u-theme-managed:not([data-theme="dark"]) .dynamic-summary-banner,
html.u-theme-managed[data-theme="light"] .dynamic-summary-banner,
html.u-theme-managed:not([data-theme="dark"]) .chip-weight,
html.u-theme-managed[data-theme="light"] .chip-weight {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
html.u-theme-managed:not([data-theme="dark"]) .enhanced-price,
html.u-theme-managed[data-theme="light"] .enhanced-price,
html.u-theme-managed:not([data-theme="dark"]) .enhanced-core-val:not(.text-blue):not(.text-green):not(.text-red),
html.u-theme-managed[data-theme="light"] .enhanced-core-val:not(.text-blue):not(.text-green):not(.text-red),
html.u-theme-managed:not([data-theme="dark"]) .kpi-tile-value,
html.u-theme-managed[data-theme="light"] .kpi-tile-value,
html.u-theme-managed:not([data-theme="dark"]) #valUniverseCount,
html.u-theme-managed[data-theme="light"] #valUniverseCount,
html.u-theme-managed:not([data-theme="dark"]) h1 span,
html.u-theme-managed[data-theme="light"] h1 span,
html.u-theme-managed:not([data-theme="dark"]) .blotter-header a span,
html.u-theme-managed[data-theme="light"] .blotter-header a span {
    color: #0f172a !important;
}
html.u-theme-managed:not([data-theme="dark"]) .badge-green,
html.u-theme-managed[data-theme="light"] .badge-green,
html.u-theme-managed:not([data-theme="dark"]) #valQualifyingCount,
html.u-theme-managed[data-theme="light"] #valQualifyingCount,
html.u-theme-managed:not([data-theme="dark"]) .slots-bar-title,
html.u-theme-managed[data-theme="light"] .slots-bar-title {
    color: #15803d !important;
}
html.u-theme-managed:not([data-theme="dark"]) #valDisqualifiedCount,
html.u-theme-managed[data-theme="light"] #valDisqualifiedCount {
    color: #b91c1c !important;
}

/* Hide duplicate page-level .top-header when Uniform Admin Menu is mounted */
html.u-theme-managed .top-header {
    display: none !important;
}

/* 3-Column Tools Dropdown */
.u-admin-dropdown.dropdown-right .u-admin-dropdown-menu.u-tools-menu {
    left: 0;
    right: auto;
    min-width: 680px;
    max-width: calc(100vw - 24px);
    padding: 12px;
}
.u-admin-dropdown.open .u-admin-dropdown-menu.u-tools-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(195px, 1fr));
    gap: 12px;
}
.u-tools-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.u-tools-col-hdr {
    padding: 4px 10px 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.65;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    margin-bottom: 4px;
}
@media (max-width: 1040px) {
    .u-admin-dropdown.dropdown-right .u-admin-dropdown-menu.u-tools-menu {
        min-width: 100%;
    }
    .u-admin-dropdown.open .u-admin-dropdown-menu.u-tools-menu {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
