/* MBU daylight theme — public shell, home, calendar, notices and community.
   Only the explicit light state changes the existing site. Artwork and chosen
   profile palettes are intentionally outside the general typography rules. */

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f9;
  --panel: #ffffff;
  --panel2: #edf1f6;
  --line: #d7dee7;
  --text: #1f2937;
  --muted: #5f6b7a;
  --copy-muted: #5f6b7a;
  --accent: #965322;
  --bronze: #965322;
  --green: #20734f;
  --site-surface: #ffffff;
  --site-inset: #f7f9fc;
  --site-stroke: #d7dee7;
  --site-copper: #965322;
  --light-text: #1f2937;
  --light-copy: #3f4d5e;
  --light-muted: #5f6b7a;
  --light-border: #d7dee7;
  --light-control-border: #bac6d4;
  --light-inset: #f7f9fc;
  --light-hover: #f8f1e9;
  --light-copper: #965322;
  --light-copper-hover: #784019;
  --light-copper-soft: #fbf1e6;
  --light-copper-border: #d9b895;
  --light-blue: #285f91;
  --light-blue-soft: #eef5fb;
  --light-green: #20734f;
  --light-green-soft: #edf7f1;
  --light-red: #a63145;
  --light-red-soft: #fff1f3;
}

html[data-theme="light"] body {
  background: var(--bg);
  background-image: none;
  color: var(--text);
}

/* The sticky bar remains crisp against the cooler page background. */
html[data-theme="light"] body .sitebar {
  color: var(--text);
  background: rgba(255, 255, 255, .97);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 12px rgba(31, 41, 55, .025);
}

html[data-theme="light"] body .sitebar .brand { color: #243142; }
html[data-theme="light"] body .sitebar .brand span { color: var(--site-copper); }
html[data-theme="light"] body .sitebar .nav a { color: #4f5e70; }
html[data-theme="light"] body .sitebar .nav a:hover,
html[data-theme="light"] body .sitebar .nav a:focus-visible,
html[data-theme="light"] body .sitebar .nav a[aria-current="page"],
html[data-theme="light"] body .sitebar .nav a.active {
  color: #804419;
  background: var(--light-copper-soft);
  border-color: #e2c8ac;
}

html[data-theme="light"] body :is(a, button, input, select, textarea, summary):focus-visible:not(:where(.mbu-profile-card *, .mbu-card *, #mbuBirthdayBanner *, #mbuLeeBirthdayBanner *)) {
  outline-color: #965322;
}

/* Repeat the existing wrap scope to beat all cached legacy page styles. */
html[data-theme="light"] .wrap.wrap.wrap { color: var(--text); }

html[data-theme="light"] .wrap.wrap.wrap :is(h1, h2, h3):not(:where(.mbu-profile-card *, .mbu-profile-collectible *, .mbu-card *, #mbuBirthdayBanner *, #mbuLeeBirthdayBanner *)) {
  color: var(--light-text);
}

html[data-theme="light"] .wrap.wrap.wrap :is(.page-heading, .board-hero, .cards-hero) {
  border-color: var(--line);
}

html[data-theme="light"] .wrap.wrap.wrap :is(.page-heading, .board-hero) h1 { color: var(--light-text); }
html[data-theme="light"] .wrap.wrap.wrap :is(.page-heading, .board-hero) h1 em { color: var(--site-copper); }
html[data-theme="light"] .wrap.wrap.wrap :is(.page-heading, .board-hero) p { color: var(--light-muted); }
html[data-theme="light"] .page-kicker,
html[data-theme="light"] .wrap.wrap.wrap .page-kicker { color: #556476; }
html[data-theme="light"] .page-kicker > span { color: #7c8897; }
html[data-theme="light"] .page-kicker i { background: var(--site-copper); }

html[data-theme="light"] .wrap.wrap.wrap :is(.panel, .section, .home-feature, .home-popular, .quick-section, .board-panel, .notice, .form-card) {
  color: var(--light-text);
  background: var(--site-surface);
  border-color: var(--site-stroke);
  box-shadow: 0 3px 14px rgba(31, 41, 55, .025);
}

html[data-theme="light"] .wrap.wrap.wrap :is(.notice, .form-card):hover {
  background: #fffaf5;
  border-color: var(--light-copper-border);
}

html[data-theme="light"] .wrap.wrap.wrap :is(.section-head, .feature-head, .home-popular-head, .quick-heading) {
  color: var(--light-text);
  background: transparent;
  border-bottom-color: #e1e6ed;
}

html[data-theme="light"] .wrap.wrap.wrap :is(.section-head, .feature-head, .home-popular-head, .quick-heading)::before {
  background: #ad713e;
}

html[data-theme="light"] .wrap.wrap.wrap :is(.sub, .note, .record-note, .board-help, .board-result, .footer-note, .empty-state, .board-empty, .search-empty):not(:where(.mbu-profile-card *, .mbu-card *, #mbuBirthdayBanner *, #mbuLeeBirthdayBanner *)) {
  color: var(--light-muted);
}

html[data-theme="light"] .wrap.wrap.wrap .footer-note { border-color: var(--line); }
html[data-theme="light"] .wrap.wrap.wrap .good { color: var(--light-green); }
html[data-theme="light"] .wrap.wrap.wrap .bad { color: var(--light-red); }

/* Native controls are light as well, including their platform menus. */
html[data-theme="light"] .wrap.wrap.wrap :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):not([type="color"]), select, textarea):not(:where(.mbu-profile-card *, .mbu-card *)) {
  color: var(--light-text);
  background: #ffffff;
  border-color: var(--light-control-border);
  color-scheme: light;
}

html[data-theme="light"] .wrap.wrap.wrap :is(input, textarea)::placeholder { color: #6c7888; opacity: 1; }
html[data-theme="light"] .wrap.wrap.wrap :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):not([type="color"]), select, textarea):disabled {
  color: #647184;
  background: #edf1f6;
  border-color: #d6dee8;
}
html[data-theme="light"] .wrap.wrap.wrap :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="range"]):not([type="color"]), textarea)[readonly] { background-color: #f7f9fc; }
html[data-theme="light"] .wrap.wrap.wrap :is(input[type="checkbox"], input[type="radio"], input[type="range"]) { accent-color: var(--site-copper); }
html[data-theme="light"] .wrap.wrap.wrap input[type="file"]::file-selector-button {
  color: #3f4d5e;
  background: #edf1f6;
  border: 1px solid #c8d2de;
  border-radius: 5px;
  margin-right: 10px;
  padding: 6px 9px;
  font: inherit;
}
html[data-theme="light"] .wrap.wrap.wrap input[type="file"]::file-selector-button:hover {
  background: var(--light-copper-soft);
  color: var(--site-copper);
  border-color: var(--light-copper-border);
}

html[data-theme="light"] .wrap.wrap.wrap :is(.board-btn, .filter-btn, .match-filter, .record-type, .record-subtype-tabs button, .calendar-nav a, .calendar-nav span, .record-nav a, .record-nav span, .monthnav a, .monthnav span, .month-nav a, .month-nav span, .page-heading-actions > a, .home-popular-head > a, .feature-head > a, .stats-section-links a) {
  background: #ffffff;
  color: #465468;
  border-color: #c8d2de;
  box-shadow: none;
}

html[data-theme="light"] .wrap.wrap.wrap :is(.board-btn, .filter-btn, .match-filter, .calendar-nav a, .record-nav a, .monthnav a, .month-nav a, .page-heading-actions > a, .home-popular-head > a, .feature-head > a, .stats-section-links a):hover {
  color: var(--light-copper-hover);
  background: var(--light-copper-soft);
  border-color: var(--light-copper-border);
}

html[data-theme="light"] .wrap.wrap.wrap :is(.filter-btn.active, .match-filter.active, .record-type.active, .record-subtype-tabs button.active, .calendar-nav .selected, .calendar-nav .current, .record-nav .current, .monthnav .selected, .month-nav .selected, .month-nav .current) {
  color: #81471e;
  background: #fbf0e4;
  border-color: #d7b28c;
}

html[data-theme="light"] .wrap.wrap.wrap :is(.board-tabs, .record-type-tabs) { border-color: var(--line); }
html[data-theme="light"] .wrap.wrap.wrap :is(.board-tabs a, .record-type-tabs button) {
  background: transparent;
  color: #5f6b7a;
  border-bottom-color: transparent;
}
html[data-theme="light"] .wrap.wrap.wrap :is(.board-tabs a.active, .record-type-tabs button.active) {
  color: #7b431e;
  border-bottom-color: #a86531;
  background: transparent;
}

html[data-theme="light"] .wrap.wrap.wrap table { color: var(--light-text); }
html[data-theme="light"] .wrap.wrap.wrap :is(th, .board-list th) {
  color: #526174;
  background: #edf1f6;
  border-color: #dbe2eb;
}
html[data-theme="light"] .wrap.wrap.wrap td { border-color: #e1e6ed; }
html[data-theme="light"] .wrap.wrap.wrap tbody tr:hover { background: #f7f9fc; }

/* Home: airy white panels, subdued metadata, and familiar copper emphasis. */
html[data-theme="light"] .wrap.wrap.wrap.home :is(.home-block-head > small, .quick-heading p, .feature-head p, .home-popular-head p, .member-total) { color: var(--light-muted); }
html[data-theme="light"] .wrap.wrap.wrap.home .home-block-head .eyebrow {
  color: #8a4a1d;
  background: #fbf0e4;
  border-color: #d9b895;
}

html[data-theme="light"] .wrap.wrap.wrap.home .celebration-board {
  color: #75471e;
  background: #fff5e8;
  border-color: #e7cba5;
  box-shadow: none;
}
html[data-theme="light"] .wrap.wrap.wrap.home .celebration-board::before { background: linear-gradient(90deg, #fff5e8, transparent); }
html[data-theme="light"] .wrap.wrap.wrap.home .celebration-board::after { background: linear-gradient(270deg, #fff5e8, transparent); }
html[data-theme="light"] .wrap.wrap.wrap.home .celebration-message { color: #654728; text-shadow: none; }
html[data-theme="light"] .wrap.wrap.wrap.home .celebration-message b { color: #285f91; }
html[data-theme="light"] .wrap.wrap.wrap.home .celebration-message strong { color: #8b511e; }

html[data-theme="light"] .wrap.wrap.wrap.home .live-card {
  color: var(--light-text);
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 3px 14px rgba(31, 41, 55, .035);
}
html[data-theme="light"] .wrap.wrap.wrap.home .live-card:hover {
  background: #fffaf5;
  border-color: #ce9e75;
}
html[data-theme="light"] .wrap.wrap.wrap.home .live-copy strong { color: var(--light-text); }
html[data-theme="light"] .wrap.wrap.wrap.home .live-copy small { color: var(--light-muted); }
/* The live thumbnail and its dark on-image labels deliberately stay intact. */

html[data-theme="light"] .wrap.wrap.wrap.home .schedule-head { color: #536174; background: #edf1f6; }
html[data-theme="light"] .wrap.wrap.wrap.home .schedule-row { border-top-color: #e1e6ed; }
html[data-theme="light"] .wrap.wrap.wrap.home .schedule-date { color: #915120; }
html[data-theme="light"] .wrap.wrap.wrap.home :is(.schedule-date small, .schedule-time.is-undecided, .schedule-note, .schedule-empty) { color: var(--light-muted); }
html[data-theme="light"] .wrap.wrap.wrap.home .schedule-time { color: #3d4b5d; }
html[data-theme="light"] .wrap.wrap.wrap.home :is(.schedule-title, .schedule-empty strong) { color: var(--light-text); }

html[data-theme="light"] .wrap.wrap.wrap.home .featured-match { color: var(--light-text); }
html[data-theme="light"] .wrap.wrap.wrap.home .featured-match:hover { background: #f7f9fc; }
html[data-theme="light"] .wrap.wrap.wrap.home .featured-match em { color: var(--site-copper); }
html[data-theme="light"] .wrap.wrap.wrap.home .featured-match span { color: #4b5d74; background: #edf1f6; }
html[data-theme="light"] .wrap.wrap.wrap.home .featured-notices { background: #e1e6ed; }
html[data-theme="light"] .wrap.wrap.wrap.home :is(.featured-notices > a, .notice-loading) { background: #ffffff; color: var(--light-text); }
html[data-theme="light"] .wrap.wrap.wrap.home .featured-notices > a:hover { background: #fff8f0; }
html[data-theme="light"] .wrap.wrap.wrap.home .featured-notices > a > span:first-child { color: #965322; }
html[data-theme="light"] .wrap.wrap.wrap.home .featured-notices strong { color: var(--light-text); }
html[data-theme="light"] .wrap.wrap.wrap.home :is(.featured-notices time, .notice-loading) { color: var(--light-muted); }
html[data-theme="light"] .wrap.wrap.wrap.home .notice-preview {
  color: var(--light-copy);
  background: #ffffff;
  border-color: #c8d2de;
  box-shadow: 0 12px 35px rgba(31, 41, 55, .15);
}
html[data-theme="light"] .wrap.wrap.wrap.home .notice-preview b { color: var(--light-text); }
html[data-theme="light"] .wrap.wrap.wrap.home :is(.notice-preview small, .notice-preview em) { color: var(--light-muted); }

html[data-theme="light"] .wrap.wrap.wrap.home :is(.home-popular-card, .home-popular-item) {
  color: var(--light-text);
  background: #f7f9fc;
  border-color: #e1e6ed;
}
html[data-theme="light"] .wrap.wrap.wrap.home :is(.home-popular-card, .home-popular-item):hover { background: #fff8f0; border-color: #dfbd9b; }
html[data-theme="light"] .wrap.wrap.wrap.home .home-popular-rank { background: #f6e8d9; color: #8b4d20; }
html[data-theme="light"] .wrap.wrap.wrap.home .home-popular-copy strong { color: var(--light-text); }
html[data-theme="light"] .wrap.wrap.wrap.home :is(.home-popular-copy small, .home-popular-stats small) { color: var(--light-muted); }
html[data-theme="light"] .wrap.wrap.wrap.home .home-popular-stats b { color: #20734f; }

html[data-theme="light"] .wrap.wrap.wrap.home .member-group + .member-group { border-top-color: #e1e6ed; }
html[data-theme="light"] .wrap.wrap.wrap.home .member-group-title { color: #3f4d5e; }
html[data-theme="light"] .wrap.wrap.wrap.home .member-chip {
  color: var(--light-text);
  background: #f7f9fc;
  border-color: #dfe6ee;
  box-shadow: none;
}
html[data-theme="light"] .wrap.wrap.wrap.home .member-chip:hover { background: #fff8f0; border-color: #d7b591; }
html[data-theme="light"] .wrap.wrap.wrap.home .member-chip.is-live {
  background: #fff9f3;
  border-color: #d7ad88;
  box-shadow: inset 2px 0 #a45e2c;
}
html[data-theme="light"] .wrap.wrap.wrap.home :is(.member-chip strong, .member-display-name) { color: var(--light-text); }
html[data-theme="light"] .wrap.wrap.wrap.home :is(.member-chip small, .member-account-id, .member-join-date) { color: var(--light-muted); }
html[data-theme="light"] .wrap.wrap.wrap.home .tier-badge { color: #8a4d21; background: #f5e8da; border-color: #e4ccb1; }
html[data-theme="light"] .wrap.wrap.wrap.home .race-badge { color: #4b5f77; background: #eaf0f7; border-color: #d4dfeb; }
html[data-theme="light"] .wrap.wrap.wrap.home .onair-badge { color: #a92c42; background: #fff0f2; border-color: #e5b8c0; }
html[data-theme="light"] .wrap.wrap.wrap.home .onair-badge i { background: #c63950; box-shadow: 0 0 0 2px rgba(198, 57, 80, .10); }
html[data-theme="light"] .wrap.wrap.wrap.home .medal-tooltip { color: #283648; background: #ffffff; border-color: #c4cedb; box-shadow: 0 5px 16px rgba(31, 41, 55, .12); }
html[data-theme="light"] .wrap.wrap.wrap.home .member-live-preview { background: #ffffff; border-color: #c8d2de; box-shadow: 0 12px 35px rgba(31, 41, 55, .15); }
html[data-theme="light"] .wrap.wrap.wrap.home .member-preview-copy b { color: var(--light-text); }
html[data-theme="light"] .wrap.wrap.wrap.home .member-preview-copy small { color: var(--light-muted); }

html[data-theme="light"] .wrap.wrap.wrap.home .quick-grid { background: transparent; }
html[data-theme="light"] .wrap.wrap.wrap.home .quick-card { color: var(--light-text); background: #f7f9fc; border-color: transparent; }
html[data-theme="light"] .wrap.wrap.wrap.home .quick-card:hover { color: #7b431e; background: #fbf0e4; border-color: #e1c2a2; }
html[data-theme="light"] .wrap.wrap.wrap.home :is(.quick-card > strong, .quick-copy strong) { color: inherit; }
html[data-theme="light"] .wrap.wrap.wrap.home .quick-mark { color: #8e5024; background: #f7eadd; border-color: #e2c8ac; }
html[data-theme="light"] .wrap.wrap.wrap.home :is(.quick-label, .quick-copy small, .quick-arrow) { color: var(--light-muted); }
html[data-theme="light"] .wrap.wrap.wrap.home .quick-card:hover .quick-arrow { color: #8e5024; }
html[data-theme="light"] .wrap.wrap.wrap.home .quick-card.is-pending:hover { color: var(--light-text); background: #f7f9fc; border-color: transparent; }
html[data-theme="light"] .wrap.wrap.wrap.home .daily-visit { color: #5f6b7a; background: #eaf0f6; border-color: #d5dee9; }
html[data-theme="light"] .wrap.wrap.wrap.home .daily-visit b { color: #3c4b5f; }

/* The full calendar and notice list use the same palette as their home cards. */
html[data-theme="light"] .wrap.wrap.wrap :is(.calendar-wrap, .calendar-scroll) { background: #ffffff; border-color: var(--line); }
html[data-theme="light"] .wrap.wrap.wrap .cal-week { background: #edf1f6; color: #536174; border-color: #dbe2eb; }
html[data-theme="light"] .wrap.wrap.wrap .cal-week.sun { color: #a63145; }
html[data-theme="light"] .wrap.wrap.wrap .cal-week.sat { color: #285f91; }
html[data-theme="light"] .wrap.wrap.wrap .cal-cell { background: #ffffff; border-color: #dfe5ed; }
html[data-theme="light"] .wrap.wrap.wrap .cal-cell.empty { background: #f3f6f9; }
html[data-theme="light"] .wrap.wrap.wrap .cal-cell.today { background: #fff9f2; box-shadow: inset 0 0 0 1px #ba8757; }
html[data-theme="light"] .wrap.wrap.wrap .cal-day { color: #526174; }
html[data-theme="light"] .wrap.wrap.wrap .today .cal-day { background: #965322; color: #ffffff; }
html[data-theme="light"] .wrap.wrap.wrap .cal-event { background: #f8f4ee; border-color: #e4d2bc; }
html[data-theme="light"] .wrap.wrap.wrap .cal-event b { color: #8c4d1f; }
html[data-theme="light"] .wrap.wrap.wrap .cal-event span { color: #263445; }
html[data-theme="light"] .wrap.wrap.wrap .cal-event small { color: #5f6b7a; }
html[data-theme="light"] .wrap.wrap.wrap .notice span { color: #965322; }
html[data-theme="light"] .wrap.wrap.wrap .notice strong { color: var(--light-text); }
html[data-theme="light"] .wrap.wrap.wrap .notice p { color: #4d5c6e; }
html[data-theme="light"] .wrap.wrap.wrap :is(.notice time, .notice small) { color: var(--light-muted); }

/* Community list, post detail, votes and forms. */
html[data-theme="light"] .wrap.wrap.wrap .board-search button { color: #3d4f65; background: #edf1f6; border-color: #bac6d4; }
html[data-theme="light"] .wrap.wrap.wrap .board-search button:hover { color: #7b431e; background: #fbf0e4; }
html[data-theme="light"] .wrap.wrap.wrap :is(.board-search-clear, .board-member-bar p) { color: var(--light-muted); }
html[data-theme="light"] .wrap.wrap.wrap :is(.board-member-bar, .board-breadcrumb) { border-color: var(--line); }
html[data-theme="light"] .wrap.wrap.wrap .board-breadcrumb a { color: #965322; }
html[data-theme="light"] .wrap.wrap.wrap .board-breadcrumb a:hover { color: #784019; }
html[data-theme="light"] .wrap.wrap.wrap .board-account-btn { color: #3f4d5e; background: #ffffff; border-color: #c2cddb; }
html[data-theme="light"] .wrap.wrap.wrap .board-write-btn,
html[data-theme="light"] .wrap.wrap.wrap .board-form .board-actions button.board-btn[type="submit"]:not(.danger):not(.points-disabled) {
  color: #ffffff;
  background: #965322;
  border-color: #965322;
}
html[data-theme="light"] .wrap.wrap.wrap .board-write-btn:hover,
html[data-theme="light"] .wrap.wrap.wrap .board-form .board-actions button.board-btn[type="submit"]:not(.danger):not(.points-disabled):hover {
  color: #ffffff;
  background: #784019;
  border-color: #784019;
}
html[data-theme="light"] .wrap.wrap.wrap .board-list .subject a { color: #273548; }
html[data-theme="light"] .wrap.wrap.wrap .board-list .subject a:hover { color: #8d4a1c; }
html[data-theme="light"] .wrap.wrap.wrap .board-list .subject small { color: #35678e; }
html[data-theme="light"] .wrap.wrap.wrap :is(.popular-badge, .comment-popular) { color: #88501e; background: #fff2dc; border-color: #e4c49a; }
html[data-theme="light"] .wrap.wrap.wrap :is(.board-pages a, .board-pages span) { color: #4f5e70; background: #ffffff; border-color: #cdd6e1; }
html[data-theme="light"] .wrap.wrap.wrap .board-pages a:hover { color: #8b4b1e; background: #fbf0e4; border-color: #d7b28c; }
html[data-theme="light"] .wrap.wrap.wrap .board-pages .current { color: #ffffff; background: #965322; border-color: #965322; }
html[data-theme="light"] .wrap.wrap.wrap .board-field > span { color: #3f4d5e; }
html[data-theme="light"] .wrap.wrap.wrap :is(.board-error, .board-btn.danger, .delete-form button) { color: #a63145; background: #fff1f3; border-color: #e3b4be; }
html[data-theme="light"] .wrap.wrap.wrap :is(.board-btn.danger, .delete-form button):hover { color: #8b2639; background: #ffe7ec; border-color: #d28e9d; }
html[data-theme="light"] .wrap.wrap.wrap :is(.post-head, .comments-head) { color: var(--light-text); background: #ffffff; border-color: #e1e6ed; }
html[data-theme="light"] .wrap.wrap.wrap .post-head h1 { color: #1f2937; }
html[data-theme="light"] .wrap.wrap.wrap .post-meta { color: #5f6b7a; }
html[data-theme="light"] .wrap.wrap.wrap .post-meta strong { color: #3d4b5d; }
html[data-theme="light"] .wrap.wrap.wrap :is(.post-body, .comment p) { color: #2d3b4c; }
html[data-theme="light"] .wrap.wrap.wrap .post-body .post-link { color: #285f91; }
html[data-theme="light"] .wrap.wrap.wrap .post-body .post-link:hover { color: #17466d; }
html[data-theme="light"] .wrap.wrap.wrap .post-tools { background: #f9fafc; border-color: #e1e6ed; }
html[data-theme="light"] .wrap.wrap.wrap .comment { border-color: #e1e6ed; }
html[data-theme="light"] .wrap.wrap.wrap .comment-top strong { color: #2d3b4c; }
html[data-theme="light"] .wrap.wrap.wrap .comment-top span { color: #5f6b7a; }
html[data-theme="light"] .wrap.wrap.wrap .comment-reply { background: #f7f9fc; border-left-color: #b7c9db; }
html[data-theme="light"] .wrap.wrap.wrap :is(.comment-collapsed, .comment-deleted) { color: #657184; }
html[data-theme="light"] .wrap.wrap.wrap .comment-collapsed summary { color: #a63145; }
html[data-theme="light"] .wrap.wrap.wrap :is(.reply-form > summary, .comment-delete-toggle > summary) { color: #285f91; }
html[data-theme="light"] .wrap.wrap.wrap .vote-form button { color: #465468; background: #ffffff; border-color: #c4cfdb; }
html[data-theme="light"] .wrap.wrap.wrap .vote-form button:hover { color: #2e425b; background: #edf1f6; }
html[data-theme="light"] .wrap.wrap.wrap .vote-form .vote-up:hover { color: #20734f; background: #edf7f1; border-color: #a8cdb8; }
html[data-theme="light"] .wrap.wrap.wrap .vote-form .vote-down:hover { color: #a63145; background: #fff1f3; border-color: #e3b4be; }
html[data-theme="light"] .wrap.wrap.wrap .setup-box code { color: #285f91; }
html[data-theme="light"] .wrap.wrap.wrap .file-preview span { color: #506074; background: #f7f9fc; border-color: #d4dde8; }
html[data-theme="light"] .wrap.wrap.wrap .poll-create { background: #f7f9fc; border-color: #d3dde8; }
html[data-theme="light"] .wrap.wrap.wrap .poll-create-toggle { color: #3d4b5d; }
html[data-theme="light"] .wrap.wrap.wrap .post-poll { background: #f7f9fc; border-color: #c7d4e1; }
html[data-theme="light"] .wrap.wrap.wrap .poll-option > span { color: #2d3b4c; background: #ffffff; border-color: #cdd7e2; }
html[data-theme="light"] .wrap.wrap.wrap .poll-option > input:checked + span { border-color: #b78253; background: #fff8ef; }
html[data-theme="light"] .wrap.wrap.wrap .poll-option i { background: rgba(176, 128, 76, .15); }
html[data-theme="light"] .wrap.wrap.wrap :is(.poll-option small, .poll-submit span) { color: #5f6b7a; }
html[data-theme="light"] .wrap.wrap.wrap .video-next { color: #3d4f65; background: #edf1f6; border-color: #c2cddb; }

/* Profile editor chrome changes, but the selected profile/card design does not. */
html[data-theme="light"] .wrap.wrap.wrap :is(.mbu-profile-remove, .mbu-profile-publish) { color: #3f4d5e; }
html[data-theme="light"] .wrap.wrap.wrap .mbu-profile-publish { background: #fbf4eb; border-color: #dfc4a4; }
html[data-theme="light"] .wrap.wrap.wrap .mbu-profile-publish small { color: #71604c; }
html[data-theme="light"] .wrap.wrap.wrap .mbu-profile-privacy { color: #5f6b7a !important; }
html[data-theme="light"] .wrap.wrap.wrap .mbu-profile-card-link { color: #88501f; background: #fffaf3; border-color: #dec3a2; }
html[data-theme="light"] .wrap.wrap.wrap .mbu-profile-card-link small { color: #6b6257; }
html[data-theme="light"] .wrap.wrap.wrap .mbu-profile-card-link:hover { background: #faf0e3; border-color: #c99d6f; }
html[data-theme="light"] .wrap.wrap.wrap .mbu-profile-save { color: #ffffff; background: #965322 !important; border-color: #965322 !important; }
html[data-theme="light"] .wrap.wrap.wrap .mbu-profile-save:hover { color: #ffffff; background: #784019 !important; border-color: #784019 !important; }
html[data-theme="light"] .wrap.wrap.wrap .mbu-profile-status { color: #20734f; }
html[data-theme="light"] .wrap.wrap.wrap .mbu-profile-status[data-error="true"] { color: #a63145; }
html[data-theme="light"] .wrap.wrap.wrap :is(.mbu-profile-preview > p, .mbu-profile-standalone-back) { color: #5f6b7a; }
html[data-theme="light"] .wrap.wrap.wrap .mbu-profile-preview > p a { color: #965322; }
html[data-theme="light"] .wrap.wrap.wrap .mbu-profile-notice { color: #256547; background: #edf7f1; border-color: #b4d3c0; }

/* Account balances and points controls share the community surface palette. */
html[data-theme="light"] .wrap.wrap.wrap .points-card-head a { color: #965322; }
html[data-theme="light"] .wrap.wrap.wrap :is(.points-metric small, .points-card-foot p, .points-section p, .points-progress-note, .points-history small, .points-empty) { color: #5f6b7a; }
html[data-theme="light"] .wrap.wrap.wrap .points-metric strong { color: #273548; }
html[data-theme="light"] .wrap.wrap.wrap .points-metric:first-child strong { color: #965322; }
html[data-theme="light"] .wrap.wrap.wrap .points-grade-badge { color: #88501f; background: #fbf0e4; border-color: #d9b895; }
html[data-theme="light"] .wrap.wrap.wrap .points-progress { background: #e2e9f1; accent-color: #a86531; }
html[data-theme="light"] .wrap.wrap.wrap .points-progress::-webkit-progress-bar { background: #e2e9f1; }
html[data-theme="light"] .wrap.wrap.wrap .points-progress::-webkit-progress-value { background: #a86531; }
html[data-theme="light"] .wrap.wrap.wrap .points-progress::-moz-progress-bar { background: #a86531; }
html[data-theme="light"] .wrap.wrap.wrap .points-table td:nth-child(2) { color: #3f4d5e; }
html[data-theme="light"] .wrap.wrap.wrap .points-rules-note { color: #5f6b7a !important; }
html[data-theme="light"] .wrap.wrap.wrap .points-tiers li { color: #3f4d5e; background: #f7f9fc; border-color: #d7e0ea; }
html[data-theme="light"] .wrap.wrap.wrap .points-tiers li[aria-current="step"] { background: #fbf0e4; border-color: #cfa77d; }
html[data-theme="light"] .wrap.wrap.wrap .points-tiers b { color: #334256; }
html[data-theme="light"] .wrap.wrap.wrap .points-tiers span { color: #5f6b7a; }
html[data-theme="light"] .wrap.wrap.wrap .points-tiers small { color: #965322; }
html[data-theme="light"] .wrap.wrap.wrap .points-plus { color: #20734f; }
html[data-theme="light"] .wrap.wrap.wrap .points-minus { color: #965322; }
html[data-theme="light"] .wrap.wrap.wrap .points-notice { color: #256547; background: #edf7f1; border-color: #b4d3c0; }
html[data-theme="light"] .wrap.wrap.wrap .points-disabled { color: #647184 !important; background: #edf1f6 !important; border-color: #ced8e3 !important; }
html[data-theme="light"] .wrap.wrap.wrap .points-name-current { background: #f2f5f9; }
html[data-theme="light"] .wrap.wrap.wrap .points-name-current strong { color: #273548; }


/* Secondary public-page light theme.
   Scope: tiers, crews, supporters, statistics/analysis, matches/records/recent
   form/lineups/calendar, notifications, and collectible-page controls.
   The card artwork (.mbu-card and .mbu-profile-card) is intentionally untouched.
   Repeated .wrap specificity matches the existing shared theme rules. */

/* Tier directory */
html[data-theme="light"] body.tiers-body,
html[data-theme="light"] body.crew-body,
html[data-theme="light"] body.supporters-body {
  background: #f4f6f9;
  color: #1f2937;
}
/* These directories do not use .wrap, so override the shared h1/h2/h3 white
   directly. Their more specific copper accent/section rules remain below. */
html[data-theme="light"] body .tiers-page :is(h1,h2,h3),
html[data-theme="light"] body .crew-page :is(h1,h2,h3),
html[data-theme="light"] body .supporters-page :is(h1,h2,h3) { color: #1f2937; }
html[data-theme="light"] body .tiers-page :is(.tier-hero,.tier-filter-bar,.tier-select-row,.tier-heading) { border-color: #d7dee7; }
html[data-theme="light"] body .tiers-page :is(.tier-kicker,.summary-chip,.tier-count,.college,.empty-tier,.tier-filter-empty,.preview-copy small) { color: #5f6b7a; }
html[data-theme="light"] body .tiers-page .tier-kicker>span { color: #6b7280; }
html[data-theme="light"] body .tiers-page :is(.summary-chip b,.player-main) { color: #1f2937; }
html[data-theme="light"] body .tiers-page :is(.tier-hero h1 em,.summary-chip.live b,.tier-heading h2,.onair,.college.mbu,.preview-copy b) { color: #965322; }
html[data-theme="light"] body .tiers-page :is(.tier-kicker i,.tier-heading:before,.onair i) { background: #a96736; }
html[data-theme="light"] body .tiers-page .filter-btn { border-color: #cbd5e1; background: #fff; color: #556273; }
html[data-theme="light"] body .tiers-page .filter-btn:hover { border-color: #b48a67; background: #fbf5ef; color: #7f431e; }
html[data-theme="light"] body .tiers-page :is(.filter-btn.active,.filter-btn.live.active) { border-color: #b68a62; background: #f6e9dc; color: #7f431e; }
html[data-theme="light"] body .tiers-page .tier-block { background: #fff; border-color: #d7dee7; }
html[data-theme="light"] body .tiers-page .tier-player { background: #f7f9fc; border-color: #dce3eb; }
html[data-theme="light"] body .tiers-page :is(.tier-player:hover,.tier-player:focus-within) { background: #fbf5ef; border-color: #b89b81; }
html[data-theme="light"] body .tiers-page .tier-player.is-live { border-color: #b98b64; box-shadow: inset 2px 0 #a96736; }
html[data-theme="light"] body .tiers-page .race { background: #e9eef5; }
html[data-theme="light"] body .tiers-page .race.t { color: #235f91; }
html[data-theme="light"] body .tiers-page .race.z { color: #704797; }
html[data-theme="light"] body .tiers-page .race.p { color: #85621c; }
html[data-theme="light"] body .tiers-page .race.unknown { color: #5f6b7a; }
html[data-theme="light"] body .tiers-page .elo-detail { color: #5f6b7a; border-color: #cbd5e1; }
html[data-theme="light"] body .tiers-page .elo-detail:hover { color: #965322; border-color: #b68a62; }
html[data-theme="light"] body .tiers-page .live-preview { background: #fff; border-color: #b89b81; box-shadow: 0 14px 34px #1f293724; }
/* The photo's live badge remains a dark overlay with its existing light text. */
html[data-theme="light"] body .tiers-page .tier-filter-empty { background: #fff; border-color: #c5cfdb; }
html[data-theme="light"] body .tiers-page .tier-error { border-color: #d9b78f; background: #fff4e5; color: #81511f; }
html[data-theme="light"] body :is(.tiers-page,.crew-page,.supporters-page) :is(button,input,select,a,summary):focus-visible { outline-color: #975322; }

/* Crew and free-agent directories */
html[data-theme="light"] body .crew-page :is(.crew-hero,.crew-tabs,.crew-bottom) { border-color: #d7dee7; }
html[data-theme="light"] body .crew-page :is(.crew-kicker,.crew-hero p,.crew-result-row p,.crew-section-heading label,.crew-card-eyebrow,.crew-card-number>span,.crew-composition b,.crew-person-tier,.crew-fa-tier header span,.crew-empty p,.crew-load-error p,.crew-bottom>span,.crew-bottom>a,.crew-role) { color: #5f6b7a; }
html[data-theme="light"] body .crew-page :is(.crew-kicker>span,.crew-index) { color: #6b7280; }
html[data-theme="light"] body .crew-page :is(h1 em,.crew-home h3,.crew-fa-tier h3,.crew-fa-notice strong,.crew-conflict,.crew-bottom) { color: #965322; }
html[data-theme="light"] body .crew-page .crew-kicker i { background: #a96736; }
html[data-theme="light"] body .crew-page .crew-tabs button { color: #5f6b7a; }
html[data-theme="light"] body .crew-page .crew-tabs button[aria-pressed=true] { color: #1f2937; border-bottom-color: #a96736; }
html[data-theme="light"] body .crew-page .crew-tabs span { border-color: #cbd5e1; color: #5f6b7a; }
html[data-theme="light"] body .crew-page .crew-tabs button[aria-pressed=true] span { border-color: #d4b79d; background: #f6e9dc; color: #875022; }
html[data-theme="light"] body .crew-page :is(.crew-search,.crew-tools select) { background: #fff; border-color: #cbd5e1; color: #5f6b7a; }
html[data-theme="light"] body .crew-page .crew-search input { background: transparent; color: #1f2937; }
html[data-theme="light"] body .crew-page :is(.crew-tools select,.crew-section-heading select) { color: #1f2937; color-scheme: light; }
html[data-theme="light"] body .crew-page .crew-section-heading select { background: transparent; }
html[data-theme="light"] body .crew-page .crew-reset { border-color: #cbd5e1; background: #fff; color: #556273; }
html[data-theme="light"] body .crew-page .race-T { color: #235f91; }
html[data-theme="light"] body .crew-page .race-Z { color: #704797; }
html[data-theme="light"] body .crew-page .race-P { color: #85621c; }
html[data-theme="light"] body .crew-page .crew-card { background: #fff; border-color: #d7dee7; }
html[data-theme="light"] body .crew-page .crew-card:hover { border-color: #a2afbd; }
html[data-theme="light"] body .crew-page .crew-card.crew-home { border-color: #b98b64; }
/* Preserve each crew's accent stripe; darken its pastel monogram for white. */
html[data-theme="light"] body .crew-page .crew-monogram { background: #f1f4f8; color: #485a6e; color: color-mix(in srgb,var(--crew-accent) 45%,#243244); border-color: #cbd5e1; }
html[data-theme="light"] body .crew-page .crew-balance { background: #e3e8ef; }
html[data-theme="light"] body .crew-page :is(.crew-person,.crew-roster .crew-person) { border-color: #e1e6ed; }
html[data-theme="light"] body .crew-page .crew-race { background: #e9eef5; }
html[data-theme="light"] body .crew-page .crew-link-arrow { color: #5f6b7a; }
html[data-theme="light"] body .crew-page .crew-person a:hover { color: #965322; }
html[data-theme="light"] body .crew-page .crew-fa-tier { border-color: #d7dee7; background: #fff; }
html[data-theme="light"] body .crew-page .crew-fa-tier>header { background: #edf1f6; border-color: #d7dee7; }
html[data-theme="light"] body .crew-page .crew-fa-notice { border-color: #d9b78f; background: #fff4e5; color: #70583e; }
html[data-theme="light"] body .crew-page :is(.crew-empty,.crew-load-error) { border-color: #bdc8d5; background: #fff; }
html[data-theme="light"] body .crew-page :is(.crew-empty button,.crew-load-error a) { background: #f0dfcd; color: #673c1c; }
html[data-theme="light"] body .crew-page .crew-portrait { background: #e8edf4; color: #556273; border-color: #cbd5e1; }
html[data-theme="light"] body .crew-page .crew-avatar .crew-race { border-color: #fff; }

/* Supporter rankings, including their embedded /row-stats section */
html[data-theme="light"] body .supporters-page { color: #1f2937; }
html[data-theme="light"] body .supporters-page :is(.supporters-kicker,.supporters-hero h1 em,.supporters-hero h2 em,.supporters-footer a) { color: #965322; }
html[data-theme="light"] body .supporters-page :is(.supporters-hero p,.supporters-total>span,.supporters-total small,.supporters-date,.supporters-live-label,.supporters-meta,.supporter-rank,.supporter-person>span,.supporter-amount>span:last-child,.supporter-breakdown summary,.supporter-breakdown dl>div,.supporter-breakdown dd span,.supporters-footer) { color: #5f6b7a; }
html[data-theme="light"] body .supporters-page :is(.supporters-controls,.supporters-tabs,.supporters-footer),
html[data-theme="light"] body .supporters-page.supporters-embedded { border-color: #d7dee7; }
html[data-theme="light"] body .supporters-page .supporters-tabs a { color: #5f6b7a; }
html[data-theme="light"] body .supporters-page .supporters-tabs a[aria-current=true] { color: #875022; border-bottom-color: #a96736; }
html[data-theme="light"] body .supporters-page .supporters-date input { background: #fff; color: #1f2937; border-color: #cbd5e1; color-scheme: light; }
html[data-theme="light"] body .supporters-page .supporters-live-label i { background: #a96736; }
html[data-theme="light"] body .supporters-page .supporters-search { background: #fff; border-color: #cbd5e1; color: #5f6b7a; }
html[data-theme="light"] body .supporters-page .supporters-search input { background: transparent; color: #1f2937; }
html[data-theme="light"] body .supporters-page .supporters-refresh { border-color: #bdc8d5; background: #fff; color: #405269; }
html[data-theme="light"] body .supporters-page .supporters-status { border-color: #d9b78f; background: #fff4e5; color: #81511f; }
html[data-theme="light"] body .supporters-page .supporters-status[data-state=unavailable] { background: #edf1f6; border-color: #cbd5e1; color: #556273; }
html[data-theme="light"] body .supporters-page .supporters-status[data-state=loading] { background: #edf5fc; border-color: #bdd2e4; color: #37627f; }
html[data-theme="light"] body .supporters-page :is(.supporters-status[data-state=partial],.supporters-status[data-state=ready]) { border: 0; background: none; color: #5f6b7a; }
html[data-theme="light"] body .supporters-page .supporter-row { background: #fff; border-color: #d7dee7; }
html[data-theme="light"] body .supporters-page .supporter-top-1 { background: linear-gradient(105deg,#fff3dc,#fffaf0 50%,#fff); border-color: #c8a15f; }
html[data-theme="light"] body .supporters-page .supporter-top-2 { background: #f0f4f8; border-color: #a8b7c7; }
html[data-theme="light"] body .supporters-page .supporter-top-3 { background: #f8f0e9; border-color: #c6a78b; }
html[data-theme="light"] body .supporters-page .supporter-top .supporter-rank { color: #875022; }
html[data-theme="light"] body .supporters-page .supporter-top-1 .supporter-rank { color: #8b641c; }
html[data-theme="light"] body .supporters-page .supporter-top-2 .supporter-rank { color: #52657c; }
html[data-theme="light"] body .supporters-page .supporter-avatar { background: #e8edf4; border-color: #c0ccda; color: #52657c; }
html[data-theme="light"] body .supporters-page .supporter-top-1 .supporter-avatar { background: #f5e5c7; border-color: #c8a15f; color: #825c1b; }
html[data-theme="light"] body .supporters-page .supporter-person strong { color: #1f2937; }
html[data-theme="light"] body .supporters-page .supporter-top-1 .supporter-amount strong { color: #8b641c; }
html[data-theme="light"] body .supporters-page .supporter-breakdown[open] summary { color: #965322; }
html[data-theme="light"] body .supporters-page .supporter-breakdown dl { border-color: #d7dee7; }
html[data-theme="light"] body .supporters-page .supporters-empty { border-color: #c5cfdb; background: #fff; color: #5f6b7a; }

/* Statistics and analysis */
html[data-theme="light"] body .wrap.wrap.wrap.stats-page :is(.monthnav a,.monthnav span) { border-color: #cbd5e1; background: #fff; color: #405269; }
html[data-theme="light"] body .wrap.wrap.wrap.stats-page .monthnav a:hover { background: #edf1f6; color: #1f2937; }
html[data-theme="light"] body .wrap.wrap.wrap.stats-page .monthnav .selected { background: #f6e9dc; border-color: #b68a62; color: #875022; }
html[data-theme="light"] body .wrap.wrap.wrap.stats-page .monthnav .now { background: #eaf2fa; color: #235f91; }
html[data-theme="light"] body .wrap.wrap.wrap.stats-page .stats-section-links a { border-color: #d4b79d; background: #fbf1e7; color: #875022; }
html[data-theme="light"] body .wrap.wrap.wrap.stats-page .badge { background: #f1f4f8; border-color: #d7dee7; color: #556273; }
html[data-theme="light"] body .wrap.wrap.wrap.stats-page :is(th,td) { border-color: #dfe5ed; }
html[data-theme="light"] body .wrap.wrap.wrap.stats-page th { background: #edf1f6; color: #405269; }
html[data-theme="light"] body .wrap.wrap.wrap.stats-page th:hover { background: #e4eaf2; }
html[data-theme="light"] body .wrap.wrap.wrap.stats-page tbody tr:hover { background: #f5f8fb; }
html[data-theme="light"] body .wrap.wrap.wrap.stats-page :is(.rank,.name small,.note) { color: #5f6b7a; }
html[data-theme="light"] body .wrap.wrap.wrap.stats-page :is(.byeolteo-link,.poonggo-link) { color: #965322; }
html[data-theme="light"] body .wrap.wrap.wrap.stats-page tfoot td { background: #f6eee5; color: #875022; }
html[data-theme="light"] body .wrap.wrap.wrap.stats-page .note { border-color: #d7dee7; }
html[data-theme="light"] body .wrap.wrap.wrap.stats-page .note strong { color: #405269; }
html[data-theme="light"] body .wrap.wrap.wrap.analysis :is(.muted,.analysis-bar time) { color: #5f6b7a; }
html[data-theme="light"] body .wrap.wrap.wrap.analysis .analysis-panel { border-color: #d7dee7; background: #fff; color: #1f2937; }
html[data-theme="light"] body .wrap.wrap.wrap.analysis :is(input,select,button) { border-color: #cbd5e1; background: #fff; color: #1f2937; color-scheme: light; }
html[data-theme="light"] body .wrap.wrap.wrap.analysis .analysis-controls button { border-color: #d4b79d; background: #f6e9dc; color: #875022; }
html[data-theme="light"] body .wrap.wrap.wrap.analysis .analysis-kpis article { background: #edf1f6; border-color: #d7dee7; color: #556273; }
html[data-theme="light"] body .wrap.wrap.wrap.analysis .analysis-kpis strong { color: #965322; }
html[data-theme="light"] body .wrap.wrap.wrap.analysis :is(th,td) { border-color: #dfe5ed; }
html[data-theme="light"] body .wrap.wrap.wrap.analysis th { background: #edf1f6; color: #405269; }
html[data-theme="light"] body .wrap.wrap.wrap.analysis .analysis-bar progress { accent-color: #a96736; }
html[data-theme="light"] body .wrap.wrap.wrap.analysis a { color: #235f91; }

/* Matches and expandable entries */
html[data-theme="light"] body .wrap.wrap.wrap.match-page .match-filter { border-color: #cbd5e1; background: #fff; color: #556273; }
html[data-theme="light"] body .wrap.wrap.wrap.match-page .match-filter.active { border-color: #b68a62; background: #f6e9dc; color: #875022; }
html[data-theme="light"] body .wrap.wrap.wrap.match-page .match-card { background: #fff; border-color: #d7dee7; }
html[data-theme="light"] body .wrap.wrap.wrap.match-page .match-card:hover { background: #fbf8f4; border-color: #b89b81; }
html[data-theme="light"] body .wrap.wrap.wrap.match-page .match-card.live { border-color: #c76570; box-shadow: 0 0 0 1px #e6b6bd inset; }
html[data-theme="light"] body .wrap.wrap.wrap.match-page .match-top { color: #965322; }
html[data-theme="light"] body .wrap.wrap.wrap.match-page .match-top b { background: #edf1f6; color: #405269; }
html[data-theme="light"] body .wrap.wrap.wrap.match-page :is(.match-date,.match-card p,.entry-player small,.entry-game span:nth-child(3),.entry-loading) { color: #5f6b7a; }
html[data-theme="light"] body .wrap.wrap.wrap.match-page .match-score em { color: #1f2937; }
html[data-theme="light"] body .wrap.wrap.wrap.match-page .match-card a { color: #235f91; }
html[data-theme="light"] body .wrap.wrap.wrap.match-page .entry-toggle { border-color: #cbd5e1; background: #f7f9fc; color: #405269; }
html[data-theme="light"] body .wrap.wrap.wrap.match-page :is(.entry-toggle:hover,.entry-toggle[aria-expanded=true]) { border-color: #b68a62; color: #875022; }
html[data-theme="light"] body .wrap.wrap.wrap.match-page :is(.entry-detail,.entry-game) { border-color: #dfe5ed; }
html[data-theme="light"] body .wrap.wrap.wrap.match-page .entry-team { background: #f1f4f8; }
html[data-theme="light"] body .wrap.wrap.wrap.match-page .entry-team h3 { color: #235f91; }
html[data-theme="light"] body .wrap.wrap.wrap.match-page .entry-player { color: #405269; }
html[data-theme="light"] body .wrap.wrap.wrap.match-page :is(.entry-player b.win,.entry-game.win b) { color: #20734f; }
html[data-theme="light"] body .wrap.wrap.wrap.match-page :is(.entry-player b.loss,.entry-game.loss b) { color: #b52b3a; }

/* Recent form is also embedded in other public pages. */
html[data-theme="light"] body .wrap.wrap.wrap .recent-form .form-card { background: #fff; border-color: #d7dee7; }
html[data-theme="light"] body .wrap.wrap.wrap .recent-form .form-card:hover { background: #fbf8f4; border-color: #b89b81; }
html[data-theme="light"] body .wrap.wrap.wrap .recent-form :is(.form-head small,.form-summary span,.detail-grid h3,.detail-grid time,.empty-form) { color: #5f6b7a; }
html[data-theme="light"] body .wrap.wrap.wrap .recent-form .result { background: #e3e8ef; color: #556273; }
html[data-theme="light"] body .wrap.wrap.wrap .recent-form .result.win { background: #e6f6ed; color: #20734f; }
html[data-theme="light"] body .wrap.wrap.wrap .recent-form .result.loss { background: #fff0f1; color: #b52b3a; }
html[data-theme="light"] body .wrap.wrap.wrap .recent-form .form-summary b { color: #965322; }
html[data-theme="light"] body .wrap.wrap.wrap .recent-form :is(.form-card details,.detail-grid li) { border-color: #dfe5ed; }
html[data-theme="light"] body .wrap.wrap.wrap .recent-form .form-card summary { color: #235f91; }
html[data-theme="light"] body .wrap.wrap.wrap .recent-form .win-text { color: #20734f; }
html[data-theme="light"] body .wrap.wrap.wrap .recent-form .loss-text { color: #b52b3a; }

/* Records and opponent search */
html[data-theme="light"] body .wrap.wrap.wrap.records :is(.record-nav a,.record-nav span) { border-color: #cbd5e1; background: #fff; color: #405269; }
html[data-theme="light"] body .wrap.wrap.wrap.records .record-nav .current { color: #875022; border-color: #b68a62; background: #f6e9dc; }
html[data-theme="light"] body .wrap.wrap.wrap.records .record-nav a:hover { background: #edf1f6; }
html[data-theme="light"] body .wrap.wrap.wrap.records :is(.opponent-search,.record-panel) { background: #fff; border-color: #d7dee7; }
html[data-theme="light"] body .wrap.wrap.wrap.records :is(.opponent-search>p,.search-summary span,.search-match time,.search-empty,.recent-caption,.record-note,.rank,.player small,.opponent-choice small,.record-detail time,.detail-empty,.legend) { color: #5f6b7a; }
html[data-theme="light"] body .wrap.wrap.wrap.records :is(.search-controls input,.search-controls select,.search-controls button,.opponent-filter) { border-color: #cbd5e1; background: #fff; color: #1f2937; color-scheme: light; }
html[data-theme="light"] body .wrap.wrap.wrap.records .search-controls button { border-color: #965322; background: #965322; color: #fff; }
html[data-theme="light"] body .wrap.wrap.wrap.records .opponent-picker { border-color: #d7dee7; background: #f7f9fc; }
html[data-theme="light"] body .wrap.wrap.wrap.records :is(.opponent-picker h3,.record-detail h3) { color: #235f91; }
html[data-theme="light"] body .wrap.wrap.wrap.records .opponent-choice { border-color: #cbd5e1; background: #fff; color: #405269; }
html[data-theme="light"] body .wrap.wrap.wrap.records .opponent-choice.active { border-color: #b68a62; background: #f6e9dc; color: #875022; }
html[data-theme="light"] body .wrap.wrap.wrap.records .search-summary { background: #edf1f6; }
html[data-theme="light"] body .wrap.wrap.wrap.records :is(.search-summary b,.player-toggle:hover strong,.player-toggle[aria-expanded=true] strong) { color: #965322; }
html[data-theme="light"] body .wrap.wrap.wrap.records :is(.search-match,.record-note,.record-detail-grid,.record-detail li,td) { border-color: #dfe5ed; }
html[data-theme="light"] body .wrap.wrap.wrap.records .record-note .error { color: #b52b3a; }
html[data-theme="light"] body .wrap.wrap.wrap.records th { background: #edf1f6; color: #405269; }
html[data-theme="light"] body .wrap.wrap.wrap.records .mini-result { background: #e3e8ef; color: #556273; }
html[data-theme="light"] body .wrap.wrap.wrap.records .mini-result.win { background: #e6f6ed; color: #20734f; }
html[data-theme="light"] body .wrap.wrap.wrap.records .mini-result.loss { background: #fff0f1; color: #b52b3a; }
html[data-theme="light"] body .wrap.wrap.wrap.records .opponent-pill { border-color: #cbd5e1; background: #edf1f6; color: #5f6b7a; }
html[data-theme="light"] body .wrap.wrap.wrap.records .opponent-pill b { color: #405269; }
html[data-theme="light"] body .wrap.wrap.wrap.records .record-detail>td { background: #f7f9fc; }
html[data-theme="light"] body .wrap.wrap.wrap.records .win { color: #20734f; }
html[data-theme="light"] body .wrap.wrap.wrap.records .lose { color: #b52b3a; }

/* Standalone lineup calculator and the same tool embedded in match details */
html[data-theme="light"] body .wrap.wrap.wrap .match-lineup { border-color: #d7dee7; background: #fff; }
html[data-theme="light"] body .wrap.wrap.wrap .match-lineup>summary { color: #1f2937; }
html[data-theme="light"] body .wrap.wrap.wrap :is(.lineup-page,.match-lineup) { color: #1f2937; }
html[data-theme="light"] body .wrap.wrap.wrap :is(.lineup-kicker,.lineup-round-head b) { color: #965322; }
html[data-theme="light"] body .wrap.wrap.wrap :is(.lineup-hero p,.lineup-teams small,.lineup-vs,.lineup-stage p,.lineup-toolbar label,.lineup-round-head,.lineup-pair label,.lineup-pair>span,.lineup-evidence,.lineup-guide,.lineup-empty) { color: #5f6b7a; }
html[data-theme="light"] body .wrap.wrap.wrap :is(.lineup-stage,.lineup-toolbar,.lineup-round,.lineup-guide) { border-color: #d7dee7; background: #fff; }
html[data-theme="light"] body .wrap.wrap.wrap .lineup-stage { background: linear-gradient(120deg,#edf5fc,#fff 55%,#fbf0e6); }
html[data-theme="light"] body .wrap.wrap.wrap :is(.lineup-page,.match-lineup) :is(select,input,button),
html[data-theme="light"] body .wrap.wrap.wrap.lineup-page :is(select,input,button) { border-color: #cbd5e1; background: #fff; color: #1f2937; color-scheme: light; }
html[data-theme="light"] body .wrap.wrap.wrap :is(.lineup-primary,.lineup-page .lineup-primary,.match-lineup .lineup-primary) { border-color: #b68a62; background: #f6e9dc; color: #875022; }
html[data-theme="light"] body .wrap.wrap.wrap .lineup-evidence { border-color: #dfe5ed; }
html[data-theme="light"] body .wrap.wrap.wrap :is(.lineup-result,.lineup-guide summary,.lineup-predicted) { color: #1f2937; }
html[data-theme="light"] body .wrap.wrap.wrap .lineup-status { color: #875022; }
html[data-theme="light"] body .wrap.wrap.wrap .lineup-meter { background: #dce4ed; }
html[data-theme="light"] body .wrap.wrap.wrap .lineup-meter i { background: #4a86b5; }
html[data-theme="light"] body .wrap.wrap.wrap .lineup-meter b { background: #b77a48; }
html[data-theme="light"] body .wrap.wrap.wrap .lineup-stage:not(.has-result) .lineup-meter b { background: #dce4ed; }
html[data-theme="light"] body .wrap.wrap.wrap .lineup-stage .lineup-big-percent { color: #235f91; }
html[data-theme="light"] body .wrap.wrap.wrap .lineup-stage .lineup-away .lineup-big-percent { color: #965322; }

/* Full calendar and notice listings (homepage previews are handled separately). */
html[data-theme="light"] body .wrap.wrap.wrap.calendar-page :is(.calendar-nav a,.calendar-nav span) { border-color: #cbd5e1; background: #fff; color: #405269; }
html[data-theme="light"] body .wrap.wrap.wrap.calendar-page .calendar-nav a:hover { background: #edf1f6; }
html[data-theme="light"] body .wrap.wrap.wrap.calendar-page .calendar-nav .current { color: #875022; border-color: #b68a62; background: #f6e9dc; }
html[data-theme="light"] body .wrap.wrap.wrap.calendar-page .calendar-scroll { border-color: #d7dee7; background: #fff; }
html[data-theme="light"] body .wrap.wrap.wrap.calendar-page .cal-week { border-color: #d7dee7; background: #edf1f6; color: #5f6b7a; }
html[data-theme="light"] body .wrap.wrap.wrap.calendar-page .cal-week.sun { color: #b52b3a; }
html[data-theme="light"] body .wrap.wrap.wrap.calendar-page .cal-week.sat { color: #235f91; }
html[data-theme="light"] body .wrap.wrap.wrap.calendar-page .cal-cell { border-color: #d7dee7; background: #fff; }
html[data-theme="light"] body .wrap.wrap.wrap.calendar-page .cal-cell.empty { background: #f4f6f9; }
html[data-theme="light"] body .wrap.wrap.wrap.calendar-page .cal-cell.today { background: #fff8ef; box-shadow: inset 0 0 0 1px #a96736; }
html[data-theme="light"] body .wrap.wrap.wrap.calendar-page .cal-day { color: #5f6b7a; }
html[data-theme="light"] body .wrap.wrap.wrap.calendar-page .today .cal-day { background: #965322; color: #fff; }
html[data-theme="light"] body .wrap.wrap.wrap.calendar-page .cal-event { border-color: #e0cbb6; background: #fbf2e8; }
html[data-theme="light"] body .wrap.wrap.wrap.calendar-page .cal-event b { color: #965322; }
html[data-theme="light"] body .wrap.wrap.wrap.calendar-page .cal-event span { color: #1f2937; }
html[data-theme="light"] body .wrap.wrap.wrap.calendar-page .cal-event small { color: #5f6b7a; }
html[data-theme="light"] body .wrap.wrap.wrap.notice-page .notice { border-color: #d7dee7; background: #fff; color: #1f2937; }
html[data-theme="light"] body .wrap.wrap.wrap.notice-page .notice:hover { border-color: #b89b81; background: #fbf8f4; }
html[data-theme="light"] body .wrap.wrap.wrap.notice-page .notice span { color: #965322; }
html[data-theme="light"] body .wrap.wrap.wrap.notice-page :is(.notice time,.notice small,.notice p,.empty-state) { color: #5f6b7a; }

/* Shared notification bell and popup */
html[data-theme="light"] body .mbu-notification-bell { border-color: #cbd5e1; background: #fff; color: #405269; }
html[data-theme="light"] body :is(.mbu-notification-bell:hover,.mbu-notification-bell[aria-expanded=true]) { border-color: #b68a62; background: #f6e9dc; }
html[data-theme="light"] body .mbu-notification-badge { background: #965322; color: #fff; }
html[data-theme="light"] body .mbu-notification-panel { border-color: #cbd5e1; background: #fff; color: #1f2937; box-shadow: 0 16px 50px #1f29372e; }
html[data-theme="light"] body :is(.mbu-notification-head,.mbu-notification-item,.mbu-notification-foot) { border-color: #dfe5ed; }
html[data-theme="light"] body :is(.mbu-notification-head h2,.mbu-notification-title) { color: #1f2937; }
html[data-theme="light"] body :is(.mbu-notification-read-all,.mbu-notification-summary) { color: #965322; }
html[data-theme="light"] body .mbu-notification-link { color: #405269!important; }
html[data-theme="light"] body .mbu-notification-link:hover { background: #edf1f6; }
html[data-theme="light"] body .mbu-notification-item.is-unread { background: #fff6eb; }
html[data-theme="light"] body :is(.mbu-notification-item:not(.is-unread) .mbu-notification-summary,.mbu-notification-excerpt,.mbu-notification-time,.mbu-notification-message,.mbu-notification-foot) { color: #5f6b7a; }

/* Collectible page chrome. No selector below targets card artwork. */
html[data-theme="light"] body .wrap.wrap.wrap .cards-page { color: #1f2937; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-hero { border-color: #d7dee7; }
html[data-theme="light"] body .wrap.wrap.wrap :is(.cards-kicker,.cards-hero h1 em) { color: #965322; }
html[data-theme="light"] body .wrap.wrap.wrap :is(.cards-hero-copy>p,.cards-hero-links,.cards-stack-note,.cards-wallet-item small,.cards-wallet-note,.cards-disclaimer,.cards-library-head p,.cards-history small) { color: #5f6b7a; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-hero-links a:hover { color: #965322; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-wallet { border-color: #d4b79d; background: linear-gradient(115deg,#fbf0e3,#f3f6fa); }
html[data-theme="light"] body .wrap.wrap.wrap .cards-wallet-item strong { color: #1f2937; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-button { border-color: #c9a887; background: #f6e9dc; color: #7f431e; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-button:hover { border-color: #a96736; background: #efdbc6; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-button-quiet { border-color: #cbd5e1; background: transparent; color: #556273; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-button-primary { border-color: #965322; background: #965322; color: #fff; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-button-primary:hover { background: #7f431e; border-color: #7f431e; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-guest { border-color: #d4b79d; background: #fff8ee; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-guest p { color: #70583e; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-alert { border-color: #d9b78f; background: #fff4e5; color: #81511f; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-alert[data-error=true] { border-color: #d7a4ac; background: #fff0f1; color: #9a2f3b; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-library-progress { color: #875022; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-library-progress progress { accent-color: #a96736; background: #e3e8ef; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-library-progress progress::-webkit-progress-bar { background: #e3e8ef; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-library-progress progress::-webkit-progress-value { background: #a96736; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-library-progress progress::-moz-progress-bar { background: #a96736; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-views { border-color: #cbd5e1; background: #edf1f6; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-views button { color: #5f6b7a; background: transparent; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-views button[aria-pressed=true] { color: #7f431e; background: #f0dfcd; }
html[data-theme="light"] body .wrap.wrap.wrap :is(.cards-search input,.cards-rarity-filter) { background: #fff; border-color: #cbd5e1; color: #1f2937; color-scheme: light; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-search input::placeholder { color: #6b7280; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-no-results { border-color: #c5cfdb; color: #5f6b7a; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-rules { border-color: #d7dee7; background: #fff; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-odds li { border-color: #d7dee7; background: #f1f4f8; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-odds b { color: #875022; }
html[data-theme="light"] body .wrap.wrap.wrap :is(.cards-odds small,.cards-rules p,.cards-history li,.cards-result p) { color: #5f6b7a; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-history li { border-color: #dfe5ed; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-history strong { color: #405269; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-result { border-color: #c9a887; background: linear-gradient(120deg,#fff4e4,#f0f5fa); }
html[data-theme="light"] body .wrap.wrap.wrap .cards-dialog { border-color: #c9a887; background: #fff; color: #1f2937; box-shadow: 0 25px 100px #1f293738; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-dialog::backdrop { background: #17233480; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-dialog p { color: #5f6b7a; }
html[data-theme="light"] body .wrap.wrap.wrap .cards-draw-only { border-color: #c9a887; color: #875022; }
/* Keep the existing focus treatment on card art; use copper on page controls. */
html[data-theme="light"] body .wrap.wrap.wrap :is(.cards-button,.cards-views button,.cards-search input,.cards-rarity-filter,.cards-rules summary,.cards-hero-links a):focus-visible { outline-color: #975322; }


/* The appearance control stays beside account notifications at every width. */
html body .sitebar .site-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto;margin-left:auto}
html body .sitebar .site-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 12px;border:1px solid #44505e;border-radius:9px;background:#1c252f;color:#efc697;font:650 12px/1.4 var(--site-font);letter-spacing:0;white-space:nowrap;cursor:pointer;box-shadow:none;transition:background .15s,border-color .15s}
html body .sitebar .site-theme-toggle:hover{background:#2a3039;border-color:#b68b60}
html body .sitebar .site-theme-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
html body .sitebar .site-theme-toggle svg{width:18px;height:18px;flex:0 0 18px;pointer-events:none}
html body .sitebar .site-theme-toggle .site-theme-moon{display:none}
html[data-theme="light"] body .sitebar .site-theme-toggle{color:#634322;background:#fff8ec;border-color:#d9bd91}
html[data-theme="light"] body .sitebar .site-theme-toggle:hover{background:#f9eedc;border-color:#b78a50}
html[data-theme="light"] body .sitebar .site-theme-toggle .site-theme-sun{display:none}
html[data-theme="light"] body .sitebar .site-theme-toggle .site-theme-moon{display:block}
html body .sitebar .site-tools .mbu-notifications{position:relative;top:auto;right:auto;left:auto;margin:0}
html body .sitebar .site-tools .mbu-notification-bell{width:40px;height:40px;border-radius:9px}
@media(max-width:1150px){
  html body .sitebar .inner{display:flex;flex-wrap:wrap;gap:10px 12px}
  html body .sitebar .inner .brand{padding:0;flex:0 0 auto}
  html body .sitebar .nav{order:3;flex:1 1 100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  html body .sitebar .nav a{flex:0 0 auto}
  html body .sitebar .site-tools{order:2}
}
@media(max-width:380px){
  html body .sitebar .inner{gap:8px;padding-left:14px;padding-right:14px}
  html body .sitebar .site-tools{gap:6px}
  html body .sitebar .site-theme-toggle{padding:8px 9px;font-size:11px;gap:5px}
}
@media(prefers-reduced-motion:reduce){html body .sitebar .site-theme-toggle{transition:none}}
