/* MEDIA personal themes. Only the cabinet and authorized admin pages opt in.
   This stylesheet changes presentation; permission, status and content rules stay intact. */
html.media-themed {
  --mt-bg:#0e0b16; --mt-surface:#191222; --mt-surface-2:#261b34;
  --mt-text:#f7f0ff; --mt-muted:#bcaed0; --mt-heading:#efd8ac;
  --mt-accent:#c49bff; --mt-accent-ink:#1d0d35; --mt-border:#554066;
  --mt-radius:16px; --mt-shadow:0 12px 35px #00000024;
  --mt-hero:url('/assets/images/themes/01.webp'); --mt-backdrop:var(--mt-hero);
  --mt-input:var(--mt-bg); --mt-surface-solid:var(--mt-surface);
  --mt-selection:color-mix(in srgb,var(--mt-accent) 16%,var(--mt-surface));
  --mt-hero-wash:linear-gradient(90deg,color-mix(in srgb,var(--mt-bg) 92%,transparent),color-mix(in srgb,var(--mt-bg) 68%,transparent) 45%,color-mix(in srgb,var(--mt-bg) 32%,transparent));
  --mt-success:#a0e0bc; --mt-success-bg:#18392b;
  --mt-error:#ffb9c6; --mt-error-bg:#431f2b;
  --mt-warning:#f4d1a0; --mt-warning-bg:#3d2e19;
  --mt-on-image:#fff; color-scheme:dark;
  background-color:var(--mt-bg); color:var(--mt-text);
}
html.media-themed[data-theme-mode="light"] {
  color-scheme:light; --mt-shadow:0 10px 30px #35303813;
  --mt-success:#165a39; --mt-success-bg:#e3f3e9;
  --mt-error:#96263e; --mt-error-bg:#fce8ee;
  --mt-warning:#794b12; --mt-warning-bg:#fbefda;
  --mt-hero-wash:linear-gradient(90deg,color-mix(in srgb,var(--mt-surface) 95%,transparent),color-mix(in srgb,var(--mt-surface) 75%,transparent) 45%,color-mix(in srgb,var(--mt-surface) 36%,transparent));
}
html.media-themed[data-media-theme="01"]{--mt-hero:url('/assets/images/themes/01.webp');}
html.media-themed[data-media-theme="02"]{--mt-bg:#0c1119;--mt-surface:#19212c;--mt-surface-2:#263140;--mt-text:#f1f4fa;--mt-muted:#bac4d2;--mt-heading:#e2e8f2;--mt-accent:#bdd1ed;--mt-accent-ink:#101c2d;--mt-border:#4c5d73;--mt-radius:14px;--mt-hero:url('/assets/images/themes/02.webp');}
html.media-themed[data-media-theme="03"]{--mt-bg:#130e08;--mt-surface:#241a10;--mt-surface-2:#352618;--mt-text:#fff3df;--mt-muted:#d4b99a;--mt-heading:#ffe0a0;--mt-accent:#ffc568;--mt-accent-ink:#2b1700;--mt-border:#71502c;--mt-radius:12px;--mt-hero:url('/assets/images/themes/03.webp');}
html.media-themed[data-media-theme="04"]{--mt-bg:#06141d;--mt-surface:#0c2633;--mt-surface-2:#163744;--mt-text:#e9fbff;--mt-muted:#a6c7d0;--mt-heading:#d1fff0;--mt-accent:#71ead7;--mt-accent-ink:#052b2b;--mt-border:#316274;--mt-radius:16px;--mt-hero:url('/assets/images/themes/04.webp');}
html.media-themed[data-media-theme="05"]{--mt-bg:#07111e;--mt-surface:#122337;--mt-surface-2:#20374f;--mt-text:#eff6ff;--mt-muted:#b2c7de;--mt-heading:#d7e9ff;--mt-accent:#86bbff;--mt-accent-ink:#081c36;--mt-border:#3e6085;--mt-radius:9px;--mt-hero:url('/assets/images/themes/05.webp');}
html.media-themed[data-media-theme="06"]{--mt-bg:#15100e;--mt-surface:#261b21;--mt-surface-2:#392934;--mt-text:#fff2df;--mt-muted:#cebca8;--mt-heading:#efd1a0;--mt-accent:#e4b979;--mt-accent-ink:#2d1a09;--mt-border:#6d4c3d;--mt-radius:13px;--mt-hero:url('/assets/images/themes/06.webp');}
html.media-themed[data-media-theme="07"]{--mt-bg:#071a15;--mt-surface:#102c23;--mt-surface-2:#1e4031;--mt-text:#eff8e8;--mt-muted:#b1cbb6;--mt-heading:#e1e7ba;--mt-accent:#a3dab3;--mt-accent-ink:#0b2919;--mt-border:#4b705b;--mt-radius:18px;--mt-hero:url('/assets/images/themes/07.webp');}
html.media-themed[data-media-theme="08"]{--mt-bg:#180d0a;--mt-surface:#2b1b16;--mt-surface-2:#3d2720;--mt-text:#fff0e5;--mt-muted:#dbb7a6;--mt-heading:#ffd29d;--mt-accent:#ffa56c;--mt-accent-ink:#351307;--mt-border:#804631;--mt-radius:10px;--mt-hero:url('/assets/images/themes/08.webp');}
html.media-themed[data-media-theme="09"]{--mt-bg:#dcebf6;--mt-surface:#f2f8ff;--mt-surface-2:#e5effa;--mt-text:#12324d;--mt-muted:#4f6580;--mt-heading:#163d68;--mt-accent:#225cb8;--mt-accent-ink:#fff;--mt-border:#9fbcd7;--mt-radius:17px;--mt-hero:url('/assets/images/themes/09.webp');}
html.media-themed[data-media-theme="10"]{--mt-bg:#19130b;--mt-surface:#2c2318;--mt-surface-2:#3d3121;--mt-text:#fff0d7;--mt-muted:#cfbca0;--mt-heading:#eed098;--mt-accent:#67d4cb;--mt-accent-ink:#0c2c2a;--mt-border:#7c6340;--mt-radius:8px;--mt-hero:url('/assets/images/themes/10.webp');}
html.media-themed[data-media-theme="11"]{--mt-bg:#0c0c0b;--mt-surface:#191917;--mt-surface-2:#27251e;--mt-text:#faf6e9;--mt-muted:#c7c1ae;--mt-heading:#ebd59c;--mt-accent:#e7c574;--mt-accent-ink:#27200c;--mt-border:#625338;--mt-radius:10px;--mt-hero:url('/assets/images/themes/11.webp');}
html.media-themed[data-media-theme="12"]{--mt-bg:#1b090e;--mt-surface:#32131d;--mt-surface-2:#48202c;--mt-text:#fff1ec;--mt-muted:#d7b4bb;--mt-heading:#f2c6aa;--mt-accent:#edb3bb;--mt-accent-ink:#38111e;--mt-border:#7d4551;--mt-radius:16px;--mt-hero:url('/assets/images/themes/12.webp');}
html.media-themed[data-media-theme="13"]{--mt-bg:#101313;--mt-surface:#1d2222;--mt-surface-2:#2b3231;--mt-text:#f5f8f2;--mt-muted:#bcc7c3;--mt-heading:#f1f4e8;--mt-accent:#d5f06d;--mt-accent-ink:#22280b;--mt-border:#4f5c55;--mt-radius:7px;--mt-hero:url('/assets/images/themes/13.webp');}
html.media-themed[data-media-theme="14"]{--mt-bg:#061813;--mt-surface:#0e2b23;--mt-surface-2:#1b3c30;--mt-text:#f5f3dc;--mt-muted:#bdcbb4;--mt-heading:#ebcf8f;--mt-accent:#dfc47f;--mt-accent-ink:#182c1c;--mt-border:#766944;--mt-radius:4px;--mt-hero:url('/assets/images/themes/14.webp');}
html.media-themed[data-media-theme="15"]{--mt-bg:#eee9df;--mt-surface:#fffcf6;--mt-surface-2:#f5efe3;--mt-text:#34291e;--mt-muted:#716454;--mt-heading:#4e3722;--mt-accent:#85601e;--mt-accent-ink:#fffaf0;--mt-border:#cbbba1;--mt-radius:16px;--mt-hero:url('/assets/images/themes/15.webp');}
html.media-themed[data-media-theme="16"]{--mt-bg:#052b32;--mt-surface:#0b3d45;--mt-surface-2:#17525a;--mt-text:#ecffff;--mt-muted:#abd3d2;--mt-heading:#d3f5da;--mt-accent:#7df0d6;--mt-accent-ink:#07362f;--mt-border:#3c8285;--mt-radius:20px;--mt-hero:url('/assets/images/themes/16.webp');}
html.media-themed[data-media-theme="17"]{--mt-bg:#111a15;--mt-surface:#202f25;--mt-surface-2:#304235;--mt-text:#f2f3e9;--mt-muted:#bdcabc;--mt-heading:#dfdfc4;--mt-accent:#b6cfaa;--mt-accent-ink:#20301c;--mt-border:#586e59;--mt-radius:12px;--mt-hero:url('/assets/images/themes/17.webp');}
html.media-themed[data-media-theme="18"]{--mt-bg:#0f1b27;--mt-surface:#1a3042;--mt-surface-2:#294457;--mt-text:#f2f8fd;--mt-muted:#b4c9d6;--mt-heading:#dbeaf0;--mt-accent:#adcfe5;--mt-accent-ink:#183345;--mt-border:#4d6e83;--mt-radius:12px;--mt-hero:url('/assets/images/themes/18.webp');}
html.media-themed[data-media-theme="19"]{--mt-bg:#f0d7bb;--mt-surface:#fff1df;--mt-surface-2:#f8e3cb;--mt-text:#482c1c;--mt-muted:#7a553b;--mt-heading:#65301b;--mt-accent:#a8441d;--mt-accent-ink:#fff6eb;--mt-border:#cfa789;--mt-radius:23px;--mt-hero:url('/assets/images/themes/19.webp');}
html.media-themed[data-media-theme="20"]{--mt-bg:#101526;--mt-surface:#1b2338;--mt-surface-2:#302c46;--mt-text:#fff1f6;--mt-muted:#c8b7d0;--mt-heading:#f7d3df;--mt-accent:#efafc9;--mt-accent-ink:#341328;--mt-border:#6d4d6b;--mt-radius:17px;--mt-hero:url('/assets/images/themes/20.webp');}
html.media-themed[data-media-theme="21"]{--mt-bg:#e8e1d3;--mt-surface:#f9f4e9;--mt-surface-2:#eee6d7;--mt-text:#282620;--mt-muted:#686257;--mt-heading:#232520;--mt-accent:#ad3325;--mt-accent-ink:#fff9ef;--mt-border:#bfb6a6;--mt-radius:4px;--mt-hero:url('/assets/images/themes/21.webp');}
html.media-themed[data-media-theme="22"]{--mt-bg:#e2edf8;--mt-surface:#fff;--mt-surface-2:#edf4fc;--mt-text:#19334f;--mt-muted:#546b84;--mt-heading:#153c69;--mt-accent:#205ed0;--mt-accent-ink:#fff;--mt-border:#adcae6;--mt-radius:18px;--mt-hero:url('/assets/images/themes/22.webp');}
html.media-themed[data-media-theme="23"]{--mt-bg:#ede0ce;--mt-surface:#fff5e6;--mt-surface-2:#f4e6d3;--mt-text:#4a3022;--mt-muted:#745d47;--mt-heading:#684327;--mt-accent:#975432;--mt-accent-ink:#fff8ef;--mt-border:#ccb59a;--mt-radius:24px;--mt-hero:url('/assets/images/themes/23.webp');}
html.media-themed[data-media-theme="24"]{--mt-bg:#dceee7;--mt-surface:#f5fffb;--mt-surface-2:#e6f4ee;--mt-text:#153c32;--mt-muted:#506f64;--mt-heading:#1e5041;--mt-accent:#176b59;--mt-accent-ink:#f4fff9;--mt-border:#a2c7b8;--mt-radius:21px;--mt-hero:url('/assets/images/themes/24.webp');}
html.media-themed[data-media-theme="25"]{--mt-bg:#e9e1f5;--mt-surface:#fdf9ff;--mt-surface-2:#f0e8fc;--mt-text:#382654;--mt-muted:#6c5d80;--mt-heading:#51317b;--mt-accent:#7040ab;--mt-accent-ink:#fff;--mt-border:#c2aadf;--mt-radius:22px;--mt-hero:url('/assets/images/themes/25.webp');}
html.media-themed[data-media-theme="26"]{--mt-bg:#050c19;--mt-surface:#0b1b2c;--mt-surface-2:#18283f;--mt-text:#edfaff;--mt-muted:#abc5d6;--mt-heading:#edcaff;--mt-accent:#7aeeff;--mt-accent-ink:#072433;--mt-border:#4a6685;--mt-radius:7px;--mt-hero:url('/assets/images/themes/26.webp');}
html.media-themed[data-media-theme="27"]{--mt-bg:#110b32;--mt-surface:#211747;--mt-surface-2:#382056;--mt-text:#fff1fa;--mt-muted:#ccb6e1;--mt-heading:#ffd1cc;--mt-accent:#ffaca6;--mt-accent-ink:#3b1233;--mt-border:#795099;--mt-radius:9px;--mt-hero:url('/assets/images/themes/27.webp');}
html.media-themed[data-media-theme="28"]{--mt-bg:#e4e4e2;--mt-surface:#fff;--mt-surface-2:#f0efec;--mt-text:#171717;--mt-muted:#595955;--mt-heading:#0e0e0e;--mt-accent:#bf102c;--mt-accent-ink:#fff;--mt-border:#555551;--mt-radius:4px;--mt-shadow:4px 4px 0 #16161620;--mt-hero:url('/assets/images/themes/28.webp');}
html.media-themed[data-media-theme="29"]{--mt-bg:#072016;--mt-surface:#10392a;--mt-surface-2:#204c35;--mt-text:#fff6d7;--mt-muted:#c4d3af;--mt-heading:#ffe0a0;--mt-accent:#ffd179;--mt-accent-ink:#30300d;--mt-border:#898151;--mt-radius:2px;--mt-shadow:5px 5px 0 #04180c66;--mt-hero:url('/assets/images/themes/29.webp');}
html.media-themed[data-media-theme="30"]{--mt-bg:#e6e4de;--mt-surface:#fcf7ed;--mt-surface-2:#eff0e9;--mt-text:#203c53;--mt-muted:#536575;--mt-heading:#213f67;--mt-accent:#34627f;--mt-accent-ink:#fff;--mt-border:#a6b8ba;--mt-radius:13px;--mt-hero:url('/assets/images/themes/30.webp');}
html.media-themed[data-media-theme="31"]{--mt-bg:#181113;--mt-surface:#281e20;--mt-surface-2:#3a2929;--mt-text:#fff2e8;--mt-muted:#d0b9ae;--mt-heading:#ffd59a;--mt-accent:#ffb16d;--mt-accent-ink:#301506;--mt-border:#745047;--mt-radius:14px;--mt-hero:url('/assets/images/themes/31.webp?v=20261031-scenic');}
html.media-themed[data-media-theme="32"]{--mt-bg:#151321;--mt-surface:#252039;--mt-surface-2:#352c4b;--mt-text:#f7efff;--mt-muted:#c5b7d6;--mt-heading:#f0d49a;--mt-accent:#c9a0ff;--mt-accent-ink:#27113f;--mt-border:#624c81;--mt-radius:13px;--mt-hero:url('/assets/images/themes/32.webp?v=20261031-scenic');}
html.media-themed[data-media-theme="33"]{--mt-bg:#101e2c;--mt-surface:#1b3042;--mt-surface-2:#294257;--mt-text:#fff8e9;--mt-muted:#c7c3b7;--mt-heading:#ffe7b2;--mt-accent:#f8ce80;--mt-accent-ink:#30230b;--mt-border:#716343;--mt-radius:16px;--mt-hero:url('/assets/images/themes/33.webp?v=20261031-scenic');}
html.media-themed[data-media-theme="34"]{--mt-bg:#07121e;--mt-surface:#102233;--mt-surface-2:#1b3045;--mt-text:#eefaff;--mt-muted:#b5cbdc;--mt-heading:#d8c9ff;--mt-accent:#72e9ff;--mt-accent-ink:#062431;--mt-border:#3f6c82;--mt-radius:6px 16px;--mt-shadow:0 12px 30px #0005;--mt-panel-sheen:linear-gradient(115deg,#72e9ff0b,transparent 42%,#a17dff09);--mt-hero:url('/assets/images/themes/34.webp?v=20261105-cyberpunk-v2');--mt-hero-mobile:url('/assets/images/themes/34-mobile.webp?v=20261105-cyberpunk-v2');}
html.media-themed[data-media-theme="35"]{--mt-bg:#180b13;--mt-surface:#2d1521;--mt-surface-2:#402232;--mt-text:#fff2ee;--mt-muted:#d9b7bb;--mt-heading:#f3d195;--mt-accent:#ff8f9f;--mt-accent-ink:#3b0d19;--mt-border:#85505b;--mt-radius:5px;--mt-shadow:0 12px 30px #0006;--mt-panel-sheen:linear-gradient(150deg,#f3d1950c,transparent 34%,#ff6f8708);--mt-hero:url('/assets/images/themes/35.webp?v=20261105-cyberpunk-v2');--mt-hero-mobile:url('/assets/images/themes/35-mobile.webp?v=20261105-cyberpunk-v2');}
html.media-themed[data-media-theme="36"]{--mt-bg:#061a17;--mt-surface:#102e28;--mt-surface-2:#1b4038;--mt-text:#edfff8;--mt-muted:#afd0c5;--mt-heading:#b5f1ef;--mt-accent:#72f1bd;--mt-accent-ink:#083427;--mt-border:#3b7a69;--mt-radius:3px 12px;--mt-shadow:0 12px 30px #0005;--mt-panel-sheen:linear-gradient(90deg,#72f1bd08,transparent 40%),repeating-linear-gradient(0deg,#a5efdc03 0 1px,transparent 1px 5px);--mt-hero:url('/assets/images/themes/36.webp?v=20261105-cyberpunk-v2');--mt-hero-mobile:url('/assets/images/themes/36-mobile.webp?v=20261105-cyberpunk-v2');}
html.media-themed[data-media-theme="37"]{--mt-bg:#141519;--mt-surface:#24262c;--mt-surface-2:#34363c;--mt-text:#fff8e9;--mt-muted:#cdc5b5;--mt-heading:#ffe5b1;--mt-accent:#f4cc78;--mt-accent-ink:#30230b;--mt-border:#7d7156;--mt-radius:10px;--mt-shadow:0 12px 30px #0006;--mt-panel-sheen:linear-gradient(135deg,transparent 40%,#f4cc7808 40.2%,transparent 41%),linear-gradient(#ffffff04,transparent);--mt-hero:url('/assets/images/themes/37.webp?v=20261105-cyberpunk');--mt-hero-mobile:url('/assets/images/themes/37-mobile.webp?v=20261105-cyberpunk-v2');}
html.media-themed[data-media-theme="38"]{--mt-bg:#190e25;--mt-surface:#2b1b3b;--mt-surface-2:#3c2b50;--mt-text:#fff2fb;--mt-muted:#d4bcdd;--mt-heading:#e7d5ff;--mt-accent:#f4a8df;--mt-accent-ink:#38142d;--mt-border:#86608f;--mt-radius:18px 6px;--mt-shadow:0 12px 30px #0005;--mt-panel-sheen:radial-gradient(ellipse at 100% 0,#f4a8df0e,transparent 60%),linear-gradient(110deg,#bd9bff06,transparent);--mt-hero:url('/assets/images/themes/38.webp?v=20261105-cyberpunk-v2');--mt-hero-mobile:url('/assets/images/themes/38-mobile.webp?v=20261105-cyberpunk-v2');}

html.media-themed[data-media-theme="39"]{--mt-bg:#08121c;--mt-surface:#10202d;--mt-surface-2:#1b3040;--mt-text:#f5f0e6;--mt-muted:#c4c7c7;--mt-heading:#ffe5ad;--mt-accent:#eac57c;--mt-accent-ink:#251a08;--mt-border:#596574;--mt-radius:12px;--mt-shadow:0 14px 36px #0006;--mt-hero:url('/assets/images/themes/39.webp');--mt-hero-mobile:url('/assets/images/themes/39-mobile.webp');--mt-backdrop:var(--mt-hero);}

/* The scene owns its poster, so blocked autoplay never produces a blank page. */
.media-living-scene{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;background-size:cover;background-position:left center;background-repeat:no-repeat;}
.media-living-video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:left center;opacity:0;transition:opacity .25s;}
.media-living-scene.is-playing .media-living-video{opacity:1;}
body.media-living-body{isolation:isolate;}
.media-living-scene--backdrop{position:fixed;z-index:-1;background-position:center;}
.media-living-scene--backdrop .media-living-video{object-position:center;}
.media-living-scene--backdrop::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#08121c9c,#08121ceb 75%,#08121cf5);}
html.media-themed[data-media-theme="39"] :is(.cabinet-page .cabinet-profile-card,.cabinet-page .cabinet-card,.admin-workspace .admin-card){background-image:linear-gradient(120deg,#eac57c0a,transparent 40%,#83d9ff08);box-shadow:inset 0 1px #eac57c24,var(--mt-shadow);}
@media(max-width:900px){html.media-themed[data-media-theme="39"]{--mt-backdrop:var(--mt-hero-mobile);}}
@media(prefers-reduced-motion:reduce){.media-living-video{transition:none;}}

/* Legacy components inherit the same palette, including independently loaded dialogs. */
html.media-themed body {
  --bg:var(--mt-bg);--panel:var(--mt-surface);--text:var(--mt-text);--muted:var(--mt-muted);
  --pink:var(--mt-accent);--violet:var(--mt-accent);--purple:var(--mt-accent);--blue:var(--mt-accent);--cyan:var(--mt-accent);--gold:var(--mt-heading);--line:var(--mt-border);
  --cab-bg:var(--mt-bg);--cab-panel:var(--mt-surface);--cab-line:var(--mt-border);--cab-text:var(--mt-text);--cab-muted:var(--mt-muted);--cab-gold:var(--mt-heading);--cab-violet:var(--mt-accent);
  --aw-bg:var(--mt-bg);--aw-panel:var(--mt-surface);--aw-line:var(--mt-border);--aw-text:var(--mt-text);--aw-muted:var(--mt-muted);--aw-accent:var(--mt-accent);
  --arts-panel:var(--mt-surface);--arts-line:var(--mt-border);--arts-muted:var(--mt-muted);--arts-gold:var(--mt-heading);--library-line:var(--mt-border);
  color:var(--mt-text);color-scheme:inherit;background-color:var(--mt-bg);
  background-image:linear-gradient(color-mix(in srgb,var(--mt-bg) 91%,transparent),color-mix(in srgb,var(--mt-bg) 98%,transparent)),var(--mt-backdrop);
  background-position:center top;background-size:cover;background-repeat:no-repeat;
}
html.media-themed body.admin-workspace {
  background-image:linear-gradient(color-mix(in srgb,var(--mt-bg) 86%,transparent),color-mix(in srgb,var(--mt-bg) 95%,transparent)),var(--mt-backdrop);
}
html.media-themed .pw-workspace {--pw-panel:var(--mt-surface);--pw-line:var(--mt-border);--pw-muted:var(--mt-muted);}
html.media-themed .tw-panel {--tw-border:var(--mt-border);--tw-muted:var(--mt-muted);--tw-accent:var(--mt-accent);}
html.media-themed body :focus-visible {outline-color:var(--mt-accent);}
html.media-themed body ::selection {color:var(--mt-accent-ink);background:var(--mt-accent);}
html.media-themed body :is(input,textarea,select){accent-color:var(--mt-accent);color-scheme:inherit;}
html.media-themed body :is(input,textarea)::placeholder{color:var(--mt-muted);opacity:1;}
html.media-themed .cabinet-page .bookmarks-search input::placeholder,
html.media-themed .cabinet-arts .cabinet-work-search input::placeholder,
html.media-themed .cabinet-page.character-editor-page .character-form-grid input::placeholder,
html.media-themed .cabinet-page.character-editor-page .character-form-grid textarea::placeholder,
html.media-themed .admin-workspace #adminWorkspaceSearch::placeholder,
html.media-themed body .media-inbox-compose :is(input,textarea)::placeholder,
html.media-themed body .community-chat--v2 .community-chat__form textarea::placeholder{color:var(--mt-muted);opacity:1;}
html.media-themed body :is(dialog,.community-chat--v2){color-scheme:inherit;}
html.media-themed body dialog::backdrop {background:#030710ad;}

/* Cabinet shell and profile. Theme backgrounds never alter uploaded avatars or work images. */
html.media-themed .cabinet-page .cabinet-content{background:none;}
html.media-themed .cabinet-sidebar {
  border-color:var(--mt-border);background-color:var(--mt-surface);
  background-image:linear-gradient(var(--mt-surface) 45%,color-mix(in srgb,var(--mt-bg) 70%,transparent)),var(--mt-backdrop);
  background-position:center,bottom right;background-size:cover,auto 70%;background-repeat:no-repeat;
}
html.media-themed .cabinet-page :is(.cabinet-topbar,.cabinet-mobile-nav,.cabinet-more){background:var(--mt-surface);border-color:var(--mt-border);color:var(--mt-text);}
html.media-themed .cabinet-page :is(.cabinet-breadcrumb b,.cabinet-more h2,.cabinet-page-heading h1,.cabinet-profile-info h2){color:var(--mt-heading);}
html.media-themed .cabinet-page :is(.cabinet-eyebrow,.cabinet-identity,.cabinet-xp-label,.cabinet-profile-info #userLevelTitle,.cabinet-profile-xp #userXpText){color:var(--mt-muted);}
html.media-themed .cabinet-page :is(.cabinet-text-link,.cabinet-card-heading>a,.cabinet-progress summary,.cabinet-rating>span:last-child){color:var(--mt-accent);}
html.media-themed .cabinet-page .cabinet-sidebar nav>:is([aria-current],a:hover,button:hover){color:var(--mt-text);background:var(--mt-selection);border-color:var(--mt-accent);}
html.media-themed .cabinet-page .cabinet-sidebar-foot>a{border-color:var(--mt-border);}
html.media-themed .cabinet-page .cabinet-mobile-nav :is([aria-current],.is-current){background:var(--mt-selection);color:var(--mt-accent);}
html.media-themed .cabinet-page .cabinet-mobile-nav>:is(a,button){color:var(--mt-muted);}
html.media-themed .cabinet-page .cabinet-mobile-nav>[aria-current]{color:var(--mt-accent);}
html.media-themed .cabinet-page .cabinet-profile-hero{background-image:var(--mt-hero-wash),var(--mt-hero);background-color:var(--mt-bg);background-position:center;background-size:cover;border-color:var(--mt-border);border-radius:var(--mt-radius);box-shadow:var(--mt-shadow);}
html.media-themed .cabinet-page .cabinet-avatar{background:var(--mt-surface-2);border-color:var(--mt-heading);box-shadow:0 0 0 7px color-mix(in srgb,var(--mt-surface) 50%,transparent);}
html.media-themed .cabinet-page .cabinet-identity #pilotLevelTag{background:var(--mt-surface);border-color:var(--mt-border);color:var(--mt-heading);}
html.media-themed .cabinet-page .xp-bar-container{background:var(--mt-input);border-color:var(--mt-border);}
html.media-themed .cabinet-page .xp-progress{background:linear-gradient(90deg,var(--mt-accent),var(--mt-heading));}

/* Shared surfaces, then their text. Layout remains owned by each existing feature. */
html.media-themed .cabinet-page :is(.cabinet-card,#pokerStatsPanel,.bookmark-card,.bookmarks-project-group,.avatar-upload-panel,.character-identity-panel,.character-options,.character-form-actions,.community-work-feed-card,.cabinet-work-inspector,.works-empty){background:var(--mt-surface);border-color:var(--mt-border);border-radius:var(--mt-radius);box-shadow:var(--mt-shadow);color:var(--mt-text);}
html.media-themed .cabinet-page :is(.cabinet-card h2,.cabinet-bookmark h3,.cabinet-progress #userTitleBadge,.cabinet-rating>strong,.cabinet-dossier dd,.cabinet-wallet-open,.cabinet-wallet-rates h3,.cabinet-rate-row strong,#pokerStatsTitle,.poker-stats-grid dd,.reward-item strong){color:var(--mt-heading);}
html.media-themed .cabinet-page :is(.cabinet-notice,.cabinet-work-placeholder,.cabinet-artifact-tile,.cabinet-artifact-icon,.cabinet-character-portrait,.cabinet-shortcuts>a,.reward-item,.poker-stats-grid>div,.wallet-balance-row){background:var(--mt-surface-2);border-color:var(--mt-border);color:var(--mt-text);}
html.media-themed .cabinet-page :is(.cabinet-artifact-icon,.cabinet-work-placeholder){color:var(--mt-accent);}
html.media-themed .cabinet-page .cabinet-character-portrait{background-image:var(--mt-hero-wash),var(--mt-hero);background-position:right center;background-size:cover;}
html.media-themed .cabinet-page :is(.cabinet-character-portrait>img,.reward-item .artifact-visual){background:var(--mt-input);}
html.media-themed .cabinet-page :is(.cabinet-character-empty,.cabinet-character-caption p,.cabinet-dossier dt,.cabinet-empty,.cabinet-rating>span:first-child,.reward-item small,.cabinet-wallet-open small,.cabinet-rate-row span,.poker-stats-grid dt,.poker-stats-note,#pokerStatsStatus,.poker-stats-kicker){color:var(--mt-muted);}
html.media-themed .cabinet-page :is(.cabinet-rating,.cabinet-section-tabs,.cabinet-dossier dl>div,.cabinet-wallet-rates,.cabinet-rate-row){border-color:var(--mt-border);}
html.media-themed .cabinet-page .cabinet-section-tabs>a{color:var(--mt-muted);}
html.media-themed .cabinet-page .cabinet-section-tabs>[aria-current]{color:var(--mt-accent);border-color:var(--mt-accent);}
html.media-themed .cabinet-page :is(.cabinet-secondary,.cabinet-more nav>a,.cabinet-more nav>button,.cabinet-more-heading>button,.cabinet-filter-group>button,.poker-stats-tabs button,.cabinet-topbar>.chat-launch){color:var(--mt-text);background:var(--mt-surface-2);border-color:var(--mt-border);}
html.media-themed .cabinet-page :is(.cabinet-primary,.cabinet-filter-group>[aria-pressed=true],.poker-stats-tabs [aria-pressed=true]){background:var(--mt-accent);color:var(--mt-accent-ink);border-color:var(--mt-accent);}
html.media-themed .cabinet-page :is(.cabinet-profile-hero,.cabinet-card,.cabinet-shortcuts>a,.reward-item,.cabinet-character-portrait,.bookmark-card){border-radius:var(--mt-radius);}
html.media-themed .cabinet-page :is(.cabinet-bookmark>img,.cabinet-artifact-tile){border-color:var(--mt-border);}
html.media-themed .cabinet-page [data-inbox-count]{background:var(--mt-accent);color:var(--mt-accent-ink);}

/* Personal library. */
html.media-themed .cabinet-page :is(.bookmarks-hero h1,.bookmark-card .bookmark-project,.bookmark-chapter,.bookmarks-project-group>summary,.bookmarks-empty h2){color:var(--mt-heading);}
html.media-themed .cabinet-page :is(.bookmarks-hero .eyebrow,.bookmarks-hero>p:last-child,.bookmarks-search svg,.bookmarks-count,.bookmark-preview-note,.bookmark-details,.bookmark-card time,.bookmarks-empty p,.bookmark-remove){color:var(--mt-muted);}
html.media-themed .cabinet-page :is(.bookmarks-view-switch,.bookmarks-search,.bookmarks-status,.bookmarks-empty,.bookmarks-browse,.bookmarks-retry,.bookmarks-group-count){background:var(--mt-surface-2);border-color:var(--mt-border);color:var(--mt-text);}
html.media-themed .cabinet-page .bookmark-preview{background:var(--mt-input);}
html.media-themed .cabinet-page .bookmarks-search input{background:transparent;color:var(--mt-text);}
html.media-themed .cabinet-page .bookmarks-view-switch button{color:var(--mt-muted);}
html.media-themed .cabinet-page :is(.bookmarks-view-switch button[aria-pressed=true],.bookmark-open,.bookmarks-empty .button){background:var(--mt-accent);border-color:var(--mt-accent);color:var(--mt-accent-ink);}
html.media-themed .cabinet-page .bookmarks-status a,
html.media-themed .cabinet-page .bookmarks-project-group>summary::after{color:var(--mt-accent);}
html.media-themed .cabinet-page .bookmark-remove:hover{background:var(--mt-error-bg);border-color:var(--mt-error);color:var(--mt-error);}

/* Character form, including the saved portrait, collapsed details and publishing controls. */
html.media-themed .cabinet-page.character-editor-page :is(.character-editor-heading h1,.character-section-kicker,.avatar-upload-panel .character-section-kicker,.character-identity-panel legend,.character-options summary strong,.character-form-grid label>span){color:var(--mt-heading);}
html.media-themed .cabinet-page.character-editor-page :is(.character-editor-heading .eyebrow,.character-editor-heading p:not(.eyebrow),.character-editor-back,.character-avatar-preview span,.avatar-upload-panel p,.character-section-copy,.character-form-grid label small,.character-options summary small,.character-publication-note){color:var(--mt-muted);}
html.media-themed .cabinet-page.character-editor-page :is(.character-avatar-preview,.character-avatar-button,.character-options-arrow,.publish-badge){background:var(--mt-surface-2);border-color:var(--mt-border);color:var(--mt-heading);}
html.media-themed .cabinet-page.character-editor-page :is(.character-avatar-preview svg,.character-required-fields label>span b,.character-options[open] .character-options-arrow){color:var(--mt-accent);border-color:var(--mt-accent);}
html.media-themed .cabinet-page.character-editor-page .character-options[open]{border-color:var(--mt-accent);}
html.media-themed .cabinet-page.character-editor-page :is(.character-form-grid input,.character-form-grid textarea){background:var(--mt-input);color:var(--mt-text);border-color:var(--mt-border);}
html.media-themed .cabinet-page.character-editor-page :is(.character-form-grid input:focus,.character-form-grid textarea:focus){border-color:var(--mt-accent);outline-color:var(--mt-accent);}
html.media-themed .cabinet-page.character-editor-page #characterSubmit{background:var(--mt-accent);color:var(--mt-accent-ink);border-color:var(--mt-accent);}
html.media-themed .cabinet-page.character-editor-page #characterSubmit:hover:not(:disabled){background:var(--mt-accent);filter:brightness(1.06);}
html.media-themed .cabinet-page.character-editor-page #characterFormStatus[data-type=success]{color:var(--mt-success);}
html.media-themed .cabinet-page.character-editor-page #characterFormStatus[data-type=error]{color:var(--mt-error);}

/* Personal works. Status semantics are assigned separately below, never to the main palette. */
html.media-themed .cabinet-arts :is(.works-hero h1,.community-work-feed-card-content h3,.cabinet-work-inspector h2,.cabinet-work-requests>summary,.community-work-dialog-title,#communityWorkDialogTitle,.community-work-comments h3){color:var(--mt-heading);}
html.media-themed .cabinet-arts :is(.cabinet-community-link,.community-work-read-more,.cabinet-publication-rules>summary,.cabinet-work-inspector-open){color:var(--mt-accent);}
html.media-themed .cabinet-arts :is(.cabinet-publication-rules,.works-filters button,.cabinet-work-decision,.cabinet-work-status-preview,.cabinet-work-status-label,.work-deletion-pending-badge,.work-deletion-status-card,.work-appeal-trigger,.work-appeal-submit,.work-type-picker span,.work-upload){background:var(--mt-surface-2);border-color:var(--mt-border);color:var(--mt-text);}
html.media-themed .cabinet-arts .community-work-feed-card-footer{border-color:var(--mt-border);}
html.media-themed .cabinet-arts .community-work-feed-card-footer :is(button,a,.community-work-view-count){color:var(--mt-muted);}
html.media-themed .cabinet-arts .community-work-feed-card-footer button.active{color:var(--mt-accent);}
html.media-themed .cabinet-arts :is(.works-create-button,.works-filters button.active,.work-submit,.work-type-picker input:checked+span){background:var(--mt-accent);border-color:var(--mt-accent);color:var(--mt-accent-ink);}
html.media-themed .cabinet-arts :is(.cabinet-work-search input,.work-form-field input,.work-form-field textarea,.community-work-comment-form textarea,.work-appeal-form textarea){background:var(--mt-input);color:var(--mt-text);border-color:var(--mt-border);}
html.media-themed .cabinet-arts :is(.cabinet-work-composer[open],.community-work-dialog,.community-work-dialog-card,.community-work-dialog-body){background:var(--mt-surface);border-color:var(--mt-border);color:var(--mt-text);}
html.media-themed .cabinet-arts .cabinet-work-composer .work-composer-close{background:var(--mt-surface-2);border-color:var(--mt-border);color:var(--mt-text);}
html.media-themed .cabinet-arts :is(.work-form-field>span,.work-type-picker legend,.community-work-dialog-text,.community-work-comment-body){color:var(--mt-text);}

/* Administration shell. The background is deliberately quieter than the personal hero. */
html.media-themed .admin-workspace .aw-sidebar{background-color:var(--mt-surface);background-image:linear-gradient(var(--mt-surface) 35%,color-mix(in srgb,var(--mt-surface) 72%,transparent)),var(--mt-backdrop);background-size:cover;background-position:center; border-color:var(--mt-border);}
html.media-themed .admin-workspace [data-admin-panel=overview]>.admin-section-head{padding:20px;border:1px solid var(--mt-border);border-radius:var(--mt-radius);background-image:var(--mt-hero-wash),var(--mt-hero);background-size:cover;background-position:right center;}
html.media-themed .admin-body .admin-loading h2{color:var(--mt-heading);}
html.media-themed .admin-workspace :is(.aw-topbar,.aw-mobile-nav,.aw-more,.aw-search-results,.admin-dialog){background:var(--mt-surface);border-color:var(--mt-border);color:var(--mt-text);}
html.media-themed .admin-workspace :is(.aw-brand,.aw-breadcrumb strong,.aw-attention-copy,.aw-event strong,.aw-details>summary,.admin-stats strong,.admin-identity strong){color:var(--mt-heading);}
html.media-themed .admin-workspace :is(.aw-group,.aw-access-description,.aw-breadcrumb>span:nth-child(2),.aw-search>.aw-icon,.aw-search-results .aw-shortcut>small,.eyebrow,.aw-attention-copy small,.aw-event p,.aw-event small,.aw-event time,.aw-statistics article>span,.aw-statistics-heading p){color:var(--mt-muted);}
html.media-themed[data-theme-mode="light"] .eyebrow{text-shadow:none;}
html.media-themed .admin-workspace :is(.aw-profile-link,.aw-site-link,.aw-text-link,.aw-attention-count){color:var(--mt-accent);}
html.media-themed .admin-workspace :is(.aw-group:hover,.aw-group.is-active,.aw-mobile-nav .aw-group.is-active){background:var(--mt-selection);color:var(--mt-text);border-color:var(--mt-border);}
html.media-themed .admin-workspace .aw-navigation .aw-group.is-active::before{background:var(--mt-accent);box-shadow:none;}
html.media-themed .admin-workspace :is(.aw-search,.admin-tabs.aw-subnav,.aw-site-link,.aw-shortcut,.aw-attention-card>.aw-icon:first-child,.aw-event,.aw-event-avatar,.aw-more-head button){background:var(--mt-surface-2);border-color:var(--mt-border);color:var(--mt-text);}
html.media-themed .admin-workspace :is(.admin-tab.active,.admin-tab:not(.active):hover,.aw-shortcut:hover){background:var(--mt-selection);color:var(--mt-text);border-color:var(--mt-accent);}
html.media-themed .admin-workspace #adminWorkspaceSearch{background:transparent;color:var(--mt-text);}
html.media-themed .admin-workspace :is(.admin-card,.admin-stats article,.admin-access-card,.aw-attention-card,.aw-details,.home-sections-settings,.home-section-card){background:var(--mt-surface);border-color:var(--mt-border);border-radius:var(--mt-radius);color:var(--mt-text);}
html.media-themed .admin-workspace :is(h3,.admin-card h3,.admin-dialog h2,.home-sections-heading h3,.home-section-card h4){color:var(--mt-heading);}
html.media-themed .admin-workspace .button{color:var(--mt-text);border-color:var(--mt-border);background:var(--mt-surface-2);}
html.media-themed .admin-workspace .button:hover{color:var(--mt-text);border-color:var(--mt-accent);background:var(--mt-selection);}
html.media-themed .admin-workspace :is(.button-pink,.button-pink:hover){background:var(--mt-accent);border-color:var(--mt-accent);color:var(--mt-accent-ink);}
html.media-themed .admin-workspace :is(input:not([type=checkbox]):not([type=radio]),textarea,select){color:var(--mt-text);background:var(--mt-input);border-color:var(--mt-border);}
html.media-themed .admin-workspace :is(input:focus,textarea:focus,select:focus){border-color:var(--mt-accent);outline-color:var(--mt-accent);}
html.media-themed .admin-workspace :is(label>span,.admin-form label>span,.admin-form-grid label>span,.admin-inline-check,.permission-check){color:var(--mt-text);}
html.media-themed .admin-workspace .admin-table-wrap{background:var(--mt-surface);border-color:var(--mt-border);}
html.media-themed .admin-workspace .admin-table th{color:var(--mt-heading);background:var(--mt-surface-2);border-color:var(--mt-border);}
html.media-themed .admin-workspace .admin-table td{color:var(--mt-text);border-color:var(--mt-border);}
html.media-themed .admin-workspace .admin-dialog-head button{color:var(--mt-text);background:var(--mt-surface-2);border-color:var(--mt-border);}

/* Project tree, arcs, chapter/page editor and publication inspector. */
html.media-themed .admin-body :is(.pw-catalog-tools label,.pw-catalog-count,.pw-heading .eyebrow,.pw-access-note,.pw-publication-panel label,.pw-dirty-status,.project-slide-admin-controls>label:first-child,.project-arc-admin-media-controls p,.project-pages-admin-grid figcaption span){color:var(--mt-muted);}
html.media-themed .admin-body :is(.pw-heading h3,.pw-publication-panel h4,.pw-chapter-inspector h4,.project-chapters-admin-heading h4,.pw-workspace .project-pages-admin-heading strong){color:var(--mt-heading);}
html.media-themed .admin-body :is(.pw-back,.pw-node-icon,.pw-tree-disclosure>summary,.pw-dirty-status.has-changes,.project-arc-admin-toggle-label>strong,.admin-inline-status){color:var(--mt-accent);}
html.media-themed .admin-body :is(.pw-tree-panel,.pw-content>.admin-card,.pw-publication-panel,.pw-chapter-inspector,.pw-arc-settings,.pw-workspace .project-chapters-admin-heading,.pw-chapter-pages,.project-gallery-admin-item,.project-slide-admin-item,.project-pages-admin-grid figure){background:var(--mt-surface);border-color:var(--mt-border);border-radius:var(--mt-radius);color:var(--mt-text);}
html.media-themed .admin-body :is(.project-arc-admin-preview,.project-slide-admin-media,.project-arc-admin-media){background:var(--mt-surface-2);color:var(--mt-accent);}
html.media-themed .admin-body :is(.pw-tree-node,.project-arc-admin-toggle,.project-chapter-admin-item>summary){color:var(--mt-text);}
html.media-themed .admin-body :is(.pw-tree-node.active,.pw-tree-node:hover,.project-chapter-admin-item[open]>summary,.project-arc-admin-toggle:hover){background:var(--mt-selection);border-color:var(--mt-accent);color:var(--mt-text);}
html.media-themed .admin-body .pw-tree-node.is-dirty::after,
html.media-themed .admin-body .pw-dirty-status.has-changes::before{background:var(--mt-accent);}
html.media-themed .admin-body .pw-workspace .project-pages-admin-grid img{background:var(--mt-input);}
html.media-themed .admin-body .project-slide-admin-badge{background:var(--mt-surface);color:var(--mt-accent);}

/* Team and permission matrix: the green allowed-state is independent of theme. */
html.media-themed .admin-body :is(.tw-group-nav,.tw-panel .access-group-card,.tw-member-panel,.tw-editor-host .tw-permissions-editor,.tw-departments-section .department-card,.department-card,.admin-team-row,.access-group-card){background:var(--mt-surface);border-color:var(--mt-border);color:var(--mt-text);}
html.media-themed .admin-body :is(.tw-group-button,.tw-rights-table thead th,.tw-rights-table tbody th,.tw-hidden-department,.tw-permissions-editor .admin-dialog-head p,.tw-matrix-help,.tw-permission-header,.tw-change-status,.access-group-stats span){color:var(--mt-muted);}
html.media-themed .admin-body :is(.tw-section-tab[aria-selected=true],.tw-group-symbol,.tw-add-member>summary,.tw-change-status.tw-dirty,.tw-count){color:var(--mt-accent);}
html.media-themed .admin-body :is(.tw-group-button:hover,.tw-group-button[aria-selected=true],.tw-permissions-editor .permission-check.tw-changed){background:var(--mt-selection);color:var(--mt-text);border-color:var(--mt-border);}
html.media-themed .admin-body :is(.tw-group-number,.tw-panel .access-group-stats span,.tw-rights-table thead,.tw-count,.tw-permission-header,.tw-permissions-editor .admin-form-actions,.admin-team-avatar){background:var(--mt-surface-2);color:var(--mt-text);border-color:var(--mt-border);}
html.media-themed .admin-body :is(.tw-card-title,.tw-panel .access-group-head h3){color:var(--mt-heading);}
html.media-themed .admin-body :is(.tw-panel .access-group-search input,.tw-panel .group-member-form select){background:var(--mt-input);color:var(--mt-text);border-color:var(--mt-border);}
html.media-themed .admin-body :is(.tw-permissions-editor .permissions-matrix,.tw-permissions-editor .admin-dialog-head button){border-color:var(--mt-border);color:var(--mt-text);}
html.media-themed .admin-body :is(.tw-permission-state,.tw-permissions-editor .permission-check input){background:var(--mt-surface-2);border-color:var(--mt-border);}
html.media-themed .admin-body .tw-permission-state::after,
html.media-themed .admin-body .tw-permissions-editor .permission-check input::after{background:var(--mt-muted);}
html.media-themed .admin-body :is(.tw-permission-state.is-allowed,.tw-permissions-editor .permission-check input:checked){background:#26744f;border-color:#65bd94;}
html.media-themed .admin-body .tw-permission-state.is-allowed::after,
html.media-themed .admin-body .tw-permissions-editor .permission-check input:checked::after{background:#f0fff5;}
html.media-themed .admin-body .tw-permissions-editor .tw-changed input:checked{background:var(--mt-accent);border-color:var(--mt-accent);}
html.media-themed .admin-body .tw-permissions-editor .tw-changed input:checked::after{background:var(--mt-accent-ink);}

/* Art review cards and the reader with its publishing controls. */
html.media-themed .admin-body #artsModerationPanel :is(.art-moderation-stats>div,.art-moderation-toolbar,.art-review-card,.art-permissions){background:var(--mt-surface);border-color:var(--mt-border);border-radius:var(--mt-radius);color:var(--mt-text);}
html.media-themed .admin-body #artsModerationPanel :is(.art-moderation-note,.art-moderation-stats span,.art-review-meta){color:var(--mt-muted);}
html.media-themed .admin-body #artsModerationPanel .art-moderation-stats strong{color:var(--mt-accent);}
html.media-themed .admin-body #artsModerationPanel .art-review-cover{background:var(--mt-input);}
html.media-themed .admin-body #artsModerationPanel .art-open-button{background:var(--mt-surface-2);border-color:var(--mt-border);color:var(--mt-accent);}
html.media-themed .admin-body #artsModerationPanel :is(.art-review-card:hover,.art-open-button:hover){border-color:var(--mt-accent);}
html.media-themed .admin-body :is(.art-review-dialog,.art-workspace-dialog,.staff-thread-dialog){background:var(--mt-surface);color:var(--mt-text);border-color:var(--mt-border);}
html.media-themed .admin-body :is(.art-dialog-head,.art-other-actions,.art-publication-panel,.art-review-readonly,.art-workspace-dialog .art-decision-form,.art-reader-reason,.art-reader-appeal,.art-review-actions){background:var(--mt-surface-2);border-color:var(--mt-border);color:var(--mt-text);}
html.media-themed .admin-body :is(.art-access-details>summary,.art-publication-panel>h3,.art-choice-copy strong,.art-workspace-dialog .art-decision-form h3,.art-workspace-dialog .art-dialog-head h2),
html.media-themed .admin-body .art-access-details>summary::after{color:var(--mt-heading);}
html.media-themed .admin-body :is(.art-access-content>p,.art-current-rule,.art-choice-copy small,.art-decision-hint,.art-workspace-dialog .art-decision-form>p,.art-workspace-dialog label,.art-workspace-dialog .art-dialog-head .art-review-meta,.art-workspace-dialog .art-dialog-head .eyebrow,.art-other-actions>summary,.art-review-meta,.art-review-excerpt,.art-permissions>p,.art-pagination span){color:var(--mt-muted);}
html.media-themed .admin-body :is(.art-workspace-dialog .art-reader-body,.art-reader-body,.art-review-card-content h3,.art-permission-row>strong){color:var(--mt-text);}
html.media-themed .admin-body :is(.art-workspace-dialog .art-dialog-head>button,.art-workspace-dialog .art-decision-choice,.art-workspace-dialog .art-other-action-buttons .art-decision-choice,.art-workspace-dialog #artDecisionCancel){background:var(--mt-surface);border-color:var(--mt-border);color:var(--mt-text);}
html.media-themed .admin-body .art-workspace-dialog .art-decision-choice[aria-pressed=true]{background:var(--mt-selection);border-color:var(--mt-accent);box-shadow:none;}
html.media-themed .admin-body .art-choice-marker{border-color:var(--mt-muted);}
html.media-themed .admin-body .art-decision-choice[aria-pressed=true] .art-choice-marker{border-color:var(--mt-accent);background:var(--mt-surface);}
html.media-themed .admin-body .art-decision-choice[aria-pressed=true] .art-choice-marker::after{background:var(--mt-accent);}
html.media-themed .admin-body .art-workspace-dialog :is(input,select,textarea){background:var(--mt-input);border-color:var(--mt-border);color:var(--mt-text);}
html.media-themed .admin-body .art-workspace-dialog #artDecisionSubmit{background:var(--mt-accent);border-color:var(--mt-accent);color:var(--mt-accent-ink);}
html.media-themed .admin-body :is(.art-workspace-dialog .art-reader-image,.art-reader-image){background:var(--mt-input);border-color:var(--mt-border);}
html.media-themed .admin-body .art-other-actions>summary::after{color:var(--mt-accent);}
html.media-themed .admin-body :is(.art-status,.art-condition,.art-review-type){color:var(--mt-accent);border-color:var(--mt-border);background:var(--mt-surface-2);}

/* Comments, content lists, requests and support inbox. */
html.media-themed .admin-body :is(.comment-moderation-card,.staff-thread-card,.staff-message,.staff-thread-tools,.inbox-staff-settings,.managed-link-admin-row,.games-admin-list-item,.games-admin-comment,.work-deletion-admin-card){background:var(--mt-surface);border-color:var(--mt-border);color:var(--mt-text);}
html.media-themed .admin-body :is(.comment-moderation-button,.comment-moderation-badge,.staff-message--team,.games-admin-list-item.active,.admin-count-badge,.work-deletion-admin-decision){background:var(--mt-surface-2);border-color:var(--mt-border);color:var(--mt-accent);}
html.media-themed .admin-body :is(.comment-moderation-body,.staff-message-body,.games-admin-comment p,.work-deletion-admin-decision p){color:var(--mt-text);}
html.media-themed .admin-body :is(.comment-moderation-meta,.staff-thread-excerpt,.staff-message-meta,.staff-reply-footer p,.inbox-staff-settings>p,.inbox-staff-row small,.games-admin-list-copy small,.games-admin-comment time,.games-admin-empty,.work-deletion-admin-summary span,.work-deletion-admin-card-head time,.work-deletion-admin-excerpt,.work-deletion-admin-message>span,.work-deletion-admin-decision small){color:var(--mt-muted);}
html.media-themed .admin-body :is(.staff-reply-form label,.inbox-staff-settings h4,.games-admin-list-copy strong,.games-admin-comment strong,.work-deletion-admin-card-head h3,.work-deletion-admin-decision strong,.site-update-admin-item h3,.admin-news-copy h3,.artifact-admin-copy strong){color:var(--mt-heading);}
html.media-themed .admin-body :is(.comment-moderation-link,.inbox-staff-settings summary,.admin-content-access){color:var(--mt-accent);}
html.media-themed .admin-body :is(.staff-unread,.admin-tab #artsAdminBadge:not(:empty),.admin-tab #staffInboxBadge:not(:empty)){background:var(--mt-accent);color:var(--mt-accent-ink);}
html.media-themed .admin-body :is(.games-admin-list-cover,.games-admin-cover,.games-admin-cover-preview,.artifact-admin-visual){background:var(--mt-surface-2);color:var(--mt-accent);}

/* Advertising, SEO and introduction settings are also part of the same workspace. */
html.media-themed .admin-body :is(.ad-admin-summary,.ad-admin-item,.ad-admin-welcome,.ad-admin-editor,.ad-admin-fieldset,.ad-admin-preview,.ad-admin-settings,.seo-admin-intro,.seo-list-row,.seo-editor-dialog,.seo-snippet,.seo-diagnostics,.seo-quick-access,.intro-admin-card){background:var(--mt-surface);border-color:var(--mt-border);color:var(--mt-text);}
html.media-themed .admin-body :is(.ad-admin-icon-button,.ad-admin-device-switch button,.ad-admin-placements label,.ad-admin-settings .ad-admin-toggle,.seo-help,.seo-auto-hint,.seo-list-marker,.seo-auto-chip,.intro-admin-toggle,.home-section-toggle){background:var(--mt-surface-2);border-color:var(--mt-border);color:var(--mt-text);}
html.media-themed .admin-body :is(.ad-admin-item.is-selected,.ad-admin-device-switch button[aria-pressed=true],.ad-admin-placements label:has(input:checked),.seo-list-row:hover){background:var(--mt-selection);border-color:var(--mt-accent);color:var(--mt-text);}
html.media-themed .admin-body :is(.ad-admin-summary strong,.ad-admin-library-head h3,.ad-admin-item-info h4,.ad-admin-welcome h3,.ad-admin-editor-head h3,.ad-admin-fieldset legend,.ad-admin-upload>strong,.ad-admin-preview-head h4,.ad-admin-preview-copy h4,.ad-admin-settings>summary strong,.seo-admin-intro strong,.seo-list-heading h3,.seo-item-title,.seo-preview-heading h3,.seo-diagnostics h3,.intro-admin-card h3){color:var(--mt-heading);}
html.media-themed .admin-body :is(.ad-admin-summary span,.ad-admin-summary>p,.ad-admin-filters label>span,.ad-admin-item-info p,.ad-admin-item-placements,.ad-admin-item-time,.ad-admin-welcome>p:not(.eyebrow),.ad-admin-welcome>small,.ad-admin-empty,.ad-admin-fieldset>p,.ad-admin-help,.ad-admin-upload>small,.ad-admin-file-status,.ad-admin-preview-meta,.ad-admin-preview-copy p,.ad-admin-preview-card>small,.ad-admin-placements small,.ad-admin-savebar>p,.ad-admin-settings>summary small,.ad-admin-toggle small,.ad-admin-item-statistics,.seo-admin-intro p,.seo-admin-filters label>span,.seo-list-heading p,.seo-list-meta,.seo-item-url,.seo-pagination>span,.seo-empty,.seo-editor-loading,.seo-editor-head p:last-child,.seo-editor-fields label>span small,.seo-field-help,.seo-preview-heading>span,.seo-preview-note,.seo-diagnostics ul,.seo-editor-note,.seo-editor-savebar p,.seo-quick-content p,.intro-admin-help,.intro-admin-summary,.intro-admin-toggle small,.home-section-toggle-copy small,.home-sections-summary,.home-sections-help){color:var(--mt-muted);}
html.media-themed .admin-body :is(.ad-admin-text-button,.ad-admin-welcome>span,.ad-admin-unsaved,.ad-admin-upload em,.ad-admin-preview-copy>span,.ad-admin-details>summary,.ad-admin-settings>summary>span:last-child,.seo-admin-intro-icon,.seo-sitemap-link,.seo-item-title:hover,.seo-editor-head .eyebrow,.seo-public-link,#seoUnsaved,.seo-quick-access summary){color:var(--mt-accent);}
html.media-themed .admin-body :is(.ad-admin-upload,.ad-admin-upload-art,.ad-admin-preview-art,.ad-admin-item-art){background:var(--mt-input);border-color:var(--mt-border);color:var(--mt-muted);}
html.media-themed .admin-body .ad-admin-preview-card{background:var(--mt-surface-2);border-color:var(--mt-border);}
html.media-themed .admin-body :is(.seo-preview-url,.seo-preview-title,.seo-preview-description){color:var(--mt-text);}
html.media-themed .admin-body :is(.intro-admin-switch,.home-section-switch){background:var(--mt-border);}
html.media-themed .admin-body :is(.intro-admin-switch,.home-section-switch)::after{background:var(--mt-surface);}
html.media-themed .admin-body :is(.intro-admin-toggle[aria-checked=true] .intro-admin-switch,.home-section-toggle[aria-checked=true] .home-section-switch){background:var(--mt-success);}
html.media-themed .admin-body .intro-admin-toggle[aria-checked=true] .intro-admin-switch::after,
html.media-themed .admin-body .home-section-toggle[aria-checked=true] .home-section-switch::after{background:var(--mt-success-bg);}
html.media-themed .admin-body .intro-admin-upload input[type=file]::file-selector-button{color:var(--mt-text);background:var(--mt-surface-2);border-color:var(--mt-border);}

/* Wallet dialog and personal inbox. */
html.media-themed .cabinet-page :is(.wallet-dialog,.wallet-dialog-shell){background:var(--mt-surface);color:var(--mt-text);border-color:var(--mt-border);}
html.media-themed .cabinet-page :is(.wallet-dialog-close,.wallet-action-buttons button){background:var(--mt-surface-2);color:var(--mt-text);border-color:var(--mt-border);}
html.media-themed .cabinet-page :is(.wallet-dialog-description,.wallet-dialog-links,.wallet-dialog-links a){color:var(--mt-muted);}
html.media-themed .cabinet-page :is(.wallet-dialog h2,.wallet-balance-row>strong){color:var(--mt-heading);}
html.media-themed .cabinet-page .wallet-balance-row b{color:var(--mt-text);}
html.media-themed .cabinet-page .wallet-balance-row small{color:var(--mt-muted);}
html.media-themed .cabinet-page .cabinet-shortcuts>a>span{color:var(--mt-accent);}
html.media-themed .cabinet-page .cabinet-shortcuts b{color:var(--mt-muted);}
html.media-themed body .media-inbox-dialog{background:var(--mt-surface);color:var(--mt-text);border-color:var(--mt-border);}
html.media-themed body :is(.media-inbox-trigger,.media-inbox-close,.media-inbox-actions button,.media-inbox-note-actions button,.media-inbox-note-actions a,.media-inbox-more,.media-inbox-back,.media-inbox-note,.media-inbox-compose,.media-inbox-thread,.media-inbox-message){background:var(--mt-surface-2);color:var(--mt-text);border-color:var(--mt-border);}
html.media-themed body :is(.media-inbox-tabs [aria-pressed=true],.media-inbox-note.is-unread,.media-inbox-message.is-own){background:var(--mt-selection);color:var(--mt-text);border-color:var(--mt-accent);}
html.media-themed body :is(.media-inbox-kicker,.media-inbox-trigger>span:first-child,.media-inbox-note-kind,.media-inbox-empty>span,.media-inbox-conversation-heading>span,.media-inbox-message header strong,.media-inbox-footer a){color:var(--mt-accent);}
html.media-themed body :is(.media-inbox-heading h2,.media-inbox-note h3,.media-inbox-empty h3,.media-inbox-feedback-heading h3,.media-inbox-conversation-heading h3){color:var(--mt-heading);}
html.media-themed body :is(.media-inbox-intro,.media-inbox-tabs button,.media-inbox-note time,.media-inbox-read-label,.media-inbox-empty,.media-inbox-feedback-heading p,.media-inbox-thread-preview,.media-inbox-thread time,.media-inbox-message header span,.media-inbox-message time,.media-inbox-footer){color:var(--mt-muted);}
html.media-themed body :is(.media-inbox-note-body,.media-inbox-compose label,.media-inbox-message p,.media-inbox-thread-top small){color:var(--mt-text);}
html.media-themed body :is(.media-inbox-count,.media-inbox-tabs span:not(:empty),.media-inbox-feedback-heading button,.media-inbox-compose button){background:var(--mt-accent);border-color:var(--mt-accent);color:var(--mt-accent-ink);}
html.media-themed body .media-inbox-compose .media-inbox-secondary{background:var(--mt-surface-2);color:var(--mt-text);border-color:var(--mt-border);}
html.media-themed body .media-inbox-compose :is(input,textarea){background:var(--mt-input);color:var(--mt-text);border-color:var(--mt-border);}

/* Chat styles may load after this sheet, so explicit root scope wins their palette. */
html.media-themed body .community-chat--v2{background:var(--mt-surface);color:var(--mt-text);border-color:var(--mt-border);}
html.media-themed body .community-chat--v2::before{opacity:.06;}
html.media-themed body .community-chat--v2 :is(.community-chat__head,.community-chat__threads,.community-chat__form,.community-chat__character-dialog,.community-chat__character-content){background:var(--mt-surface);color:var(--mt-text);border-color:var(--mt-border);}
html.media-themed body .community-chat--v2 :is(.community-chat__close,.community-chat__avatar,.community-chat__dm,.community-chat__thread,.community-chat__thread-shell,.community-chat__thread-close,.community-chat__character-close,.community-chat__character-facts>div){background:var(--mt-surface-2);color:var(--mt-text);border-color:var(--mt-border);}
html.media-themed body .community-chat--v2 :is(.community-chat__thread-shell[data-active=true],.community-chat__thread[data-active=true]){background:var(--mt-selection);border-color:var(--mt-accent);color:var(--mt-text);}
html.media-themed body .community-chat--v2 :is(.community-chat__head h3,.community-chat__meta strong,.community-chat__character-facts dd){color:var(--mt-heading);}
html.media-themed body .community-chat--v2 :is(.community-chat__message p,.community-chat__character-summary){color:var(--mt-text);}
html.media-themed body .community-chat--v2 :is(.community-chat__connection,.community-chat__meta time,.community-chat__empty,.community-chat__send>span,.community-chat__character-hero p,.community-chat__character-facts dt,.community-chat__character-loading,.community-chat__character-empty){color:var(--mt-muted);}
html.media-themed body .community-chat--v2 :is(.community-chat__name,.community-chat__locked>span,.community-chat__character-role){color:var(--mt-accent);}
html.media-themed body .community-chat--v2 .community-chat__form textarea{background:var(--mt-input);color:var(--mt-text);border-color:var(--mt-border);}
html.media-themed body .community-chat--v2 :is(.community-chat__thread-unread,.button-pink){background:var(--mt-accent);color:var(--mt-accent-ink);border-color:var(--mt-accent);}
html.media-themed body .community-chat--v2 .community-chat__character-portrait{background:var(--mt-input);border-color:var(--mt-border);}

/* A theme never turns destructive actions into an ordinary primary button. */
html.media-themed body :is(.admin-danger,.button.admin-danger,.games-admin-comment-delete,.ad-admin-text-danger,.bookmarks-status[data-type=error],.works-status.error,.art-list-status[data-error=true],.art-form-error,.media-inbox-status.is-error,.ad-admin-error,.seo-admin-error,.home-sections-error,.intro-admin-error){color:var(--mt-error);}
html.media-themed .admin-workspace .button.admin-danger,
html.media-themed .admin-body .art-workspace-dialog #artDecisionSubmit.admin-danger,
html.media-themed .admin-body .art-workspace-dialog .art-other-action-buttons [data-work-action=delete][aria-pressed=true]{background:var(--mt-error-bg);border-color:var(--mt-error);color:var(--mt-error);}
html.media-themed .admin-body .art-workspace-dialog .art-other-action-buttons [data-work-action=delete] .art-choice-copy strong{color:var(--mt-error);}
html.media-themed .cabinet-arts :is(.cabinet-work-decision--published,.cabinet-work-status-label--published),
html.media-themed .admin-body :is(.art-status--published_early,.ad-admin-badge[data-status=active],.seo-state-chip.is-ready,.seo-index-state[data-tone=ready],.work-deletion-admin-status--approved){background:var(--mt-success-bg);color:var(--mt-success);border-color:var(--mt-success);}
html.media-themed .cabinet-arts :is(.cabinet-work-decision--blocked,.cabinet-work-status-label--blocked),
html.media-themed .admin-body :is(.art-status--blocked,.art-status--scheduled,.ad-admin-badge[data-status=scheduled],.ad-admin-badge[data-status=paused],.work-deletion-admin-status){background:var(--mt-warning-bg);color:var(--mt-warning);border-color:var(--mt-warning);}
html.media-themed .admin-body :is(.art-status--appeal,.work-deletion-admin-status--rejected){background:var(--mt-error-bg);color:var(--mt-error);border-color:var(--mt-error);}
html.media-themed body :is(.art-reader-notice,.admin-status.published,.media-inbox-status,.community-chat__connection[data-state=online],.ad-admin-summary>p[data-enabled=true],.intro-admin-toggle[aria-checked=true] small,.home-section-toggle[aria-checked=true] .home-section-toggle-copy small){color:var(--mt-success);}
html.media-themed body :is(.comment-moderation-warning,.seo-row-issue,.admin-status.draft,.community-chat__connection[data-state=locked],.home-section-toggle[data-state=pending] .home-section-toggle-copy small){color:var(--mt-warning);}
html.media-themed body :is(.media-inbox-status.is-error,.community-chat__connection[data-state=reconnecting],.home-section-toggle[data-state=error] .home-section-toggle-copy small){color:var(--mt-error);}
html.media-themed .admin-workspace .admin-toast{background:var(--mt-success-bg);color:var(--mt-success);border-color:var(--mt-success);}
html.media-themed .admin-workspace .admin-toast[data-type=error]{background:var(--mt-error-bg);color:var(--mt-error);border-color:var(--mt-error);}
html.media-themed .cabinet-arts .work-moderation{--decision:var(--mt-accent);background:var(--mt-surface-2);border-color:var(--mt-border);color:var(--mt-text);}
html.media-themed .cabinet-arts .work-moderation--published{--decision:var(--mt-success);background:var(--mt-success-bg);}
html.media-themed .cabinet-arts .work-moderation--blocked{--decision:var(--mt-warning);background:var(--mt-warning-bg);}
/* The legacy moderation module marks its copy colour important; keep only this narrow override. */
html.media-themed .cabinet-arts :is(.work-moderation-copy,.work-moderation-reason){color:var(--mt-muted)!important;}
html.media-themed .cabinet-arts :is(.community-work-comment,.community-work-dialog-close,.community-work-like,.community-work-card-like,.community-work-card-comments,.community-work-dialog-actions>.community-work-view-count){background:var(--mt-surface-2);color:var(--mt-text);border-color:var(--mt-border);}
html.media-themed .cabinet-arts :is(.community-work-dialog-media,.community-work-comment:target,.community-work-comment:focus){background:var(--mt-input);border-color:var(--mt-accent);}
html.media-themed .cabinet-arts :is(.community-work-comment>p,.work-appeal-form label,.work-deletion-status-message){color:var(--mt-text);}
html.media-themed .cabinet-arts :is(.community-work-feed-card-head>time,.community-work-comment time,.community-work-dialog-meta time,.community-work-comments-empty){color:var(--mt-muted);}
html.media-themed .cabinet-arts .work-deletion-status-card h3{color:var(--mt-heading);}
html.media-themed .cabinet-arts :is(.work-deletion-status-label,.community-work-deletion-badge,.community-work-deletion-status){background:var(--mt-warning-bg);color:var(--mt-warning);border-color:var(--mt-warning);}
html.media-themed .cabinet-arts :is(.work-deletion-status-label--approved,.community-work-deletion-badge--approved,.community-work-deletion-status--approved,.work-deletion-pending-badge.is-clear){background:var(--mt-success-bg);color:var(--mt-success);border-color:var(--mt-success);}
html.media-themed .cabinet-arts :is(.work-deletion-status-label--rejected,.community-work-deletion-badge--rejected,.community-work-deletion-status--rejected){background:var(--mt-error-bg);color:var(--mt-error);border-color:var(--mt-error);}
html.media-themed .cabinet-arts .work-appeal-status{color:var(--mt-success);}
html.media-themed .cabinet-arts :is(.work-appeal-status.error,.work-composer-status.error,.community-work-comment-delete){color:var(--mt-error);}
html.media-themed body .community-chat--v2 .community-chat__threads>.community-chat__thread:first-child{background:var(--mt-surface-2);color:var(--mt-heading);border-color:var(--mt-border);}
html.media-themed body .community-chat--v2 .community-chat__connection[data-state=online]{color:var(--mt-success);}
html.media-themed body .community-chat--v2 .community-chat__connection[data-state=locked]{color:var(--mt-warning);}
html.media-themed body .community-chat--v2 .community-chat__connection[data-state=reconnecting]{color:var(--mt-error);}
html.media-themed[data-theme-mode=light] .community-chat__role--administration{color:#9d204c;}
html.media-themed[data-theme-mode=light] .community-chat__role--moderators{color:#67349a;}
html.media-themed[data-theme-mode=light] .community-chat__role--editors{color:#176649;}
html.media-themed[data-theme-mode=light] .community-chat__role--users{color:#245c80;}

/* Small material signatures keep 30 themes more than simple recolours. */
html.media-themed[data-media-theme="14"] .cabinet-card,
html.media-themed[data-media-theme="14"] .admin-card{border-style:double;border-width:3px;}
html.media-themed[data-media-theme="28"] :is(.cabinet-card,.admin-card,.bookmark-card,.community-work-feed-card){border-width:2px;}
html.media-themed[data-media-theme="29"] :is(.cabinet-card,.admin-card,.bookmark-card,.community-work-feed-card){box-shadow:var(--mt-shadow);border-style:solid;border-width:2px;}
html.media-themed[data-media-theme="26"] :is(.cabinet-profile-hero,.aw-attention-card){box-shadow:0 0 0 1px #e46fe538,var(--mt-shadow);}
html.media-themed[data-media-theme="21"] :is(.cabinet-card,.admin-card),
html.media-themed[data-media-theme="30"] :is(.cabinet-card,.admin-card){box-shadow:none;}
html.media-themed[data-media-theme="05"] :is(.cabinet-page h1,.cabinet-card h2,.cabinet-profile-info h2),
html.media-themed[data-media-theme="13"] :is(.cabinet-page h1,.cabinet-card h2,.cabinet-profile-info h2),
html.media-themed[data-media-theme="22"] :is(.cabinet-page h1,.cabinet-card h2,.cabinet-profile-info h2){font-family:Inter,Arial,sans-serif;}

/* Like the original worlds, these themes use scenic profile backgrounds and
   shared layout. Material details never add branding or extra profile rows. */
html.media-themed[data-media-theme="31"] :is(.cabinet-card,.admin-card){box-shadow:inset 0 1px #efae6b18,var(--mt-shadow);}
html.media-themed[data-media-theme="32"] :is(.cabinet-card,.admin-card){border-radius:4px 16px;box-shadow:inset 0 1px #cba7f322,var(--mt-shadow);}
html.media-themed[data-media-theme="33"] :is(.cabinet-card,.admin-card){border-style:double;border-width:3px;}
/* Cyberpunk materials keep the existing compact profile and content geometry. */
html.media-themed:is([data-media-theme="34"],[data-media-theme="35"],[data-media-theme="36"],[data-media-theme="37"],[data-media-theme="38"]) :is(.cabinet-page .cabinet-card,.admin-workspace .admin-card){background-image:var(--mt-panel-sheen);box-shadow:inset 0 1px color-mix(in srgb,var(--mt-accent) 16%,transparent),var(--mt-shadow);}
html.media-themed:is([data-media-theme="34"],[data-media-theme="35"],[data-media-theme="36"],[data-media-theme="37"],[data-media-theme="38"]) :is(.cabinet-page .cabinet-topbar,.admin-workspace .aw-topbar){background-image:var(--mt-panel-sheen);box-shadow:inset 0 -1px color-mix(in srgb,var(--mt-accent) 16%,transparent);}
@media(max-width:360px){
  /* Unread badges must fit beside the brand and chat on a 320px screen. */
  html.media-themed:is([data-media-theme="31"],[data-media-theme="32"],[data-media-theme="33"],[data-media-theme="34"],[data-media-theme="35"],[data-media-theme="36"],[data-media-theme="37"],[data-media-theme="38"]) .cabinet-page .cabinet-topbar{gap:6px;padding-inline:10px;}
  html.media-themed:is([data-media-theme="31"],[data-media-theme="32"],[data-media-theme="33"],[data-media-theme="34"],[data-media-theme="35"],[data-media-theme="36"],[data-media-theme="37"],[data-media-theme="38"]) .cabinet-page .cabinet-mobile-brand{gap:7px;font-size:19px;letter-spacing:.1em;}
  html.media-themed:is([data-media-theme="31"],[data-media-theme="32"],[data-media-theme="33"],[data-media-theme="34"],[data-media-theme="35"],[data-media-theme="36"],[data-media-theme="37"],[data-media-theme="38"]) .cabinet-page .cabinet-mobile-brand img{width:36px;height:28px;}
  html.media-themed:is([data-media-theme="31"],[data-media-theme="32"],[data-media-theme="33"],[data-media-theme="34"],[data-media-theme="35"],[data-media-theme="36"],[data-media-theme="37"],[data-media-theme="38"]) .cabinet-page .cabinet-topbar>[data-inbox-open]{position:relative;flex:0 0 44px;width:44px;min-height:44px;justify-content:center;padding:0;gap:0;}
  html.media-themed:is([data-media-theme="31"],[data-media-theme="32"],[data-media-theme="33"],[data-media-theme="34"],[data-media-theme="35"],[data-media-theme="36"],[data-media-theme="37"],[data-media-theme="38"]) .cabinet-page .cabinet-topbar>[data-inbox-open]>[data-inbox-count]{position:absolute;top:1px;right:0;}
}
/* Portrait scenery belongs to the page backdrop; wide profile cards keep the
   landscape scene. A long mobile page must not enlarge one image to its height. */
html.media-themed:is([data-media-theme="34"],[data-media-theme="35"],[data-media-theme="36"],[data-media-theme="37"],[data-media-theme="38"]) body{
  background-image:linear-gradient(color-mix(in srgb,var(--mt-bg) 78%,transparent),color-mix(in srgb,var(--mt-bg) 92%,transparent)),var(--mt-backdrop);
}
@media(max-width:900px){
  html.media-themed:is([data-media-theme="34"],[data-media-theme="35"],[data-media-theme="36"],[data-media-theme="37"],[data-media-theme="38"]){--mt-backdrop:var(--mt-hero-mobile);}
  html.media-themed:is([data-media-theme="34"],[data-media-theme="35"],[data-media-theme="36"],[data-media-theme="37"],[data-media-theme="38"]) body{
    background-image:linear-gradient(color-mix(in srgb,var(--mt-bg) 64%,transparent),var(--mt-bg) min(165vw,1600px)),var(--mt-backdrop);
    background-size:100% 100%,100% auto;background-position:center top;background-repeat:no-repeat;background-attachment:scroll;
  }
}
@media(min-width:761px){html.media-themed body{background-attachment:fixed;}}
@media(prefers-reduced-motion:reduce){html.media-themed body{scroll-behavior:auto;}}




