.member-theme-toggle{flex-shrink:0;width:42px;height:42px;border:1px solid #dce5f5;border-radius:50%;background:#edf3ff;color:#244fc4;font-size:24px;cursor:pointer;margin-left:auto;margin-right:12px;display:grid;place-items:center}
.member-theme-toggle:focus-visible{outline:3px solid #91b8ff;outline-offset:3px}
.real-member-area .member-top{justify-content:flex-start;gap:12px}
.real-member-area .member-top .request-notification-holder{margin-left:auto}
.real-member-area .member-top .member-theme-toggle{margin-left:0;margin-right:0}
.real-member-area .member-top .member-user{margin-left:0}
.member-side .member-logo.logo-stacked{display:block;width:160px;height:150px;object-fit:contain;margin:0 auto}
.sidebar .brand .logo-stacked{width:160px;height:150px;object-fit:contain}
.m-hero img.logo-stacked{flex-shrink:0;object-fit:contain}
html[data-member-theme="night"] .real-member-area .home-letter-icon{background:#243650;color:#a8c7ff}
html[data-member-theme="night"] .real-member-area .interest-chips button[aria-pressed="true"]{background:#315ed6!important;color:white!important}
html[data-member-theme="night"] .real-member-area .interest-chips :is(span,button){background:#243650!important;color:#dce8fc!important;border-color:#435777!important}
html[data-member-theme="night"] .real-member-area :is(.account-tags span,.account-interest,.account-interests button,.account-message){background:#243650!important;color:#dce8fc!important;border-color:#435777!important}
html[data-member-theme="night"] .real-member-area :is(.envelope-card,.real-letter-paper) :is(p,strong,small,h1,h2,h3,label){color:#243858!important}
html[data-member-theme="night"] .real-member-area :is(.rc-safety-notice,.rc-submissions article,.support-team,.support-report blockquote,.safety-review-card blockquote,[data-settings-status]){background:#243650!important;color:#dce8fc!important;border-color:#435777!important}
html[data-member-theme="night"] .real-member-area .rc-safety-notice *{color:#dce8fc!important}
html[data-member-theme="night"] .real-member-area .m-hero img{background:#eaf1ff;border-radius:10px;padding:4px}
html[data-member-theme="night"] .real-member-area{background:#101827!important;color:#d1d9e6!important;color-scheme:dark}
html[data-member-theme="night"] .real-member-area :is(.member-shell,.member-main,.member-content){background:#101827;color:#e4ecfa}
html[data-member-theme="night"] .real-member-area :is(.member-top,.member-side,.member-bottom,.mobile-member-menu,.m-dialog){background:#172235!important;color:#e4ecfa;border-color:#33445f!important}
html[data-member-theme="night"] .real-member-area :is(.m-panel,.m-stat,.real-pal-card,.rc-post,.rc-composer,.directory-visibility,.settings-card,.support-ticket,.admin-stat,.admin-stats article,.admin-queues article,.account-interest-summary,.notification-panel,.request-notification-panel,.letter-notification-panel,.support-notification-panel){background:#1b2940!important;color:#e4ecfa!important;border-color:#364963!important}
html[data-member-theme="night"] .real-member-area :is(h1,h2,h3,strong,label,legend){color:#e2e8f0!important}
html[data-member-theme="night"] .real-member-area :is(h1,h2,h3){font-weight:600}
html[data-member-theme="night"] .real-member-area p{color:#d1d9e6}
html[data-member-theme="night"] .real-member-area :is(small,.muted,.m-empty,.rc-author-meta,.account-message){color:#aab8cc}
html[data-member-theme="night"] .real-member-area :is(input,select,textarea){background:#121e30!important;color:#e4ecfa!important;border-color:#435777!important}
html[data-member-theme="night"] .real-member-area :is(input,textarea)::placeholder{color:#a4b4cd}
html[data-member-theme="night"] .real-member-area :is(.m-notice,.m-hero,.account-identity,.m-tags span,.m-chip,.rc-safety-consent,.rc-counts,.postal-journey,.postal-office,.member-onboarding,.account-interest-count){background:#243650;color:#dce8fc;border-color:#3b5070}
html[data-member-theme="night"] .real-member-area :is(button,.m-btn,.outline,.account-text-button,.rc-tabs button){background:#243650;color:#dce8fc;border-color:#435777}
html[data-member-theme="night"] .real-member-area :is(.pill,.m-btn:not(.secondary):not(.quiet):not(.danger),button.active,button[aria-pressed="true"]){background:#315ed6;color:white}
html[data-member-theme="night"] .real-member-area :is(.member-nav button,.member-bottom button,.member-user,.m-btn.quiet){background:transparent;color:#b8c8e1}
html[data-member-theme="night"] .real-member-area :is(.member-nav button.active,.member-bottom button.active){background:#253e67;color:#c3d7ff}
html[data-member-theme="night"] .real-member-area :is(a,.account-text-button,.rc-counts button){color:#a8c7ff}
html[data-member-theme="night"] .real-member-area :is(.rc-options[open],.real-pal-menu[open]){background:#1b2940;border-color:#435777;color:#e4ecfa}
html[data-member-theme="night"] .real-member-area .member-theme-toggle{background:#293c5a;color:#ffdb88;border-color:#435777}
html[data-member-theme="night"] .real-member-area :is(.member-logo,.m-mobile-brand){background:#eaf1ff;border-radius:8px;padding:3px}
html[data-member-theme="night"] .real-member-area button:disabled{opacity:.5}
html[data-member-theme="night"] .real-member-area :is(.m-reading,.letter-paper){color:#243858}
@media(max-width:760px){.member-theme-toggle{width:36px;height:36px;margin:0 5px 0 auto;font-size:22px}.real-member-area .member-top{gap:5px}.real-member-area .m-mobile-brand{max-width:130px}}
/* Explicit surfaces: avoid light cards inside otherwise dark member pages. */
html[data-member-theme="night"] .real-member-area :is(.member-setting,.member-empty,.interest-progress,.rc-photo-picker,.rc-photo-preview,.rc-post-photo,.rc-comments[aria-label="Liked by"],.admin-history-entry,.admin-review-guidance,.admin-parent-post,.rc-options summary,.real-pal-menu summary){background:#1b2940!important;color:#dce8fc!important;border-color:#435777!important}
html[data-member-theme="night"] .real-member-area :is(.rc-emojis,.rc-comment,.rc-comments,.rc-counts,.member-setting fieldset,.interest-category,.admin-parent-post){border-color:#435777!important}
html[data-member-theme="night"] .real-member-area :is(.rc-photo-picker,.rc-photo-preview figcaption,.rc-photo-note,.rc-compose-tools>span,.rc-options summary,.real-pal-menu summary,.member-setting small,.admin-history-entry small,.admin-reference,summary){color:#b8c8e1!important}
html[data-member-theme="night"] .real-member-area .interest-count{background:#253e67!important;color:#c3d7ff!important}
html[data-member-theme="night"] .real-member-area :is(.interest-count.complete,.activity-chip,.member-active,.support-status-resolved,.safety-approved){background:#173f34!important;color:#a0e6be!important;border-color:#386b57!important}
html[data-member-theme="night"] .real-member-area :is(.activity-chip.week,.support-status-in_progress,.support-unread,.safety-checking){background:#253e67!important;color:#c3d7ff!important;border-color:#47638c!important}
html[data-member-theme="night"] .real-member-area :is(.member-suspended,.support-needs-reply,.support-status-open,.safety-review,.member-account-notice){background:#493820!important;color:#ffdb96!important;border-color:#80623a!important}
html[data-member-theme="night"] .real-member-area :is(.safety-rejected,.m-btn.danger){background:#472832!important;color:#ffb4c3!important;border-color:#7e4659!important}
html[data-member-theme="night"] .real-member-area :is(.safety-withdrawn,.journey-guide li){background:#243650!important;color:#cad7eb!important;border-color:#435777!important}
html[data-member-theme="night"] .real-member-area .request-bell{background:#243650!important;color:#c3d7ff!important;border-color:#435777!important}
html[data-member-theme="night"] .real-member-area :is(.rc-options[open],.real-pal-menu[open]){background:#1b2940!important;color:#e4ecfa!important;border-color:#435777!important}
html[data-member-theme="night"] .real-member-area .penpal-notice{background:#243650;color:#dce8fc;border-color:#435777}
html[data-member-theme="night"] .real-member-area .penpal-notice-maintenance{background:#493820;border-color:#80623a}
html[data-member-theme="night"] .real-member-area .penpal-notice-feature{background:#173f34;border-color:#386b57}
/* The transparent source stays unchanged; its night variant is rendered in light blue. */
html[data-member-theme="night"] .real-member-area :is(.member-logo,.m-mobile-brand,.m-hero img[src*="logo"]){background:transparent!important;padding:0!important;border-radius:0;filter:brightness(3.3) saturate(.62) drop-shadow(0 1px 1px #0003)}
html[data-member-theme="night"] .real-member-area img[data-theme-logo]{filter:none!important;background:transparent!important;padding:0!important}
/* Brand buttons must not inherit the night-mode control surface. */
html[data-member-theme="night"] .real-member-area .real-brand{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
/* Readable member information without altering the light stationery surfaces. */
html[data-member-theme="night"] .real-member-area .member-info-content{color:#d1d9e6!important;font-weight:400}
html[data-member-theme="night"] .real-member-area .member-info-content summary{color:#d1d9e6!important;font-weight:600}
html[data-member-theme="night"] .real-member-area .member-faq details[open]>summary{color:#e2e8f0!important}
