/* Sound — engine.css
   Служебные стили CMS: уведомления, окна, формы, рейтинг, капча, ЛС, спойлеры.
   Файл рассчитан на переменные из css/style.css:
   --bg, --fg, --mut, --box, --box2, --ln, --acc, --acc2, --ok, --bad, --sh, --r
*/

/* base helpers */
:root {
  --e-bg: var(--bg, #161a1d);
  --e-fg: var(--fg, #e7e2d5);
  --e-mut: var(--mut, #aeb7ba);
  --e-box: var(--box, #202428);
  --e-box2: var(--box2, #262b30);
  --e-ln: var(--ln, #343b41);
  --e-acc: var(--acc, #83c6d4);
  --e-acc2: var(--acc2, #172d34);
  --e-ok: var(--ok, #8ed7ba);
  --e-bad: var(--bad, #ff9a9a);
  --e-r: var(--r, 18px);
  --e-sh: var(--sh, 0 10px 30px rgba(0,0,0,.14));
}

.hide,
.dlehidden {
  display: none;
}

.clr,
.clear,
.clearfix {
  clear: both;
}

.clearfix::after,
.ui-helper-clearfix::after,
.c-capcha::after,
.dle-captcha::after {
  content: "";
  display: block;
  clear: both;
}

/* loading overlay */
#loading-layer {
  display: block !important;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  overflow: hidden;
  text-indent: -9999px;
  white-space: nowrap;
  background: color-mix(in srgb, var(--e-bg) 88%, transparent);
  backdrop-filter: blur(4px);
}

#loading-layer::before,
#loading-layer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

#loading-layer::before {
  width: 82px;
  height: 82px;
  border: 3px solid color-mix(in srgb, var(--e-acc) 28%, transparent);
  border-top-color: var(--e-acc);
  animation: dle-spin .8s linear infinite;
}

#loading-layer::after {
  width: 16px;
  height: 16px;
  background: var(--e-acc);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--e-acc) 12%, transparent);
}

@keyframes dle-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* quotes, spoilers, code */
.title_quote,
.title_spoiler,
.text_spoiler,
.scriptcode,
.hide,
.dleshowhidden {
  border: 1px solid var(--e-ln);
  border-radius: 14px;
  background: var(--e-box2);
  color: var(--e-fg);
  padding: 14px 16px;
  margin: 12px 0;
}

.title_quote,
.title_spoiler {
  font-weight: 800;
  margin-bottom: 0;
}

.text_spoiler {
  margin-top: -1px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.title_spoiler {
  cursor: pointer;
  user-select: none;
}

.title_spoiler img,
.title_spoiler svg {
  vertical-align: middle;
  margin-right: 6px;
}

.quote,
blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--e-acc);
  border-radius: 0 14px 14px 0;
  background: var(--e-box2);
  color: var(--e-fg);
  font-style: italic;
}

.scriptcode {
  overflow: auto;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
  font-size: .94em;
  color: var(--e-acc);
}

.hide,
.dleshowhidden {
  color: var(--e-mut);
}

.hide a,
.dleshowhidden a {
  color: var(--e-acc);
  font-weight: 700;
}

/* calendar */
.calendar {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  text-align: center;
}

.calendar tr td,
.calendar tr th {
  padding: 7px 5px;
  border-radius: 10px;
}

.calendar tr th {
  background: var(--e-box2);
  color: var(--e-fg);
  font-weight: 800;
}

.calendar tr th.monthselect {
  background: transparent;
  color: var(--e-fg);
  padding-bottom: 12px;
}

.calendar tr td {
  background: color-mix(in srgb, var(--e-box2) 70%, transparent);
  color: var(--e-mut);
}

.calendar tr td.weekday,
.calendar tr th.weekday {
  color: var(--e-acc);
}

.calendar tr td a {
  color: var(--e-acc);
  font-weight: 800;
}

/* polls */
.voteprogress,
.pollprogress,
.pollprogresspoll {
  overflow: hidden;
  height: 8px;
  margin: 7px 0 12px;
  border-radius: 999px;
  background: var(--e-box2);
  border: 1px solid var(--e-ln);
}

.voteprogress span,
.pollprogress span,
.pollprogresspoll span {
  display: block;
  height: 100%;
  min-width: 2px;
  overflow: hidden;
  text-indent: -9999px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--e-acc), color-mix(in srgb, var(--e-acc) 65%, #fff));
}

/* rating styles removed to prevent conflicts with custom theme rating */

.ratingtypeplusminus,
.ratingplus,
.ratingminus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--e-ln);
  border-radius: 11px;
  background: var(--e-box2);
  color: var(--e-fg);
  font-weight: 800;
}

.ratingplus {
  color: var(--e-ok);
}

.ratingminus {
  color: var(--e-bad);
}

/* tables, pm, users top */
table.pm,
table.userstop,
table.xfields,
.xfields_table {
  width: 100%;
  border-collapse: collapse;
}

.userstop td,
.userstop th,
.pm td.pm_list,
.pm th.pm_head,
.pm th,
.pm td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--e-ln);
  color: var(--e-fg);
  text-align: left;
}

.userstop thead td,
.pm td.pm_head,
.pm th.pm_head {
  color: var(--e-fg);
  font-weight: 800;
  background: var(--e-box2);
}

.pm th.pm_checkbox {
  text-align: center;
}

.pm_list.pm_subj,
.pm_list.pm_icon,
.pm_last_user {
  cursor: pointer;
}

.pm_list.pm_icon svg {
  width: 1.55em;
  height: 1.55em;
  vertical-align: middle;
}

.pm_list.pm_icon.pm-unread-image { color: var(--e-acc); }
.pm_list.pm_icon.pm-reply-image { color: var(--e-ok); }
.pm_list.pm_icon.pm-read-image { color: var(--e-mut); }

.pm_list .pm_last_message,
.pm_list .pm_last_date,
.pm_list .pm_with_user {
  color: var(--e-mut);
  font-size: .9em;
}

.pm tbody > tr:hover {
  background: color-mix(in srgb, var(--e-acc) 8%, transparent);
}

.pm_navigation {
  margin-top: 15px;
}

.pm_navigation .navigation,
.navigation {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--e-fg);
}

.pm_navigation .navigation a,
.pm_navigation .navigation span,
.navigation a,
.navigation span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--e-ln);
  border-radius: 12px;
  background: var(--e-box);
  color: var(--e-fg);
  text-decoration: none;
}

.pm_navigation .navigation span,
.navigation span {
  background: var(--e-acc);
  border-color: var(--e-acc);
  color: var(--e-bg);
  font-weight: 800;
}

.pm_navigation .navigation a:hover,
.navigation a:hover {
  border-color: var(--e-acc);
  color: var(--e-acc);
  text-decoration: none;
}

/* dropdowns and fast search */
#dropmenudiv,
#dleprofilepopup {
  min-width: 180px;
  width: auto !important;
  padding: 8px;
  border: 1px solid var(--e-ln);
  border-radius: 14px;
  background: var(--e-box);
  color: var(--e-fg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  background-clip: padding-box;
  z-index: 9999 !important;
}

#dropmenudiv a,
#dleprofilepopup a {
  display: block;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  color: var(--e-fg);
  white-space: nowrap;
  text-decoration: none !important;
}

#dropmenudiv a:hover,
#dleprofilepopup a:hover {
  background: var(--e-acc2);
  color: var(--e-acc);
}

#searchsuggestions {
  z-index: 9998 !important;
  width: min(440px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid var(--e-ln);
  border-radius: 16px;
  background: var(--e-box);
  color: var(--e-fg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  background-clip: padding-box;
  box-sizing: border-box;
  font-size: .94em;
}

#searchsuggestions a,
#searchsuggestions span.notfound {
  display: block;
  padding: 13px 16px;
  border-bottom: 1px solid var(--e-ln);
  color: var(--e-fg);
  text-decoration: none;
}

#searchsuggestions a:hover {
  background: var(--e-acc2);
  color: var(--e-acc);
}

#searchsuggestions a span {
  display: block;
  cursor: pointer;
}

#searchsuggestions span.searchheading {
  display: block;
  margin-bottom: 2px;
  color: var(--e-fg);
  font-weight: 800;
}

#searchsuggestions span.seperator {
  display: block;
}

#searchsuggestions span.seperator a {
  padding: 10px 14px;
  text-align: center;
  border: 0;
  background: var(--e-box2);
  color: var(--e-mut);
}

#searchsuggestions .break {
  display: none;
}

/* jQuery UI dialog */
.ui-front {
  z-index: 10000;
}

.ui-widget-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990 !important;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(2px);
}

.ui-helper-hidden-accessible {
  display: none;
}

.ui-icon,
.ui-button-icon-only {
  overflow: hidden;
  text-indent: -9999px;
}

.ui-dialog {
  position: absolute;
  width: min(460px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--e-ln);
  border-radius: 18px;
  outline: none;
  background: var(--e-box);
  color: var(--e-fg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
  text-align: left;
  z-index: 10001 !important;
}

.ui-dialog-titlebar {
  position: relative;
  min-height: 56px;
  padding: 16px 58px 16px 18px;
  border-bottom: 1px solid var(--e-ln);
  background: var(--e-box2);
}

.ui-dialog-title {
  float: none;
  color: var(--e-fg);
  font-size: 1rem;
  font-weight: 900;
}

.ui-dialog-titlebar-close {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 34px !important;
  height: 34px !important;
  margin-top: -17px !important;
  padding: 0 !important;
  border: 1px solid var(--e-ln) !important;
  border-radius: 11px !important;
  background: var(--e-box) !important;
  box-shadow: none !important;
  cursor: pointer;
}

.ui-dialog-titlebar-close::before,
.ui-dialog-titlebar-close::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 16px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--e-fg);
}

.ui-dialog-titlebar-close::before {
  transform: rotate(45deg);
}

.ui-dialog-titlebar-close::after {
  transform: rotate(-45deg);
}

.ui-dialog-titlebar-close .ui-icon,
.ui-dialog-titlebar-close span.ui-button-text {
  display: none;
}

.ui-dialog-titlebar-close:hover {
  border-color: var(--e-acc) !important;
}

.ui-dialog-content {
  position: relative;
  overflow: auto;
  padding: 18px;
  color: var(--e-fg);
}

.loginbox.ui-dialog,
.loginbox .ui-dialog-content {
  overflow: visible !important;
}

.ui-dialog-content h2 {
  display: inline;
  font-size: 1em;
  font-weight: 800;
}

.ui-dialog .ui-dialog-buttonpane {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--e-ln);
  text-align: right;
}

.ui-dialog .ui-dialog-buttonset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.ui-draggable .ui-dialog-titlebar {
  cursor: move;
}

.ui-state-error {
  border: 1px solid color-mix(in srgb, var(--e-bad) 70%, transparent) !important;
  background: color-mix(in srgb, var(--e-bad) 10%, var(--e-box)) !important;
  color: var(--e-bad) !important;
}

.ui-button,
.bbcodes,
.btn,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  outline: none;
  background: var(--e-acc);
  color: var(--e-bg) !important;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  text-transform: none;
  cursor: pointer;
  box-shadow: none;
  box-sizing: border-box;
}

.btn.b2,
.ui-dialog-buttonset button:first-child,
.bbcodes.cancelchanges {
  border-color: var(--e-ln);
  background: var(--e-box2);
  color: var(--e-fg) !important;
}

.ui-button:hover,
.bbcodes:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover {
  filter: brightness(1.06);
  text-decoration: none !important;
}

.ui-button-delete,
.self_delete_link {
  background: var(--e-bad) !important;
  color: var(--e-bg) !important;
}

.ui-autocomplete {
  position: absolute;
  cursor: default;
  z-index: 10005 !important;
}

.ui-menu {
  float: left;
  list-style: none;
  min-width: 180px;
  padding: 8px;
  margin: 0;
  border: 1px solid var(--e-ln);
  border-radius: 14px;
  background: var(--e-box);
  color: var(--e-fg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

.ui-menu .ui-menu {
  margin-top: -3px;
}

.ui-menu .ui-menu-item {
  float: left;
  clear: left;
  width: 100%;
  margin: 0;
  padding: 0;
}

.ui-menu .ui-menu-item a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--e-fg);
  line-height: 1.45;
  text-decoration: none;
}

.ui-menu .ui-menu-item a.ui-state-hover,
.ui-menu .ui-menu-item a.ui-state-active,
.ui-menu .ui-menu-item a:hover {
  background: var(--e-acc2);
  color: var(--e-acc);
  font-weight: 700;
}

/* forms */
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"] {
  display: inline-block;
  width: min(100%, 360px);
  padding: 10px 12px;
  border: 1px solid var(--e-ln);
  border-radius: 12px;
  background: var(--e-box);
  color: var(--e-fg);
  vertical-align: middle;
  box-shadow: none;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
  overflow: auto;
  vertical-align: top;
}

textarea:focus,
select:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="file"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus,
.uneditable-input:focus {
  border-color: var(--e-acc);
  background: var(--e-box);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--e-acc) 18%, transparent);
}

input[type="file"],
input[type="image"] {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

input[type="search"] {
  box-sizing: border-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

select {
  width: auto;
  padding-right: 38px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--e-mut) 50%),
    linear-gradient(135deg, var(--e-mut) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select[multiple],
select[size] {
  padding-right: 12px;
  background-image: none;
}

.wide,
.bb-editor textarea,
.ui-dialog textarea,
.timezoneselect,
.twofactorselect,
.quick-edit-text,
#searchuser,
#searchinput {
  width: 100% !important;
}

#searchuser,
#searchinput {
  margin-bottom: 10px;
}

select#category {
  width: 100% !important;
  max-width: 420px !important;
  height: 150px !important;
}

table.xfields input,
table.xfields textarea,
.xprofile textarea,
.xfields textarea {
  width: 100%;
}

table.xfields tr > td:first-child {
  padding-right: 10px;
  color: var(--e-mut);
}

.xfieldsnote {
  color: var(--e-mut);
  font-size: .9em;
}

.xfields_table td {
  vertical-align: top;
}

.xfieldsrow {
  clear: both;
  padding-top: 7px;
}

.xfieldscolleft {
  float: left;
  width: 30%;
  color: var(--e-mut);
}

.xfieldscolright {
  float: left;
  width: 70%;
}

/* captcha */
.form_submit .c-capcha {
  float: right;
}

.c-capcha,
.dle-captcha {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.c-capcha > a,
.dle-captcha > a {
  float: none;
  margin: 0;
}

.c-capcha img,
.dle-captcha img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: 160px;
  height: auto;
  min-height: 36px;
  padding: 4px;
  border: 1px solid var(--e-ln);
  border-radius: 12px;
  background: var(--e-box2);
  transition: transform .15s ease, box-shadow .15s ease;
}

.c-capcha:hover img,
.dle-captcha:hover img {
  transform: scale(1.04);
  box-shadow: var(--e-sh);
}

.c-capcha > input,
.dle-captcha > input {
  float: none;
  width: 160px;
  text-align: center;
}

.smart-captcha {
  display: inline-block;
  max-width: 100%;
}

/* BB editor / quick edit */
.bb-editor textarea {
  margin-top: 0;
  border-radius: 0 0 12px 12px;
}

.quick-edit-text {
  padding: 8px;
}

.quick-edit-textarea {
  width: 100%;
  height: 240px;
  padding: 10px;
  border: 1px solid var(--e-ln);
  border-radius: 12px;
  background: var(--e-box);
  color: var(--e-fg);
}

.wseditor {
  overflow: hidden;
  border: 1px solid var(--e-ln);
  border-top: 4px solid var(--e-acc);
  border-radius: 14px;
  background: var(--e-box);
}

.wseditor .tox-tinymce {
  border: 0;
}

.mobilewseditor .tox:not(.tox-tinymce-inline) .tox-editor-header {
  border-bottom: none;
}

#dlefastreplycomments .wseditor {
  margin-bottom: 10px;
}

.dlecomments-editor .tox .tox-toolbar__primary,
.dlefastedit-editor .tox .tox-toolbar__primary {
  border-top: 0;
  box-shadow: none;
}

textarea.ajaxwysiwygeditor,
textarea.wysiwygeditor,
.dleaddcomments-editor.wseditor textarea {
  visibility: hidden;
}

textarea.ajaxwysiwygeditor,
.dleaddcomments-editor.wseditor textarea {
  height: 260px;
}

.tox .tox-dialog__header {
  background: var(--e-box2) !important;
  border-bottom: 1px solid var(--e-ln) !important;
}

.tox .tox-dialog__footer .tox-button,
.tox .tox-dialog__footer .tox-button:hover:not(:disabled),
.tox .tox-dialog__footer .tox-button:focus:not(:disabled) {
  background: var(--e-acc) !important;
  color: var(--e-bg) !important;
}

.tox .tox-dialog__footer .tox-button--secondary,
.tox .tox-dialog__footer .tox-button--secondary:hover:not(:disabled),
.tox .tox-dialog__footer .tox-button--secondary:focus:not(:disabled) {
  background: var(--e-box2) !important;
  color: var(--e-fg) !important;
}

/* upload fields */
.file-box {
  width: 100%;
  max-width: 460px;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid var(--e-ln);
  border-radius: 14px;
  background: var(--e-box2);
}

.qq-uploader {
  position: relative;
  width: 100%;
}

.qq-upload-button {
  display: inline-flex;
  margin: 6px 0;
  cursor: pointer;
}

.qq-upload-drop-area {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: 460px;
  border: 1px dashed var(--e-bad);
  border-radius: 14px;
  background: color-mix(in srgb, var(--e-bad) 15%, var(--e-box));
  text-align: center;
}

.qq-upload-drop-area span {
  position: absolute;
  top: 50%;
  display: block;
  width: 100%;
  margin-top: -10px;
  color: var(--e-bad);
  font-weight: 800;
}

.qq-upload-drop-area-active {
  background: color-mix(in srgb, var(--e-bad) 25%, var(--e-box));
}

.qq-upload-file {
  margin-left: 8px;
  margin-right: 8px;
}

.sortable-ghost {
  opacity: .4;
}

.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
  cursor: not-allowed;
  pointer-events: none;
  opacity: .65;
  box-shadow: none;
}

/* progress */
.progress {
  overflow: hidden;
  height: 10px;
  margin: 10px 0;
  border-radius: 999px;
  background: var(--e-box2);
  border: 1px solid var(--e-ln);
  box-shadow: none;
}

.progress .progress-bar {
  float: left;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--e-acc), color-mix(in srgb, var(--e-acc) 65%, #fff));
  color: transparent;
  box-shadow: none;
  transition: width .4s ease;
}

.progress-bar span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.progress-blue {
  border-color: color-mix(in srgb, var(--e-acc) 60%, var(--e-ln));
  background: color-mix(in srgb, var(--e-acc) 12%, var(--e-box2));
}

/* image galleries */
.xfieldimagegallery,
.comments-image-gallery {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.xfieldimagegallery li,
.comments-image-gallery li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.xfieldimagegallery li img,
.comments-image-gallery li img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  float: none;
  margin: 0;
  border: 1px solid var(--e-ln);
  border-radius: 14px;
  background: var(--e-box2);
  transition: box-shadow .2s ease, transform .2s ease;
}

.xfieldimagegallery li img:hover,
.comments-image-gallery li img:hover {
  transform: translateY(-1px);
  box-shadow: var(--e-sh);
}

.image-bordered {
  border: 1px solid var(--e-ln);
}

.image-shadows {
  box-shadow: var(--e-sh);
}

.image-padded {
  padding: .5rem;
}

/* emoji */
.emoji {
  border: none;
  vertical-align: bottom;
}

span.emoji {
  margin-left: .313rem;
  margin-right: .313rem;
}

.emoji_box {
  width: 100%;
  max-width: 420px;
}

.emoji_category {
  clear: both;
  padding: 8px;
  color: var(--e-mut);
}

.emoji_list {
  width: 100%;
  margin: 6px 0;
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji","Segoe UI Symbol",sans-serif;
  font-size: 2em;
}

.emoji_symbol {
  float: left;
  width: 12.5%;
  margin-bottom: 10px;
  text-align: center;
}

.emoji_symbol a,
.emoji_symbol a:hover {
  cursor: pointer;
  text-decoration: none;
}

.native-emoji {
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji","Segoe UI Symbol",sans-serif;
  font-size: 1.2em;
  line-height: 1;
}

/* marker and share popup */
#marker-bar,
#txtselect_marker {
  position: absolute;
  z-index: 1200;
  display: block;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .1s linear .25s;
}

#txtselect_marker {
  width: 35px;
  height: 47px;
  cursor: pointer;
  background: url(../dleimages/marker.png) no-repeat 0 0;
}

#txtselect_marker.show,
#marker-bar.show {
  visibility: visible;
  opacity: 1;
  transition: opacity .25s ease, visibility 0s;
}

#txtselect_marker:hover {
  background-position: 0 -47px;
}

#marker-bar {
  padding: 7px 10px;
  border: 1px solid var(--e-ln);
  border-radius: 999px;
  background: var(--e-box);
  color: var(--e-fg);
  box-shadow: var(--e-sh);
  cursor: default;
}

#marker-bar .masha-social,
#marker-bar .masha-marker {
  float: left;
  display: block;
  margin: 0 5px;
  cursor: pointer;
}

#marker-bar .masha-marker {
  margin-right: 10px;
  border-bottom: 1px dotted var(--e-mut);
  color: var(--e-mut);
  line-height: 1em;
}

#marker-bar .masha-marker:hover {
  border-color: var(--e-acc);
  color: var(--e-acc);
}

.user_selection,
.user_selection_true {
  padding: 2px 0;
  background: color-mix(in srgb, var(--e-acc) 22%, transparent);
}

.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 {
  position: absolute;
  top: -7px;
  left: -5px;
  display: inline-block;
  width: 25px;
  height: 25px;
  background: url(../dleimages/marker.png) 0 -94px no-repeat;
}

#share-popup {
  position: absolute;
  z-index: 1000;
  display: none;
  width: min(414px, calc(100vw - 24px));
  padding: 16px;
  border: 1px solid var(--e-ln);
  border-radius: 16px;
  background: var(--e-box);
  color: var(--e-fg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  opacity: 0;
  transition: opacity .25s ease, visibility .1s linear .25s;
}

#share-popup.show {
  display: block;
  opacity: 1;
  transition: opacity .25s ease, visibility 0s;
}

#share-popup .social {
  padding: 0 0 10px;
}

#share-popup .social p,
#share-popup .link p {
  margin: 0 0 8px;
  font-weight: 800;
}

#share-popup .social ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#share-popup .social ul li {
  display: inline;
  margin: 0;
  padding: 0;
}

#share-popup .social ul a {
  display: inline-flex;
  align-items: center;
  color: var(--e-mut);
  font-size: 13px;
  text-decoration: none;
}

#share-popup .social ul a:hover {
  color: var(--e-acc);
  text-decoration: none;
}

#share-popup .social a span {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: -3px 5px 0 0;
  vertical-align: middle;
  background: url(../dleimages/social-icons.png) 20px 20px no-repeat;
  cursor: pointer;
}

#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;
  padding-top: 10px;
  border-top: 1px solid var(--e-ln);
  line-height: 1.25;
  overflow: hidden;
}

#share-popup .link span {
  display: block;
  padding-top: 3px;
  color: var(--e-mut);
  font-size: 11px;
}

#share-popup .link a {
  display: block;
  color: var(--e-acc);
}

/* alerts, prompts, confirmations */
.dle-alert,
.dle-confirm,
.dle-promt {
  padding: 16px !important;
  color: var(--e-fg);
}

.dle-alert a,
.dle-confirm a,
.dle-promt a {
  color: var(--e-acc);
}

/* DLE push notifications */
.DLEPush {
  position: fixed !important;
  right: clamp(12px, 2vw, 22px) !important;
  top: clamp(12px, 2vw, 22px) !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 100000 !important;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  pointer-events: none;
}

@keyframes DLEPush-show {
  0% {
    transform: translateX(24px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.DLEPush-notification.wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  max-width: 420px;
  min-height: 66px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--e-ln);
  border-radius: 16px;
  background: var(--e-box);
  color: var(--e-fg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  animation: DLEPush-show .25s ease both;
  pointer-events: auto;
}

.DLEPush-notification .DLEPush-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 100%;
  min-height: 66px;
  color: var(--e-bg);
  background: var(--e-acc);
  text-align: center;
}

.DLEPush-notification .DLEPush-icon svg {
  width: 26px;
  height: 26px;
}

.DLEPush-notification .DLEPush-header {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: 12px 42px 0 14px;
  color: var(--e-fg);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
}

.DLEPush-notification .DLEPush-header:empty {
  margin-top: 0;
}

.DLEPush-notification .DLEPush-message {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  margin: 6px 42px 12px 14px;
  color: var(--e-mut);
  font-size: .92rem;
  line-height: 1.4;
}

.DLEPush-notification .DLEPush-message ul,
.DLEPush-notification .DLEPush-message li {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.DLEPush-notification .DLEPush-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--e-mut);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  opacity: .85;
  outline: 0;
}

.DLEPush-notification .DLEPush-close:hover {
  background: var(--e-box2);
  color: var(--e-fg);
  opacity: 1;
}

.DLEPush-notification.wrapper.push-success {
  border-color: color-mix(in srgb, var(--e-ok) 35%, var(--e-ln));
}

.DLEPush-notification.wrapper.push-success .DLEPush-icon {
  background: var(--e-ok);
  color: var(--e-bg);
}

.DLEPush-notification.wrapper.push-warning {
  border-color: color-mix(in srgb, #f7bd4a 45%, var(--e-ln));
}

.DLEPush-notification.wrapper.push-warning .DLEPush-icon {
  background: #f7bd4a;
  color: #141414;
}

.DLEPush-notification.wrapper.push-error {
  border-color: color-mix(in srgb, var(--e-bad) 45%, var(--e-ln));
}

.DLEPush-notification.wrapper.push-error .DLEPush-icon {
  background: var(--e-bad);
  color: var(--e-bg);
}

/* comments / misc DLE */
.comments-user-profile {
  color: var(--e-acc);
  font-weight: 800;
  cursor: pointer;
}

.quote_link {
  float: right;
}

.quote_link svg,
.clipboard-copy-link svg {
  color: var(--e-mut);
  vertical-align: middle;
}

.clipboard-copy-link svg {
  margin-top: -3px;
}

.social-list-item,
.ignore-list-item,
#pmlist_doaction {
  margin-right: .5em;
}

.monthselect-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3em;
}

.monthselect-title {
  display: inline-block;
}

.dlepopupnewsedit .wseditor {
  border-top: none;
}

.mce-toc {
  margin: 0 0 .7rem;
  border: 1px solid var(--e-ln);
  border-radius: 14px;
  background: var(--e-box2);
}

.mce-toc h2 {
  margin: 8px 10px;
}

.mce-toc ul {
  list-style: none;
  margin: 0 0 8px;
  padding-left: 20px;
}

.mce-toc ul ul {
  margin: 0;
  padding-left: 20px;
}

.mce-toc li {
  list-style-type: none;
}

.mce-accordion summary {
  cursor: pointer;
}

.self_delete_link {
  margin-left: 15px;
  text-shadow: none;
}

input[type="text"].comments_author_field {
  width: 100%;
  margin-bottom: 10px;
}

.user_fields .xfieldscolright {
  float: none;
  width: auto;
}

.user_fields .form-check-input {
  margin: .375rem .625rem 0 0;
}

.mathml-container {
  font-family: math;
}

div.mathml-block {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .139em .35em;
  font-size: 1.1em;
}

div.mathml-block .katex {
  font-size: 1.1em;
}

span.mathml-inline {
  display: inline-block;
  margin: 0 .12em;
  vertical-align: middle;
}

/* mobile */
@media (max-width: 700px) {
  .DLEPush {
    right: 10px !important;
    top: 10px !important;
    width: calc(100vw - 20px);
  }

  .DLEPush-notification.wrapper {
    max-width: none;
  }

  .ui-dialog {
    width: calc(100vw - 20px) !important;
  }

  .ui-dialog .ui-dialog-buttonset {
    justify-content: stretch;
  }

  .ui-dialog .ui-dialog-buttonset button {
    flex: 1 1 auto;
  }

  .xfieldscolleft,
  .xfieldscolright {
    float: none;
    width: 100%;
  }

  table.pm,
  table.userstop {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .form_submit .c-capcha {
    float: none;
  }

  #searchsuggestions {
    width: calc(100vw - 24px) !important;
  }

  .monthselect-inner {
    gap: 1em;
  }
}

@media (max-width: 420px) {
  .DLEPush-notification.wrapper {
    grid-template-columns: 44px minmax(0, 1fr);
    border-radius: 14px;
  }

  .DLEPush-notification .DLEPush-icon {
    width: 44px;
  }

  .DLEPush-notification .DLEPush-message {
    margin-right: 36px;
  }

  .DLEPush-notification .DLEPush-header {
    margin-right: 36px;
  }

  .emoji_symbol {
    width: 16.66%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #loading-layer::before,
  .DLEPush-notification.wrapper,
  .progress .progress-bar,
  #marker-bar,
  #txtselect_marker,
  #share-popup {
    animation: none !important;
    transition: none !important;
  }
}
