/* ручные правки светлой темы (не перезаписываются генератором) */
html[data-theme="light"] .user-profile-box { background: #fff !important; border: 1px solid #dcdce6 !important; color: #1b1b22 !important; }
html[data-theme="light"] .user-profile-box .user-info div { color: #1b1b22 !important; }
html[data-theme="light"] .auth-guest-buttons a:first-child { background: #fff !important; color: #1b1b22 !important; border-color: #dcdce6 !important; }
html[data-theme="light"] #login-form-pop { background: #fff !important; border-color: #dcdce6 !important; box-shadow: 0 10px 25px rgba(30,30,60,.15) !important; }
html[data-theme="light"] #login-form-pop input[type="text"], html[data-theme="light"] #login-form-pop input[type="password"] { background: #f3f3f8 !important; color: #1b1b22 !important; border-color: #dcdce6 !important; }

/* редактор комментариев и загрузчик файлов */
html[data-theme="light"] .wseditor, html[data-theme="light"] .wseditor textarea, html[data-theme="light"] .wysiwygeditor,
html[data-theme="light"] .bb-editor, html[data-theme="light"] .bb-editor textarea, html[data-theme="light"] .bb-editor [contenteditable],
html[data-theme="light"] .comments-block textarea, html[data-theme="light"] #comments-form textarea, html[data-theme="light"] form textarea {
  background: #fff !important; color: #1b1b22 !important; caret-color: #8b5cf6; }
html[data-theme="light"] .wseditor-box, html[data-theme="light"] .bb-pane, html[data-theme="light"] .bb-editor .bb-pane { background: #f3f3f8 !important; border-color: #dcdce6 !important; }
html[data-theme="light"] [class*="dropzone"], html[data-theme="light"] [class*="upload"], html[data-theme="light"] [id*="upload"], html[data-theme="light"] [class*="fileupload"] {
  background-color: #f3f3f8 !important; color: #5f5f6e !important; border-color: #bdbdca !important; }
html[data-theme="light"] [class*="upload"] *, html[data-theme="light"] [class*="dropzone"] * { color: #5f5f6e; }
html[data-theme="light"] [class*="upload"] svg, html[data-theme="light"] [class*="upload"] img { filter: none; }
html[data-theme="light"] .ui-dialog, html[data-theme="light"] .ui-dialog .ui-dialog-content, html[data-theme="light"] .ui-dialog .ui-dialog-buttonpane { background: #fff !important; color: #1b1b22 !important; border-color: #dcdce6 !important; }
html[data-theme="light"] .ui-dialog .ui-dialog-titlebar { background: #f3f3f8 !important; border-color: #dcdce6 !important; }
html[data-theme="light"] .ui-dialog .ui-dialog-title { color: #1b1b22 !important; }
html[data-theme="light"] .ui-dialog input[type=text], html[data-theme="light"] .ui-dialog textarea, html[data-theme="light"] .ui-dialog select { background: #f3f3f8 !important; color: #1b1b22 !important; border-color: #dcdce6 !important; }
html[data-theme="light"] .ui-dialog .ui-dialog-buttonpane button:last-child { background: #e9e9f0 !important; color: #3a3a46 !important; }

/* поле ввода комментария */
html[data-theme="light"] #comment-editor textarea,
html[data-theme="light"] #comment-editor iframe,
html[data-theme="light"] #comment-editor [contenteditable],
html[data-theme="light"] #comment-editor .wseditor > div,
html[data-theme="light"] #comment-editor .wseditor > div > div,
html[data-theme="light"] #comments, html[data-theme="light"] textarea#comments {
  background: #fff !important; color: #1b1b22 !important; color-scheme: light; }
html[data-theme="light"] #comment-editor .wseditor { background: #fff !important; border: 1px solid #dcdce6 !important; }

/* баннер на главной: белый текст на тёмном фоне */
html[data-theme="light"] #hero [class*="title"], html[data-theme="light"] #hero2 [class*="title"],
html[data-theme="light"] #hero h1, html[data-theme="light"] #hero h2, html[data-theme="light"] #hero2 h1, html[data-theme="light"] #hero2 h2,
html[data-theme="light"] #hero [class*="title"] a, html[data-theme="light"] #hero2 [class*="title"] a { color: #fff !important; }
html[data-theme="light"] #hero a:not([class*="poster"]), html[data-theme="light"] #hero2 a:not([class*="poster"]),
html[data-theme="light"] #hero a:not([class*="poster"]) *, html[data-theme="light"] #hero2 a:not([class*="poster"]) *,
html[data-theme="light"] #hero button, html[data-theme="light"] #hero2 button,
html[data-theme="light"] #hero button *, html[data-theme="light"] #hero2 button * { color: #fff !important; opacity: 1 !important; }
/* точки */
html[data-theme="light"] .hero-dots > * { background: #c4b5fd !important; }
html[data-theme="light"] .hero-dots > .on, html[data-theme="light"] .hero-dots > .active, html[data-theme="light"] .hero-dots > .act,
html[data-theme="light"] .hero-dots > [class*="cur"], html[data-theme="light"] .hero-dots > [aria-current="true"] { background: #8b5cf6 !important; }
/* без морганий при смене темы */
html.no-tr, html.no-tr *, html.no-tr *::before, html.no-tr *::after { transition: none !important; animation: none !important; }

/* переключатель «Скрыть просмотренное» в включённом состоянии */
html[data-theme="light"] .srch-side .sf-chk input:checked { background: #8b5cf6 !important; }
html[data-theme="light"] .srch-side .sf-chk input::after { background: #fff !important; }

/* кнопки «Мой лист / Смотрю сейчас / Просмотрено» в выбранном состоянии */
html[data-theme="light"] [data-st].on { background: #8b5cf6 !important; border-color: #8b5cf6 !important; color: #fff !important; }
html[data-theme="light"] [data-st].on *, html[data-theme="light"] [data-st].on i { color: #fff !important; }
html[data-theme="light"] [data-st].on:hover { background: #7c3aed !important; }

/* активная вкладка «Мой лист / Смотрю сейчас / Просмотрено» */
html[data-theme="light"] .ml-tab.on, html[data-theme="light"] article.content-page .ml-tab.on { background: #8b5cf6 !important; border-color: #8b5cf6 !important; color: #fff !important; }
html[data-theme="light"] .ml-tab.on b { color: #fff !important; opacity: .85; }
html[data-theme="light"] .my-grid a.ml-cont, html[data-theme="light"] article.content-page .my-grid a.ml-cont { color: #fff !important; background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important; }
