/* SN7 themes: blue (default), soft pink and high-contrast white. */
:root{
  --sn7-theme-accent:#4f9de8;
  --sn7-theme-accent-strong:#2478c9;
  --sn7-theme-accent-soft:rgba(79,157,232,.16);
  --sn7-theme-glow:rgba(79,157,232,.24);
}
html[data-sn7-theme="pink"]{
  --accent:#d879a9;
  --sn7-theme-accent:#e18ab7;
  --sn7-theme-accent-strong:#c85f94;
  --sn7-theme-accent-soft:rgba(225,138,183,.16);
  --sn7-theme-glow:rgba(225,138,183,.24);
}
html[data-sn7-theme="white"]{
  color-scheme:light;
  --bg:#edf1f6;
  --panel:#ffffff;
  --panel2:#f5f7fb;
  --border:#d6deea;
  --text:#171b24;
  --muted:#5d6878;
  --accent:#357fc5;
  --sn7-theme-accent:#397fc1;
  --sn7-theme-accent-strong:#2467a7;
  --sn7-theme-accent-soft:rgba(57,127,193,.12);
  --sn7-theme-glow:rgba(57,127,193,.14);
}
html[data-sn7-theme="pink"] body{--accent:#d879a9}
html[data-sn7-theme="pink"] .btn,
html[data-sn7-theme="pink"] button.btn,
html[data-sn7-theme="pink"] .sn7-platform-action,
html[data-sn7-theme="pink"] .sn7-source-action{
  border-color:rgba(225,138,183,.48)!important;
  background:linear-gradient(145deg,#61334f,#38243a)!important;
  color:#fff!important;
}
html[data-sn7-theme="pink"] .sidebar nav button.active,
html[data-sn7-theme="pink"] .sidebar nav button:hover{
  border-color:rgba(225,138,183,.5)!important;
  background:linear-gradient(135deg,rgba(225,138,183,.22),rgba(90,44,75,.32))!important;
  box-shadow:0 0 18px var(--sn7-theme-glow);
}
html[data-sn7-theme="pink"] .panel,
html[data-sn7-theme="pink"] .sn7-profile-panel,
html[data-sn7-theme="pink"] .sn7-command-panel,
html[data-sn7-theme="pink"] .sn7-automation-panel{
  border-color:rgba(225,138,183,.22);
}
html[data-sn7-theme="pink"] .sn7-profile-user,
html[data-sn7-theme="pink"] .sn7-profile-section,
html[data-sn7-theme="pink"] .sn7-platform-card,
html[data-sn7-theme="pink"] .sn7-ranking-platform-card{
  --accent:#d879a9;
}
html[data-sn7-theme="pink"] .sn7-platform-card,
html[data-sn7-theme="pink"] .sn7-ranking-platform-card{
  border-color:rgba(225,138,183,.28)!important;
}
html[data-sn7-theme="pink"] .sn7-platform-status.active{color:#8be0b0!important}
html[data-sn7-theme="pink"] .sn7-theme-picker,
html[data-sn7-theme="pink"] .sn7-theme-options{border-color:rgba(225,138,183,.32)}
html[data-sn7-theme="pink"] .sn7-loader-spinner,
html[data-sn7-theme="pink"] .sn7-inline-spinner{border-top-color:#f0a4c9}
html[data-sn7-theme="white"] body{
  background:#edf1f6!important;color:#171b24!important;
}
html[data-sn7-theme="white"] .layout,
html[data-sn7-theme="white"] main,
html[data-sn7-theme="white"] .tab{color:#171b24}
html[data-sn7-theme="white"] .sidebar{
  background:#e4eaf2!important;border-color:#cbd5e2!important;color:#17202c!important;
}
html[data-sn7-theme="white"] .sidebar .brand-core,
html[data-sn7-theme="white"] .sidebar nav button,
html[data-sn7-theme="white"] .sidebar .channel-card,
html[data-sn7-theme="white"] .sidebar-footer{color:#263244!important}
html[data-sn7-theme="white"] .sidebar nav button.active{
  background:#d5e7f8!important;border-color:#9bbddd!important;color:#164a78!important;
}
html[data-sn7-theme="white"] .topbar,
html[data-sn7-theme="white"] .panel,
html[data-sn7-theme="white"] .sn7-profile-panel,
html[data-sn7-theme="white"] .sn7-home-hero,
html[data-sn7-theme="white"] .sn7-automation-panel,
html[data-sn7-theme="white"] .sn7-minigames-panel{
  background:#fff!important;color:#171b24!important;border-color:#d4dce7!important;
  box-shadow:0 8px 28px rgba(27,43,64,.08)!important;
}
html[data-sn7-theme="white"] .channel-card,
html[data-sn7-theme="white"] .sn7-platform-card,
html[data-sn7-theme="white"] .sn7-ranking-platform-card,
html[data-sn7-theme="white"] .sn7-minigame-card,
html[data-sn7-theme="white"] .sn7-automation-row,
html[data-sn7-theme="white"] .sn7-command-item,
html[data-sn7-theme="white"] .sn7-command-card,
html[data-sn7-theme="white"] .sn7-empty,
html[data-sn7-theme="white"] .sn7-profile-message{
  background:#f7f9fc!important;color:#171b24!important;border-color:#d6deea!important;
}
html[data-sn7-theme="white"] :is(h1,h2,h3,h4,h5,strong,label,p,li,.sn7-nav-label,.sn7-section-kicker,.sn7-help,.sn7-empty,.sn7-command-name,.sn7-automation-badge,.sn7-profile-section,.sn7-profile-user,.sn7-ranking-platform-card,.sn7-minigame-card,.sn7-automation-row){
  color:#171b24!important;
}
html[data-sn7-theme="white"] :is(small,.muted,.sn7-muted,.sn7-help,.sn7-profile-section>p,.sn7-platform-card small,.sn7-automation-row small,.sn7-command-description){
  color:#596779!important;
}
html[data-sn7-theme="white"] input,
html[data-sn7-theme="white"] textarea,
html[data-sn7-theme="white"] select{
  color:#171b24!important;background:#fff!important;border-color:#c6d0de!important;
}
html[data-sn7-theme="white"] input::placeholder,
html[data-sn7-theme="white"] textarea::placeholder{color:#778397!important}
html[data-sn7-theme="white"] .btn,
html[data-sn7-theme="white"] button.btn,
html[data-sn7-theme="white"] .sn7-platform-action,
html[data-sn7-theme="white"] .sn7-source-action,
html[data-sn7-theme="white"] .sn7-ranking-refresh-all{
  color:#fff!important;background:linear-gradient(145deg,#347fbd,#225f98)!important;border-color:#2c70ad!important;
}
html[data-sn7-theme="white"] .sn7-platform-status,
html[data-sn7-theme="white"] .sn7-connection-status{
  background:#e9eef5!important;color:#34445a!important;border-color:#cbd5e2!important;
}
html[data-sn7-theme="white"] .sn7-platform-status.active,
html[data-sn7-theme="white"] .sn7-connection-status.connected{
  color:#176b43!important;background:#e5f5ec!important;border-color:#a8d8bd!important;
}
html[data-sn7-theme="white"] .sn7-config-modal,
html[data-sn7-theme="white"] .sn7-modal,
html[data-sn7-theme="white"] .sn7-confirm-modal{
  background:rgba(24,36,52,.42)!important;
}
html[data-sn7-theme="white"] .sn7-config-modal-card,
html[data-sn7-theme="white"] .sn7-box,
html[data-sn7-theme="white"] .sn7-confirm-card{
  background:#fff!important;color:#171b24!important;border-color:#d4dce7!important;
}
html[data-sn7-theme="white"] .sn7-config-modal-card :is(h1,h2,h3,h4,p,label,strong,small),
html[data-sn7-theme="white"] .sn7-box :is(h1,h2,h3,h4,p,label,strong,small),
html[data-sn7-theme="white"] .sn7-confirm-card :is(h1,h2,h3,h4,p,label,strong,small){color:#171b24!important}
html[data-sn7-theme="white"] .sn7-config-modal-card small,
html[data-sn7-theme="white"] .sn7-box small{color:#596779!important}
html[data-sn7-theme="white"] .sn7-music-player,
html[data-sn7-theme="white"] #sn7MusicPlayer{color:#171b24!important}
html[data-sn7-theme="white"] .sn7-legal-footer{color:#647184!important}
html[data-sn7-theme="white"] .sn7-boot-loader,
html[data-sn7-theme="white"] .sn7-operation-loader{background:rgba(234,239,246,.78)!important}
html[data-sn7-theme="white"] .sn7-loader-spinner{border-color:rgba(35,63,94,.18);border-top-color:#357fc5}
.sn7-theme-picker-wrap{margin:18px 0 2px}
.sn7-theme-picker{position:relative;border:1px solid rgba(91,130,177,.28);border-radius:14px;background:rgba(7,15,27,.36);overflow:hidden}
.sn7-theme-picker>summary{display:flex;align-items:center;gap:12px;list-style:none;padding:13px 15px;cursor:pointer;user-select:none}
.sn7-theme-picker>summary::-webkit-details-marker{display:none}
.sn7-theme-picker>summary>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:3px}
.sn7-theme-picker>summary strong{font-size:13px;color:var(--text)}
.sn7-theme-picker>summary small{font-size:11px;color:var(--muted)}
.sn7-theme-picker-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--sn7-theme-accent-soft);color:var(--sn7-theme-accent);font-size:20px}
.sn7-theme-picker[open] .sn7-drawer-chevron{transform:rotate(180deg)}
.sn7-theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:0 12px 12px}
.sn7-theme-option{display:flex;align-items:center;gap:9px;min-width:0;padding:10px;border:1px solid var(--border);border-radius:11px;background:var(--panel2);color:var(--text);text-align:left;cursor:pointer}
.sn7-theme-option[aria-pressed="true"]{border-color:var(--sn7-theme-accent);box-shadow:0 0 0 1px var(--sn7-theme-accent-soft)}
.sn7-theme-option>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
.sn7-theme-option strong{font-size:12px}.sn7-theme-option small{font-size:10px;color:var(--muted)}
.sn7-theme-swatch{width:26px;height:26px;flex:0 0 26px;border-radius:8px;border:1px solid rgba(127,145,168,.42)}
.sn7-theme-swatch.blue{background:linear-gradient(135deg,#0c1725 0 50%,#438fd1 50%)}
.sn7-theme-swatch.pink{background:linear-gradient(135deg,#211725 0 50%,#dc83b0 50%)}
.sn7-theme-swatch.white{background:linear-gradient(135deg,#fff 0 50%,#202a38 50%)}
.sn7-theme-check{display:none;color:var(--sn7-theme-accent);font-weight:900}
.sn7-theme-option[aria-pressed="true"] .sn7-theme-check{display:block}
.sn7-card-busy{position:relative!important;isolation:isolate}
.sn7-card-busy:after{content:"";position:absolute;inset:0;z-index:2140;border-radius:inherit;background:rgba(7,13,22,.56);backdrop-filter:blur(2px);pointer-events:auto}
.sn7-card-busy:before{content:"";position:absolute;left:50%;top:50%;z-index:2141;width:28px;height:28px;margin:-14px 0 0 -14px;border:3px solid rgba(255,255,255,.2);border-top-color:var(--sn7-theme-accent);border-radius:50%;animation:sn7ThemeSpin .72s linear infinite;pointer-events:none}
.sn7-card-busy[data-sn7-busy-label]:before{box-shadow:0 0 0 0 transparent}
.sn7-card-busy[data-sn7-busy-label]:after{content:attr(data-sn7-busy-label);display:flex;align-items:center;justify-content:center;padding-top:46px;color:#fff;font-size:12px;font-weight:800;text-shadow:0 1px 3px rgba(0,0,0,.7)}
@keyframes sn7ThemeSpin{to{transform:rotate(360deg)}}
@media(max-width:700px){
 .sn7-theme-options{grid-template-columns:1fr}
 .sn7-theme-option{min-height:54px}
}
@media(prefers-reduced-motion:reduce){.sn7-card-busy:before{animation:none}}


/* -------------------------------------------------------------------------
   Full-surface palettes. Keep all nested cards in the selected theme too.
   ------------------------------------------------------------------------- */
html[data-sn7-theme="pink"]{
  --bg:#120e17!important;
  --panel:#211725!important;
  --panel2:#2a1d30!important;
  --border:#51354f!important;
  --text:#f8edf5!important;
  --muted:#c2aebe!important;
  --accent:#df86b5!important;
  --sn7-theme-accent:#e18ab7!important;
  --sn7-theme-accent-strong:#c85f94!important;
  --sn7-theme-accent-soft:rgba(225,138,183,.18)!important;
  --sn7-theme-glow:rgba(225,138,183,.25)!important;
}
html[data-sn7-theme="pink"] body{
  background:
    radial-gradient(ellipse at 12% 0%,rgba(151,74,123,.16),transparent 42%),
    linear-gradient(180deg,#160f1b 0%,#100d16 100%)!important;
  color:#f8edf5!important;
}
html[data-sn7-theme="pink"] :is(main,.layout,.tab){color:#f8edf5!important}
html[data-sn7-theme="pink"] body :is(.panel,.stat,.channel-card,.sn7-profile-panel,.sn7-home-hero,.sn7-automation-panel,.sn7-minigames-panel,.sn7-platform-card,.sn7-ranking-platform-card,.sn7-minigame-card,.sn7-automation-row,.sn7-command-row,.sn7-command-category,.sn7-source-card,.sn7-music-player,.sn7-music-queue,.sn7-music-queue-item,.sn7-shop-item,.sn7-points-card,.sn7-quick-card,.sn7-box,.sn7-config-modal-card,.sn7-connect-modal-card,.sn7-profile-message,.sn7-theme-picker,.sn7-theme-option,[class*="overlay-card"],[class*="store-card"],[class*="command-card"]){
  color:#f8edf5!important;
  background:linear-gradient(145deg,#291c30 0%,#1c1523 100%)!important;
  border-color:#593a58!important;
  box-shadow:inset 0 1px 0 rgba(255,220,242,.045),0 8px 22px rgba(0,0,0,.13)!important;
}
html[data-sn7-theme="pink"] body :is(.sn7-command-category,.sn7-profile-section,.sn7-platform-grid,.sn7-ranking-platform-grid){
  background:transparent!important;
  border-color:rgba(225,138,183,.28)!important;
  box-shadow:none!important;
}
html[data-sn7-theme="pink"] body :is(.sn7-command-row,.sn7-minigame-card,.sn7-ranking-platform-card,.sn7-platform-card,.sn7-source-card,.sn7-shop-item,.sn7-points-card,.sn7-quick-card){
  border:1px solid rgba(225,138,183,.34)!important;
}
html[data-sn7-theme="pink"] body :is(h1,h2,h3,h4,h5,strong,label,p,li,small,span,.sn7-command-preview,.sn7-command-response,.sn7-profile-section,.sn7-platform-card,.sn7-ranking-platform-card,.sn7-minigame-card,.sn7-automation-row){
  color:inherit;
}
html[data-sn7-theme="pink"] body :is(p,small,.muted,.sn7-muted,.sn7-command-preview,.sn7-command-response,.sn7-platform-card small,.sn7-automation-row small,.sn7-profile-section>p){
  color:#c9b5c7!important;
}
html[data-sn7-theme="pink"] body :is(.sn7-command-row:hover,.sn7-minigame-card:hover,.sn7-ranking-platform-card:hover,.sn7-platform-card:hover,.sn7-shop-item:hover){
  background:linear-gradient(145deg,#38243d,#25192d)!important;
  border-color:#d17aa9!important;
}
html[data-sn7-theme="pink"] body :is(input,textarea,select){
  color:#fff2fa!important;background:#1b1421!important;border-color:#694660!important;
}
html[data-sn7-theme="pink"] body :is(.sn7-command-row code,.sn7-command-row .command-response,.sn7-command-preview){
  color:#d7c2d5!important;
}
html[data-sn7-theme="pink"] .sidebar{
  background:#1a1220!important;border-color:#493047!important;
}
html[data-sn7-theme="pink"] .sidebar nav button{color:#d8c2d4!important}
html[data-sn7-theme="pink"] .sidebar nav button.active,
html[data-sn7-theme="pink"] .sidebar nav button:hover{
  color:#fff!important;background:linear-gradient(135deg,#59334f,#38243e)!important;
}
html[data-sn7-theme="pink"] .topbar{color:#f8edf5!important}
html[data-sn7-theme="pink"] .sn7-theme-option[aria-pressed="true"]{background:#493047!important}

html[data-sn7-theme="white"]{
  --bg:#e7ebf1!important;
  --panel:#f0f2f6!important;
  --panel2:#e5e9f0!important;
  --border:#c6cfdb!important;
  --text:#202936!important;
  --muted:#596779!important;
  --accent:#397fc1!important;
  --sn7-theme-accent:#397fc1!important;
  --sn7-theme-accent-strong:#2467a7!important;
  --sn7-theme-accent-soft:rgba(57,127,193,.13)!important;
  --sn7-theme-glow:rgba(57,127,193,.16)!important;
}
html[data-sn7-theme="white"] body{
  background:
    radial-gradient(ellipse at 50% -10%,#f8f9fb 0%,transparent 58%),
    linear-gradient(180deg,#e9edf3 0%,#dfe4ec 100%)!important;
  color:#202936!important;
}
html[data-sn7-theme="white"] body :is(main,.layout,.tab){color:#202936!important}
html[data-sn7-theme="white"] body :is(.panel,.stat,.channel-card,.sn7-profile-panel,.sn7-home-hero,.sn7-automation-panel,.sn7-minigames-panel,.sn7-platform-card,.sn7-ranking-platform-card,.sn7-minigame-card,.sn7-automation-row,.sn7-command-row,.sn7-command-category,.sn7-source-card,.sn7-music-player,.sn7-music-queue,.sn7-music-queue-item,.sn7-shop-item,.sn7-points-card,.sn7-quick-card,.sn7-box,.sn7-config-modal-card,.sn7-connect-modal-card,.sn7-profile-message,.sn7-theme-picker,.sn7-theme-option,[class*="overlay-card"],[class*="store-card"],[class*="command-card"]){
  color:#202936!important;
  background:linear-gradient(145deg,#f4f6f9 0%,#e6eaf0 100%)!important;
  border:1px solid #c4cedb!important;
  box-shadow:0 5px 18px rgba(34,49,69,.09),inset 0 1px 0 rgba(255,255,255,.92)!important;
}
html[data-sn7-theme="white"] body :is(.sn7-command-category,.sn7-profile-section,.sn7-platform-grid,.sn7-ranking-platform-grid){
  background:transparent!important;
  border-color:#cbd4df!important;
  box-shadow:none!important;
}
html[data-sn7-theme="white"] body :is(.sn7-command-row,.sn7-minigame-card,.sn7-ranking-platform-card,.sn7-platform-card,.sn7-source-card,.sn7-shop-item,.sn7-points-card,.sn7-quick-card){
  border:1px solid #bcc8d6!important;
}
html[data-sn7-theme="white"] body :is(h1,h2,h3,h4,h5,strong,label,p,li,small,span,.sn7-command-preview,.sn7-command-response,.sn7-profile-section,.sn7-platform-card,.sn7-ranking-platform-card,.sn7-minigame-card,.sn7-automation-row){
  color:#202936!important;
}
html[data-sn7-theme="white"] body :is(p,small,.muted,.sn7-muted,.sn7-command-preview,.sn7-command-response,.sn7-platform-card small,.sn7-automation-row small,.sn7-profile-section>p,.sn7-section-kicker){
  color:#5b6879!important;
}
html[data-sn7-theme="white"] body :is(.sn7-command-row:hover,.sn7-minigame-card:hover,.sn7-ranking-platform-card:hover,.sn7-platform-card:hover,.sn7-shop-item:hover){
  background:linear-gradient(145deg,#fff,#e9edf3)!important;
  border-color:#8faecb!important;
}
html[data-sn7-theme="white"] body :is(input,textarea,select){
  color:#202936!important;background:#f9fafc!important;border-color:#bdc9d7!important;
}
html[data-sn7-theme="white"] body :is(.sn7-command-row code,.sn7-command-row .command-response,.sn7-command-preview){
  color:#526174!important;
}
html[data-sn7-theme="white"] .sidebar{
  background:#dce2ea!important;border-color:#c2ccd8!important;color:#202936!important;
}
html[data-sn7-theme="white"] .sidebar nav button{color:#435064!important}
html[data-sn7-theme="white"] .sidebar nav button.active,
html[data-sn7-theme="white"] .sidebar nav button:hover{
  color:#164a78!important;background:linear-gradient(135deg,#d3e4f5,#c3d7eb)!important;border:1px solid #a8bfd8!important;
}
html[data-sn7-theme="white"] .topbar{color:#202936!important}
html[data-sn7-theme="white"] .sn7-theme-option[aria-pressed="true"]{background:#d9e8f6!important}
html[data-sn7-theme="white"] .sn7-platform-status,
html[data-sn7-theme="white"] .sn7-connection-status{
  background:#e1e7ef!important;color:#435064!important;border-color:#bdc9d7!important;
}
html[data-sn7-theme="white"] .sn7-platform-status.active,
html[data-sn7-theme="white"] .sn7-connection-status.connected{
  color:#176b43!important;background:#e0f1e7!important;border-color:#a8d5b9!important;
}
html[data-sn7-theme="white"] .sn7-config-modal,
html[data-sn7-theme="white"] .sn7-modal,
html[data-sn7-theme="white"] .sn7-confirm-modal{
  background:rgba(31,43,58,.38)!important;
}
html[data-sn7-theme="white"] .sn7-card-busy:after{
  background:rgba(45,57,72,.44)!important;color:#fff!important;
}
@media(prefers-reduced-motion:reduce){
 html[data-sn7-theme="pink"] *,html[data-sn7-theme="white"] *{scroll-behavior:auto!important}
}


/* Targeted fixes for components rendered dynamically by the dashboard. */
html[data-sn7-theme="pink"] body :is(.sn7-command-drawer,.sn7-command-subdrawer,.sn7-command-drawer-body,.sn7-command-subdrawer-body,.sn7-command-panel){
  background:transparent!important;color:#f8edf5!important;border-color:#593a58!important;
}
html[data-sn7-theme="pink"] body .sn7-command-drawer-toggle{
  background:transparent!important;color:#f8edf5!important;border-color:transparent!important;
}
html[data-sn7-theme="pink"] body .sn7-command-drawer-toggle.open{
  background:linear-gradient(135deg,#39243e,#281b30)!important;color:#fff!important;border-color:#65415f!important;
}
html[data-sn7-theme="pink"] body .sn7-command-subdrawer-toggle{
  background:linear-gradient(135deg,#35243b,#241a2b)!important;color:#f8edf5!important;
}
html[data-sn7-theme="pink"] body .sn7-command-subdrawer-toggle[aria-expanded="true"]{
  background:linear-gradient(135deg,#59334f,#39243f)!important;color:#fff!important;
}
html[data-sn7-theme="pink"] body .sn7-command-drawer-icon,
html[data-sn7-theme="pink"] body .sn7-command-drawer-count,
html[data-sn7-theme="pink"] body .sn7-command-subdrawer-toggle b{
  background:#39283f!important;color:#f0c5dc!important;border:1px solid #61415e!important;
}
html[data-sn7-theme="pink"] body .sn7-command-row{
  background:linear-gradient(145deg,#2b1e32,#201725)!important;color:#f8edf5!important;border:1px solid #63415f!important;
}
html[data-sn7-theme="pink"] body .sn7-command-row code{color:#fff0f8!important}
html[data-sn7-theme="pink"] body .sn7-command-row small,
html[data-sn7-theme="pink"] body .sn7-command-preview,
html[data-sn7-theme="pink"] body .sn7-aliases{color:#cbb7ca!important}
html[data-sn7-theme="pink"] body :is(.sn7-store-builder,.sn7-store-admin-panel,.sn7-store-history,.sn7-store-safe,.sn7-store-item-form,.sn7-store-empty,.sn7-store-status,.sn7-store-field,.sn7-store-upload-mini){
  background:linear-gradient(145deg,#291d31,#1d1625)!important;color:#f8edf5!important;border-color:#593a58!important;
}
html[data-sn7-theme="pink"] body .sn7-store-builder{box-shadow:0 12px 30px rgba(0,0,0,.18)!important}
html[data-sn7-theme="pink"] body .sn7-store-category-card{
  background:linear-gradient(145deg,#302039,#24192d)!important;color:#f8edf5!important;border-color:#65415f!important;
}
html[data-sn7-theme="pink"] body .sn7-store-category-card[aria-expanded="true"]{
  background:linear-gradient(145deg,#56324e,#39243e)!important;border-color:#d17aa9!important;
}
html[data-sn7-theme="pink"] body :is(.sn7-store-category-card-icon,.sn7-store-builder-icon){
  background:linear-gradient(145deg,#49304e,#302039)!important;color:#f0b6d4!important;border-color:#70496b!important;
}
html[data-sn7-theme="pink"] body .sn7-store-category-card-icon{color:#f0b6d4!important}
html[data-sn7-theme="pink"] body .sn7-store-category-card-arrow{color:#e6a1c4!important}
html[data-sn7-theme="pink"] body .sn7-store-safe strong{color:#f5d8e8!important}
html[data-sn7-theme="pink"] body .sn7-store-builder-head p,
html[data-sn7-theme="pink"] body .sn7-store-category-card-body small,
html[data-sn7-theme="pink"] body .sn7-store-admin-panel-head p{color:#c9b5c7!important}

html[data-sn7-theme="white"] body :is(.sn7-command-drawer,.sn7-command-subdrawer,.sn7-command-drawer-body,.sn7-command-subdrawer-body,.sn7-command-panel){
  background:transparent!important;color:#202936!important;border-color:#c4cedb!important;
}
html[data-sn7-theme="white"] body .sn7-command-drawer-toggle{
  background:transparent!important;color:#202936!important;border-color:transparent!important;
}
html[data-sn7-theme="white"] body .sn7-command-drawer-toggle.open{
  background:linear-gradient(135deg,#e2e7ee,#d6dde7)!important;color:#202936!important;border-color:#bcc8d6!important;
}
html[data-sn7-theme="white"] body .sn7-command-subdrawer{
  background:#e9edf3!important;border:1px solid #c2ccd8!important;
}
html[data-sn7-theme="white"] body .sn7-command-subdrawer-toggle{
  background:linear-gradient(135deg,#e5eaf1,#dce2eb)!important;color:#202936!important;
}
html[data-sn7-theme="white"] body .sn7-command-subdrawer-toggle[aria-expanded="true"]{
  background:linear-gradient(135deg,#d5e3f1,#cbd9e8)!important;color:#1c2a3b!important;
}
html[data-sn7-theme="white"] body :is(.sn7-command-drawer-icon,.sn7-command-drawer-count,.sn7-command-subdrawer-toggle b){
  background:#d5dde8!important;color:#263548!important;border:1px solid #b9c5d4!important;
}
html[data-sn7-theme="white"] body .sn7-command-row{
  background:linear-gradient(145deg,#f5f7fa,#e8edf3)!important;color:#202936!important;border:1px solid #c0cbd8!important;
}
html[data-sn7-theme="white"] body .sn7-command-row code{color:#202936!important}
html[data-sn7-theme="white"] body .sn7-command-row small,
html[data-sn7-theme="white"] body .sn7-command-preview,
html[data-sn7-theme="white"] body .sn7-aliases{color:#596779!important}
html[data-sn7-theme="white"] body :is(.sn7-store-builder,.sn7-store-admin-panel,.sn7-store-history,.sn7-store-safe,.sn7-store-item-form,.sn7-store-empty,.sn7-store-status,.sn7-store-field,.sn7-store-upload-mini){
  background:linear-gradient(145deg,#f1f3f7,#e4e9f0)!important;color:#202936!important;border-color:#c4cedb!important;
}
html[data-sn7-theme="white"] body .sn7-store-builder{box-shadow:0 10px 28px rgba(34,49,69,.09)!important}
html[data-sn7-theme="white"] body .sn7-store-category-card{
  background:linear-gradient(145deg,#f7f8fa,#e8edf3)!important;color:#202936!important;border-color:#bdc8d6!important;
}
html[data-sn7-theme="white"] body .sn7-store-category-card[aria-expanded="true"]{
  background:linear-gradient(145deg,#e2ebf5,#d4e0ed)!important;border-color:#91b1d0!important;
}
html[data-sn7-theme="white"] body :is(.sn7-store-category-card-icon,.sn7-store-builder-icon){
  background:linear-gradient(145deg,#e0e7ef,#d0dbe7)!important;color:#28577f!important;border-color:#b8c7d7!important;
}
html[data-sn7-theme="white"] body .sn7-store-category-card-arrow{color:#526174!important}
html[data-sn7-theme="white"] body .sn7-store-safe strong{color:#263548!important}
html[data-sn7-theme="white"] body .sn7-store-builder-head p,
html[data-sn7-theme="white"] body .sn7-store-category-card-body small,
html[data-sn7-theme="white"] body .sn7-store-admin-panel-head p{color:#596779!important}
html[data-sn7-theme="white"] body .sn7-store-empty{color:#596779!important;border-color:#bdc8d6!important}
html[data-sn7-theme="white"] body .sn7-store-field :is(input,textarea,select){
  color:#202936!important;background:#f9fafc!important;border-color:#bdc8d6!important;
}


/* SN7 theme audit v2 — explicit contrast for every dashboard surface. */
html[data-sn7-theme="pink"]{
  --sn7-theme-accent:#f08abd!important;
  --sn7-theme-accent-strong:#d9579a!important;
  --sn7-theme-accent-soft:rgba(240,138,189,.18)!important;
  --accent:#e879ae!important;
}
html[data-sn7-theme="white"]{
  --sn7-theme-accent:#397fc1!important;
  --sn7-theme-accent-strong:#2467a7!important;
  --accent:#286fae!important;
}

/* HOME, connections and profile platform cards */
html[data-sn7-theme="pink"] body :is(.sn7-home-hero,.sn7-home-platform-card,.sn7-home-live-pill,.sn7-welcome,.sn7-quick-card,.sn7-profile-section,.sn7-platform-drawer,.sn7-platform-mobile-drawer){
  color:#fff0f8!important;background:linear-gradient(145deg,#2b1c30,#1d1524)!important;border-color:#65415f!important;
}
html[data-sn7-theme="pink"] body :is(.sn7-home-hero h1,.sn7-home-hero h2,.sn7-home-kicker,.sn7-home-eyebrow,.sn7-section-kicker,.sn7-overlay-kicker,.sn7-minigames-kicker,.sn7-music-label,.sn7-music-kicker,.sn7-ranking-platform-open,.sn7-points-card-arrow){
  color:#f18abb!important;
}
html[data-sn7-theme="pink"] body :is(.sn7-home-platform-info,.sn7-home-platform-info strong,.sn7-home-platform-state,.sn7-platform-card strong,.sn7-platform-card .left,.sn7-ranking-platform-name,.sn7-minigame-card strong){
  color:#fff0f8!important;
}
html[data-sn7-theme="pink"] body :is(.sn7-home-platform-info small,.sn7-home-hero p,.sn7-platform-card small,.sn7-ranking-platform-sub,.sn7-minigame-card small){
  color:#d2bdcf!important;
}

/* Ranking, points, mini games and automation */
html[data-sn7-theme="pink"] body :is(.sn7-ranking-platform-card,.sn7-points-card,.sn7-minigame-card,.sn7-automation-row,.sn7-automation-actions button,.sn7-ranking-mini,.sn7-ranking-platform-empty){
  color:#fff0f8!important;background:linear-gradient(145deg,#2b1d31,#1e1626)!important;border-color:#62405e!important;
}
html[data-sn7-theme="pink"] body :is(.sn7-ranking-platform-name,.sn7-points-card-body strong,.sn7-minigame-card strong,.sn7-automation-row strong){
  color:#fff4fa!important;
}
html[data-sn7-theme="pink"] body :is(.sn7-ranking-platform-open,.sn7-home-platform-card button,.sn7-points-card-arrow,.sn7-section-kicker,.sn7-minigames-kicker,.sn7-overlay-head .sn7-overlay-kicker){
  color:#f18abb!important;
}
html[data-sn7-theme="pink"] body :is(.sn7-ranking-platform-sub,.sn7-ranking-platform-empty,.sn7-points-card-body small,.sn7-points-card-body em,.sn7-minigame-card small,.sn7-automation-row small){
  color:#d0bfd0!important;
}
html[data-sn7-theme="pink"] body :is(.sn7-minigame-icon,.sn7-points-card-icon,.sn7-ranking-platform-logo,.sn7-ranking-platform-reset){
  background:#38263f!important;border-color:#704a6b!important;
}
html[data-sn7-theme="pink"] body .sn7-minigame-status{
  color:#f4c5df!important;background:#3b2943!important;border-color:#795071!important;
}

/* Commands — dynamically injected by app.js */
html[data-sn7-theme="pink"] body .sn7-command-drawer-toggle strong{color:#fff2f8!important}
html[data-sn7-theme="pink"] body .sn7-command-drawer-toggle small{color:#d0bbcf!important}
html[data-sn7-theme="pink"] body .sn7-command-drawer-toggle i,
html[data-sn7-theme="pink"] body .sn7-command-subdrawer-toggle i{color:#e6a0c4!important}
html[data-sn7-theme="pink"] body .sn7-command-row .sn7-command-status-badge{color:#f3d8e8!important}
html[data-sn7-theme="pink"] body .sn7-command-row .sn7-command-preview{color:#d7c3d6!important}

/* Music player — remove fixed blue glass palette in pink and the dark-on-dark text in white. */
html[data-sn7-theme="pink"] body #sn7MusicPlayer{
  --sn7-player-ink:#fff1f8!important;--sn7-player-muted:#d5bbcf!important;--sn7-player-blue:#f08abd!important;
  color:#fff1f8!important;border-color:#754866!important;
  background:radial-gradient(ellipse at 12% 18%,rgba(222,105,164,.25),transparent 43%),radial-gradient(ellipse at 88% 82%,rgba(170,91,151,.18),transparent 44%),linear-gradient(145deg,#2b1b30 0%,#241a2c 52%,#1b1725 100%)!important;
}
html[data-sn7-theme="pink"] body #sn7MusicPlayer :is(.sn7-music-kicker,.sn7-music-label){color:#f28fbd!important}
html[data-sn7-theme="pink"] body #sn7MusicPlayer :is(.sn7-music-info strong,.sn7-music-info span,.sn7-music-times,.sn7-music-output,.sn7-music-bottom,.sn7-music-inline-head,.sn7-music-inline-queue){color:#f8eaf3!important}
html[data-sn7-theme="pink"] body #sn7MusicPlayer :is(.sn7-music-connection-status,.sn7-music-output-switch,.sn7-music-inline-queue,.sn7-music-add-form,.sn7-music-queue,.sn7-music-queue-item,.sn7-music-now-queued){
  color:#f8eaf3!important;background:rgba(65,39,66,.72)!important;border-color:#65445f!important;
}
html[data-sn7-theme="pink"] body #sn7MusicPlayer :is(.sn7-music-config,.sn7-music-btn,.sn7-volume-btn,.sn7-music-connect,.sn7-music-obs-connect,.sn7-music-queue-toggle,.sn7-music-add-toggle){
  color:#fff2f8!important;background:linear-gradient(145deg,#57314d,#38243f)!important;border-color:#9b5d83!important;
}
html[data-sn7-theme="pink"] body #sn7MusicPlayer .sn7-music-btn.primary{background:linear-gradient(145deg,#a94e80,#71385f)!important;border-color:#d879a9!important}
html[data-sn7-theme="pink"] body #sn7MusicPlayer .sn7-music-progress{background:#563c56!important}
html[data-sn7-theme="pink"] body #sn7MusicPlayer .sn7-music-progress span{background:#ef8dbb!important}
html[data-sn7-theme="pink"] body #sn7MusicPlayer .sn7-volume-range{accent-color:#e879ae!important}
html[data-sn7-theme="pink"] body #sn7MusicPlayer .sn7-music-output-switch button.is-active{background:#754566!important;color:#fff!important}
html[data-sn7-theme="pink"] body #sn7MusicPlayer :is(input,textarea,select){color:#fff!important;background:#211827!important;border-color:#79516e!important}
html[data-sn7-theme="pink"] body .sn7-music-config-card,
html[data-sn7-theme="pink"] body .sn7-source-card{background:#281c30!important;color:#fff0f8!important;border-color:#65415f!important}

/* Overlay studio and its controls */
html[data-sn7-theme="pink"] body :is(.sn7-overlay-preview-card,.sn7-overlay-side,.sn7-overlay-element,.sn7-overlay-item,.sn7-overlay-control-card){
  color:#fff0f8!important;background:#241a2b!important;border-color:#63415f!important;
}
html[data-sn7-theme="pink"] body :is(.sn7-overlay-head h2,.sn7-overlay-preview-toolbar h3,.sn7-overlay-side h3,.sn7-overlay-section-title){color:#fff0f8!important}
html[data-sn7-theme="pink"] body :is(.sn7-overlay-head p,.sn7-overlay-description,.sn7-overlay-side p){color:#d0bbcf!important}
html[data-sn7-theme="pink"] body .sn7-overlay-preview{border-color:#65415f!important}
html[data-sn7-theme="pink"] body .sn7-overlay-preview:before{color:#d8c4d6!important}

/* Store, profile settings, forms and modals */
html[data-sn7-theme="pink"] body :is(.sn7-store-hero,.sn7-store-builder,.sn7-store-admin-panel,.sn7-store-history,.sn7-store-safe,.sn7-store-item-form,.sn7-store-modal-card,.sn7-store-confirm-card,.sn7-config-modal-card,.sn7-box,.sn7-confirm-card,.sn7-profile-panel){
  color:#fff0f8!important;background:linear-gradient(145deg,#2b1d31,#1d1625)!important;border-color:#65415f!important;
}
html[data-sn7-theme="pink"] body :is(.sn7-store-hero h1,.sn7-store-hero h2,.sn7-store-builder-head strong,.sn7-store-admin-panel h3,.sn7-store-modal-card h2,.sn7-profile-panel h2,.sn7-profile-panel h3){
  color:#fff1f8!important;
}
html[data-sn7-theme="pink"] body :is(.sn7-store-copy p,.sn7-store-builder-head p,.sn7-store-admin-panel p,.sn7-store-safe,.sn7-store-field label,.sn7-profile-panel p){
  color:#d2bfd0!important;
}
html[data-sn7-theme="pink"] body :is(.sn7-store-add-btn,.sn7-store-primary,.sn7-store-secondary,.sn7-store-close-btn,.sn7-store-primary-link){
  color:#fff!important;border-color:#b55d8e!important;background:linear-gradient(145deg,#a84f7e,#713858)!important;
}

/* WHITE THEME: every surface uses light backgrounds and dark readable text. */
html[data-sn7-theme="white"] body :is(.sn7-home-hero,.sn7-home-platform-card,.sn7-home-live-pill,.sn7-welcome,.sn7-quick-card,.sn7-profile-section,.sn7-platform-drawer,.sn7-platform-mobile-drawer){
  color:#202936!important;background:linear-gradient(145deg,#f8fafc,#e7ecf3)!important;border-color:#c3cedb!important;
}
html[data-sn7-theme="white"] body :is(.sn7-home-hero h1,.sn7-home-hero h2,.sn7-home-platform-info,.sn7-home-platform-info strong,.sn7-home-platform-state,.sn7-platform-card strong,.sn7-platform-card .left,.sn7-ranking-platform-name,.sn7-minigame-card strong){
  color:#202936!important;
}
html[data-sn7-theme="white"] body :is(.sn7-home-hero p,.sn7-home-platform-info small,.sn7-platform-card small,.sn7-ranking-platform-sub,.sn7-minigame-card small){
  color:#596779!important;
}
html[data-sn7-theme="white"] body :is(.sn7-home-kicker,.sn7-home-eyebrow,.sn7-section-kicker,.sn7-overlay-kicker,.sn7-minigames-kicker,.sn7-music-label,.sn7-music-kicker){
  color:#286fae!important;
}
html[data-sn7-theme="white"] body :is(.sn7-ranking-platform-card,.sn7-points-card,.sn7-minigame-card,.sn7-automation-row,.sn7-automation-actions button,.sn7-ranking-mini,.sn7-ranking-platform-empty){
  color:#202936!important;background:linear-gradient(145deg,#f8fafc,#e7ecf3)!important;border-color:#c1ccd9!important;
}
html[data-sn7-theme="white"] body :is(.sn7-ranking-platform-name,.sn7-points-card-body strong,.sn7-minigame-card strong,.sn7-automation-row strong,.sn7-ranking-platform-empty){
  color:#202936!important;
}
html[data-sn7-theme="white"] body :is(.sn7-ranking-platform-sub,.sn7-points-card-body small,.sn7-points-card-body em,.sn7-minigame-card small,.sn7-automation-row small){
  color:#596779!important;
}
html[data-sn7-theme="white"] body :is(.sn7-minigame-icon,.sn7-points-card-icon,.sn7-ranking-platform-logo,.sn7-ranking-platform-reset){
  background:#e1e8f0!important;border-color:#c2cedb!important;
}
html[data-sn7-theme="white"] body .sn7-minigame-status{
  color:#28577f!important;background:#e1edf8!important;border-color:#b7cce0!important;
}

/* White command drawer and cards: override JS-injected hard-coded dark styles. */
html[data-sn7-theme="white"] body .sn7-command-drawer-toggle strong{color:#202936!important}
html[data-sn7-theme="white"] body .sn7-command-drawer-toggle small{color:#596779!important}
html[data-sn7-theme="white"] body .sn7-command-drawer-toggle i,
html[data-sn7-theme="white"] body .sn7-command-subdrawer-toggle i{color:#586779!important}
html[data-sn7-theme="white"] body .sn7-command-row .sn7-command-status-badge{color:#34445a!important}
html[data-sn7-theme="white"] body .sn7-command-row .sn7-command-preview{color:#526174!important}

/* Music player white: intentionally light glass panel, dark text, no inherited blue/dark contrast conflict. */
html[data-sn7-theme="white"] body #sn7MusicPlayer{
  --sn7-player-ink:#202936!important;--sn7-player-muted:#596779!important;--sn7-player-blue:#397fc1!important;
  color:#202936!important;border:1px solid #b9c7d7!important;
  background:radial-gradient(ellipse at 12% 18%,rgba(84,153,211,.13),transparent 43%),radial-gradient(ellipse at 88% 82%,rgba(139,178,211,.18),transparent 44%),linear-gradient(145deg,#f8fafc 0%,#e5ebf2 100%)!important;
  box-shadow:0 14px 38px rgba(38,57,79,.12),inset 0 1px 0 #fff!important;
}
html[data-sn7-theme="white"] body #sn7MusicPlayer:before{background:linear-gradient(125deg,rgba(255,255,255,.65),transparent 42%,rgba(57,127,193,.035))!important}
html[data-sn7-theme="white"] body #sn7MusicPlayer :is(.sn7-music-kicker,.sn7-music-label){color:#286fae!important}
html[data-sn7-theme="white"] body #sn7MusicPlayer :is(.sn7-music-info strong,.sn7-music-info span,.sn7-music-times,.sn7-music-output,.sn7-music-bottom,.sn7-music-inline-head,.sn7-music-inline-queue){color:#263548!important}
html[data-sn7-theme="white"] body #sn7MusicPlayer :is(.sn7-music-connection-status,.sn7-music-output-switch,.sn7-music-inline-queue,.sn7-music-add-form,.sn7-music-queue,.sn7-music-queue-item,.sn7-music-now-queued){
  color:#263548!important;background:#e8edf4!important;border-color:#c2cedb!important;
}
html[data-sn7-theme="white"] body #sn7MusicPlayer :is(.sn7-music-config,.sn7-music-btn,.sn7-volume-btn,.sn7-music-connect,.sn7-music-obs-connect,.sn7-music-queue-toggle,.sn7-music-add-toggle){
  color:#24415e!important;background:linear-gradient(145deg,#e6edf5,#d8e2ed)!important;border-color:#b7c8d9!important;
}
html[data-sn7-theme="white"] body #sn7MusicPlayer .sn7-music-btn.primary{color:#fff!important;background:linear-gradient(145deg,#397fc1,#2467a7)!important;border-color:#286fae!important}
html[data-sn7-theme="white"] body #sn7MusicPlayer .sn7-music-progress{background:#cbd6e2!important}
html[data-sn7-theme="white"] body #sn7MusicPlayer .sn7-music-progress span{background:#397fc1!important}
html[data-sn7-theme="white"] body #sn7MusicPlayer .sn7-volume-range{accent-color:#397fc1!important}
html[data-sn7-theme="white"] body #sn7MusicPlayer .sn7-music-output-switch button.is-active{background:#d2e2f1!important;color:#1d4e79!important}
html[data-sn7-theme="white"] body #sn7MusicPlayer :is(input,textarea,select){color:#202936!important;background:#fff!important;border-color:#bdcbd9!important}
html[data-sn7-theme="white"] body .sn7-music-config-card,
html[data-sn7-theme="white"] body .sn7-source-card{background:#f5f7fa!important;color:#202936!important;border-color:#c3cedb!important}

/* Overlay studio */
html[data-sn7-theme="white"] body :is(.sn7-overlay-preview-card,.sn7-overlay-side,.sn7-overlay-element,.sn7-overlay-item,.sn7-overlay-control-card){
  color:#202936!important;background:#f5f7fa!important;border-color:#c3cedb!important;
}
html[data-sn7-theme="white"] body :is(.sn7-overlay-head h2,.sn7-overlay-preview-toolbar h3,.sn7-overlay-side h3,.sn7-overlay-section-title){color:#202936!important}
html[data-sn7-theme="white"] body :is(.sn7-overlay-head p,.sn7-overlay-description,.sn7-overlay-side p){color:#596779!important}
html[data-sn7-theme="white"] body .sn7-overlay-preview{border-color:#c3cedb!important}

/* Store, profile settings, forms and modals */
html[data-sn7-theme="white"] body :is(.sn7-store-hero,.sn7-store-builder,.sn7-store-admin-panel,.sn7-store-history,.sn7-store-safe,.sn7-store-item-form,.sn7-store-modal-card,.sn7-store-confirm-card,.sn7-config-modal-card,.sn7-box,.sn7-confirm-card,.sn7-profile-panel){
  color:#202936!important;background:linear-gradient(145deg,#f8fafc,#e7ecf3)!important;border-color:#c3cedb!important;
}
html[data-sn7-theme="white"] body :is(.sn7-store-hero h1,.sn7-store-hero h2,.sn7-store-builder-head strong,.sn7-store-admin-panel h3,.sn7-store-modal-card h2,.sn7-profile-panel h2,.sn7-profile-panel h3){
  color:#202936!important;
}
html[data-sn7-theme="white"] body :is(.sn7-store-copy p,.sn7-store-builder-head p,.sn7-store-admin-panel p,.sn7-store-safe,.sn7-store-field label,.sn7-profile-panel p){
  color:#596779!important;
}
html[data-sn7-theme="white"] body :is(.sn7-store-add-btn,.sn7-store-primary,.sn7-store-secondary,.sn7-store-close-btn,.sn7-store-primary-link){
  color:#fff!important;border-color:#2c70ad!important;background:linear-gradient(145deg,#347fbd,#225f98)!important;
}
html[data-sn7-theme="white"] body :is(.sn7-store-field input,.sn7-store-field textarea,.sn7-store-field select,.sn7-music-add-form input){
  color:#202936!important;background:#fff!important;border-color:#bdcbd9!important;
}
html[data-sn7-theme="white"] body :is(.sn7-store-empty,.sn7-empty,.sn7-empty-state){color:#596779!important;border-color:#c3cedb!important}

/* Keep links, badges and focus states readable and consistent with selected theme. */
html[data-sn7-theme="pink"] body :is(.sn7-ranking-platform-open,.sn7-overlay-head a,.sn7-store-page a,.sn7-home-platform-card button){color:#f18abb!important}
html[data-sn7-theme="white"] body :is(.sn7-ranking-platform-open,.sn7-overlay-head a,.sn7-store-page a,.sn7-home-platform-card button){color:#286fae!important}
html[data-sn7-theme="pink"] body :is(button,a,input,select,textarea):focus-visible{outline:2px solid #f08abd!important;outline-offset:2px}
html[data-sn7-theme="white"] body :is(button,a,input,select,textarea):focus-visible{outline:2px solid #397fc1!important;outline-offset:2px}
