/* FILMY25 — engine.css (DLE 21.0), адаптирован под тёмную тему и Tailwind.
   Оригинал Default сохранён как engine.default.css.bak (можно удалить).
   1) Цвета берутся из переменных темы (--bg, --card, --elev, --accent из styles.css).
   2) Стили полей форм НЕ трогают элементы с Tailwind-классами bg-* (например, поиск в шапке):
      раньше input[type=search]{width:302px;box-sizing:content-box} перебивал w-full и раздувал страницу на мобильных.
   3) Всплывающие окна ограничены шириной экрана. */

html, body { max-width: 100%; overflow-x: clip; }
img, video, iframe { max-width: 100%; }

/* загрузка */
#loading-layer { background: #000; padding: 10px; text-align: center; color: #fff; border-radius: 6px; }
#loading-layer.withouttext { background: rgb(0 0 0 / 60%); padding: 5px 5px 0 5px; border-radius: 50%; }
#loading-layer.withtext { padding: 10px; background: rgb(0 0 0 / 70%); border-radius: 8px; box-shadow: 0 3px 6px rgb(0 0 0 / 30%); }

/* цитаты, спойлеры, код */
.scriptcode, .title_quote, .title_spoiler, .text_spoiler, .quote { padding: 10px; background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .08); color: #e5e7eb; overflow-wrap: anywhere; }
.title_quote { border-left: 2px solid var(--accent, #10b981); border-bottom: 0; margin-top: 2px; font-weight: bold; }
.quote, blockquote { border-left: 2px solid var(--accent, #10b981); }
.quote_block { margin-bottom: .7rem; }
.title_spoiler { margin-top: 2px; font-weight: normal; cursor: pointer; }
.title_spoiler img { vertical-align: middle; margin: -1px 0 0 !important; }
.title_spoiler svg { vertical-align: middle; margin-top: -.28em; margin-right: .47em; height: 1.11em; width: 1.11em; }
.scriptcode { color: #6ee7b7; text-align: left; font-family: "Courier New", monospace; overflow-x: auto; }
.text_spoiler { margin-bottom: 2px; border-top: 0; display: none; }
.hide { background-color: rgb(255 255 255 / .05); padding: 5px; color: #6ee7b7; margin: 0 0 1em 0; }
.hide a { text-decoration: underline; }
.hide a:hover { text-decoration: none; }

/* сортировка (оформление в styles.css) */
.sort { list-style: none; padding: 0; margin: 0; }
.sort > li a { color: #9ca3af; }
.sort > li.asc a, .sort > li.desc a { color: #fff; }

/* календарь */
.calendar { width: 100%; text-align: center; color: #d1d5db; }
.calendar tr td, .calendar tr th { padding: 5px 3px; }
.calendar tr td a { color: inherit; font-weight: bold; }
.calendar tr td.weekday { color: #fb7185; }
.calendar tr th { background-color: var(--elev, #1e2430); font-weight: bold; text-transform: uppercase; }
.calendar tr th.weekday { background-color: #e11d48; color: #fff; }
.calendar tr th.monthselect { background-color: transparent; color: #9ca3af; padding-bottom: 15px; }
.calendar tr th.monthselect a { color: #9ca3af; }
.monthselect-inner { display: flex; align-items: center; justify-content: center; gap: 3em; }
.monthselect-title { display: inline-block; }

/* опросы, рейтинг */
.voteprogress, .pollprogress { overflow: hidden; height: 6px; margin: 6px 0 10px; background-color: rgb(255 255 255 / .1); border-radius: 3px; }
.voteprogress span, .pollprogress span { text-indent: -9999px; height: 6px; display: block; overflow: hidden; background: var(--accent, #10b981); }
.voteprogress .vote2, .pollprogress .poll2 { background-color: #f43f5e; }
.voteprogress .vote3, .pollprogress .poll3 { background-color: #34d399; }
.voteprogress .vote4, .pollprogress .poll4 { background-color: #38bdf8; }
.voteprogress .vote5, .pollprogress .poll5 { background-color: #fbbf24; }
.ratingplus { color: #34d399; }
.ratingminus { color: #fb7185; }
.ratingzero { color: #9ca3af; }

/* личные сообщения и пользователи */
.userstop td, .pm td.pm_list, .pm th.pm_head { border-bottom: 1px solid rgb(255 255 255 / .06); padding: .833em .555em; }
table.pm, table.userstop { width: 100%; margin-bottom: 0; }
table.pm select { width: 13.194em; max-width: 100%; }
.userstop thead td, .pm td.pm_head { border-bottom: 1px solid rgb(255 255 255 / .08); font-weight: bold; }
table.pm .navigation { border-top-width: 0; margin: 0; }
.pm th { text-align: left; font-weight: 500; white-space: nowrap; }
.pm th.pm_checkbox { text-align: center; }
.pm_list.pm_subj, .pm_list.pm_icon, .pm_list.pm_last_user { cursor: pointer; }
.pm_list.pm_icon svg { width: 1.555em; height: 1.555em; vertical-align: middle; }
.pm_list.pm_icon.pm-unread-image { color: var(--accent, #10b981); }
.pm td.pm_list.pm_icon, .userstop td, th.pm_head.pm_icon { border-bottom: none; }
.pm_list.pm_icon.pm-reply-image { color: #34d399; }
.pm_list.pm_icon.pm-read-image { color: #6b7280; }
.pm_list .pm_last_message, .pm_list .pm_last_date, .pm_list .pm_with_user { color: #9ca3af; font-size: calc(var(--font-size-lg, 1rem) * .8); }
.pm tbody > tr:hover { background-color: rgb(255 255 255 / .04); }
.pm_navigation { margin-top: .9em; }
.pm_navigation .navigation { display: inline-block; color: #d1d5db; background-color: var(--card, #151922); border-radius: .5em; padding: .444em; }
.pm_navigation .navigation a, .pm_navigation .navigation span { padding: .555em; min-width: 2.25rem; }
.pm_navigation .navigation span { background-color: var(--accent, #10b981); color: #000; border-radius: .4em; }
.pm_navigation .navigation a { text-decoration: none; color: #d1d5db; }
.pm_navigation .navigation a:hover { background-color: var(--elev, #1e2430); }
/* широкие таблицы скроллятся внутри себя, а не раздвигают страницу */
.pm, .userstop { display: block; overflow-x: auto; }

/* выпадающее меню DLE */
#dropmenudiv { padding: .73em 0; min-width: 10.18em; max-width: 92vw; width: auto !important; font-size: var(--font-size-sm, .875rem); box-shadow: 0 8px 40px -10px rgba(0,0,0,.6); border: 1px solid rgb(255 255 255 / .1); background-clip: padding-box; background-color: var(--card, #151922); color: #e5e7eb; border-radius: .75rem; }
#dropmenudiv a { text-decoration: none !important; color: inherit; display: block; padding: 3px 20px; border: 0 none; white-space: nowrap; }
#dropmenudiv a:hover { background-color: rgb(255 255 255 / .06); }

/* живой поиск (позиционирование — в styles.css) */
#searchsuggestions { z-index: 2200; max-width: 92vw; border-radius: 12px; background: var(--card, #151922); color: #d1d5db; box-shadow: 0 8px 40px -10px rgba(0,0,0,.6); border: 1px solid rgb(255 255 255 / .1); background-clip: padding-box; font-size: .9em; box-sizing: border-box; }
#searchsuggestions a, #searchsuggestions span.notfound { padding: 12px 16px; display: block; text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / .06); }
#searchsuggestions a { color: inherit; }
#searchsuggestions a:hover { background-color: rgb(255 255 255 / .05); }
#searchsuggestions a span { display: block; cursor: pointer; }
#searchsuggestions span.searchheading { display: block; font-weight: bold; margin-bottom: .2em; }
#searchsuggestions span.seperator { display: block; }
#searchsuggestions span.seperator a { padding: 10px 0; text-align: center; border: 0 none; background-color: transparent; color: var(--accent, #10b981); }
#searchsuggestions .break { display: none; }

/* jQuery UI: диалоги */
.ui-front { z-index: 1000; }
.ui-widget-overlay { background: #000; opacity: .7; left: 0; top: 0; right: 0; bottom: 0; position: fixed; }
.ui-helper-clearfix:after { clear: both; content: "."; display: block; height: 0; visibility: hidden; }
.ui-helper-clearfix { display: block; }
.ui-dialog { text-align: left; overflow: hidden; padding: 0; position: absolute; width: 370px; max-width: calc(100vw - 16px); border-radius: .75em; box-shadow: 0 .555em 2.78em -.694em rgba(0,0,0,.6); background-color: var(--card, #151922); color: #e5e7eb; border: 1px solid rgb(255 255 255 / .1); background-clip: padding-box; outline: none; }
.ui-dialog-titlebar { padding: .694em 1.04em; position: relative; background-color: var(--elev, #1e2430) !important; color: #fff; }
.ui-dialog-title { float: left; font-weight: 600; max-width: calc(100% - 3em); overflow-wrap: anywhere; }
.ui-dialog-titlebar-close { position: absolute; right: .694em; top: 50%; margin-top: -1.11em !important; height: 1.597em !important; width: 2.22em; border: 0 none !important; background-color: transparent !important; box-shadow: none !important; padding: 0 !important; cursor: pointer; }
.ui-dialog-titlebar-close .ui-icon, .ui-dialog-titlebar-close span.ui-button-text { display: block; margin: .56em auto 0; width: .75em; height: .75em; opacity: .6; text-indent: -9999px; background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center / contain no-repeat; }
.ui-dialog-titlebar-close:hover .ui-icon, .ui-dialog-titlebar-close span.ui-button-text:hover { opacity: 1; }
.ui-button { font-size: var(--font-size-sm, .875rem); vertical-align: middle; cursor: pointer; border-radius: .58em; outline: none; background-color: var(--accent, #10b981); color: #000; font-weight: 600; border: 0 none; padding: .58em 1.38em; text-decoration: none !important; box-shadow: 0 1px 2px 0 rgba(0,0,0,.3); box-sizing: border-box; transition: all ease .1s; margin: 0 3px; }
.ui-button:hover { background-color: var(--accent-hover, #059669); }
.ui-icon, .ui-button-icon-only { overflow: hidden; text-indent: -9999px; }
.ui-dialog label { color: #d1d5db; }
.ui-dialog-content { padding: 1em; border: 0; overflow: auto; position: relative; }
.loginbox.ui-dialog, .loginbox .ui-dialog-content { overflow: visible !important; }
.ui-dialog-content h2 { display: inline; font-size: 1em; font-weight: bold; }
.ui-dialog .ui-dialog-buttonpane { padding: .694em 1em; text-align: right; }
.ui-draggable .ui-dialog-titlebar { cursor: move; }
.ui-state-error { background: rgb(244 63 94 / .12) !important; border: 1px solid rgb(244 63 94 / .4); color: #fb7185; }
.ui-helper-hidden-accessible { display: none; }
.ui-dialog-buttonset button:last-child { background-color: var(--accent, #10b981); color: #000; }
.ui-dialog-buttonset button:last-child:hover { background-color: var(--accent-hover, #059669); }
.ui-dialog-buttonset button:first-child { background-color: #4b5563; border-color: #4b5563; color: #fff; }
.ui-dialog-buttonset button:first-child:hover { background-color: #6b7280; }
.ui-dialog-buttonset button.ui-button-delete { background-color: #e11d48; border-color: #e11d48; color: #fff; }
.ui-dialog-buttonset button.ui-button-delete:hover { background-color: #be123c; border-color: #be123c; }
.dle-popup-userprofileadmin .ui-button-delete { float: left; }
.dle-popup-userprofileadmin .ui-dialog-buttonset button:nth-child(2) { background-color: #4b5563; color: #fff; }
.dle-alert, .dle-confirm, .dle-promt { padding: 20px 1em !important; }
.ui-autocomplete { position: absolute; cursor: default; }
.ui-menu { list-style: none; padding: 2px; margin: 0; float: left; background: var(--card, #151922); border: 1px solid rgb(255 255 255 / .1); color: #d1d5db; border-radius: .5rem; }
.ui-menu .ui-menu { margin-top: -3px; }
.ui-menu .ui-menu-item { margin: 0; padding: .2em .4em; cursor: pointer; width: 100%; }
.ui-menu .ui-menu-item:hover, .ui-menu .ui-state-active { background: rgb(255 255 255 / .08); color: #fff; }

/* TinyMCE */
.tox .tox-dialog__footer .tox-button--secondary { background-color: #4b5563 !important; border-color: #4b5563 !important; color: #fff !important; }
.tox .tox-button { background-color: var(--accent, #10b981) !important; border-color: var(--accent, #10b981) !important; color: #000 !important; }
.tox .tox-dialog__header { color: #fff !important; background-color: var(--elev, #1e2430) !important; border-bottom: 0 !important; }
.wseditor { border-top: 5px solid var(--accent, #10b981); border-top-left-radius: 2px; border-top-right-radius: 2px; }
.wseditor .tox-tinymce { border-top: none; }
#dlefastreplycomments .wseditor { margin-bottom: 10px; }
.dlecomments-editor .tox .tox-toolbar__primary, .dlefastedit-editor .tox .tox-toolbar__primary { border-top: 0; box-shadow: none; }
.dlepopupnewsedit .wseditor { border-top: none; }
.dlepopupnewsedit .tox .tox-toolbar-overlord { background-color: #f7f7f7; }
.mobilewseditor .tox:not(.tox-tinymce-inline) .tox-editor-header { border-bottom: none; }
textarea.ajaxwysiwygeditor, textarea.wysiwygeditor, .dleaddcomments-editor.wseditor textarea { visibility: hidden; }
textarea.ajaxwysiwygeditor, .dleaddcomments-editor.wseditor textarea { height: 260px; }
.mce-toc { border: 1px solid rgb(255 255 255 / .1); margin: 0 0 .7rem 0; }
.mce-toc h2 { margin: 4px; }
.mce-toc ul { padding-left: 20px; list-style: none; margin-top: 0; margin-bottom: 0; margin-block-start: 1em; margin-block-end: 1em; }
.mce-toc ul ul { padding-left: 20px; margin-block-start: 0; margin-block-end: 0; }
.mce-toc li { list-style-type: none; }
.mce-accordion summary { cursor: pointer; }

/* BB-редактор, быстрое редактирование */
.bb-editor textarea { box-sizing: border-box; padding: 7px; border: 1px solid rgb(255 255 255 / .1); width: 100%; margin-top: -1px; outline: none; background: var(--bg, #0b0e14); color: #f3f4f6; transition: border-color ease-in-out .15s; }
.bb-editor textarea:focus { border-color: rgb(16 185 129 / .5) !important; }
.quick-edit-text { padding: .4em; width: 350px; max-width: 100%; }
.quick-edit-textarea { height: 250px; padding: 2px; border: 1px solid rgb(255 255 255 / .1); width: 100%; max-width: 100%; background: var(--bg, #0b0e14); color: #f3f4f6; box-sizing: border-box; }
#dlefastreplycomments { padding: 0 4% 10px 4%; }
#dle-comments-list > .comments-tree-list > li .comments-tree-list > li #dlefastreplycomments { padding: 0 0 10px 0; }

/* смайлы */
span.emoji { margin-left: .313rem; margin-right: .313rem; }
.emoji { border: none; vertical-align: bottom; }
.native-emoji { font-size: 1.2em; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'NotoColorEmoji', 'Segoe UI Symbol', 'Android Emoji', 'EmojiSymbols'; line-height: 1; }
.emoji_box { width: 100%; max-width: 390px; background: var(--card, #151922); }
.emoji_category { padding: 7px; clear: both; }
.emoji_list { margin: 5px 0; width: 100%; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'NotoColorEmoji', 'Segoe UI Symbol', 'Android Emoji', 'EmojiSymbols'; font-size: 2em; }
.emoji_symbol { float: left; margin-bottom: 10px; width: 12.5%; text-align: center; }
.emoji_symbol a, .emoji_symbol a:hover { cursor: pointer; text-decoration: none; }

/* выделение текста */
#marker-bar, #txtselect_marker { display: block; visibility: hidden; position: absolute; z-index: 1200; opacity: 0; transition: opacity .4s, visibility .1s linear .4s; }
#txtselect_marker { cursor: pointer; background: url(../dleimages/marker.png) no-repeat 0 0; }
#txtselect_marker:hover { background-position: 0 -32px; }
#marker-bar { border: 1px solid rgb(255 255 255 / .15); border-radius: 15px; background: var(--card, #151922); color: #d1d5db; padding: 5px 10px; cursor: default; box-shadow: 0 0 8px rgba(0,0,0,.6); }
#marker-bar.show { transition: opacity .4s, visibility 0s; opacity: 1; visibility: visible; }
#txtselect_marker.show { visibility: visible; width: 32px; height: 32px; transition: opacity .4s, visibility 0s; opacity: 1; }
#marker-bar .masha-social, #marker-bar .masha-marker { cursor: pointer; display: block; margin: 0 5px; float: left; }
#marker-bar .masha-marker { line-height: 1em; color: #9ca3af; border-bottom: 1px dotted #9ca3af; margin-right: 10px; }
#marker-bar .masha-marker:hover { color: #fb7185; border-color: #fb7185; }
.user_selection, .user_selection_true { background: rgb(251 191 36 / .2); padding: 2px 0; }
.user_selection a.txtsel_close, .user_selection_true a.txtsel_close { display: none; }
.user_selection .closewrap, .user_selection_true .closewrap { position: relative; }
.user_selection.hover a.txtsel_close, .user_selection_true.hover a.txtsel_close { display: inline-block; position: absolute; top: -7px; left: -5px; width: 33px; height: 33px; background: url(../dleimages/closemarker.png) 0 0 no-repeat; }
.user_selection.hover a.txtsel_close:hover, .user_selection_true.hover a.txtsel_close:hover { background-position: 0 -33px; }

/* «поделиться» */
#share-popup { border: 1px solid rgb(255 255 255 / .1); border-radius: 12px; background: var(--card, #151922); color: #d1d5db; position: absolute; z-index: 100; width: 414px; max-width: calc(100vw - 16px); display: none; padding: 20px 0; opacity: 0; box-shadow: 0 8px 40px -10px rgba(0,0,0,.6); background-clip: padding-box; transition: opacity .4s, visibility .1s linear .4s; }
#share-popup.show { display: block; opacity: 1; transition: opacity .4s, visibility 0s; }
#share-popup .social { padding: 0 0 10px 17px; }
#share-popup .social p { padding-bottom: 10px; margin: 0; font-weight: bold; }
#share-popup .social ul { list-style: none; margin: 0; padding: 0; }
#share-popup .social ul li { display: inline; margin-right: 20px; padding-top: 2px; }
#share-popup .social ul a { text-decoration: none; font-size: 12px; display: inline-block; color: #9ca3af; }
#share-popup .social ul a:hover { text-decoration: underline; }
#share-popup .social a span { cursor: pointer; width: 20px; height: 20px; background: url(../dleimages/social-icons.png) 20px 20px no-repeat; display: inline-block; vertical-align: middle; margin: -3px 5px 0 0; }
#share-popup .social .tw span { background-position: 0 -20px; } #share-popup .social .tw:hover span { background-position: 0 0; }
#share-popup .social .fb span { background-position: -20px -20px; } #share-popup .social .fb:hover span { background-position: -20px 0; }
#share-popup .social .vk span { background-position: -40px -20px; } #share-popup .social .vk:hover span { background-position: -40px 0; }
#share-popup .social .gp span { background-position: -60px -20px; } #share-popup .social .gp:hover span { background-position: -60px 0; }
#share-popup .link { clear: both; border-top: 1px solid rgb(255 255 255 / .1); padding: 10px 5px 0 10px; line-height: 1.2; overflow: hidden; margin: 0 7px; }
#share-popup .link p { font-weight: bold; padding: 0 0 3px 0; margin: 0; }
#share-popup .link span { color: #6b7280; font-size: 10px; display: block; padding-top: 3px; }
#share-popup .link a { display: block; }

/* ---------- поля форм ----------
   :where() даёт нулевую специфичность, а :not([class*="bg-"]) исключает поля, оформленные Tailwind-классами
   (поиск в шапке и т.п.). Так Tailwind (w-full, pl-10, bg-bgCard...) всегда выигрывает, ширина не раздувается. */
:where(select, textarea, input[type="text"], input[type="password"], input[type="file"], input[type="datetime"], input[type="datetime-local"],
input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"],
input[type="url"], input[type="search"], input[type="tel"], input[type="color"]):not([class*="bg-"]) {
	display: inline-block; width: 302px; max-width: 100%; padding: 6px 10px; vertical-align: middle; border-radius: 8px;
	background: var(--bg, #0b0e14); color: #f3f4f6; border: 1px solid rgb(255 255 255 / .1); transition: border-color .2s linear; box-sizing: border-box;
}
:where(select):not([class*="bg-"]) {
	width: auto; padding: .35rem 2.2rem .35rem .65rem;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
	background-repeat: no-repeat; background-position: right .75rem center; background-size: 16px 12px; appearance: none;
}
:where(select[multiple]):not([class*="bg-"]) { padding-right: .75rem; background-image: none; }
:where(select option) { background: var(--card, #151922); color: #f3f4f6; }
textarea { margin: 0; overflow: auto; vertical-align: top; resize: vertical; }
:where(textarea, select, input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="number"], input[type="search"], input[type="tel"]):not([class*="bg-"]):focus { border-color: rgb(16 185 129 / .5); outline: none; }
:where(input[type="file"], input[type="image"], input[type="submit"], input[type="reset"], input[type="button"]) { width: auto; }
:where(input[type="file"], input[type="image"]):not([class*="bg-"]) { padding: 0; border-width: 0; background-color: transparent; }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
select[multiple], select[size], textarea { height: auto; }
input::placeholder, textarea::placeholder { opacity: .6; }
input:focus { outline: none; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent, #10b981); }
.wide, .bb-editor textarea, .ui-dialog textarea, select#category, .timezoneselect, .twofactorselect, .quick-edit-text { width: 100% !important; }
select#category { max-width: 24.31em !important; height: 9.72em !important; }
#searchuser, #searchinput { width: 100% !important; margin-bottom: 10px; }

/* капча */
.form_submit .c-captcha { float: right; }
.c-captcha, .dle-captcha { position: relative; }
.c-captcha:after, .dle-captcha:after { clear: both; display: block; content: ""; }
.c-captcha > a, .dle-captcha > a { float: left; margin-right: 5px; }
.c-captcha img, .dle-captcha img { position: relative; display: block; width: 9.03em; height: 3.194em; z-index: 1; transition: all ease .2s; }
.c-captcha > input, .dle-captcha > input { float: left; width: 9.03em; height: 3.194em; }
.smart-captcha { display: inline-block; max-width: 100%; }

/* кнопки DLE */
.btn, .bbcodes, .btn-border { border: 0 none; display: inline-block; vertical-align: middle; cursor: pointer; border-radius: .55em; outline: none; background-color: var(--accent, #10b981); color: #000; font-weight: 600; padding: .486em 1.528em; text-decoration: none !important; box-shadow: 0 1px 2px 0 rgba(0,0,0,.3); box-sizing: border-box; transition: all ease .1s; }
.btn > .icon { fill: #000; }
.btn-white { background-color: #fff; color: #065f46; }
.btn-white > .icon { fill: #065f46; }
.btn-white:hover { background-color: var(--accent, #10b981); color: #000; }
.btn-white:hover > .icon { fill: #000; }
.btn:hover, .bbcodes:hover { background-color: var(--accent-hover, #059669); }
.bbcodes.cancelchanges { background-color: #4b5563; color: #fff; }
.bbcodes.cancelchanges:hover { background-color: #6b7280; }
.btn-big { padding: .833em 1.875em; border-radius: .694em; }
.btn-border { color: var(--accent, #10b981); border: 2px solid var(--accent, #10b981); line-height: 1.528em; padding: .555em 1.389em; background-color: transparent !important; overflow: hidden; box-shadow: none; }
.btn-border:hover { color: #000; background-color: var(--accent, #10b981) !important; }
.btn-border.btn-big { padding: .694em 1.389em; }
.btn.disabled, .btn[disabled], fieldset[disabled] .btn { cursor: not-allowed; pointer-events: none; opacity: .65; box-shadow: none; }
.self_delete_link { border: 0 none; display: inline-block; vertical-align: middle; cursor: pointer; padding: .833em 1.875em; border-radius: .694em; margin-left: 1.04em; outline: none; background-color: #e11d48; color: #fff; text-decoration: none !important; box-shadow: 0 1px 2px 0 rgba(0,0,0,.3); box-sizing: border-box; transition: all ease .1s; }

/* дополнительные поля (формы) */
table.xfields { width: 100%; }
.xfields textarea, .xprofile textarea { width: 100%; height: 12.92em; margin-top: .555em; }
.xfields input[type="text"] { width: 100%; }
.xfieldsdescr { width: 13.89em; }
.xfields .bb-pane + textarea { margin-top: 0; }
.xfieldsnote { color: #9ca3af; font-size: .9em; }
.xfields_table td { vertical-align: top; }
.xfieldsrow { padding-top: 10px; clear: both; }
.xfieldscolleft { float: left; width: 30%; padding-top: 6px; }
.xfieldscolright { float: left; width: 70%; }
.file-box { width: 95%; max-width: 437px; border: 1px solid rgb(255 255 255 / .15); border-radius: 3px; background-color: var(--card, #151922); padding: 10px; margin-top: 10px; }
.user_fields .xfieldscolright { float: none; width: auto; }
.user_fields .form-check-input { margin: .417em .694em 0 0; }
input[type="text"].comments_author_field { width: 100%; margin-bottom: .694em; }
.xfieldimagegallery, .comments-image-gallery { margin: 0; padding: 0; list-style: none; clear: both; }
.xfieldimagegallery li, .comments-image-gallery li { list-style: none; margin: 0; padding: 0; }
.comments-image-gallery li img { float: left; margin-right: 5px; border: 5px solid var(--card, #151922); width: 100px; height: 100px; transition: box-shadow .5s ease; }
.comments-image-gallery li img:hover { box-shadow: 0 0 7px rgba(0,0,0,.6); }

/* загрузчик файлов, прогресс */
.qq-uploader { position: relative; width: 100%; }
.qq-upload-button { display: inline-block; margin: 5px 0; cursor: pointer; }
.qq-upload-drop-area { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; max-width: 437px; background: rgb(244 63 94 / .35); text-align: center; }
.qq-upload-drop-area span { display: block; position: absolute; top: 50%; width: 100%; margin-top: -8px; font-size: 16px; }
.qq-upload-drop-area-active { background: rgb(244 63 94 / .55); }
.qq-upload-file { margin-left: .555em; margin-right: .555em; }
.sortable-ghost { opacity: .4; }
.progress { overflow: hidden; margin: 10px 0; height: 10px; border-radius: 8px; background: rgb(255 255 255 / .1); }
.progress .progress-bar { float: left; width: 0; font-size: 12px; line-height: 20px; color: #fff; text-align: center; background-color: var(--accent, #10b981); transition: width .6s ease; border-radius: 8px; height: 8px; }
.progress-bar span { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.progress-blue { background-image: linear-gradient(to bottom, #34d399 0%, #10b981 100%); background-repeat: repeat-x; border: 1px solid #059669; }

/* прочее */
.image-bordered { border: 1px solid rgb(255 255 255 / .15); }
.image-shadows { box-shadow: 0 4px 8px -2px rgb(0 0 0 / 50%), 0 0 0 1px rgb(255 255 255 / 8%); }
.image-padded { padding: .5rem; }
.comments-user-profile { font-weight: bold; cursor: pointer; color: var(--accent, #10b981); }
.quote_link { float: right; }
.quote_link svg, .clipboard-copy-link svg { color: #9ca3af; vertical-align: middle; }
.clipboard-copy-link svg { margin-top: -3px; }
.mathml-container { font-family: math; }
div.mathml-block { font-size: 1.1em; display: flex; align-items: center; justify-content: center; padding: .139em .35em; overflow-x: auto; }
div.mathml-block .katex { font-size: 1.1em; }
span.mathml-inline { display: inline-block; vertical-align: middle; margin: 0 .12em; }
.dleshowhidden { color: #93c5fd; background-color: rgb(59 130 246 / .12); border: 1px solid rgb(59 130 246 / .4); box-shadow: 0 5px 12px rgba(0,0,0,.3); padding: .83em; }
.social-list-item, .ignore-list-item, #pmlist_doaction { margin-right: .5em; }

/* DLE Push-уведомления */
.DLEPush { z-index: 2001; position: fixed; right: 1.389em; top: 1.389em; max-width: calc(100vw - 2.778em); }
@keyframes DLEPush-show { 0% { transform: translateY(100%); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
.DLEPush-notification.wrapper { animation-name: DLEPush-show; animation-duration: 1s; position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; color: #e5e7eb; margin-bottom: .694em; width: 100%; max-width: 27.78em; box-shadow: 0 10px 15px rgb(0 0 0 / 40%); background-color: var(--card, #151922); border: 1px solid rgb(255 255 255 / .08); border-radius: .694em; }
.DLEPush-notification .DLEPush-icon { grid-column: 1; grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; color: #fff; width: 3.125em; height: 100%; border-top-left-radius: .694em; border-bottom-left-radius: .694em; text-align: center; }
.DLEPush-notification .DLEPush-icon svg { width: 1.78em; height: 1.78em; }
.DLEPush-notification .DLEPush-header { font-weight: 500; grid-column: 2; grid-row: 1; font-size: var(--font-size-lg, 1.1rem); margin-left: 1em; margin-top: .5em; color: #fff; }
.DLEPush-notification .DLEPush-header:empty { margin-top: 0; }
.DLEPush-notification .DLEPush-message { grid-column: 2; grid-row: 2; font-size: var(--font-size-sm, .875rem); margin: 1.163em; overflow-wrap: anywhere; }
.DLEPush-notification .DLEPush-message li, .DLEPush-notification .DLEPush-message ul { list-style-type: none; padding-left: 0; }
.DLEPush-notification .DLEPush-close { position: absolute; top: 8px; right: 10px; font-weight: 300; background: none; border: 0; font-size: calc(var(--font-size-lg, 1.1rem) * 1.15); cursor: pointer; line-height: 1; padding: 0; color: inherit; outline: 0; opacity: .75; }
.DLEPush-notification .DLEPush-close:hover { opacity: 1; }
.DLEPush-notification.wrapper.push-success { background-color: #0f2a24; }
.DLEPush-notification.wrapper.push-success .DLEPush-icon { background-color: #059669; }
.DLEPush-notification.wrapper.push-warning { background-color: #2c2210; }
.DLEPush-notification.wrapper.push-warning .DLEPush-icon { background-color: #d97706; }
.DLEPush-notification.wrapper.push-error { background-color: #2c1417; }
.DLEPush-notification.wrapper.push-error .DLEPush-icon { background-color: #e11d48; }

/* мобильная версия */
@media only screen and (min-width: 601px) { .DLEPush-notification.wrapper { min-width: 27.78em; } }
@media only screen and (max-width: 600px) {
	.xfieldscolleft, .xfieldscolright { float: none; width: 100%; }
	.DLEPush { left: .75em; right: .75em; top: .75em; max-width: none; }
	.DLEPush-notification.wrapper { min-width: 0; max-width: none; }
	.ui-dialog { width: calc(100vw - 16px) !important; left: 8px !important; }
	.emoji_symbol { width: 16.66%; }
}
