/**
 * Светлая тема — чёткий офисный UI (без тумана, blur-stacking, полупрозрачности).
 * Подключать ПОСЛЕДНИМ после neo / glass / silver.
 */

[data-workspace-theme="light"],
[data-theme="light"] {
  --neo-bg-deep: var(--bg-warm, #f0ebe3);
  --neo-bg-mid: #fffdf9;
  --neo-bg-elevated: #fffdf9;
  --neo-glass: #fffdf9;
  --neo-glass-strong: #ffffff;
  --neo-glass-edge: rgba(138, 115, 68, 0.16);
  --neo-glass-highlight: var(--bg-cream, #e8e2d6);
  --neo-white-panel: #ffffff;
  --neo-text: var(--text-on-light, #12100e);
  --neo-text-muted: var(--text-muted-light, #4f483e);
  --neo-text-dim: #5c5549;
  --neo-shadow: rgba(18, 16, 14, 0.08);
  --neo-cyan: var(--gold-dark, #9a7d4a);
  --neo-cyan-dim: #7a6238;
  --neo-cyan-soft: rgba(201, 171, 122, 0.12);
  --neo-glare-opacity: 0;
  --neo-sphere-opacity: 0;
  --ui-primary-bg: var(--gold, #c9ab7a);
  --ui-primary-text: var(--bg-deep, #0a0908);
  --ui-primary-border: var(--gold-dark, #9a7d4a);
  --ui-primary-hover: var(--gold-light, #edd9a8);
  --ui-secondary-bg: #ffffff;
  --ui-secondary-text: #334155;
  --ui-secondary-border: rgba(138, 115, 68, 0.2);
  --ui-panel-bg: #fffdf9;
  --ui-panel-border: rgba(138, 115, 68, 0.14);
  --ui-input-bg: #ffffff;
  --ui-input-border: rgba(138, 115, 68, 0.22);
  --ui-segment-active: rgba(201, 171, 122, 0.18);
  --ui-segment-border: rgba(138, 115, 68, 0.45);
  --glass-bg: #fffdf9;
  --glass-bg-strong: #ffffff;
  --glass-border: rgba(138, 115, 68, 0.16);
  --charcoal: var(--bg-warm, #f0ebe3);
  --text-primary: var(--text-on-light, #12100e);
  --text-muted: var(--text-muted-light, #4f483e);
}

/* --- Фон: плоский, без сферы и оверлеев --- */
[data-workspace-theme="light"] .ambient,
[data-theme="light"] .ambient {
  background: var(--bg-warm, #f0ebe3) !important;
}

[data-workspace-theme="light"] .ambient__hero,
[data-workspace-theme="light"] .ambient__darken,
[data-workspace-theme="light"] .ambient__vignette,
[data-workspace-theme="light"] .ambient__nodes,
[data-workspace-theme="light"] .ambient__russia,
[data-workspace-theme="light"] .ambient__label,
[data-theme="light"] .ambient__hero,
[data-theme="light"] .ambient__darken,
[data-theme="light"] .ambient__vignette,
[data-theme="light"] .ambient__nodes,
[data-theme="light"] .ambient__russia,
[data-theme="light"] .ambient__label {
  display: none !important;
}

[data-workspace-theme="light"] body.aspro-glass-ws.app-workspace-host,
[data-workspace-theme="light"] body.neo-platform.corporate-shell,
[data-theme="light"] body.aspro-glass-ws.app-workspace-host,
[data-theme="light"] body.neo-platform.corporate-shell {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* --- Убрать blur-stacking (источник «тумана») --- */
[data-workspace-theme="light"] .glass-document-card,
[data-workspace-theme="light"] body.neo-platform .glass-panel,
[data-workspace-theme="light"] body.neo-platform .glass-card,
[data-workspace-theme="light"] body.neo-platform .auth-glass-panel,
[data-workspace-theme="light"] body.neo-platform .account-glass-panel,
[data-workspace-theme="light"] body.neo-platform .corporate-panel,
[data-workspace-theme="light"] .aspro-glass-ws .workspace-nav,
[data-theme="light"] .glass-document-card,
[data-theme="light"] body.neo-platform .glass-panel,
[data-theme="light"] body.neo-platform .glass-card,
[data-theme="light"] body.neo-platform .auth-glass-panel,
[data-theme="light"] body.neo-platform .account-glass-panel,
[data-theme="light"] body.neo-platform .corporate-panel,
[data-theme="light"] .aspro-glass-ws .workspace-nav {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* --- Панели и карточки: белые, с чёткой рамкой --- */
[data-workspace-theme="light"] .glass-document-card,
[data-workspace-theme="light"] .glass-document-card--empty,
[data-theme="light"] .glass-document-card,
[data-theme="light"] .glass-document-card--empty {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}

[data-workspace-theme="light"] .glass-document-card::after,
[data-theme="light"] .glass-document-card::after {
  display: none !important;
}

[data-workspace-theme="light"] .glass-document-card__title,
[data-workspace-theme="light"] .glass-document-card__meta,
[data-workspace-theme="light"] .glass-document-card__hint,
[data-theme="light"] .glass-document-card__title,
[data-theme="light"] .glass-document-card__meta,
[data-theme="light"] .glass-document-card__hint {
  color: #0f172a !important;
  text-shadow: none !important;
}

[data-workspace-theme="light"] .glass-document-card--ready .glass-document-card__status,
[data-theme="light"] .glass-document-card--ready .glass-document-card__status {
  color: #15803d !important;
}

[data-workspace-theme="light"] .glass-document-card--analyzed .glass-document-card__status,
[data-theme="light"] .glass-document-card--analyzed .glass-document-card__status {
  color: #0369a1 !important;
}

[data-workspace-theme="light"] body.neo-platform .glass-panel,
[data-workspace-theme="light"] body.neo-platform .glass-card,
[data-workspace-theme="light"] body.neo-platform .corporate-panel,
[data-workspace-theme="light"] .aspro-glass-ws #tenderView .glass-card,
[data-workspace-theme="light"] .aspro-glass-ws .neo-welcome-glass,
[data-theme="light"] body.neo-platform .glass-panel,
[data-theme="light"] body.neo-platform .glass-card,
[data-theme="light"] body.neo-platform .corporate-panel,
[data-theme="light"] .aspro-glass-ws #tenderView .glass-card,
[data-theme="light"] .aspro-glass-ws .neo-welcome-glass {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.07) !important;
}

/* --- Шапка и навигация --- */
[data-workspace-theme="light"] .aspro-glass-ws .workspace-brand-title,
[data-theme="light"] .aspro-glass-ws .workspace-brand-title {
  color: #0f172a !important;
  text-shadow: none !important;
}

[data-workspace-theme="light"] .aspro-glass-ws .workspace-brand-tagline,
[data-theme="light"] .aspro-glass-ws .workspace-brand-tagline {
  color: #64748b !important;
}

[data-workspace-theme="light"] .aspro-glass-ws .workspace-nav,
[data-theme="light"] .aspro-glass-ws .workspace-nav {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-workspace-theme="light"] .aspro-glass-ws .workspace-col-title,
[data-theme="light"] .aspro-glass-ws .workspace-col-title {
  color: #0f172a !important;
}

[data-workspace-theme="light"] .aspro-glass-ws .workspace-col-desc,
[data-theme="light"] .aspro-glass-ws .workspace-col-desc {
  color: #64748b !important;
}

[data-workspace-theme="light"] .aspro-glass-ws .workspace-col:hover,
[data-theme="light"] .aspro-glass-ws .workspace-col:hover {
  background: rgba(201, 171, 122, 0.08) !important;
  border-color: rgba(138, 115, 68, 0.22) !important;
}

[data-workspace-theme="light"] .aspro-glass-ws .workspace-col.is-active,
[data-theme="light"] .aspro-glass-ws .workspace-col.is-active {
  background: rgba(201, 171, 122, 0.14) !important;
  border-color: rgba(201, 171, 122, 0.38) !important;
  box-shadow: inset 0 -2px 0 var(--gold, #c9ab7a) !important;
}

[data-workspace-theme="light"] .aspro-glass-ws .workspace-col.is-active .workspace-col-title,
[data-theme="light"] .aspro-glass-ws .workspace-col.is-active .workspace-col-title {
  color: var(--gold-dark, #9a7d4a) !important;
}

[data-workspace-theme="light"] .workspace-account,
[data-theme="light"] .workspace-account {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

[data-workspace-theme="light"] .workspace-account:hover,
[data-theme="light"] .workspace-account:hover {
  background: rgba(201, 171, 122, 0.08) !important;
  border-color: rgba(201, 171, 122, 0.38) !important;
  color: var(--gold-dark, #9a7d4a) !important;
}

/* --- Кнопки: gold primary (§B2) --- */
[data-workspace-theme="light"] body.neo-platform .neo-btn:not(.neo-btn--ghost):not(.neo-btn--corp-secondary):not(.neo-btn--corp-ghost):not(.neo-btn--corp-danger),
[data-workspace-theme="light"] body.neo-platform .neo-btn--corp,
[data-workspace-theme="light"] body.neo-platform .aspro-btn-primary,
[data-workspace-theme="light"] body.neo-platform .btn-lux-primary,
[data-workspace-theme="light"] body.neo-platform .btn-lux-gold,
[data-theme="light"] body.neo-platform .neo-btn:not(.neo-btn--ghost):not(.neo-btn--corp-secondary):not(.neo-btn--corp-ghost):not(.neo-btn--corp-danger),
[data-theme="light"] body.neo-platform .neo-btn--corp,
[data-theme="light"] body.neo-platform .aspro-btn-primary,
[data-theme="light"] body.neo-platform .btn-lux-primary,
[data-theme="light"] body.neo-platform .btn-lux-gold {
  background: linear-gradient(135deg, var(--gold-light, #edd9a8) 0%, var(--gold, #c9ab7a) 55%, var(--gold-dark, #9a7d4a) 100%) !important;
  color: var(--bg-deep, #0a0908) !important;
  border: 1px solid var(--gold-dark, #9a7d4a) !important;
  box-shadow: var(--glow-gold, 0 0 16px rgba(196, 165, 116, 0.35)) !important;
}

[data-workspace-theme="light"] body.neo-platform .neo-btn:not(.neo-btn--ghost):hover,
[data-workspace-theme="light"] body.neo-platform .neo-btn--corp:hover,
[data-workspace-theme="light"] body.neo-platform .aspro-btn-primary:hover:not(:disabled),
[data-theme="light"] body.neo-platform .neo-btn:not(.neo-btn--ghost):hover,
[data-theme="light"] body.neo-platform .neo-btn--corp:hover,
[data-theme="light"] body.neo-platform .aspro-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--gold, #c9ab7a) 0%, var(--gold-dark, #9a7d4a) 100%) !important;
  box-shadow: 0 4px 18px rgba(201, 171, 122, 0.4) !important;
}

[data-workspace-theme="light"] .neo-btn--new-project,
[data-theme="light"] .neo-btn--new-project {
  background: #16a34a !important;
  border: 1px solid #15803d !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(22, 163, 74, 0.3) !important;
}

[data-workspace-theme="light"] .neo-btn--new-project:hover,
[data-theme="light"] .neo-btn--new-project:hover {
  background: #15803d !important;
  border-color: #166534 !important;
}

[data-workspace-theme="light"] body.neo-platform .neo-btn--ghost,
[data-workspace-theme="light"] body.neo-platform .neo-btn--corp-ghost,
[data-workspace-theme="light"] body.neo-platform .neo-btn--corp-secondary,
[data-workspace-theme="light"] body.neo-platform .aspro-btn-secondary,
[data-theme="light"] body.neo-platform .neo-btn--ghost,
[data-theme="light"] body.neo-platform .neo-btn--corp-ghost,
[data-theme="light"] body.neo-platform .neo-btn--corp-secondary,
[data-theme="light"] body.neo-platform .aspro-btn-secondary {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
}

[data-workspace-theme="light"] body.neo-platform .neo-btn--ghost:hover,
[data-workspace-theme="light"] body.neo-platform .neo-btn--corp-secondary:hover,
[data-theme="light"] body.neo-platform .neo-btn--ghost:hover,
[data-theme="light"] body.neo-platform .neo-btn--corp-secondary:hover {
  background: #f8fafc !important;
  border-color: #2563eb !important;
  color: #1d4ed8 !important;
}

[data-workspace-theme="light"] body.neo-platform .neo-btn--corp-danger,
[data-theme="light"] body.neo-platform .neo-btn--corp-danger {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #b91c1c !important;
}

/* --- Сегменты: тендер/смета, тема в ЛК --- */
[data-workspace-theme="light"] .project-kind-tabs,
[data-theme="light"] .project-kind-tabs {
  background: #e2e8f0 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-workspace-theme="light"] .project-kind-tab,
[data-theme="light"] .project-kind-tab {
  color: #64748b !important;
}

[data-workspace-theme="light"] .project-kind-tab:hover,
[data-theme="light"] .project-kind-tab:hover {
  color: #334155 !important;
}

[data-workspace-theme="light"] .project-kind-tab.is-active,
[data-theme="light"] .project-kind-tab.is-active {
  color: var(--gold-dark, #9a7d4a) !important;
  background: rgba(201, 171, 122, 0.12) !important;
  box-shadow: 0 0 0 1px rgba(201, 171, 122, 0.38), 0 1px 3px rgba(201, 171, 122, 0.15) !important;
}

[data-workspace-theme="light"] .aspro-theme-segment,
[data-theme="light"] .aspro-theme-segment {
  background: var(--bg-cream, #e8e2d6) !important;
  border: 1px solid rgba(138, 115, 68, 0.2) !important;
}

[data-workspace-theme="light"] .aspro-theme-segment__btn.is-active,
[data-theme="light"] .aspro-theme-segment__btn.is-active {
  background: rgba(201, 171, 122, 0.18) !important;
  color: var(--gold-dark, #9a7d4a) !important;
  border-color: rgba(201, 171, 122, 0.45) !important;
  box-shadow: 0 1px 3px rgba(201, 171, 122, 0.2) !important;
}

/* --- Tailwind-классы на светлом фоне --- */
[data-workspace-theme="light"] body.neo-platform .text-white,
[data-workspace-theme="light"] body.neo-platform .text-gray-200,
[data-workspace-theme="light"] body.neo-platform .text-slate-200,
[data-theme="light"] body.neo-platform .text-white,
[data-theme="light"] body.neo-platform .text-gray-200,
[data-theme="light"] body.neo-platform .text-slate-200 {
  color: #0f172a !important;
}

[data-workspace-theme="light"] body.neo-platform .text-slate-300,
[data-workspace-theme="light"] body.neo-platform .text-slate-400,
[data-workspace-theme="light"] body.neo-platform .text-slate-500,
[data-theme="light"] body.neo-platform .text-slate-300,
[data-theme="light"] body.neo-platform .text-slate-400,
[data-theme="light"] body.neo-platform .text-slate-500 {
  color: #475569 !important;
}

[data-workspace-theme="light"] .corporate-tabs .tab,
[data-theme="light"] .corporate-tabs .tab {
  color: #64748b;
}

[data-workspace-theme="light"] .corporate-tabs .tab.active,
[data-theme="light"] .corporate-tabs .tab.active {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #93c5fd;
}

[data-workspace-theme="light"] .corporate-panel input,
[data-workspace-theme="light"] .corporate-panel textarea,
[data-theme="light"] .corporate-panel input,
[data-theme="light"] .corporate-panel textarea {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-workspace-theme="light"] footer.flex-shrink-0,
[data-theme="light"] footer.flex-shrink-0 {
  color: #64748b;
  border-top-color: #e2e8f0 !important;
}

/* --- Карточка проекта (tender_detail) --- */
[data-workspace-theme="light"] body.neo-platform,
[data-theme="light"] body.neo-platform {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

[data-workspace-theme="light"] body.neo-platform .glass-card,
[data-theme="light"] body.neo-platform .glass-card {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

[data-workspace-theme="light"] body.neo-platform .file-item,
[data-workspace-theme="light"] body.neo-platform .analysis-card,
[data-workspace-theme="light"] body.neo-platform .no-lsr-card,
[data-workspace-theme="light"] body.neo-platform .estimate-template-card,
[data-workspace-theme="light"] body.neo-platform .analysis-next-bar,
[data-workspace-theme="light"] body.neo-platform .legal-l1-collapsible,
[data-workspace-theme="light"] body.neo-platform .workspace-more-block,
[data-workspace-theme="light"] body.neo-platform .estimate-scenarios-more,
[data-theme="light"] body.neo-platform .file-item,
[data-theme="light"] body.neo-platform .analysis-card,
[data-theme="light"] body.neo-platform .no-lsr-card,
[data-theme="light"] body.neo-platform .estimate-template-card,
[data-theme="light"] body.neo-platform .analysis-next-bar,
[data-theme="light"] body.neo-platform .legal-l1-collapsible,
[data-theme="light"] body.neo-platform .workspace-more-block,
[data-theme="light"] body.neo-platform .estimate-scenarios-more {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

[data-workspace-theme="light"] body.neo-platform .btn-outline,
[data-theme="light"] body.neo-platform .btn-outline {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

[data-workspace-theme="light"] body.neo-platform .btn-outline:hover,
[data-theme="light"] body.neo-platform .btn-outline:hover {
  border-color: #2563eb !important;
  color: #1d4ed8 !important;
}

[data-workspace-theme="light"] body.neo-platform .dropzone.glass-dropzone,
[data-theme="light"] body.neo-platform .dropzone.glass-dropzone {
  color: #64748b !important;
  border-color: #cbd5e1 !important;
}

[data-workspace-theme="light"] body.neo-platform .estimate-hero-vitrine__btn,
[data-theme="light"] body.neo-platform .estimate-hero-vitrine__btn {
  background: #ffffff !important;
  border-color: #93c5fd !important;
  color: #0f172a !important;
}

[data-workspace-theme="light"] body.neo-platform .estimate-hero-vitrine__btn strong,
[data-theme="light"] body.neo-platform .estimate-hero-vitrine__btn strong {
  color: #1d4ed8 !important;
}

[data-workspace-theme="light"] body.neo-platform .estimate-template-card__title,
[data-workspace-theme="light"] body.neo-platform .estimate-scenarios-more[open] summary,
[data-workspace-theme="light"] body.neo-platform .workspace-more-block[open] summary,
[data-theme="light"] body.neo-platform .estimate-template-card__title,
[data-theme="light"] body.neo-platform .estimate-scenarios-more[open] summary,
[data-theme="light"] body.neo-platform .workspace-more-block[open] summary {
  color: #0f172a !important;
}

[data-workspace-theme="light"] body.neo-platform .text-blue-300,
[data-theme="light"] body.neo-platform .text-blue-300 {
  color: #1d4ed8 !important;
}

[data-workspace-theme="light"] body.neo-platform .text-cyan-200,
[data-workspace-theme="light"] body.neo-platform .text-cyan-300,
[data-theme="light"] body.neo-platform .text-cyan-200,
[data-theme="light"] body.neo-platform .text-cyan-300 {
  color: #0369a1 !important;
}

[data-workspace-theme="light"] body.neo-platform .tab-btn-active,
[data-theme="light"] body.neo-platform .tab-btn-active {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #1d4ed8 !important;
}

/* =============================================================================
   FLAT LIGHT — обычный светлый фон, без glass-оверлеев
   ============================================================================= */

html[data-theme="light"],
html[data-workspace-theme="light"] {
  background: #f1f5f9 !important;
}

html[data-theme="light"] .ambient,
html[data-theme="light"] #glassAmbient,
html[data-theme="light"] .silver-facet-overlay,
html[data-theme="light"] .silver-ambient-lines,
html[data-theme="light"] .silver-workspace::before,
html[data-theme="light"] .neo-bg,
html[data-theme="light"] .glass-stage::before,
html[data-theme="light"] .glass-stage__rim,
html[data-theme="light"] .glass-stage__rim::after {
  display: none !important;
}

html[data-theme="light"] body,
html[data-theme="light"] body.aspro-glass-ws,
html[data-theme="light"] body.neo-platform {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

html[data-theme="light"] body.text-gray-200 {
  color: #0f172a !important;
}

html[data-theme="light"] .silver-workspace,
html[data-theme="light"] #appShell,
html[data-theme="light"] .workspace-shell,
html[data-theme="light"] .glass-app,
html[data-theme="light"] .glass-stage,
html[data-theme="light"] .glass-stage__body,
html[data-theme="light"] .workspace-main {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
}

html[data-theme="light"] .workspace-header {
  background: #f1f5f9 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .workspace-brand-title,
html[data-theme="light"] .silver-workspace .workspace-brand-title {
  color: #0f172a !important;
  background: none !important;
  -webkit-text-fill-color: #0f172a !important;
  text-shadow: none !important;
}

html[data-theme="light"] .silver-workspace .workspace-brand:hover .workspace-brand-title {
  color: #1d4ed8 !important;
  -webkit-text-fill-color: #1d4ed8 !important;
}

html[data-theme="light"] .workspace-nav {
  background: #f1f5f9 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .glass-document-card,
html[data-theme="light"] .corporate-panel {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
  backdrop-filter: none !important;
}

html[data-theme="light"] .glass-document-card::before,
html[data-theme="light"] .glass-document-card::after,
html[data-theme="light"] .glass-shine,
html[data-theme="light"] .neo-glass__shine {
  display: none !important;
}

/* =============================================================================
   ТИПОГРАФИКА — читаемый текст в окнах / карточках / модалках
   ============================================================================= */

/* Пустые карточки: контент был opacity 0.42 — на белом не видно */
html[data-theme="light"] body.neo-platform .glass-document-card__content,
html[data-theme="light"] .glass-document-card__content {
  opacity: 1 !important;
}

html[data-theme="light"] body.neo-platform .glass-document-card,
html[data-theme="light"] body.neo-platform .glass-document-card--empty,
html[data-theme="light"] .aspro-glass-ws .glass-document-card,
html[data-theme="light"] .aspro-glass-ws .glass-document-card--empty {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Сброс HUD-теней с тёмной темы */
html[data-theme="light"] .aspro-glass-ws .glass-document-card__title,
html[data-theme="light"] .aspro-glass-ws .glass-document-card__meta,
html[data-theme="light"] .aspro-glass-ws .glass-document-card__hint,
html[data-theme="light"] .aspro-glass-ws .glass-document-card--empty .glass-document-card__title,
html[data-theme="light"] .aspro-glass-ws .glass-document-card--empty .glass-document-card__hint,
html[data-theme="light"] .aspro-glass-ws .workspace-col-title,
html[data-theme="light"] .aspro-glass-ws .workspace-col-desc,
html[data-theme="light"] .aspro-glass-ws .workspace-brand-title,
html[data-theme="light"] .aspro-glass-ws .neo-welcome-glass__title,
html[data-theme="light"] .aspro-glass-ws #tenderView h1,
html[data-theme="light"] .aspro-glass-ws #tenderView h2,
html[data-theme="light"] .aspro-glass-ws #tenderView h3 {
  text-shadow: none !important;
}

html[data-theme="light"] .aspro-glass-ws .workspace-brand-title {
  color: #0f172a !important;
}

html[data-theme="light"] .aspro-glass-ws .workspace-brand-tagline {
  color: #64748b !important;
  text-shadow: none !important;
}

html[data-theme="light"] .aspro-glass-ws .workspace-col-title {
  color: #0f172a !important;
}

html[data-theme="light"] .aspro-glass-ws .workspace-col.is-active .workspace-col-title {
  color: #1d4ed8 !important;
}

html[data-theme="light"] .aspro-glass-ws .workspace-col-desc {
  color: #64748b !important;
}

html[data-theme="light"] .aspro-glass-ws .glass-document-card__title,
html[data-theme="light"] .aspro-glass-ws .glass-document-card--empty .glass-document-card__title {
  color: #0f172a !important;
}

html[data-theme="light"] .aspro-glass-ws .glass-document-card__meta,
html[data-theme="light"] .aspro-glass-ws .glass-document-card__hint,
html[data-theme="light"] .aspro-glass-ws .glass-document-card--empty .glass-document-card__hint {
  color: #475569 !important;
}

html[data-theme="light"] .glass-document-card__hud,
html[data-theme="light"] .glass-document-card__hud-m .lbl {
  color: #64748b !important;
  text-shadow: none !important;
}

html[data-theme="light"] .glass-document-card__hud-m .val,
html[data-theme="light"] .aspro-glass-ws .glass-document-card--empty .glass-document-card__hud-m .val,
html[data-theme="light"] body.neo-platform .glass-document-card__hud-m .val {
  color: #0369a1 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .glass-document-card__icon {
  color: #475569 !important;
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="light"] .glass-document-card--ready .glass-document-card__icon {
  color: #15803d !important;
  border-color: #86efac !important;
  background: #f0fdf4 !important;
}

html[data-theme="light"] .glass-document-card--analyzed .glass-document-card__icon {
  color: #0369a1 !important;
  background: #eff6ff !important;
}

html[data-theme="light"] .glass-document-card__status,
html[data-theme="light"] .glass-document-card--ready .glass-document-card__status {
  color: #15803d !important;
}

html[data-theme="light"] .glass-document-card--analyzed .glass-document-card__status {
  color: #0369a1 !important;
}

/* Пустое состояние «Создайте проект» */
html[data-theme="light"] .neo-welcome-glass,
html[data-theme="light"] .aspro-glass-ws .neo-welcome-glass {
  background: #ffffff !important;
  border: 1px dashed #93c5fd !important;
  backdrop-filter: none !important;
}

html[data-theme="light"] .neo-welcome-glass__kicker {
  color: #0369a1 !important;
}

html[data-theme="light"] .neo-welcome-glass__title {
  color: #0f172a !important;
}

html[data-theme="light"] .neo-welcome-glass__hint {
  color: #475569 !important;
}

/* Модалка входа / регистрации */
html[data-theme="light"] .auth-glass-panel {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .auth-brand__title {
  color: #0f172a !important;
}

html[data-theme="light"] .auth-brand__tagline {
  color: #64748b !important;
}

html[data-theme="light"] .auth-tabs {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="light"] .auth-tab {
  color: #64748b !important;
}

html[data-theme="light"] .auth-tab.is-active {
  color: #1d4ed8 !important;
  background: #ffffff !important;
  border: 1px solid #93c5fd !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.12) !important;
}

html[data-theme="light"] .auth-glass-input,
html[data-theme="light"] .auth-glass-input:focus {
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: none !important;
}

html[data-theme="light"] .auth-glass-input::placeholder {
  color: #94a3b8 !important;
}

html[data-theme="light"] .auth-close {
  color: #64748b !important;
}

html[data-theme="light"] .auth-link-gold,
html[data-theme="light"] #forgotLink {
  color: #2563eb !important;
}

html[data-theme="light"] #loginForm .text-slate-500,
html[data-theme="light"] #registerForm .text-slate-500,
html[data-theme="light"] #authVkHint,
html[data-theme="light"] .vk-legal-row,
html[data-theme="light"] .vk-legal-row a {
  color: #475569 !important;
}

html[data-theme="light"] .vk-legal-row a,
html[data-theme="light"] #registerForm a,
html[data-theme="light"] #loginForm a {
  color: #2563eb !important;
}

/* Tailwind внутри панелей */
html[data-theme="light"] body.neo-platform .text-gray-100,
html[data-theme="light"] body.neo-platform .text-gray-300,
html[data-theme="light"] body.neo-platform .text-gray-400,
html[data-theme="light"] body.neo-platform .text-gray-500,
html[data-theme="light"] body.neo-platform .text-slate-100,
html[data-theme="light"] body.neo-platform .text-slate-600,
html[data-theme="light"] body.neo-platform .text-slate-700 {
  color: #475569 !important;
}

html[data-theme="light"] body.neo-platform .text-cyan-200,
html[data-theme="light"] body.neo-platform .text-cyan-300,
html[data-theme="light"] body.neo-platform .text-cyan-400,
html[data-theme="light"] body.neo-platform .text-blue-300,
html[data-theme="light"] body.neo-platform .text-blue-400,
html[data-theme="light"] body.neo-platform .text-emerald-300,
html[data-theme="light"] body.neo-platform .text-emerald-400,
html[data-theme="light"] body.neo-platform .text-amber-200,
html[data-theme="light"] body.neo-platform .text-amber-300 {
  color: #0369a1 !important;
}

html[data-theme="light"] body.neo-platform .text-emerald-300,
html[data-theme="light"] body.neo-platform .text-emerald-400,
html[data-theme="light"] body.neo-platform .text-green-400 {
  color: #15803d !important;
}

html[data-theme="light"] body.neo-platform .text-amber-200,
html[data-theme="light"] body.neo-platform .text-amber-300,
html[data-theme="light"] body.neo-platform .text-yellow-300 {
  color: #b45309 !important;
}

html[data-theme="light"] body.neo-platform .text-red-400,
html[data-theme="light"] body.neo-platform .text-rose-400 {
  color: #dc2626 !important;
}

/* Карточка проекта (#tenderView) */
html[data-theme="light"] .aspro-glass-ws #tenderView .glass-card,
html[data-theme="light"] body.neo-platform .glass-card {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="light"] body.neo-platform .glass-card strong,
html[data-theme="light"] body.neo-platform .analysis-card strong {
  color: #1d4ed8 !important;
}

html[data-theme="light"] .aspro-glass-ws .project-kind-tab.is-active {
  color: #1d4ed8 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 1px #93c5fd !important;
}

html[data-theme="light"] .aspro-glass-ws .project-kind-tab:hover {
  color: #334155 !important;
}

/* ЛК: подписи и вкладки */
html[data-theme="light"] .corporate-title,
html[data-theme="light"] .corporate-panel label,
html[data-theme="light"] .corporate-field-hint,
html[data-theme="light"] .aspro-theme-segment__btn {
  color: #475569 !important;
}

html[data-theme="light"] .corporate-title {
  color: #0f172a !important;
}

html[data-theme="light"] .aspro-theme-segment__btn.is-active {
  color: #1d4ed8 !important;
  font-weight: 700;
}

html[data-theme="light"] .aspro-utility-nav a {
  color: #64748b !important;
}

html[data-theme="light"] .aspro-utility-nav a:hover,
html[data-theme="light"] .aspro-utility-nav a.is-current {
  color: #334155 !important;
}

/* Подсветка активных зон */
html[data-theme="light"] .workspace-col.is-active {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
}

html[data-theme="light"] .corporate-tabs .tab.active {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  font-weight: 600;
}

html[data-theme="light"] .project-kind-tab.is-active {
  background: #ffffff !important;
  color: #1d4ed8 !important;
  font-weight: 600;
}

html[data-theme="light"] .glass-document-card:hover,
html[data-theme="light"] .glass-document-card:focus-within {
  border-color: #93c5fd !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1) !important;
}

html[data-theme="light"] .glass-document-card__hud-metrics {
  border-bottom-color: #e2e8f0 !important;
}

html[data-theme="light"] .aspro-glass-ws .workspace-path-bar,
html[data-theme="light"] .aspro-glass-ws .workspace-path-bar a,
html[data-theme="light"] .aspro-glass-ws .workspace-path-bar span {
  color: #475569 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .aspro-glass-ws .workspace-path-bar a:hover {
  color: #1d4ed8 !important;
}

html[data-theme="light"] .aspro-glass-ws .tender-tab,
html[data-theme="light"] .aspro-glass-ws .tender-tabs__label,
html[data-theme="light"] .aspro-glass-ws .tender-tab-group__label {
  color: #475569 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .aspro-glass-ws .tender-tab.tab-btn-active {
  color: #1d4ed8 !important;
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.12) !important;
  text-shadow: none !important;
}

html[data-theme="light"] .aspro-glass-ws .project-kind-tabs {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="light"] body.neo-platform .glass-panel,
html[data-theme="light"] body.neo-platform .account-glass-panel,
html[data-theme="light"] .corporate-panel input,
html[data-theme="light"] .corporate-panel textarea,
html[data-theme="light"] .corporate-panel select,
html[data-theme="light"] .account-glass-panel input,
html[data-theme="light"] .account-glass-panel textarea,
html[data-theme="light"] .account-glass-panel select {
  color: #0f172a !important;
  background: #ffffff !important;
}

html[data-theme="light"] .corporate-panel input::placeholder,
html[data-theme="light"] .corporate-panel textarea::placeholder {
  color: #94a3b8 !important;
}

html[data-theme="light"] .aspro-glass-ws .workspace-account {
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

html[data-theme="light"] .aspro-glass-ws .workspace-nav--compact .workspace-col:hover {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* =============================================================================
   Интерьер / iframe (Деловой запрос, Объекты, УБД) в светлой теме
   ============================================================================= */

html[data-theme="light"].embed-mode.aspro-glass-embed,
html[data-theme="light"].embed-mode.aspro-glass-embed body,
html[data-theme="light"] body.interior-page.silver-interior {
  color: #0f172a !important;
}

html[data-theme="light"].embed-mode.aspro-glass-embed .glass,
html[data-theme="light"] body.interior-page.silver-interior .glass,
html[data-theme="light"] body.interior-page.silver-interior .glass-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.07) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-theme="light"] body.interior-page .text-white,
html[data-theme="light"] body.interior-page .text-slate-300,
html[data-theme="light"].embed-mode .text-white,
html[data-theme="light"].embed-mode .text-slate-300 {
  color: #0f172a !important;
}

html[data-theme="light"] body.interior-page .text-slate-400,
html[data-theme="light"] body.interior-page .text-slate-500,
html[data-theme="light"].embed-mode .text-slate-400,
html[data-theme="light"].embed-mode .text-slate-500 {
  color: #475569 !important;
}

html[data-theme="light"] body.interior-page .text-cyan-300,
html[data-theme="light"] body.interior-page .text-cyan-400,
html[data-theme="light"] body.interior-page .text-blue-200,
html[data-theme="light"] body.interior-page .text-emerald-300,
html[data-theme="light"].embed-mode .text-cyan-300,
html[data-theme="light"].embed-mode .text-blue-200,
html[data-theme="light"].embed-mode .text-emerald-300 {
  color: #0369a1 !important;
}

html[data-theme="light"] body.interior-page input,
html[data-theme="light"] body.interior-page textarea,
html[data-theme="light"] body.interior-page select,
html[data-theme="light"].embed-mode input,
html[data-theme="light"].embed-mode textarea,
html[data-theme="light"].embed-mode select {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] body.interior-page input::placeholder,
html[data-theme="light"] body.interior-page textarea::placeholder,
html[data-theme="light"].embed-mode input::placeholder,
html[data-theme="light"].embed-mode textarea::placeholder {
  color: #94a3b8 !important;
}

html[data-theme="light"] body.interior-page .region-dd,
html[data-theme="light"].embed-mode .region-dd {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

html[data-theme="light"] body.interior-page .region-dd div,
html[data-theme="light"].embed-mode .region-dd div {
  color: #0f172a !important;
}

html[data-theme="light"] body.interior-page .region-dd div:hover,
html[data-theme="light"].embed-mode .region-dd div:hover {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

html[data-theme="light"] body.interior-page .region-dd .text-slate-500,
html[data-theme="light"].embed-mode .region-dd .text-slate-500 {
  color: #64748b !important;
}

html[data-theme="light"] body.interior-page.silver-interior .glow-btn,
html[data-theme="light"].embed-mode .glow-btn {
  background: linear-gradient(95deg, #2563eb, #3b82f6) !important;
  color: #ffffff !important;
  border: 1px solid #1d4ed8 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28) !important;
}

html[data-theme="light"] body.interior-page.silver-interior .glow-btn:disabled,
html[data-theme="light"].embed-mode .glow-btn:disabled {
  opacity: 0.55 !important;
  color: #ffffff !important;
}

html[data-theme="light"] body.interior-page .sender-preview,
html[data-theme="light"].embed-mode .sender-preview {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

html[data-theme="light"] body.interior-page .chip,
html[data-theme="light"].embed-mode .chip {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

html[data-theme="light"] body.interior-page .chip:hover,
html[data-theme="light"].embed-mode .chip:hover {
  border-color: #2563eb !important;
  color: #1d4ed8 !important;
  background: #eff6ff !important;
}

html[data-theme="light"] body.interior-page .company-card,
html[data-theme="light"].embed-mode .company-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="light"] body.interior-page .company-card.selected,
html[data-theme="light"].embed-mode .company-card.selected {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15) !important;
}

html[data-theme="light"] body.interior-page .interior-tab.is-active,
html[data-theme="light"].embed-mode .interior-tab.is-active {
  color: #1d4ed8 !important;
  border-color: #2563eb !important;
}
