html body .privateThemeAccount{display:flex!important;align-items:center!important;gap:12px!important;min-width:0;}
html body button.privateThemeToggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 34px!important;width:34px!important;height:34px!important;padding:0!important;background:#2b2f2d!important;color:var(--private-accent,#c7ad78)!important;border:1px solid #ffffff20!important;border-radius:8px!important;cursor:pointer;box-shadow:none!important;}
html body button.privateThemeToggle:hover,html body button.privateThemeToggle[aria-expanded="true"]{border-color:var(--private-accent,#c7ad78)!important;}
html body .privateThemePanel{position:fixed;z-index:1000040;width:240px;max-width:calc(100vw - 16px);box-sizing:border-box;padding:6px;background:#222525;border:1px solid #ffffff20;border-radius:10px;box-shadow:0 12px 32px #0006;}
html body .privateThemePanel[hidden]{display:none!important;}
html body .privateThemePanel button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 12px;border:0;border-radius:6px;background:transparent;color:#eeeae1;font:400 14px/20px system-ui;cursor:pointer;text-align:left;}
html body .privateThemePanel button::before{content:'';width:12px;height:12px;border-radius:50%;background:var(--swatch);}
html body .privateThemePanel button:hover,html body .privateThemePanel button[aria-pressed="true"]{background:#ffffff0d;color:var(--swatch);}
html body .privateThemePanel button[aria-pressed="true"]::after{content:'✓';margin-left:auto;}
html body :is(.privateThemeToggle,.privateThemePanel button):focus-visible{outline:2px solid var(--private-accent,#c7ad78)!important;outline-offset:2px;}
@media(max-width:600px){html body .privateThemeAccount{gap:4px!important;}html body button.privateThemeToggle{width:30px!important;flex-basis:30px!important;}}

html body .privateThemePanel{overflow:auto;}
html body .privateThemePanel button::before{display:none;}
html body .privateThemeGem{width:23px;height:25px;flex:0 0 23px;color:var(--swatch);}
html body .privateThemeModes{display:flex;gap:4px;padding:3px;background:#171b1a;border-radius:7px;margin-bottom:10px;}
html body .privateThemeModes button{justify-content:center;gap:4px;padding:7px 4px;font-size:13px;white-space:nowrap;}
html body .privateThemeModes button[aria-pressed="true"]{background:#343b3a;color:var(--private-accent);box-shadow:0 1px 3px #0003;}
html body .privateThemeModes button::after{display:none;}
html body .privateThemeCaption{font:500 11px/16px system-ui;text-transform:uppercase;letter-spacing:.08em;color:#a0aaa7;padding:0 12px 4px;}
html[data-private-mode="light"]{color-scheme:light;}
html[data-private-mode="light"] body{background:#b8bec2!important;color:#283039!important;}
html[data-private-mode="light"] body .privateThemePanel,html[data-private-mode="light"] body button.privateThemeToggle{background:#d1d5d8!important;border-color:#d5dce2!important;color:var(--private-accent)!important;}
html[data-private-mode="light"] body .privateThemePanel button{color:#283039;}
html[data-private-mode="light"] body .privateThemePanel button:hover,html[data-private-mode="light"] body .privateThemePanel button[aria-pressed="true"]{background:#bcc4ca;color:var(--private-accent);}
html[data-private-mode="light"] body .privateThemeModes{background:#bcc4ca;}
html[data-private-mode="light"] body .privateThemeModes button[aria-pressed="true"]{background:#d1d5d8;}
html[data-private-mode="light"] body .privateThemeCaption{color:#66717b;}
html[data-private-mode="light"] body .privateThemePanel{box-shadow:0 12px 32px #23303b24;}

/* Soft neutral canvas; scoped to the private light mode only. */
html[data-private-mode="light"][data-private-mode="light"][data-private-mode="light"] body,
html[data-private-mode="light"][data-private-mode="light"][data-private-mode="light"] body .wapper,
html[data-private-mode="light"][data-private-mode="light"][data-private-mode="light"] body .wapper>.content{background:#b8bec2!important;}

/* Image-backed server cards keep light text in the light interface. */
html[data-private-mode="light"] body .wapper .monitoring-blocks_new .serverNew .block-servers-name,
html[data-private-mode="light"] body .wapper .monitoring-blocks_new .serverNew .block-servers-name a{color:#f0f1f2!important;text-shadow:0 1px 3px #000b!important;}
html[data-private-mode="light"] body .wapper .monitoring-blocks_new .serverNew .group,
html[data-private-mode="light"] body .wapper .monitoring-blocks_new .serverNew .group>div,
html[data-private-mode="light"] body .wapper .monitoring-blocks_new .serverNew .group a{color:#d4d9dd!important;text-shadow:0 1px 2px #000b!important;}
html[data-private-mode="light"] body .wapper .monitoring-blocks_new .serverNew .block-servers-group-info i{filter:brightness(1.65)!important;}

html[data-private-mode="light"] body .wapper .monitoring-blocks_new .serverNew{background-color:#343b3f!important;}
html[data-private-mode="light"] body .wapper .monitoring-blocks_new .serverNew .block-map-img img{opacity:.78!important;filter:brightness(1.12)!important;}
html[data-private-mode="light"] body .wapper .monitoring-blocks_new .serverNew::after,
html[data-private-mode="light"] body .wapper .monitoring-blocks_new .serverNew:hover::after{background:linear-gradient(90deg,rgba(20,26,30,.65),rgba(20,26,30,.38) 55%,rgba(20,26,30,.10))!important;}

/* Explicit heading contrast; do not recolor nested icons, counters or links. */
html[data-private-mode="light"][data-private-mode="light"] body .wapper :is(
.homeCommunityPanel.block>.block_head,
.homeCommunityPanel .communityPanelTitle,
#site_stats>.block>.block_head,
#site_stats .communityPanelTitle,
.homeActivityGrid .homeActivityPanel>header h2,
.home-lotteries-grid.lotteryHeroGrid .home-lottery-slot .block_head,
.home-lotteries-grid.lotteryHeroGrid .home-lottery-slot .block_head>span,
.home-lotteries-grid.lotteryHeroGrid .home-lottery-slot .daily-lottery-lite-title
){color:#262b30!important;-webkit-text-fill-color:currentColor!important;text-shadow:none!important;}

/* Remove legacy grayscale filter; use the live palette variable for the smile glyph. */
html body .wapper #chat #smile_btn,
html body .wapper #chat #smile_btn::after{filter:none!important;opacity:1!important;color:var(--private-accent,#c7ad78)!important;-webkit-text-fill-color:currentColor!important;}
html body .wapper #chat #smile_btn:is(:hover,:focus-visible,[aria-describedby]){background-color:color-mix(in srgb,var(--private-accent,#c7ad78) 20%,transparent)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--private-accent,#c7ad78) 20%,transparent)!important;}
html body .wapper #chat #smile_btn:is(:hover,:focus-visible,[aria-describedby])::after{color:var(--private-accent,#c7ad78)!important;}
