/* Встраивание в iframe рабочей зоны (?embed=1) */
html.embed-mode .embed-hide {
  display: none !important;
}

html.embed-mode body {
  padding: 0.75rem !important;
}

html.embed-mode .interior-tabs {
  display: none !important;
}

/* Квота тарифа — только в shell /app, не дублировать в iframe */
html.embed-mode .interior-footer {
  display: none !important;
}

/* --- Glass workspace: УБД / Запрос / Объекты просвечивают фон родителя --- */
html.embed-mode.aspro-glass-embed,
html.embed-mode.aspro-glass-embed body,
html.embed-mode.aspro-glass-embed body.interior-page,
html.embed-mode.aspro-glass-embed body.interior-page.silver-interior {
  background: transparent !important;
  color: #e8edf5;
}

html.embed-mode.aspro-glass-embed .neo-bg,
html.embed-mode.aspro-glass-embed .silver-facet-overlay,
html.embed-mode.aspro-glass-embed .silver-ambient-lines {
  display: none !important;
}

html.embed-mode.aspro-glass-embed .glass,
html.embed-mode.aspro-glass-embed .glass-card,
html.embed-mode.aspro-glass-embed .object-glass-card,
html.embed-mode.aspro-glass-embed .company-card,
html.embed-mode.aspro-glass-embed #upgradeBlock,
html.embed-mode.aspro-glass-embed #createForm,
html.embed-mode.aspro-glass-embed .dropzone {
  background: rgba(255, 255, 255, 0.035) !important;
  backdrop-filter: blur(8px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(8px) saturate(160%) !important;
  border: 1px solid rgba(94, 234, 212, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 20px rgba(56, 189, 248, 0.06) !important;
}

html.embed-mode.aspro-glass-embed .object-glass-card__layer--empty {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px dashed rgba(94, 234, 212, 0.35) !important;
}

html.embed-mode.aspro-glass-embed h1,
html.embed-mode.aspro-glass-embed h2,
html.embed-mode.aspro-glass-embed h3,
html.embed-mode.aspro-glass-embed .object-glass-card__title {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.85), 0 2px 6px rgba(0, 0, 0, 0.55), 0 0 10px rgba(56, 189, 248, 0.15);
}

html.embed-mode.aspro-glass-embed .interior-wrap {
  max-width: 100%;
  padding-bottom: 2rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIGHT THEME IN IFRAMES — чёрный на белом, плоские цвета
   ═══════════════════════════════════════════════════════════════════════════ */

/* Base: transparent background, dark text */
html.embed-theme-light,
html.embed-theme-light body {
  background: transparent !important;
  color: #1c252e !important;
}

/* Glass cards → white flat */
html.embed-theme-light .glass,
html.embed-theme-light .glass-card,
html.embed-theme-light .glass-document-card,
html.embed-theme-light .glass-document-card--empty,
html.embed-theme-light .object-glass-card,
html.embed-theme-light .company-card,
html.embed-theme-light #createForm,
html.embed-theme-light .dropzone,
html.embed-theme-light .neo-welcome-glass,
html.embed-theme-light .neo-glass-panel,
html.embed-theme-light .neo-glass-card,
html.embed-theme-light .auth-glass-panel,
html.embed-theme-light .account-glass-panel,
html.embed-theme-light .corporate-panel {
  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;
  color: #1c252e !important;
}

/* Text colors */
html.embed-theme-light h1,
html.embed-theme-light h2,
html.embed-theme-light h3,
html.embed-theme-light .glass-card__title,
html.embed-theme-light .object-glass-card__title,
html.embed-theme-light strong {
  color: #0f172a !important;
  text-shadow: none !important;
}

html.embed-theme-light p,
html.embed-theme-light span,
html.embed-theme-light label,
html.embed-theme-light div {
  color: #334155 !important;
  text-shadow: none !important;
}

/* Inputs and selects */
html.embed-theme-light input[type="text"],
html.embed-theme-light input[type="email"],
html.embed-theme-light input[type="search"],
html.embed-theme-light textarea,
html.embed-theme-light select {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #1c252e !important;
}

html.embed-theme-light input::placeholder,
html.embed-theme-light textarea::placeholder {
  color: #94a3b8 !important;
}

/* Links */
html.embed-theme-light a {
  color: #2563eb !important;
}

/* Buttons */
html.embed-theme-light .glow-btn,
html.embed-theme-light button.glow-btn,
html.embed-theme-light [class*="bg-blue"],
html.embed-theme-light .neo-btn--corp,
html.embed-theme-light .aspro-btn-primary {
  background: #ed5b2f !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

/* Outreach / neo forms — fix dark bg */
html.embed-theme-light .bg-slate-950,
html.embed-theme-light .bg-slate-900,
html.embed-theme-light .bg-slate-800,
html.embed-theme-light body.neo-platform,
html.embed-theme-light body.neo-preview {
  background: #f4f6f8 !important;
  color: #1c252e !important;
}

html.embed-theme-light .bg-slate-900\/60,
html.embed-theme-light [class*="bg-slate-9"] {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html.embed-theme-light .bg-slate-800,
html.embed-theme-light select.bg-slate-800,
html.embed-theme-light input.bg-slate-800 {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #1c252e !important;
}

/* Text colors for neo/tailwind */
html.embed-theme-light .text-slate-100,
html.embed-theme-light .text-slate-200,
html.embed-theme-light .text-slate-300,
html.embed-theme-light .text-white,
html.embed-theme-light .text-gray-100,
html.embed-theme-light .text-gray-200,
html.embed-theme-light .text-gray-300 {
  color: #334155 !important;
}

html.embed-theme-light .text-slate-400,
html.embed-theme-light .text-slate-500,
html.embed-theme-light .text-gray-400,
html.embed-theme-light .text-gray-500 {
  color: #64748b !important;
}

html.embed-theme-light .text-blue-400,
html.embed-theme-light .text-blue-300 {
  color: #2563eb !important;
}

html.embed-theme-light .text-cyan-400,
html.embed-theme-light .text-cyan-300 {
  color: #0891b2 !important;
}

html.embed-theme-light .text-emerald-400,
html.embed-theme-light .text-green-400 {
  color: #16a34a !important;
}

html.embed-theme-light .text-amber-400,
html.embed-theme-light .text-amber-300 {
  color: #d97706 !important;
}

html.embed-theme-light .text-red-400 {
  color: #dc2626 !important;
}

/* Borders */
html.embed-theme-light .border-slate-700,
html.embed-theme-light .border-slate-600,
html.embed-theme-light [class*="border-slate-"] {
  border-color: #e2e8f0 !important;
}

/* Neo BG */
html.embed-theme-light .neo-bg,
html.embed-theme-light .silver-facet-overlay,
html.embed-theme-light .silver-ambient-lines {
  display: none !important;
}

/* Support hub specific */
html.embed-theme-light .support-section {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

html.embed-theme-light .support-section h2 {
  color: #0f172a !important;
}

html.embed-theme-light .field {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #1c252e !important;
}

html.embed-theme-light .field-label {
  color: #475569 !important;
}

html.embed-theme-light .btn-secondary {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
}

html.embed-theme-light .empty-state {
  color: #64748b !important;
}

/* Outreach wizard steps */
html.embed-theme-light .wizard-step {
  background: #f8fafc !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
}

html.embed-theme-light .wizard-step-active {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
  color: #1d4ed8 !important;
}

/* Outreach loader */
html.embed-theme-light .loader-backdrop {
  background: rgba(255, 255, 255, 0.8) !important;
}

/* Region dropdown */
html.embed-theme-light .region-dd {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html.embed-theme-light .region-dd div {
  color: #1c252e !important;
}

html.embed-theme-light .region-dd div:hover {
  background: #f1f5f9 !important;
}

/* Sender preview / chips */
html.embed-theme-light .sender-preview {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

html.embed-theme-light .chip {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
}

/* Ensure body neo-platform bg is overridden */
html.embed-theme-light body.neo-platform {
  background: transparent !important;
}
