.theme-toggle{display:inline-grid;place-items:center;width:42px;height:42px;min-width:42px;border:1px solid var(--line,#51404f);border-radius:50%;background:var(--surface,#211b25);color:var(--text,#f5eff3);font:22px system-ui;cursor:pointer;flex-shrink:0}
.theme-toggle:focus-visible{outline:3px solid #bd3e59;outline-offset:3px}
.theme-toggle-floating{position:fixed;right:16px;bottom:16px;z-index:90}
html[data-theme=light]{color-scheme:light;--bg:#faf7f8;--bg-soft:#f3edf0;--surface:#fff;--surface-2:#f1e9ed;--text:#2e2430;--muted:#6c5b6c;--line:#ddcfd7;--accent:#ae3152;--accent-bright:#912341;--gold:#856020;--success:#227b52;--danger:#ae263e;--panel-background:linear-gradient(140deg,#fff,#fcf9fb);--shadow:0 16px 45px #5c294814}
html[data-theme=light] body{background:radial-gradient(ellipse at 10% 0%,#f8e7ee,transparent 42%),var(--bg);color:var(--text)}
html[data-theme=light] body :is(h1,h2,h3,h4,label,legend){color:var(--text)}
html[data-theme=light] body :is(.dd-header,.site-header,.community-header,.site-footer,.dd-footer,.community-nav,.account-menu-panel,.site-navigation,.chat-sidebar,.chat-panel,.entry-card,.panel,.admin-card,dialog,.profile-v2-header,.profile-v4-header,.profile-v2-about,.profile-v2-media,.profile-v2-main,.profile-v4-edit-panel,.profile-v4-card,.popularity-card,.creator-card,.directory-card,.advertisement-card,.portal-card,.portal-sidebar,.legal-card,.account-card,.auth-card){background:var(--panel-background);color:var(--text);border-color:var(--line)}
html[data-theme=light] body .community-app .popularity-card{border-color:color-mix(in srgb,var(--identity-border) 72%,transparent)}
html[data-theme=light] body :is(.account-menu,.account-menu-panel a,.account-menu-panel button,.site-navigation a,.community-nav button,.brand-copy strong){color:var(--text)!important}
html[data-theme=light] body :is(p,.muted,.muted-copy,.brand-copy small,.profile-v2-meta,.profile-v4-meta,.legal-data,.account-menu-status){color:var(--muted)}
html[data-theme=light] body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){background:#fff;color:var(--text);border-color:var(--line);box-shadow:none}
html[data-theme=light] body ::placeholder{color:#796879;opacity:1}
html[data-theme=light] body :is(.button--ghost,.portal-button,.filter-chip,.category-chip,.pill,.profile-v4-option,.check-option,.profile-v4-fieldset,.profile-v2-stat,.profile-v4-stat,.chat-room,.room-item,.user-action-button,.note-reply,.member-row,.user-card,.profile-card){background:#f7f0f3;color:var(--text);border-color:var(--line)}
html[data-theme=light] body :is(.button--primary,.brand-mark,.social-like[aria-pressed=true],.explore-tabs [aria-pressed=true]){background:#ae3152;color:#fff}
html[data-theme=light] body :is(.button--primary,.brand-mark) :is(span,strong){color:#fff}
html[data-theme=light] body :is(.is-active,.site-navigation a[aria-current=page],.community-nav .is-active){background:#f3dce6;color:#862b4b;border-color:#d3a7b8}
html[data-theme=light] body :is(.eyebrow,.hero-kicker,.section-kicker){color:#885324}
html[data-theme=light] body :is(.hero-copy h1 em,.hero-copy em,.profile-v4-accent){color:#b3355b}
html[data-theme=light] body :is(.chat-shell,.chat-main,.chat-messages,.message-list,.dm-panel,.dm-messages,.chat-room-main,#message-list,#dm-messages,.chat-composer,.chat-input-row){background:#fffafc;color:var(--text);border-color:var(--line)}
html[data-theme=light] body :is(.chat-topbar,.chat-header,.chat-room-header,.chat-room-notice,.chat-team-banner,.chat-announcement,.room-description,.chat-members,.members-panel,.room-sidebar,.member-sidebar,.left-sidebar-stack){background:#f4eaf0;color:var(--text);border-color:var(--line)}
html[data-theme=light] body :is(.message-bubble,.private-message-bubble,.dm-bubble){background:#f0e7ed;color:var(--text);border-color:var(--line)}
html[data-theme=light] body :is(.message--mine .message-bubble,.message.is-mine .message-bubble,.dm-message.is-mine .dm-bubble){background:#ae3152;color:#fff}
html[data-theme=light] body :is(.message-meta,.message-body,.user-action-sheet,.user-info-card,.staff-dialog,.chat-ban-notice){color:var(--text)}
html[data-theme=light] body :is(.chat-ban-reason,.chat-welcome-note,.chat-privacy-notice,.verification-note,.notice,.info-note,blockquote){background:#f4e8ee;color:#653a52;border-color:#c491a7}
html[data-theme=light] body :is(.profile-v4-options,.profile-v4-details,.profile-v4-section,.profile-v4-summary,.profile-v2-summary,.profile-v2-feed,.profile-v2-gallery,.profile-v2-info,.profile-v4-tags){background:transparent;border-color:var(--line)}
html[data-theme=light] body :is(.legal-card a,.legal-data a,.text-link){color:#972d50}
html[data-theme=light] body :is(.thought-note,.thought-note p,.thought-note time,.thought-note strong){color:#312635}
html[data-theme=light] body dialog::backdrop{background:#30213080;backdrop-filter:blur(5px)}
html[data-theme=light] body :is(.photo-viewer-stage,.photo-viewer-dialog){background:#16121a;color:#fff}
html[data-theme=light] body .photo-viewer-dialog :is(h2,h3,p,button){color:#fff}
html[data-theme=light] body #chat-preferences-form input[type=checkbox]{border-color:#af90a1;background:#aa97a2}
html[data-theme=light] body #chat-preferences-form input[type=checkbox]:checked{background:#ae3152;border-color:#ae3152}
html[data-theme=light] body :is(.share-dialog,.share-preview){border-color:var(--line)}
html[data-theme=light] body :is(.profile-v4-feed-heading,.profile-v2-feed-heading,.profile-v4-person-card,.profile-v4-fact,.profile-v2-fact,.profile-v6-check-option,.profile-v6-couple-editor,.profile-v4-main-frame,.profile-v2-main-frame,.limited-profile-avatar){background:#f5edf1;border-color:var(--line);color:var(--text)}
html[data-theme=light] body :is(.profile-v4-fact strong,.profile-v2-fact-value,.profile-v9-social-stats,.profile-v9-social-stats a,.profile-v4-meta,.profile-v4-meta span,.profile-v6-edit-field>span,.profile-v4-person-summary,.profile-v4-tag,.privacy-badge,.profile-v4-friend-note){color:#6c4260}
html[data-theme=light] body :is(.profile-v4-fact-label,.profile-v2-fact-label,.profile-v4-bio,.profile-v4-feed-heading small,.profile-v4-feed-empty p){color:var(--muted)}
html[data-theme=light] body.chat-active :is(.composer,.chat-footnote){background:#f9f2f6;box-shadow:none;color:var(--muted);border-color:var(--line)}
html[data-theme=light] body :is(.system-banner,.system-banner strong,.system-banner span,.message-meta strong,.message-meta button,.collapsible-summary,.sidebar-footer a,.room-extras a){color:#795239}
html[data-theme=light] body .message-meta :is(strong,button){color:#795075}
html[data-theme=light] body #pref-chat-bio{background:#fff;color:var(--text);border-color:var(--line)}
@media(max-width:600px){.theme-toggle{width:36px;height:36px;min-width:36px;font-size:20px}.dd-header .header-actions{gap:6px}}
