/* Светлая тема OmniCraft */
:root {
  --l-bg: #f6f4ff;
  --l-card: #ffffff;
  --l-text: #1d1a2e;
  --l-muted: #5f5878;
  --l-line: #e4ddf7;
  --l-accent: #e94560;
}

html, body {
  background: #f6f4ff !important;
  background-image: none !important;
  color: #1d1a2e !important;
}

body .container,
body .block,
body section.block,
body .tab-content {
  background: #ffffff !important;
  border: 1px solid #e4ddf7 !important;
  color: #1d1a2e !important;
  box-shadow: 0 6px 20px rgba(80, 60, 140, 0.07) !important;
}

h1, h2, h3, h4, h5, label, .mh-title, .mh-name, .block h2, .block h3 {
  color: #1d1a2e !important;
}

p, span, div, li, td, th {
  color: inherit;
}

/* формы */
select, input, textarea, option {
  background: #ffffff !important;
  color: #1d1a2e !important;
  border: 1px solid #d9d2f0 !important;
}
select:focus, input:focus, textarea:focus {
  outline: none !important;
  border-color: #b9a7ff !important;
}

/* вкладки */
.tabs { background: transparent !important; }
.tab-btn {
  background: #efeafc !important;
  color: #3b3357 !important;
  border: 1px solid #ded5f5 !important;
}
.tab-btn.active {
  background: linear-gradient(90deg, #e94560, #f39c12) !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* чат и история */
#chatHistory, #history, .history-list, .history-item, #progress {
  background: #faf8ff !important;
  border: 1px solid #e4ddf7 !important;
  color: #1d1a2e !important;
}
.history-empty { color: #6f688b !important; }
.chat-msg, .chat-bubble, .msg { color: #1d1a2e !important; }

/* карточки результатов */
#result > div > div {
  background: #ffffff !important;
  border: 1px solid #e4ddf7 !important;
}
#result h3 { color: #b3304a !important; }

/* модальные окна */
#cabinetModal > div,
#authModal > div {
  background: #ffffff !important;
  border: 1px solid #e4ddf7 !important;
  color: #1d1a2e !important;
}
#cabinetModal h2, #authModal h2 { color: #1d1a2e !important; }
#limitInfo { color: #b3304a !important; }

/* кнопки */
.main-btn { color: #fff !important; }
.btn-secondary {
  background: #f1edfd !important;
  color: #3b3357 !important;
  border: 1px solid #ded5f5 !important;
}

/* мобильный главный */
.mh-title { color: #1d1a2e !important; }
.mh-btn {
  background: #ffffff !important;
  border: 1px solid #e4ddf7 !important;
  color: #1d1a2e !important;
  box-shadow: 0 6px 18px rgba(80, 60, 140, 0.08) !important;
}
.mh-btn:active { background: #f3efff !important; }
.mh-big { padding: 22px 18px !important; font-size: 1.15rem !important; }
.mh-big .mh-ico { font-size: 2rem !important; }
.mh-price { color: #6f688b !important; }
.mh-links {
  display: flex; flex-direction: column; gap: 8px; margin-top: 18px;
  font-size: 0.9rem;
}
.mh-links a { color: #6a5aa8 !important; text-decoration: none; }

/* панель навигации на мобильном */
#mobileBar { background: #ffffff !important; border-top: 1px solid #e4ddf7 !important; }
#mobileBar button { background: #f1edfd !important; color: #3b3357 !important; border: 1px solid #ded5f5 !important; }
#mobileNextBtn { color: #fff !important; border: none !important; }

/* промо-блок приложения */
#pwaBlock { background: #f3efff !important; border-color: #ddd4f7 !important; }
#pwaBlock div { color: #4a4368 !important; }

/* === МОБИЛЬНЫЙ РЕЖИМ: ТОЛЬКО ДВА ВЫБОРА === */
@media (max-width: 640px) {
  body.mhome .container > *:not(#mobileHome) { display: none !important; }
  body.mhome #mobileHome { display: block !important; padding-top: 8px; }
  body.mhome #mobileHome .mh-links { display: none !important; }
  #mobileNextBtn { display: none !important; }
  body.mhome .mh-title { font-size: 1.5rem; margin: 6px 0 20px; text-align: center; }
  body.mhome .mh-btn { margin-bottom: 14px; }
}
