/* Velyra 2026-10-09 contrast repair. Only light-surface copy; protect photo overlays, dark dialogs and dynamic functionality. */
:root { --vly-contrast-ink:#241b35; --vly-contrast-sub:#574f67; }
/* Shared light navigation */
.vly-topbar-wrap .vly-profile-summary { color:#4d355e !important; text-shadow:none !important; }
.vly-topbar-wrap .vly-profile-summary strong { color:#6025a6 !important; }
.vly-topbar-wrap .vly-nav a:not(.is-active) { color:#30223f !important; opacity:1 !important; }
.vly-topbar-wrap .vly-right .vly-ghost-link { color:#4b226d !important; }
/* Browse: light glass cards retained from original dark theme. */
html:has(.browse-top) .browse-top > .glass,
html:has(.browse-top) .story-strip,
html:has(.browse-top) .velyra-live-tile,
html:has(.browse-top) .velyra-live-feed-card { background:#fff !important; border-color:#e8ddec !important; box-shadow:0 12px 35px rgba(53,30,81,.09) !important; }
html:has(.browse-top) #languageFilterTitle { color:#503079 !important; }
html:has(.browse-top) #languageFilterSub { color:#655971 !important; }
html:has(.browse-top) .story-name { color:#33233e !important; opacity:1 !important; text-shadow:none !important; }
html:has(.browse-top) .velyra-live-kicker { color:#665176 !important; opacity:1 !important; }
html:has(.browse-top) .velyra-live-number { color:#241b35 !important; text-shadow:none !important; }
html:has(.browse-top) .velyra-live-sub { color:#62576d !important; }
html:has(.browse-top) .velyra-activity-line,
html:has(.browse-top) .velyra-activity-line strong { color:#2b2137 !important; }
html:has(.browse-top) .velyra-activity-time { color:#6c5d79 !important; }
html:has(.browse-top) .velyra-feed-title { color:#2b203b !important; }
html:has(.browse-top) .velyra-feed-sub { color:#675b73 !important; }
html:has(.browse-top) .velyra-feed-item { background:#f7f3fa !important; border-color:#ebe0ee !important; }
html:has(.browse-top) .velyra-activity-icon { color:#fff !important; }
html:has(.browse-top) .browse-top select { border-color:#ded0e8 !important; color:#271c37 !important; }
/* Browsing text-only cards, excluding overlays that sit on images. */
html:has(.browse-top) .match-card,
html:has(.browse-top) .prompts-card,
html:has(.browse-top) .stats-card { background:#fff !important; border:1px solid #eadfed !important; }
html:has(.browse-top) .match-title,
html:has(.browse-top) .prompt-label,
html:has(.browse-top) .stats-card .section-title { color:#39244d !important; }
html:has(.browse-top) .match-copy,
html:has(.browse-top) .prompt-empty { color:#62546d !important; }
html:has(.browse-top) .match-reason,
html:has(.browse-top) .prompt-item { color:#34253f !important; background:#f8f3fb !important; border-color:#e9d9ee !important; }
html:has(.browse-top) .prompt-value { color:#30213f !important; }
/* Keep pill buttons, image captions, photo overlays and dark modals unchanged. */
@media(max-width:800px) {
 .vly-topbar-wrap .vly-profile-summary { font-size:12px; }
 html:has(.browse-top) .velyra-live-bar { gap:12px; }
 html:has(.browse-top) .velyra-activity-line { font-size:13px; }
}


/* v2: confirmed Browse panels in screenshots, scoped to Browse only. */
html:has(.browse-top) .profile-rail :is(.info-card,.stats-card,.tip-card,.insight-card,.velyra-live-feed-card),
html:has(.browse-top) .profile-rail .glass:not(.photo-overlay) {
 background:#fff !important; border:1px solid #e9dfef !important;
 color:#261c35 !important; text-shadow:none !important;
 box-shadow:0 12px 32px rgba(60,36,91,.07) !important;
}
html:has(.browse-top) .profile-rail .section-title,
html:has(.browse-top) .profile-rail .profile-value,
html:has(.browse-top) .profile-rail .stat-num,
html:has(.browse-top) .profile-rail .insight-value,
html:has(.browse-top) .profile-rail .insight-pill,
html:has(.browse-top) .profile-rail .insight-card .section-title,
html:has(.browse-top) .profile-rail .tip-card h3 { color:#241b36 !important; opacity:1 !important; text-shadow:none !important; }
html:has(.browse-top) .profile-rail .profile-label,
html:has(.browse-top) .profile-rail .stat-top,
html:has(.browse-top) .profile-rail .tip-card p,
html:has(.browse-top) .profile-rail .insight-kicker { color:#625470 !important; opacity:1 !important; text-shadow:none !important; }
html:has(.browse-top) .profile-rail :is(.insight-item,.stat-card) {background:#f8f5fb !important; border:1px solid #e9e0f0 !important; }
html:has(.browse-top) .profile-rail .insight-pill {background:#f2eaf9 !important; border:1px solid #e2d3ef !important;}
html:has(.browse-top) .profile-rail .profile-line {border-bottom:1px solid #eee6f2 !important;}
html:has(.browse-top) .profile-rail .profile-value {overflow-wrap:anywhere;}
html:has(.browse-top) .v42-daily-card {background:linear-gradient(105deg,#e6fbef,#f5ebfb,#ffe8f4) !important; border:1px solid #e7d9eb !important; color:#251936 !important;box-shadow:0 12px 30px rgba(47,30,70,.08) !important;}
html:has(.browse-top) .v42-daily-title {color:#6c3b91 !important;}
html:has(.browse-top) .v42-daily-copy {color:#30233f !important;}
html:has(.browse-top) .v42-daily-btn {color:#fff !important;background:linear-gradient(110deg,#7743d7,#d63b99) !important;}
/* Other authenticated light-surface sections should not inherit white copy from an older dark theme. */
.vly-topbar-wrap .vly-nav a, .vly-topbar-wrap .vly-nav a:visited {color:#30223f !important;}
.vly-topbar-wrap .vly-nav a.is-active {color:#5c279b !important;}
