/* A saved member preference; brand artwork and product photos keep original colours. */
html[data-theme="dark"]{color-scheme:dark;--ink:#e5edf9;--green:#8dbbff;--lime:#ff536b;--paper:#0d1420;--line:#344158;--muted:#a5b3c8;--white:#172234;--surface:#172234;--raised:#202f45;--accent:#8dbbff}
html[data-theme="dark"] body{background:var(--paper);color:var(--ink)}
html[data-theme="dark"] :is(.sidebar,.topbar,.panel,.stats,.event-card,.album-card,.photo-card,.settings-save-bar,.partner-banner-card){background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] :is(.sidebar nav a,.eyebrow,.nav-label,.location,.card-arrow,.post-body,.prose,td span,.event-bottom strong,.club-note p,.report-score,.announcement-title-row h3){color:var(--ink)}
html[data-theme="dark"] :is(.sidebar nav a:hover,.sidebar nav a.active,.tabs a.selected,.settings-tabs button.selected,.settings-tabs button:hover){background:#263e5e;color:var(--accent)}
html[data-theme="dark"] :is(.sidebar-note,.club-note,.date-tile,.comment,.member-tags span,.role-preview,.notification-body,.notification-placeholder-help code,.announcement-pin,.announcement-date,thead){background:var(--raised);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] :is(.stats span,th,.announcement-date span,.announcement-pin small){color:var(--muted)}
html[data-theme="dark"] :is(input,textarea,select){background:#101b2b;color:var(--ink);border-color:#4a5c78}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#9aaac2;opacity:1}
html[data-theme="dark"] input[type="checkbox"],html[data-theme="dark"] input[type="radio"]{accent-color:#78aeff}
html[data-theme="dark"] input[type="file"]::file-selector-button{background:var(--raised);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .button{background:#245daf;color:#fff}
html[data-theme="dark"] .button:hover{background:#3274ce;color:#fff}
html[data-theme="dark"] .button.secondary{background:var(--raised);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .button.secondary:hover{background:#304562}
html[data-theme="dark"] .button.lime,html[data-theme="dark"] .delete-button{background:#c91e3c;color:#fff}
html[data-theme="dark"] .button.lime:hover,html[data-theme="dark"] .delete-button:hover{background:#e52a4a}
html[data-theme="dark"] .event-grid .event-card{background:linear-gradient(115deg,#1b2d47,var(--surface) 55%);border-left-color:#669df0}
html[data-theme="dark"] .announcement-card{background:linear-gradient(115deg,#332136,var(--surface) 50%);border-left-color:#ff536b}
html[data-theme="dark"] .announcement-card .post-body{color:var(--ink)}
html[data-theme="dark"] .announcement-card .badge,html[data-theme="dark"] .badge.danger{background:#462333;color:#ffb0bc}
html[data-theme="dark"] .badge{background:#243d5d;color:#bdd7ff}
html[data-theme="dark"] :is(.message,.message.age-definition){background:#1c3352;color:#d5e7ff;border-color:#395c87}
html[data-theme="dark"] .message.error{background:#422332;color:#ffc2cb;border-color:#8b4355}
html[data-theme="dark"] :is(.errorlist,.profile-completion-reminder,.delete-link){color:#ff8294}
html[data-theme="dark"] .profile-completion-reminder:hover{color:#ffb0bc}
html[data-theme="dark"] .profile-required-dot{background:#80b7ff}
html[data-theme="dark"] :is(td,.leader,.account,.post-actions,.announcement-card .post-actions){border-color:var(--line)}
html[data-theme="dark"] :is(.avatar,.large-avatar,.member-card:nth-child(3n+2) .avatar,.member-card:nth-child(3n+3) .avatar){background:#29476d;color:#e2eeff}
html[data-theme="dark"] :is(#profile-avatar-dialog,#merchandise-photo-dialog){background:var(--surface);color:var(--ink)}
html[data-theme="dark"] .auth-art{background:#18345c}
html[data-theme="dark"] .route-row.route-garmin,html[data-theme="dark"] .button.secondary.route-garmin{background:#1769a6;color:#fff}
html[data-theme="dark"] .route-row.route-strava,html[data-theme="dark"] .button.secondary.route-strava{background:#fc5200;color:#171717}
html[data-theme="dark"] :is(#smtp-test-log,.ai-reference-card){background:var(--raised)!important;color:var(--ink);border-color:var(--line)!important}
html[data-theme="dark"] #ai-balance{color:#b7d5ff!important}
html[data-theme="dark"] :is(a:hover,.text-button:hover){color:#ff8294}
@media print{html[data-theme="dark"]{color-scheme:light;--ink:#10284c;--paper:#fff;--surface:#fff;--raised:#eef1f7;--muted:#526079;--line:#d0d7e2;--green:#103c78}}

html[data-theme="dark"] .club-banner{background:var(--paper)}
