/* =========================================================================
   Universal Hub Spot — Editorial Daylight Light Theme (Phase 1)
   Strictly scoped to html[data-theme="light"] — ZERO impact on Dark Mode.
   Covers: Global Header/Footer, /compatibility/, /blog/ & Single Posts.
   ========================================================================= */

html[data-theme="light"] {
    color-scheme: light;
    --uhs-l-bg: #f3efe6;
    --uhs-l-surface: #fcfbf7;
    --uhs-l-surface2: #ece7dc;
    --uhs-l-border: #e3ddd1;
    --uhs-l-border-strong: #d4cbb9;
    --uhs-l-text: #1c1917;
    --uhs-l-muted: #57534e;
}

html[data-theme="light"] body {
    background-color: var(--uhs-l-bg) !important;
    color: var(--uhs-l-text);
}

/* ======================== GLOBAL HEADER ======================== */
html[data-theme="light"] .uhs-dark-header {
    background: rgba(252, 251, 247, 0.94) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--uhs-l-border) !important;
    box-shadow: 0 2px 12px rgba(28, 25, 23, 0.06);
}

html[data-theme="light"] .uhs-dh-logo,
html[data-theme="light"] .uhs-dh-logo:hover {
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-dh-logo-badge {
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .uhs-dh-link {
    color: #475569 !important;
}

html[data-theme="light"] .uhs-dh-link:hover,
html[data-theme="light"] .uhs-dh-link.is-active {
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-dh-pill-rose {
    background: #ffe4e6 !important;
    color: #be123c !important;
    border-color: #fecdd3 !important;
}
html[data-theme="light"] .uhs-dh-pill-cyan {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border-color: #bae6fd !important;
}
html[data-theme="light"] .uhs-dh-pill-emerald {
    background: #d1fae5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
}
html[data-theme="light"] .uhs-dh-pill-terracotta {
    background: #ffedd5 !important;
    color: #c2410c !important;
    border-color: #fed7aa !important;
}
html[data-theme="light"] .uhs-dh-pill-amber {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border-color: #fde68a !important;
}

html[data-theme="light"] button.uhs-dh-burger,
html[data-theme="light"] button.uhs-dh-theme-btn {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme="light"] button.uhs-dh-burger:hover,
html[data-theme="light"] button.uhs-dh-theme-btn:hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #020617 !important;
}

html[data-theme="light"] .uhs-dh-drawer {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .uhs-dh-drawer-link {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-dh-drawer-link:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

/* ======================== GLOBAL FOOTER ======================== */
html[data-theme="light"] .uhs-dark-footer {
    background: #eae4d7 !important;
    border-top: 1px solid var(--uhs-l-border-strong) !important;
    color: var(--uhs-l-text) !important;
}

html[data-theme="light"] .uhs-df-brand-title,
html[data-theme="light"] .uhs-df-col-title {
    color: #1c1917 !important;
}

html[data-theme="light"] .uhs-df-brand-desc,
html[data-theme="light"] .uhs-df-links a,
html[data-theme="light"] .uhs-df-bottom,
html[data-theme="light"] .uhs-df-bottom a {
    color: #57534e !important;
}

html[data-theme="light"] .uhs-df-links a:hover {
    color: #0284c7 !important;
}

html[data-theme="light"] .uhs-df-bottom {
    border-top-color: #d4cbb9 !important;
}

/* ======================== /COMPATIBILITY/ PAGE ======================== */
html[data-theme="light"] .uhs-compat-page {
    --c-bg: #f8fafc;
    --c-surface: #ffffff;
    --c-surface-2: #f1f5f9;
    --c-border: #e2e8f0;
    --c-text: #0f172a;
    --c-muted: #475569;
    --c-accent: #0284c7;
    --c-accent2: #4f46e5;
    --c-harmony: #059669;
    --c-caution: #d97706;
    --c-danger: #dc2626;
    background: var(--c-bg) !important;
    color: var(--c-text) !important;
}

html[data-theme="light"] .uhs-compat-sticky-bar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .uhs-compat-sticky-chip {
    background: rgba(var(--slot-rgb, 2, 132, 199), 0.1) !important;
}

html[data-theme="light"] .uhs-compat-sticky-chip-name {
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-compat-sticky-btn {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-compat-sticky-btn:hover {
    background: #e2e8f0 !important;
}

html[data-theme="light"] .uhs-compat-sticky-score.is-harmony {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border-color: #6ee7b7 !important;
}
html[data-theme="light"] .uhs-compat-sticky-score.is-caution {
    background: #fef3c7 !important;
    color: #92400e !important;
    border-color: #fcd34d !important;
}
html[data-theme="light"] .uhs-compat-sticky-score.is-danger {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #fca5a5 !important;
}

/* Hero & Presets */
html[data-theme="light"] .uhs-compat-hero {
    background: linear-gradient(145deg, #ffffff 0%, #eff6ff 55%, #f0fdf4 100%) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .uhs-compat-hero h1,
html[data-theme="light"] .uhs-compat-builder h2,
html[data-theme="light"] .uhs-compat-sec-head h2,
html[data-theme="light"] .uhs-compat-top20-head h2,
html[data-theme="light"] .uhs-compat-empty h3 {
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-compat-kicker,
html[data-theme="light"] .uhs-compat-sec-kicker {
    color: #0284c7 !important;
}

html[data-theme="light"] .uhs-compat-preset-btn,
html[data-theme="light"] .uhs-compat-scenario-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .uhs-compat-preset-btn:hover,
html[data-theme="light"] .uhs-compat-scenario-btn:hover {
    background: #f0f9ff !important;
    border-color: #38bdf8 !important;
    color: #0369a1 !important;
}

/* Builder & 4 Slots */
html[data-theme="light"] .uhs-compat-builder {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .uhs-compat-count {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border-color: #bae6fd !important;
}

html[data-theme="light"] .uhs-compat-action-btn {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}

html[data-theme="light"] .uhs-compat-action-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-compat-slot {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .uhs-compat-slot.is-empty {
    background: #f8fafc !important;
    border: 1.5px dashed #cbd5e1 !important;
    color: #64748b !important;
}

html[data-theme="light"] .uhs-compat-slot.is-empty:hover {
    background: #f0f9ff !important;
    border-color: #0284c7 !important;
    color: #0369a1 !important;
}

html[data-theme="light"] .uhs-compat-slot-info {
    background: #ffffff !important;
}

html[data-theme="light"] .uhs-compat-slot-name {
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-compat-slot-grp {
    color: #64748b !important;
}

/* Overall Summary Card */
html[data-theme="light"] .uhs-compat-summary-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .uhs-compat-summary-card.is-harmony {
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 65%) !important;
    border-color: #6ee7b7 !important;
}

html[data-theme="light"] .uhs-compat-summary-card.is-caution {
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 65%) !important;
    border-color: #fcd34d !important;
}

html[data-theme="light"] .uhs-compat-summary-card.is-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 65%) !important;
    border-color: #fca5a5 !important;
}

html[data-theme="light"] .uhs-compat-gauge-bg {
    stroke: #e2e8f0 !important;
}

html[data-theme="light"] .uhs-compat-gauge-val,
html[data-theme="light"] .uhs-compat-summary-title {
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-compat-summary-desc,
html[data-theme="light"] .uhs-compat-summary-meta {
    color: #334155 !important;
}

html[data-theme="light"] .uhs-compat-sem-pill.is-harmony {
    background: #d1fae5 !important;
    color: #065f46 !important;
}
html[data-theme="light"] .uhs-compat-sem-pill.is-caution {
    background: #fef3c7 !important;
    color: #92400e !important;
}
html[data-theme="light"] .uhs-compat-sem-pill.is-danger {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

html[data-theme="light"] .uhs-compat-summary-kpis {
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .uhs-compat-kpi {
    background: rgba(248, 250, 252, 0.9) !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .uhs-compat-kpi span {
    color: #475569 !important;
}

/* View Tabs (Pair Diagnostics / Top 20 Matches) */
html[data-theme="light"] .uhs-compat-view-tabs {
    background: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .uhs-compat-view-tab {
    color: #475569 !important;
}

html[data-theme="light"] .uhs-compat-view-tab.is-active {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

/* Pair-by-Pair Accordion */
html[data-theme="light"] .uhs-compat-pair-acc {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .uhs-compat-pair-title {
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-compat-pair-title span {
    color: #64748b !important;
}

html[data-theme="light"] .uhs-compat-pair-tag.is-danger  { color: #b91c1c !important; }
html[data-theme="light"] .uhs-compat-pair-tag.is-caution { color: #b45309 !important; }
html[data-theme="light"] .uhs-compat-pair-tag.is-harmony { color: #047857 !important; }

html[data-theme="light"] .uhs-compat-pair-score.is-harmony { background: #d1fae5 !important; color: #065f46 !important; }
html[data-theme="light"] .uhs-compat-pair-score.is-caution { background: #fef3c7 !important; color: #92400e !important; }
html[data-theme="light"] .uhs-compat-pair-score.is-danger  { background: #fee2e2 !important; color: #991b1b !important; }

html[data-theme="light"] .uhs-compat-pair-body-inner {
    border-top-color: #e2e8f0 !important;
}

html[data-theme="light"] .uhs-compat-flag {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}

html[data-theme="light"] .uhs-compat-tips {
    background: #f0f9ff !important;
    border-color: #bae6fd !important;
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-compat-tips li {
    color: #334155 !important;
}

/* Safe Swaps & Affiliate Cards */
html[data-theme="light"] .uhs-compat-alt-card,
html[data-theme="light"] .uhs-compat-aff-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .uhs-compat-alt-card h3,
html[data-theme="light"] .uhs-compat-aff-card h3 {
    color: #0f172a !important;
}

/* Top 20 Matches Section */
html[data-theme="light"] .uhs-compat-top20-sec {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .uhs-compat-top20-tab {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

html[data-theme="light"] .uhs-compat-top20-tab.is-active {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}

html[data-theme="light"] .uhs-compat-mode-switch {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

html[data-theme="light"] .uhs-compat-mode-btn {
    color: #475569 !important;
}

html[data-theme="light"] .uhs-compat-mode-btn.is-active {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .uhs-compat-t20-mini,
html[data-theme="light"] .uhs-compat-t20-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .uhs-compat-t20-mini:hover,
html[data-theme="light"] .uhs-compat-t20-card:hover {
    background: #ffffff !important;
    border-color: #94a3b8 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07) !important;
}

html[data-theme="light"] .uhs-compat-t20-mini-name,
html[data-theme="light"] .uhs-compat-t20-name {
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-compat-t20-mini-rank,
html[data-theme="light"] .uhs-compat-t20-rank-badge {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-compat-t20-mini-pct.is-harmony,
html[data-theme="light"] .uhs-compat-t20-pct-box.is-harmony { color: #047857 !important; }
html[data-theme="light"] .uhs-compat-t20-mini-pct.is-caution,
html[data-theme="light"] .uhs-compat-t20-pct-box.is-caution { color: #b45309 !important; }
html[data-theme="light"] .uhs-compat-t20-mini-pct.is-danger,
html[data-theme="light"] .uhs-compat-t20-pct-box.is-danger  { color: #b91c1c !important; }

html[data-theme="light"] .uhs-compat-t20-chip {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

html[data-theme="light"] .uhs-compat-t20-right {
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .uhs-compat-t20-prof-link {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-compat-t20-add {
    background: #e0f2fe !important;
    border-color: #7dd3fc !important;
    color: #0369a1 !important;
}

html[data-theme="light"] .uhs-compat-t20-add:hover:not(:disabled) {
    background: #0284c7 !important;
    color: #ffffff !important;
}

/* Picker Modal */
html[data-theme="light"] .uhs-compat-modal-backdrop {
    background: rgba(15, 23, 42, 0.45) !important;
}

html[data-theme="light"] .uhs-compat-modal-dialog {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22) !important;
}

html[data-theme="light"] .uhs-compat-modal-head,
html[data-theme="light"] .uhs-compat-modal-selected,
html[data-theme="light"] .uhs-compat-modal-controls,
html[data-theme="light"] .uhs-compat-modal-foot {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .uhs-compat-modal-title {
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-compat-modal-close {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

html[data-theme="light"] .uhs-compat-search-input {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-compat-search-input::placeholder {
    color: #64748b !important;
}

html[data-theme="light"] .uhs-compat-cat-tab {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

html[data-theme="light"] .uhs-compat-cat-tab.is-active {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}

html[data-theme="light"] .uhs-compat-modal-grid {
    background: #f8fafc !important;
}

html[data-theme="light"] .uhs-compat-pick-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .uhs-compat-pick-card:hover:not(:disabled) {
    border-color: #38bdf8 !important;
    background: #f0f9ff !important;
}

html[data-theme="light"] .uhs-compat-pick-card.is-picked {
    background: #ecfdf5 !important;
    border-color: #10b981 !important;
}

html[data-theme="light"] .uhs-compat-pick-name {
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-compat-pick-sub {
    color: #64748b !important;
}

html[data-theme="light"] .uhs-compat-pick-cta {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-compat-pick-card.is-picked .uhs-compat-pick-cta {
    background: #10b981 !important;
    color: #ffffff !important;
}

html[data-theme="light"] .uhs-compat-picker-more {
    background: #e0f2fe !important;
    border-color: #7dd3fc !important;
    color: #0369a1 !important;
}

/* FAQ & Empty */
html[data-theme="light"] .uhs-compat-faq-item,
html[data-theme="light"] .uhs-compat-empty {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .uhs-compat-faq-btn {
    color: #0f172a !important;
}

/* ======================== /BLOG/ & SINGLE POSTS ======================== */
html[data-theme="light"] body.uhs-blog-body,
html[data-theme="light"] body.uhs-blog-body .site-content,
html[data-theme="light"] body.uhs-blog-body #content,
html[data-theme="light"] body.uhs-blog-body .ast-container,
html[data-theme="light"] body.uhs-blog-body #primary,
html[data-theme="light"] body.uhs-blog-body .main-content {
    background: #f8fafc !important;
}

html[data-theme="light"] .uhs-blog {
    --bl-bg: #f8fafc;
    --bl-surface: #ffffff;
    --bl-surface2: #f1f5f9;
    --bl-border: #e2e8f0;
    --bl-text: #1c1917;
    --bl-muted: #57534e;
    --bl-heading: #0f172a;
    background:
        radial-gradient(900px 420px at 15% -5%, rgba(var(--bl-rgb, 2, 132, 199), 0.08), transparent 60%),
        var(--bl-bg) !important;
    color: var(--bl-text) !important;
}

html[data-theme="light"] .uhs-blog h1,
html[data-theme="light"] .uhs-blog h2,
html[data-theme="light"] .uhs-blog h3,
html[data-theme="light"] .uhs-blog h4,
html[data-theme="light"] .uhs-bl-card-title {
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-bl-card,
html[data-theme="light"] .uhs-bl-cta,
html[data-theme="light"] .uhs-bl-faq-item,
html[data-theme="light"] .uhs-bl-author-box,
html[data-theme="light"] .uhs-bl-toc {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .uhs-bl-filter-pill {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

html[data-theme="light"] .uhs-bl-filter-pill.is-active {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
}

html[data-theme="light"] .uhs-bl-prose p,
html[data-theme="light"] .uhs-bl-prose li {
    color: #292524 !important;
}

html[data-theme="light"] .uhs-bl-prose blockquote {
    background: #f1f5f9 !important;
    color: #1e293b !important;
}

html[data-theme="light"] .uhs-bl-prose table {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .uhs-bl-prose th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-bl-prose td {
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

/* =========================================================================
   PHASE 2 — HOME, 5 CATEGORY HUBS, 5 CATALOGS, PROFILES, DUELS & AFFILIATES
   Strictly scoped to html[data-theme="light"] — ZERO impact on Dark Mode.
   ========================================================================= */

/* ======================== GLOBAL WRAPPERS & BREADCRUMBS ======================== */
html[data-theme="light"] #page,
html[data-theme="light"] .site-content,
html[data-theme="light"] #content,
html[data-theme="light"] #primary,
html[data-theme="light"] .ast-container,
html[data-theme="light"] .uhs-bc-band {
    background-color: #f8fafc !important;
    color: #0f172a;
}

html[data-theme="light"] .uhs-bc-band {
    border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .uhs-bc-flow,
html[data-theme="light"] .uhs-bc-flow a,
html[data-theme="light"] .uhs-hub-breadcrumbs,
html[data-theme="light"] .uhs-hub-breadcrumbs a {
    color: #475569 !important;
}

html[data-theme="light"] .uhs-bc-flow a:hover,
html[data-theme="light"] .uhs-hub-breadcrumbs a:hover {
    color: #0284c7 !important;
}

/* ======================== HOME & MINI-MATCHER ======================== */
html[data-theme="light"] .udb-home-shell {
    background: #f8fafc !important;
    color: #0f172a !important;
}

html[data-theme="light"] .udb-home-hero {
    background: linear-gradient(145deg, #ffffff 0%, #eff6ff 55%, #f0fdf4 100%) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .udb-home-hero-title,
html[data-theme="light"] .udb-guides-title,
html[data-theme="light"] .udb-guide-title,
html[data-theme="light"] .udb-mm-filler-title {
    color: #0f172a !important;
}

html[data-theme="light"] .udb-home-hero-sub,
html[data-theme="light"] .udb-guides-sub,
html[data-theme="light"] .udb-mm-desc,
html[data-theme="light"] .udb-mm-filler-desc {
    color: #475569 !important;
}

html[data-theme="light"] .udb-mm-ambient-glow,
html[data-theme="light"] .udb-mm-glow-layer,
html[data-theme="light"] .uhs-hub-ambient-glow {
    opacity: 0.14 !important;
}

html[data-theme="light"] .udb-mm-card,
html[data-theme="light"] .udb-mm-breed-card,
html[data-theme="light"] .udb-mm-filler-card,
html[data-theme="light"] .udb-guide-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05) !important;
    color: #0f172a !important;
}

html[data-theme="light"] .udb-mm-breed-card:hover,
html[data-theme="light"] .udb-guide-card:hover {
    border-color: #94a3b8 !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09) !important;
}

html[data-theme="light"] .udb-mm-bar-lbl,
html[data-theme="light"] .udb-mm-bar-val,
html[data-theme="light"] .udb-mm-filters-label,
html[data-theme="light"] .udb-guide-time {
    color: #475569 !important;
}

html[data-theme="light"] .udb-mm-cta-secondary,
html[data-theme="light"] .udb-mm-cta-refine,
html[data-theme="light"] .udb-mm-edit-prefs-btn,
html[data-theme="light"] .udb-mm-back-dogs {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

/* ======================== 5 CATEGORY HUBS ======================== */
html[data-theme="light"] .uhs-hub-root {
    --hub-bg-dark: #f8fafc;
    --hub-card-bg: #ffffff;
    --hub-border: #e2e8f0;
    --hub-text-main: #0f172a;
    --hub-text-muted: #475569;
    background: #f8fafc !important;
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-hub-title,
html[data-theme="light"] .uhs-hub-duels-title,
html[data-theme="light"] .uhs-hub-duel-link-title,
html[data-theme="light"] .uhs-hub-root h2,
html[data-theme="light"] .uhs-hub-root h3 {
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-hub-intro,
html[data-theme="light"] .uhs-hub-duels-sub,
html[data-theme="light"] .uhs-hub-duel-link-sub {
    color: #475569 !important;
}

html[data-theme="light"] .uhs-hub-search-box,
html[data-theme="light"] .uhs-hub-search-dropdown,
html[data-theme="light"] .uhs-hub-duel-link-card,
html[data-theme="light"] .uhs-arena-card,
html[data-theme="light"] .uhs-arena-metrics-section,
html[data-theme="light"] .uhs-hub-root [class*="-card"]:not([class*="photo"]):not([class*="media"]):not([class*="img"]) {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .uhs-hub-search-input {
    background: transparent !important;
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-hub-search-input::placeholder {
    color: #64748b !important;
}

html[data-theme="light"] .uhs-hub-duels-more-btn,
html[data-theme="light"] .uhs-arena-link-btn,
html[data-theme="light"] .uhs-arena-btn-back,
html[data-theme="light"] .uhs-duel-back-btn {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-hub-duel-vs-pill {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

html[data-theme="light"] .uhs-arena-bar-track {
    background: #e2e8f0 !important;
}

/* ======================== 5 CATALOGS (DOGS, CATS, FISH, PLANTS, SMALL PETS) ======================== */
html[data-theme="light"] .udb-archive-wrapper,
html[data-theme="light"] #udb-dogs-app,
html[data-theme="light"] #udb-cats-app,
html[data-theme="light"] #udb-fish-app,
html[data-theme="light"] #udb-plants-app,
html[data-theme="light"] #udb-sp-app {
    --udb-bg: #f8fafc;
    --udb-card-bg: #ffffff;
    --udb-card-hover: #f1f5f9;
    --udb-border: #e2e8f0;
    --udb-text: #0f172a;
    --udb-text-muted: #475569;
    background: #f8fafc !important;
    color: #0f172a !important;
}

html[data-theme="light"] .udb-cockpit-hero,
html[data-theme="light"] .udb-catalog-summary-bar,
html[data-theme="light"] .udb-card,
html[data-theme="light"] .udb-pop-vs-card,
html[data-theme="light"] .udb-modal-content,
html[data-theme="light"] .udb-compare-table-wrap,
html[data-theme="light"] .udb-quiz-q,
html[data-theme="light"] .udb-quiz-match-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .udb-card-content,
html[data-theme="light"] .udb-card-footer {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .udb-card-title,
html[data-theme="light"] .udb-card-title a,
html[data-theme="light"] .udb-archive-wrapper h1,
html[data-theme="light"] .udb-archive-wrapper h2,
html[data-theme="light"] .udb-archive-wrapper h3 {
    color: #0f172a !important;
}

html[data-theme="light"] .udb-card-short-desc,
html[data-theme="light"] .udb-card-meta-line,
html[data-theme="light"] .udb-active-label,
html[data-theme="light"] .udb-bark-meta {
    color: #475569 !important;
}

html[data-theme="light"] .udb-archive-wrapper input[type="search"],
html[data-theme="light"] .udb-archive-wrapper input[type="text"],
html[data-theme="light"] .udb-archive-wrapper select {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .udb-card-action-btn,
html[data-theme="light"] .udb-card-compare-btn,
html[data-theme="light"] .udb-active-tag,
html[data-theme="light"] .udb-quick-pill,
html[data-theme="light"] .udb-pop-vs-chip {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

html[data-theme="light"] .udb-card-action-btn:hover,
html[data-theme="light"] .udb-card-compare-btn:hover,
html[data-theme="light"] .udb-quick-pill:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .udb-compare-table-wrap table,
html[data-theme="light"] .udb-compare-table-wrap th,
html[data-theme="light"] .udb-compare-table-wrap td {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .udb-compare-table-wrap th {
    background: #f1f5f9 !important;
}

/* ======================== SINGLE BREED / SPECIES / PLANT PROFILES ======================== */
html[data-theme="light"] .udb-container {
    background: #f8fafc !important;
    color: #1c1917 !important;
}

html[data-theme="light"] .udb-hero-title,
html[data-theme="light"] .udb-container h1,
html[data-theme="light"] .udb-container h2,
html[data-theme="light"] .udb-container h3 {
    color: #0f172a !important;
}

html[data-theme="light"] .udb-hero-origin,
html[data-theme="light"] .udb-back-link {
    color: #475569 !important;
}

html[data-theme="light"] .udb-img-card,
html[data-theme="light"] .accordion-h2,
html[data-theme="light"] .accordion-h2-content,
html[data-theme="light"] .accordion-h3,
html[data-theme="light"] .accordion-h3-content,
html[data-theme="light"] .udb-dog-social-callout,
html[data-theme="light"] .udb-cat-social-callout,
html[data-theme="light"] .udb-fish-social-callout,
html[data-theme="light"] .udb-plant-safety-callout {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #1c1917 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .accordion-h2 .title,
html[data-theme="light"] .accordion-h3 .title,
html[data-theme="light"] .udb-dog-social-heading,
html[data-theme="light"] .udb-cat-social-heading,
html[data-theme="light"] .udb-fish-social-heading,
html[data-theme="light"] .udb-plant-safety-heading {
    color: #0f172a !important;
}

html[data-theme="light"] .accordion-h2 .subtitle1,
html[data-theme="light"] .accordion-h2-content p,
html[data-theme="light"] .accordion-h3-content p,
html[data-theme="light"] .udb-dog-social-detail,
html[data-theme="light"] .udb-cat-social-detail,
html[data-theme="light"] .udb-fish-social-detail,
html[data-theme="light"] .udb-plant-safety-detail {
    color: #475569 !important;
}

html[data-theme="light"] .udb-cmp-btn-ghost,
html[data-theme="light"] .udb-cmp-btn-share {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

/* ======================== HEAD-TO-HEAD DUEL PAGES ======================== */
html[data-theme="light"] .uhs-duel-page {
    --duel-bg: #f8fafc;
    --duel-surface: #ffffff;
    --duel-surface-2: #f1f5f9;
    --duel-border: #e2e8f0;
    --duel-text: #0f172a;
    --duel-muted: #475569;
    --duel-win: #047857;
    background: #f8fafc !important;
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-duel-crumb-bar {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .uhs-duel-hero,
html[data-theme="light"] .uhs-duel-contender,
html[data-theme="light"] .uhs-duel-mcard,
html[data-theme="light"] .uhs-duel-cta-banner,
html[data-theme="light"] .uhs-duel-rel-card--banner,
html[data-theme="light"] .uhs-duel-faq-item {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .uhs-duel-mbox {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .uhs-duel-h1,
html[data-theme="light"] .uhs-duel-contender-name,
html[data-theme="light"] .uhs-duel-mcard-label,
html[data-theme="light"] .uhs-duel-mbox-name,
html[data-theme="light"] .uhs-duel-mbox-val,
html[data-theme="light"] .uhs-duel-mbox-spec-val,
html[data-theme="light"] .uhs-duel-rel-title,
html[data-theme="light"] .uhs-duel-faq-btn {
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-duel-intro,
html[data-theme="light"] .uhs-duel-contender-group,
html[data-theme="light"] .uhs-duel-contender-sci,
html[data-theme="light"] .uhs-duel-metric-note,
html[data-theme="light"] .uhs-duel-faq-answer {
    color: #475569 !important;
}

html[data-theme="light"] .uhs-duel-bar-track {
    background: #e2e8f0 !important;
}

html[data-theme="light"] .uhs-duel-btn-secondary,
html[data-theme="light"] .uhs-duel-diff-btn,
html[data-theme="light"] .uhs-duel-profile-btn {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

/* ======================== AFFILIATE CARE KITS ======================== */
html[data-theme="light"] .uhs-aff-kit {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .uhs-aff-title,
html[data-theme="light"] .uhs-aff-card-title {
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-aff-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .uhs-aff-card-why,
html[data-theme="light"] .uhs-aff-disclosure,
html[data-theme="light"] .uhs-df-affiliate-disclosure {
    color: #475569 !important;
}

/* =========================================================================
   PHASE 2B — CONTRAST & SURFACE POLISH (Home Matcher, Guides, Quiz, Top 3)
   Strictly scoped to html[data-theme="light"] — ZERO impact on Dark Mode.
   ========================================================================= */

/* Elementor / Page dark section wrappers */
html[data-theme="light"] .e-con.e-parent,
html[data-theme="light"] .elementor-section,
html[data-theme="light"] .udb-mm-wrap,
html[data-theme="light"] .udb-guides-wrap,
html[data-theme="light"] .uhs-bl-latest,
html[data-theme="light"] .uhs-bl-latest--profile {
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

/* Home Mini-Matcher: Hero, Tabs, Surprise Button, Mystery Cards & Options */
html[data-theme="light"] .udb-mm-hero-title,
html[data-theme="light"] .udb-mm-title,
html[data-theme="light"] .udb-mm-mystery-step-title,
html[data-theme="light"] .udb-mm-mystery-title,
html[data-theme="light"] .udb-mm-step-head,
html[data-theme="light"] .udb-mm-name,
html[data-theme="light"] .udb-mm-lead-title,
html[data-theme="light"] .udb-mm-surprise-title,
html[data-theme="light"] .udb-mm-soon-title {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

html[data-theme="light"] .udb-mm-sub,
html[data-theme="light"] .udb-mm-top-intro,
html[data-theme="light"] .udb-mm-mystery-sub,
html[data-theme="light"] .udb-mm-res-hint,
html[data-theme="light"] .udb-mm-res-status,
html[data-theme="light"] .udb-mm-group-tag,
html[data-theme="light"] .udb-mm-lead-desc,
html[data-theme="light"] .udb-mm-lead-trust,
html[data-theme="light"] .udb-mm-soon-desc {
    color: #475569 !important;
}

html[data-theme="light"] .udb-mm-live-kicker {
    color: #475569 !important;
}

/* Category tabs in Mini-Matcher (inactive = light pill, active = vibrant) */
html[data-theme="light"] .udb-mm-tab:not(.active):not(.is-active) {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .udb-mm-tab:not(.active):not(.is-active):hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .udb-mm-tab:not(.active):not(.is-active) .udb-mm-tab-tag,
html[data-theme="light"] .udb-mm-tab:not(.active):not(.is-active) .udb-mm-cnt-badge {
    background: #e2e8f0 !important;
    color: #334155 !important;
}

/* Surprise Me & Share buttons */
html[data-theme="light"] .udb-mm-surprise-btn {
    background: #fff1f2 !important;
    border: 1.5px solid #fda4af !important;
    color: #be123c !important;
    box-shadow: 0 2px 6px rgba(190, 18, 60, 0.08) !important;
}

html[data-theme="light"] .udb-mm-surprise-btn:hover {
    background: #ffe4e6 !important;
    border-color: #f43f5e !important;
    color: #9f1239 !important;
}

html[data-theme="light"] .udb-mm-header button,
html[data-theme="light"] .udb-mm-header a {
    color: #334155 !important;
}

/* 3 Mystery Preference Cards */
html[data-theme="light"] .udb-mm-mystery-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .udb-mm-mystery-media {
    background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .udb-mm-mystery-ring {
    background: transparent !important;
    border-color: var(--mm-accent-border, rgba(225, 29, 72, 0.35)) !important;
    box-shadow: none !important;
}

html[data-theme="light"] .udb-mm-mystery-emblem {
    background: #fcfbf7 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .udb-mm-mystery-ring svg,
html[data-theme="light"] .udb-mm-mystery-icon {
    color: #334155 !important;
    stroke: #334155 !important;
}

html[data-theme="light"] .udb-mm-opt {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}

html[data-theme="light"] .udb-mm-opt:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .udb-mm-opt-lbl {
    color: #1e293b !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .udb-mm-opt.is-selected,
html[data-theme="light"] .udb-mm-opt.active {
    background: #eff6ff !important;
    border-color: #0284c7 !important;
    color: #0369a1 !important;
}

html[data-theme="light"] .udb-mm-opt.is-selected .udb-mm-opt-lbl,
html[data-theme="light"] .udb-mm-opt.active .udb-mm-opt-lbl {
    color: #0369a1 !important;
}

html[data-theme="light"] .udb-mm-profile-btn,
html[data-theme="light"] .udb-mm-micro-tag,
html[data-theme="light"] .udb-mm-res-pill,
html[data-theme="light"] .udb-mm-surprise-chip {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .udb-mm-lead-box,
html[data-theme="light"] .udb-mm-soon-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .udb-mm-lead-input {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

/* Home Featured Guides & Latest Blog */
html[data-theme="light"] .udb-guide-tag {
    color: #0f172a !important;
    font-weight: 800 !important;
    border-color: rgba(15, 23, 42, 0.14) !important;
}

html[data-theme="light"] .uhs-bl-latest-title {
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-bl-latest-all {
    color: #0284c7 !important;
}

/* Category Hub — Daily Quick Challenge (Guess the Stat) */
html[data-theme="light"] .uhs-quiz-container {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06) !important;
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-quiz-title,
html[data-theme="light"] .uhs-quiz-q-text,
html[data-theme="light"] .uhs-quiz-card-name,
html[data-theme="light"] .uhs-quiz-stat-val {
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-quiz-subtitle,
html[data-theme="light"] .uhs-quiz-card-group,
html[data-theme="light"] .uhs-quiz-pro-tip {
    color: #475569 !important;
}

html[data-theme="light"] .uhs-quiz-question-bar {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .uhs-quiz-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .uhs-quiz-select-btn {
    background: #0f172a !important;
    border: 1px solid #0f172a !important;
    color: #ffffff !important;
    font-weight: 800 !important;
}

html[data-theme="light"] .uhs-quiz-select-btn:hover {
    background: #1e293b !important;
    border-color: #1e293b !important;
    color: #ffffff !important;
}

html[data-theme="light"] .uhs-quiz-stat-meter {
    background: #e2e8f0 !important;
}

html[data-theme="light"] .uhs-quiz-share-btn,
html[data-theme="light"] .uhs-quiz-streak-badge {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

/* Category Hub — Top 3 Cards, Community Choice, Quick Pills, Seasonal & Bento */
html[data-theme="light"] .uhs-top3-card,
html[data-theme="light"] .uhs-community-spotlight,
html[data-theme="light"] .uhs-community-slot,
html[data-theme="light"] .uhs-seasonal-card,
html[data-theme="light"] .uhs-bento-compact-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .uhs-top3-name,
html[data-theme="light"] .uhs-top3-title,
html[data-theme="light"] .uhs-community-title,
html[data-theme="light"] .uhs-community-winner-name,
html[data-theme="light"] .uhs-quick-title,
html[data-theme="light"] .uhs-bento-compact-heading,
html[data-theme="light"] .uhs-seasonal-text {
    color: #0f172a !important;
}

html[data-theme="light"] .uhs-top3-sub,
html[data-theme="light"] .uhs-top3-scientific,
html[data-theme="light"] .uhs-community-group,
html[data-theme="light"] .uhs-community-total-text,
html[data-theme="light"] .uhs-quick-subtitle,
html[data-theme="light"] .uhs-bento-compact-desc,
html[data-theme="light"] .uhs-seasonal-meta {
    color: #475569 !important;
}

html[data-theme="light"] .uhs-top3-btn {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .uhs-top3-btn:hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    color: #020617 !important;
}

html[data-theme="light"] .uhs-community-vote-btn {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
}

html[data-theme="light"] .uhs-quick-pill {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}

html[data-theme="light"] .uhs-quick-pill:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

/* =========================================================================
   STAGE 1 — WARM DAYLIGHT SYSTEM + COMPLETE HOME PAGE (#udb-mini-matcher)
   High-specificity ID overrides so inline <style> blocks never win.
   Strictly scoped to html[data-theme="light"] — ZERO impact on Dark Mode.
   ========================================================================= */

/* Warm Sand Level 0 page & section backgrounds */
html[data-theme="light"] #page,
html[data-theme="light"] .site-content,
html[data-theme="light"] #content,
html[data-theme="light"] #primary,
html[data-theme="light"] .ast-container,
html[data-theme="light"] .e-con.e-parent,
html[data-theme="light"] .elementor-section,
html[data-theme="light"] .udb-home-shell,
html[data-theme="light"] .udb-mm-wrap,
html[data-theme="light"] .udb-guides-wrap,
html[data-theme="light"] .uhs-bl-latest,
html[data-theme="light"] .uhs-bl-latest--profile {
    background: var(--uhs-l-bg) !important;
    background-color: var(--uhs-l-bg) !important;
    color: var(--uhs-l-text) !important;
}

/* Main Mini-Matcher Shell with LIVE category radial gradient on Warm Cream */
html[data-theme="light"] #udb-mini-matcher .udb-mm-card {
    background:
        radial-gradient(680px 300px at 14% 0%, var(--mm-accent-bg, rgba(225, 29, 72, 0.14)), transparent 65%),
        radial-gradient(520px 260px at 88% 4%, rgba(139, 92, 246, 0.08), transparent 60%),
        var(--uhs-l-surface) !important;
    border: 1px solid var(--uhs-l-border) !important;
    box-shadow: 0 18px 44px rgba(28, 25, 23, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    color: var(--uhs-l-text) !important;
}

/* Header Share / Google buttons & global .uhs-top-action-btn / [data-uhs-share-btn] */
html[data-theme="light"] .uhs-home-top-actions .uhs-top-action-btn,
html[data-theme="light"] .uhs-bc-band .uhs-top-action-btn,
html[data-theme="light"] [data-uhs-share-btn="true"],
html[data-theme="light"] #udb-mini-matcher .udb-mm-header button,
html[data-theme="light"] #udb-mini-matcher .udb-mm-header a {
    background: var(--uhs-l-surface2) !important;
    border: 1px solid var(--uhs-l-border-strong) !important;
    color: var(--uhs-l-text) !important;
    opacity: 1 !important;
}

html[data-theme="light"] .uhs-home-top-actions .uhs-top-action-btn svg,
html[data-theme="light"] .uhs-bc-band .uhs-top-action-btn svg,
html[data-theme="light"] [data-uhs-share-btn="true"] svg {
    stroke: var(--uhs-l-text) !important;
    color: var(--uhs-l-text) !important;
}

html[data-theme="light"] .uhs-home-top-actions .uhs-top-action-btn:hover,
html[data-theme="light"] .uhs-bc-band .uhs-top-action-btn:hover,
html[data-theme="light"] [data-uhs-share-btn="true"]:hover,
html[data-theme="light"] #udb-mini-matcher .udb-mm-header button:hover,
html[data-theme="light"] #udb-mini-matcher .udb-mm-header a:hover {
    background: #e2dbcd !important;
    color: #0c0a09 !important;
}

/* Category Tabs: inactive = Warm Stone pill, active = vibrant category gradient preserved */
html[data-theme="light"] #udb-mini-matcher .udb-mm-tabs {
    border-bottom-color: var(--uhs-l-border) !important;
}

html[data-theme="light"] #udb-mini-matcher button.udb-mm-tab:not(.is-active):not(.active) {
    background: var(--uhs-l-surface2) !important;
    border: 1px solid var(--uhs-l-border-strong) !important;
    color: var(--uhs-l-text) !important;
    box-shadow: 0 2px 6px rgba(28, 25, 23, 0.05) !important;
}

html[data-theme="light"] #udb-mini-matcher button.udb-mm-tab:not(.is-active):not(.active):hover {
    background: #e2dbcd !important;
    border-color: #bfb5a2 !important;
    color: #0c0a09 !important;
}

html[data-theme="light"] #udb-mini-matcher button.udb-mm-tab:not(.is-active):not(.active) .udb-mm-tab-tag,
html[data-theme="light"] #udb-mini-matcher button.udb-mm-tab:not(.is-active):not(.active) .udb-mm-cnt-badge {
    background: rgba(28, 25, 23, 0.09) !important;
    color: #44403c !important;
}

/* Cockpit bar (no extra outer border), Pick 3 preferences, Edit Preferences & Surprise Me */
html[data-theme="light"] #udb-mini-matcher .udb-mm-cockpit {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

html[data-theme="light"] #udb-mini-matcher .udb-mm-filters-label,
html[data-theme="light"] #udb-mini-matcher .udb-mm-res-status,
html[data-theme="light"] #udb-mini-matcher .udb-mm-res-mini,
html[data-theme="light"] #udb-mini-matcher #udb-mm-res-status,
html[data-theme="light"] #udb-mini-matcher .udb-mm-res-hint,
html[data-theme="light"] #udb-mini-matcher .udb-mm-desc {
    color: #44403c !important;
    opacity: 1 !important;
}

html[data-theme="light"] #udb-mini-matcher button.udb-mm-surprise-btn {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%) !important;
    border: 1.5px solid #fb7185 !important;
    color: #be123c !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 10px rgba(225, 29, 72, 0.14) !important;
}

html[data-theme="light"] #udb-mini-matcher button.udb-mm-surprise-btn:hover {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
    border-color: #be123c !important;
    color: #ffffff !important;
}

html[data-theme="light"] #udb-mini-matcher button.udb-mm-edit-prefs-btn {
    background: var(--uhs-l-surface2) !important;
    border: 1px solid var(--uhs-l-border-strong) !important;
    color: var(--uhs-l-text) !important;
    font-weight: 700 !important;
}

html[data-theme="light"] #udb-mini-matcher button.udb-mm-edit-prefs-btn:hover {
    background: #e2dbcd !important;
}

/* 3 Mystery Preference Cards: warm dotted media + vivid category paw emblem */
html[data-theme="light"] #udb-mini-matcher .udb-mm-mystery-card {
    background: var(--uhs-l-surface) !important;
    border: 1px solid var(--uhs-l-border) !important;
    box-shadow: 0 8px 22px rgba(28, 25, 23, 0.06) !important;
}

html[data-theme="light"] #udb-mini-matcher .udb-mm-mystery-media {
    background:
        radial-gradient(ellipse 75% 65% at 18% 20%, var(--mm-accent-bg, rgba(225, 29, 72, 0.16)), transparent 70%),
        var(--uhs-l-surface2) !important;
    border-bottom: 1px solid var(--uhs-l-border) !important;
}

html[data-theme="light"] #udb-mini-matcher .udb-mm-media.udb-mm-mystery-media::before {
    background-image: radial-gradient(rgba(28, 25, 23, 0.28) 1.25px, transparent 1.25px) !important;
    background-size: 16px 16px !important;
    opacity: 0.75 !important;
}

html[data-theme="light"] #udb-mini-matcher .udb-mm-mystery-emblem {
    background: radial-gradient(circle at 35% 28%, var(--mm-accent-bg, rgba(225, 29, 72, 0.16)) 0%, #fcfbf7 78%) !important;
    border: 2px solid var(--mm-accent-border, rgba(225, 29, 72, 0.45)) !important;
    box-shadow: 0 8px 22px rgba(28, 25, 23, 0.1), inset 0 0 0 4px rgba(255, 255, 255, 0.7) !important;
}

html[data-theme="light"] #udb-mini-matcher .udb-mm-mystery-icon,
html[data-theme="light"] #udb-mini-matcher .udb-mm-mystery-icon svg {
    color: var(--mm-accent, #e11d48) !important;
    stroke: var(--mm-accent, #e11d48) !important;
    fill: none;
}

html[data-theme="light"] #udb-mini-matcher .udb-mm-opt {
    background: var(--uhs-l-bg) !important;
    border: 1px solid var(--uhs-l-border-strong) !important;
    color: var(--uhs-l-text) !important;
}

html[data-theme="light"] #udb-mini-matcher .udb-mm-opt:hover {
    background: var(--uhs-l-surface2) !important;
    border-color: var(--mm-accent-border, #94a3b8) !important;
}

/* "✓ Your Picks" summary bar — Warm Level 2 instead of dark gray */
html[data-theme="light"] #udb-mini-matcher .udb-mm-surprise-summary {
    background: var(--uhs-l-surface2) !important;
    border: 1px solid var(--mm-accent-border, var(--uhs-l-border-strong)) !important;
    color: var(--uhs-l-text) !important;
}

html[data-theme="light"] #udb-mini-matcher .udb-mm-surprise-title {
    color: var(--uhs-l-text) !important;
}

html[data-theme="light"] #udb-mini-matcher .udb-mm-surprise-chip {
    background: var(--uhs-l-surface) !important;
    border: 1px solid var(--uhs-l-border-strong) !important;
    color: var(--uhs-l-text) !important;
}

/* Result Breed Cards + Stat Bars Box (Warm Level 2 with vivid colored bars) */
html[data-theme="light"] #udb-mini-matcher .udb-mm-breed-card {
    background: var(--uhs-l-surface) !important;
    border: 1px solid var(--uhs-l-border) !important;
    box-shadow: 0 8px 24px rgba(28, 25, 23, 0.06) !important;
}

html[data-theme="light"] #udb-mini-matcher .udb-mm-bars {
    background: var(--uhs-l-surface2) !important;
    border: 1px solid var(--uhs-l-border-strong) !important;
}

html[data-theme="light"] #udb-mini-matcher .udb-mm-bar-lbl {
    color: var(--uhs-l-text) !important;
    font-weight: 700 !important;
}

html[data-theme="light"] #udb-mini-matcher .udb-mm-bar-val {
    color: var(--uhs-l-muted) !important;
    font-weight: 700 !important;
}

html[data-theme="light"] #udb-mini-matcher .udb-mm-seg:not([class*="on-"]) {
    background: #d5cec0 !important;
}

html[data-theme="light"] #udb-mini-matcher .udb-mm-micro-tag {
    background: var(--uhs-l-bg) !important;
    border: 1px solid var(--uhs-l-border-strong) !important;
    color: var(--uhs-l-text) !important;
}

/* Action buttons inside & below Result Cards: vivid & crisp */
html[data-theme="light"] #udb-mini-matcher .udb-mm-profile-btn {
    background: #292524 !important;
    border: 1px solid #292524 !important;
    color: #fcfbf7 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] #udb-mini-matcher .udb-mm-profile-btn:hover {
    background: var(--mm-accent, #e11d48) !important;
    border-color: var(--mm-accent, #e11d48) !important;
    color: #ffffff !important;
}

html[data-theme="light"] #udb-mini-matcher .udb-mm-cta-refine,
html[data-theme="light"] #udb-mini-matcher .udb-mm-cta-secondary {
    background: var(--uhs-l-surface2) !important;
    border: 1px solid var(--uhs-l-border-strong) !important;
    color: var(--uhs-l-text) !important;
    font-weight: 700 !important;
}

html[data-theme="light"] #udb-mini-matcher .udb-mm-cta-refine:hover,
html[data-theme="light"] #udb-mini-matcher .udb-mm-cta-secondary:hover {
    background: #e2dbcd !important;
    border-color: #bfb5a2 !important;
    color: #0c0a09 !important;
}

/* Lead Capture Box & Email Input */
html[data-theme="light"] #udb-mini-matcher .udb-mm-lead-box {
    background: linear-gradient(135deg, #fcfbf7 0%, #f5f0e6 100%) !important;
    border: 1px solid var(--uhs-l-border-strong) !important;
    box-shadow: 0 6px 20px rgba(28, 25, 23, 0.05) !important;
}

html[data-theme="light"] #udb-mini-matcher .udb-mm-lead-desc,
html[data-theme="light"] #udb-mini-matcher .udb-mm-lead-trust {
    color: #44403c !important;
    opacity: 1 !important;
}

html[data-theme="light"] #udb-mini-matcher .udb-mm-lead-input {
    background: var(--uhs-l-surface) !important;
    border: 1.5px solid var(--uhs-l-border-strong) !important;
    color: var(--uhs-l-text) !important;
}

html[data-theme="light"] #udb-mini-matcher .udb-mm-lead-input::placeholder {
    color: #78716c !important;
}

/* Featured Guides & Latest Blog Cards on Warm Sand */
html[data-theme="light"] .udb-guide-card,
html[data-theme="light"] .uhs-bl-card {
    background: var(--uhs-l-surface) !important;
    border: 1px solid var(--uhs-l-border) !important;
    box-shadow: 0 6px 20px rgba(28, 25, 23, 0.06) !important;
}

html[data-theme="light"] .udb-guide-card:hover,
html[data-theme="light"] .uhs-bl-card:hover {
    border-color: var(--uhs-l-border-strong) !important;
    box-shadow: 0 10px 28px rgba(28, 25, 23, 0.1) !important;
}
