/* ══════════════════════════════════════════════════════════════════════
   IW Cabinet — light theme overrides
   user-cabinet-v2.css uses bespoke :root vars (--bg/--card/--soft…) that
   are dark-only. Here we remap them + fix hardcoded #e8edf8 text on light.
   Canon 2026: brand-specific light variant, not naive inversion.
   ══════════════════════════════════════════════════════════════════════ */

html[data-theme="light"] {
  --bg:   #f3f8fb;
  --gold: #9a7d3a;
  --ai:   #1f7fb0;
  --ok:   #2f8f68;
  --risk: #c75266;
  --gd:   rgba(154, 125, 58, 0.12);
  --ad:   rgba(31, 127, 176, 0.10);
  --soft: rgba(82, 101, 118, 0.95);
  --dim:  rgba(82, 101, 118, 0.55);
  --b:    rgba(15, 23, 42, 0.10);
  --card: rgba(255, 255, 255, 0.96);

  /* Кабинет не грузит design_tokens.css — задаём --sw-* для общего
     мобильного хрома (header/nav читают эти токены) */
  --sw-text-primary:   #0f1b2a;
  --sw-text-secondary: #526576;
  --sw-text-tertiary:  #7a92a4;
  --sw-bg-primary:     #f3f8fb;
  --sw-border:         rgba(15, 23, 42, 0.12);
  --eterna-ai:         #1f7fb0;
}

/* Текст: тёмный на свету (перекрываем захардкоженный #e8edf8) */
html[data-theme="light"] body { color: #0f1b2a; }
html[data-theme="light"] .who-n,
html[data-theme="light"] .ni:hover,
html[data-theme="light"] .sb-toggle:hover,
html[data-theme="light"] .tb-t { color: #0f1b2a; }

/* Сайдбар / карточки на свету — светлая подложка + мягкая тень */
html[data-theme="light"] .sb {
  background: rgba(255, 255, 255, 0.99) !important;
  border-right-color: rgba(15, 23, 42, 0.1);
}
html[data-theme="light"] .aurora {
  background:
    radial-gradient(ellipse 55% 45% at 0% 0%, rgba(154,125,58,0.06), transparent 55%),
    radial-gradient(ellipse 45% 40% at 100% 100%, rgba(31,127,176,0.05), transparent 55%);
}

/* Логотип-пульс на свету — приглушить glow */
html[data-theme="light"] .logo-m { animation: none; color: var(--ai); }

/* Активный пункт навигации */
html[data-theme="light"] .ni.on {
  background: var(--gd);
  color: var(--gold);
}

/* Hover-фон пунктов на свету — тёмная подсветка вместо светлой */
html[data-theme="light"] .ni:hover { background: rgba(15, 23, 42, 0.04); }

/* Тулбар */
html[data-theme="light"] .tb {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}
/* Базовый цвет пунктов меню на свету */
html[data-theme="light"] .ni { color: var(--soft); }
html[data-theme="light"] .nl { color: rgba(82, 101, 118, 0.75); }
html[data-theme="light"] .who-info .plan-badge { color: var(--gold); }

/* Embed-панель — полный экран поверх кабинета */
#sc-embed.on{position:fixed!important;inset:0;z-index:100;background:var(--bg);display:flex!important;flex-direction:column}
#sc-embed.on iframe{flex:1;min-height:0;height:100%}
html[data-theme="light"] #embed-title{color:#0f1b2a}
