.text-truncate-1 {
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.text-truncate-2 {
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.text-truncate-3 {
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.text-truncate-4 {
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.text-truncate-5 {
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

#loading-layer {
    background: #000;
    padding: 20px;
    text-align: center;
    color: #fff;
    border-radius: 2px;
}

.scriptcode,
.title_quote,
.title_spoiler,
.text_spoiler {
    padding: 2% 4%;
}

.quote {
    position: relative;
    padding: 0;
    padding-left: 80px;
    margin-bottom: 1rem;
    font-size: 1.15rem;
}

.quote:before {
    content: '"';
    position: absolute;
    top: 0;
    left: 0;
    font-size: 8rem;
    line-height: .8em;
    font-weight: 700;
    color: var(--bs-primary);
}

.title_spoiler {
    margin-top: 2px;
    font-weight: 400;
}

.text_spoiler {
    margin-bottom: 2px;
    border-top: 0;
    text-align: justify;
}

.title_spoiler img {
    vertical-align: middle;
    margin: -1px 0 0 !important;
}

.scriptcode {
    color: #4c6d0f;
    text-align: left;
    font-family: "Courier New";
}

.hide {
    background-color: #f0f0f0;
    padding: 5px;
    color: #4c6d0f;
    margin: 0 0 1em;
}

.hide a {
    text-decoration: underline;
}

.hide a:hover {
    text-decoration: none;
}

.calendar {
    width: 100%;
    text-align: center;
    font-size: 13px;
}

.voteprogress,
.pollprogress {
    overflow: hidden;
    height: 6px;
    margin-bottom: 10px;
    background-color: #fff;
    border-radius: 3px;
    margin-top: 6px;
}

.voteprogress span,
.pollprogress span {
    text-indent: -9999px;
    height: 6px;
    display: block;
    overflow: hidden;
    background: #3394e6;
}

.voteprogress .vote2,
.pollprogress .poll2 {
    background-color: #dd514c;
}

.voteprogress .vote3,
.pollprogress .poll3 {
    background-color: #5eb95e;
}

.voteprogress .vote4,
.pollprogress .poll4 {
    background-color: #4bb1cf;
}

.voteprogress .vote5,
.pollprogress .poll5 {
    background-color: #faa732;
}

.userstop td,
.pm td.pm_list,
.pm td.pm_head {
    border-bottom: 1px solid #efefef;
    padding: 12px 2px;
}

.drop_loginMenu .dropdown-toggle:after {
    content: none !important;
    display: none;
}

table.pm,
table.userstop {
    width: 100%;
    margin-bottom: 0;
}

table.pm select {
    width: 100px;
}

.userstop thead td,
.pm td.pm_head {
    border-bottom: 1px solid #efefef;
    font-weight: 700;
}

table.pm .navigation {
    border-top-width: 0;
    margin: 0;
}

#dropmenudiv {
    padding: 10px 0;
    min-width: 140px;
    width: auto !important;
    opacity: 1 !important;
    display: none;
    font-size: .9em;
    box-shadow: 0 8px 40px -10px rgba(0,0,0,.3);
    border: 1px solid #e6e6e6;
    border-color: rgba(0,0,0,.1);
    background-clip: padding-box;
    background-color: #fff;
}

#dropmenudiv a {
    text-decoration: none !important;
    color: inherit;
    display: block;
    padding: 3px 20px;
    border: 0 none;
    white-space: nowrap;
}

#dropmenudiv a:hover {
    background-color: #eeeeef;
}

.highslide-wrapper,
.highslide-outline {
    background: #fff;
}

.highslide-image {
    border: 2px solid #fff;
}

.highslide-active-anchor,
.highslide-active-anchor img {
    visibility: hidden;
}

.highslide-dimming {
    background-color: #000;
}

.highslide-html {
    background-color: #fff;
}

.highslide-loading {
    display: block;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
    padding: 3px;
    border: 1px solid #fff;
    background-color: #000;
}

a.highslide-full-expand {
    background: url(../dleimages/fullexpand.gif) no-repeat;
    display: block;
    margin: 0 10px 10px 0;
    width: 34px;
    height: 34px;
}

.highslide-display-block {
    display: block;
}

.highslide-display-none,
.mass_comments_action {
    display: none;
}

.highslide-caption {
    display: none;
    padding: 5px;
    background: #fff;
}

.highslide-controls {
    width: 195px;
    height: 40px;
    background: url(../../../engine/classes/highslide/graphics/controlbar-black-border.gif) no-repeat 0 -90px;
    margin-right: 15px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.highslide-controls ul {
    position: relative;
    left: 15px;
    height: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
    background: url(../../../engine/classes/highslide/graphics/controlbar-black-border.gif) no-repeat 100% -90px;
}

.highslide-controls li {
    float: left;
    padding: 5px 0;
}

.highslide-controls a {
    background: url(../../../engine/classes/highslide/graphics/controlbar-black-border.gif);
    display: block;
    float: left;
    height: 30px;
    width: 30px;
    outline: none;
}

.highslide-controls a.disabled {
    cursor: default;
}

.highslide-controls a span {
    display: none;
}

.highslide-controls .highslide-previous a {
    background-position: 0 0;
}

.highslide-controls .highslide-previous a:hover {
    background-position: 0 -30px;
}

.highslide-controls .highslide-previous a.disabled {
    background-position: 0 -60px !important;
}

.highslide-controls .highslide-play a {
    background-position: -30px 0;
}

.highslide-controls .highslide-play a:hover {
    background-position: -30px -30px;
}

.highslide-controls .highslide-play a.disabled {
    background-position: -30px -60px !important;
}

.highslide-controls .highslide-pause a {
    background-position: -60px 0;
}

.highslide-controls .highslide-pause a:hover {
    background-position: -60px -30px;
}

.highslide-controls .highslide-next a {
    background-position: -90px 0;
}

.highslide-controls .highslide-next a:hover {
    background-position: -90px -30px;
}

.highslide-controls .highslide-next a.disabled {
    background-position: -90px -60px !important;
}

.highslide-controls .highslide-move a {
    background-position: -120px 0;
}

.highslide-controls .highslide-move a:hover {
    background-position: -120px -30px;
}

.highslide-controls .highslide-full-expand a {
    background-position: -150px 0;
}

.highslide-controls .highslide-full-expand a:hover {
    background-position: -150px -30px;
}

.highslide-controls .highslide-full-expand a.disabled {
    background-position: -150px -60px !important;
}

.highslide-controls .highslide-close a {
    background-position: -180px 0;
}

.highslide-controls .highslide-close a:hover {
    background-position: -180px -30px;
}

#searchsuggestions {
    z-index: 2200;
    width: 300px;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 8px 40px -10px rgba(0,0,0,.3);
    border: 1px solid #ddd;
    border-color: rgba(0,0,0,.2);
    background-clip: padding-box;
    font-size: .9em;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

#searchsuggestions a,
#searchsuggestions span.notfound {
    padding: 15px 25px;
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #e5e5e5;
}

#searchsuggestions a {
    color: inherit;
}

#searchsuggestions a:hover {
    background-color: #f7f7f7;
}

#searchsuggestions a span {
    display: block;
    cursor: pointer;
}

#searchsuggestions span.searchheading {
    display: block;
    font-weight: 700;
    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: #919191;
}

#searchsuggestions span.notfound {
    padding: 15px 25px;
    display: block;
}

#searchsuggestions .break {
    display: none;
}


/* ==========================================
   JQUERY UI
   ========================================== */

.ui-widget-overlay {
    z-index: 100;
    background: #000;
    opacity: .5;
    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: inline-block;
}

* html .ui-helper-clearfix {
    height: 1%;
}

.ui-helper-clearfix {
    display: block;
}


/* ==========================================
   DIALOG
   ========================================== */

.ui-dialog {
    font-family: 'Inter';
    text-align: left;
    z-index: 102;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 370px;
    border-radius: 4px;
    box-shadow: 0 0 0;
    border: 1px solid var(--bs-border-color);
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
}

.ui-dialog-titlebar {
    position: relative !important;
    display: flex !important;
    align-items: center !important;

    padding: 20px !important;
    padding-right: 55px !important;
}

.ui-dialog-title {
    float: none !important;
    font-weight: 600;
    font-size: 1rem;
    color: var(--bs-heading-color);
    display: block;
}


/* ==========================================
   КНОПКА ЗАКРЫТИЯ ×
   ========================================== */

.ui-dialog-titlebar-close {
    position: absolute !important;

    right: 10px !important;
    top: 50% !important;

    width: 32px !important;
    height: 32px !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: translateY(-50%) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    float: none !important;

    background: transparent !important;
    background-color: transparent !important;

    border: 0 !important;
    border-radius: 4px !important;

    box-shadow: none !important;
    outline: none !important;

    color: transparent !important;

    font-size: 0 !important;
    line-height: 0 !important;

    cursor: pointer !important;
}


/* Сам крестик */

.ui-dialog-titlebar-close::before {
    content: "\f00d" !important;

    font-family:
        "Font Awesome 7 Pro",
        "Font Awesome 6 Pro",
        "Font Awesome 5 Pro" !important;

    font-size: 18px !important;
    font-weight: 400 !important;

    color: #999 !important;

    display: block !important;

    position: absolute !important;

    left: 50% !important;
    top: 50% !important;

    transform: translate(-50%, -50%) !important;
}


/* Скрываем стандартную иконку */

.ui-dialog-titlebar-close .ui-icon {
    display: none !important;
}


/* Скрываем "Close" */

.ui-dialog-titlebar-close .ui-button-icon-space {
    display: none !important;
}


/* Hover */

.ui-dialog-titlebar-close:hover {
    background: #f1f1f1 !important;
    background-color: #f1f1f1 !important;
}

.ui-dialog-titlebar-close:hover::before {
    color: #333 !important;
}


/* Focus */

.ui-dialog-titlebar-close:focus {
    outline: none !important;
    box-shadow: none !important;
}


/* Active */

.ui-dialog-titlebar-close:active {
    background: transparent !important;
    border: 0 !important;
}


/* ==========================================
   ОСТАЛЬНЫЕ DIALOG СТИЛИ
   ========================================== */

.ui-dialog label {
    color: #575757;
}

.ui-dialog-content {
    padding: 20px;
    font-size: .90rem;
    border-top: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
    overflow: auto;
    position: relative;
    zoom: 1;
}

.ui-dialog-buttonset {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.loginbox.ui-dialog,
.loginbox .ui-dialog-content {
    overflow: visible !important;
}

.ui-dialog-content h2 {
    display: inline;
    font-size: 1em;
    font-weight: 700;
}

.ui-dialog .ui-dialog-buttonpane {
    padding: 20px;
    text-align: center;
}

.ui-dialog .ui-resizable-se {
    bottom: 3px;
    height: 14px;
    right: 3px;
    width: 14px;
}

.ui-draggable .ui-dialog-titlebar {
    cursor: move;
}

.ui-state-error {
    background: #fef1ec 50% 50% repeat-x !important;
    border: 1px solid #cd0a0a;
    color: #cd0a0a;
}


/* ВАЖНО:
   НЕ ставим .ui-button { float:right; }
*/


.ui-helper-hidden-accessible {
    display: none;
}

.ui-autocomplete {
    position: absolute;
    cursor: default;
}

* html .ui-autocomplete {
    width: 1px;
}

.ui-menu {
    list-style: none;
    padding: 2px;
    margin: 0;
    float: left;
    background: #fff 50% bottom repeat-x;
    border: 1px solid #dedede;
    color: #353535;
}

.ui-menu .ui-menu {
    margin-top: -3px;
}

.ui-menu .ui-menu-item {
    margin: 0;
    padding: 0;
    zoom: 1;
    float: left;
    clear: left;
    width: 100%;
}

.ui-menu .ui-menu-item a {
    text-decoration: none;
    display: block;
    padding: .2em .4em;
    line-height: 1.5;
    zoom: 1;
}

.ui-menu .ui-menu-item a.ui-state-hover,
.ui-menu .ui-menu-item a.ui-state-active {
    font-weight: 400;
    margin: -1px;
    border: 1px solid #a7a7a7;
    color: #4e4e4e;
    font-weight: bold;
}


/* ==========================================
   CODE
   ========================================== */

pre code {
    display: block;
    padding: .5em;
    background: #f9fafa;
    border: 1px solid #dce7e7;
    overflow: auto;
    white-space: pre;
}

pre .comment,
pre .template_comment,
pre .diff .header,
pre .doctype,
pre .lisp .string,
pre .javadoc {
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    background-color: inherit;
    color: #93a1a1;
    font-style: italic;
}

pre .keyword,
pre .css .rule .keyword,
pre .winutils,
pre .javascript .title,
pre .method,
pre .addition,
pre .css .tag,
pre .lisp .title {
    color: #859900;
}

pre .number,
pre .command,
pre .string,
pre .tag .value,
pre .phpdoc,
pre .tex .formula,
pre .regexp,
pre .hexcolor {
    color: #2aa198;
}

pre .title,
pre .localvars,
pre .function .title,
pre .chunk,
pre .decorator,
pre .builtin,
pre .built_in,
pre .lisp .title,
pre .identifier,
pre .title .keymethods,
pre .id {
    color: #268bd2;
}

pre .tag .title,
pre .rules .property,
pre .django .tag .keyword {
    font-weight: 700;
    font-size: 1.08em !important;
}

pre .attribute,
pre .variable,
pre .instancevar,
pre .lisp .body,
pre .smalltalk .number,
pre .constant,
pre .class .title,
pre .parent,
pre .haskell .label {
    color: #b58900;
}

pre .preprocessor,
pre .pi,
pre .shebang,
pre .symbol,
pre .diff .change,
pre .special,
pre .keymethods,
pre .attr_selector,
pre .important,
pre .subst,
pre .cdata {
    color: #cb4b16;
}

pre .deletion {
    color: #dc322f;
}

pre .tex .formula {
    background: #eee8d5;
}

pre .comment:hover {
    background-color: inherit;
    box-shadow: none;
}


/* ==========================================
   BB PANE
   ========================================== */

.bb-pane-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 180px;
    padding: 5px 0;
    margin: 2px 0 0;
    list-style: none;
    font-size: 11px;
    border: 1px solid #e6e6e6;
    border-color: rgba(0,0,0,.1);
    border-radius: 2px;
    background: #fff;
    background-clip: padding-box;
    -webkit-box-shadow: 0 1px 2px #dadada;
    box-shadow: 0 1px 2px #dadada;
    max-height: 300px;
    overflow: auto;
}

.bb-pane-dropdown > li > a {
    display: block;
    padding: 3px 10px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857;
    color: #353535;
    white-space: nowrap;
}

.bb-pane-dropdown > li > a:hover {
    text-decoration: none;
    color: #262626;
    background-color: #f5f5f5;
}

.bb-pane-dropdown .color-palette div .color-btn {
    width: 17px;
    height: 17px;
    padding: 0;
    margin: 0;
    border: 1px solid #fff;
    cursor: pointer;
}

.bb-pane-dropdown .color-palette {
    padding: 0 5px;
}

.bb-pane-dropdown table {
    margin: 0;
}

.quick-edit-text {
    padding: .4em;
    width: 350px;
}

.quick-edit-textarea {
    height: 250px;
    padding: 2px;
    border: 1px solid #d7d7d7;
    width: 100%;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}

#dlefastreplycomments {
    padding: 10px;
}

#marker-bar,
#txtselect_marker {
    display: block;
    visibility: hidden;
    position: absolute;
    z-index: 1200;
    opacity: 0;
    -webkit-transition: opacity .4s,visibility .1s linear .4s;
    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 #ccc;
    border-radius: 15px;
    background: #fff;
    padding: 5px 10px;
    cursor: default;
    box-shadow: 0 0 4px #ccc;
    -webkit-box-shadow: 0 0 4px #ccc;
}

#marker-bar.show {
    -webkit-transition: opacity .4s,visibility 0;
    transition: opacity .4s,visibility 0;
    opacity: 1;
    visibility: visible;
}

#txtselect_marker.show {
    visibility: visible;
    width: 32px;
    height: 32px;
    -webkit-transition: opacity .4s,visibility 0;
    transition: opacity .4s,visibility 0;
    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: #aaa;
    border-bottom: 1px dotted #aaa;
    margin-right: 10px;
}

#marker-bar .masha-marker:hover {
    color: #ea3e26;
    border-color: #ea3e26;
}

.user_selection,
.user_selection_true {
    background: #fff5d5;
    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;
}


/* ==========================================
   FORMS
   ========================================== */

.dle-alert,
.dle-confirm,
.dle-promt {
    padding: 20px;
}

.wide,
.bb-editor textarea,
.ui-dialog textarea,
select#category,
.quick-edit-text {
    width: 100% !important;
}

#searchuser,
#searchinput {
    width: 100% !important;
    margin-bottom: 10px;
}

table.xfields {
    width: 100%;
}

.xfields textarea,
.xprofile textarea {
    width: 100%;
    height: 186px;
    margin-top: 5px;
}

.xfields input[type="text"] {
    width: 100%;
}

.xfieldsdescr {
    width: 200px;
}

.xfields .bb-pane + textarea {
    margin-top: 0;
}

.xfieldsnote {
    color: #838383;
    font-size: .9em;
}

.xfields_table td {
    vertical-align: top;
}

.xfieldsrow {
    padding-top: 5px;
    clear: both;
}

.xfieldscolleft {
    float: left;
    width: 30%;
    padding-top: 14px;
}

.xfieldscolright {
    float: left;
    width: 70%;
}

.file-box {
    width: 95%;
    max-width: 437px;
    border: 1px solid #B3B3B3;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    background-color: #F5F5F5;
    padding: 10px;
    margin-top: 10px;
}

.xfieldimagegallery {
    margin: 0;
    padding: 0;
    list-style: none;
    clear: both;
}

.xfieldimagegallery li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.xfieldimagegallery li img {
    float: left;
    margin-right: 5px;
    border: 5px solid #fff;
    width: 100px;
    height: 100px;
    transition: box-shadow .5s ease;
}

.xfieldimagegallery li img:hover {
    box-shadow: 0 0 7px rgba(0,0,0,.4);
}

.qq-uploader {
    position: relative;
    width: 100%;
}

.qq-upload-button {
    display: inline-block;
    margin-top: 5px;
    margin-bottom: 5px;
    cursor: pointer;
}

.qq-upload-drop-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    max-width: 437px;
    background: #FF9797;
    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: #FF7171;
}

.uploadedfile {
    display: inline-block;
    width: 115px;
    height: 160px;
    margin: 10px 5px 5px;
    border: 1px solid #B3B3B3;
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
    -moz-box-shadow: 0 1px 4px rgba(0,0,0,.3);
    -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.3);
    text-align: center;
    background: #fff;
}

.uploadedfile .uploadimage {
    margin-top: 5px;
    width: 115px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: move;
    cursor: -webkit-grabbing;
}

.sortable-ghost {
    opacity: .4;
}

.uploadedfile .info {
    text-align: left;
    white-space: nowrap;
    margin: 0 5px;
    overflow: hidden;
}

.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
    cursor: not-allowed;
    pointer-events: none;
    opacity: .65;
    filter: alpha(opacity=65);
    -webkit-box-shadow: none;
    box-shadow: none;
}

.progress {
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #f5f5f5;
    height: 10px;
    border-radius: 8px;
    background: #eee;
    -webkit-box-shadow: 0 1px 0 white,0 0 0 1px rgba(0,0,0,.1) inset,0 1px 4px rgba(0,0,0,.2) inset;
    box-shadow: 0 1px 0 white,0 0 0 1px rgba(0,0,0,.1) inset,0 1px 4px rgba(0,0,0,.2) inset;
}

.progress .progress-bar {
    float: left;
    width: 0;
    font-size: 12px;
    line-height: 20px;
    color: #fff;
    text-align: center;
    background-color: #428bca;
    box-shadow: none;
    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,#9bcff5 0%,#6db9f0 100%);
    background-repeat: repeat-x;
    border: 1px solid #55aeee;
}

.emoji {
    border: none;
    vertical-align: middle;
    width: 22px;
    height: 22px;
}

.pm_progress_bar {
    border: 1px solid #e9ebf4;
    background: #e9ebf4;
    padding: 0;
    height: 40px;
    border-radius: .5rem;
    overflow: hidden;
}

.pm_progress_bar span {
    background: #8b3dff;
    font-size: 0;
    text-indent: -2000em;
    height: 40px;
    display: block;
    overflow: hidden;
}


/* ==========================================
   ОСНОВНЫЕ СИНИЕ КНОПКИ
   ========================================== */

/*
   ВАЖНО:
   .ui-dialog-titlebar-close исключён из .ui-button
*/

.ui-dialog-buttonset button,
.bbcodes,
.ui-button:not(.ui-dialog-titlebar-close),
.tag_btns a {
    --bs-btn-color: #fff;
    --bs-btn-bg: #2163e8;
    --bs-btn-border-color: #2163e8;

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1c54c5;
    --bs-btn-hover-border-color: #1a4fba;

    --bs-btn-focus-shadow-rgb: 66,122,235;

    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1a4fba;
    --bs-btn-active-border-color: #194aae;
    --bs-btn-active-shadow: none;

    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #2163e8;
    --bs-btn-disabled-border-color: #2163e8;

    --bs-btn-padding-x: 1rem;
    --bs-btn-padding-y: .5rem;
    --bs-btn-font-size: .9375rem;
    --bs-btn-font-weight: 500;
    --bs-btn-line-height: 1.5;

    --bs-btn-border-width: 1px;
    --bs-btn-border-radius: .25rem;

    display: inline-block;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);

    font-family: var(--bs-btn-font-family);
    font-size: var(--bs-btn-font-size);
    font-weight: var(--bs-btn-font-weight);
    line-height: var(--bs-btn-line-height);

    color: var(--bs-btn-color);
    letter-spacing: .5px;

    position: relative;
    overflow: hidden;

    outline: 0;
    white-space: nowrap;

    margin-bottom: 0;

    cursor: pointer;
    user-select: none;

    border: 1px solid var(--bs-btn-border-color);
    border-radius: var(--bs-btn-border-radius);

    background-color: var(--bs-btn-bg);

    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.ui-dialog-buttonset button:hover,
.bbcodes:hover,
.ui-button:not(.ui-dialog-titlebar-close):hover,
.tag_btns a:hover {
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
}


/* ==========================================
   SELECT / INPUT
   ========================================== */

.category-select select,
.xfields-group input,
.xfields-group select,
select#pmlist_doaction,
.recipient select,
.qq-uploader {
    outline: none;
    display: block;
    width: 100%;
    padding: .5rem 1rem;
    font-size: .9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-gray-700);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: 1px solid var(--bs-border-color);
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.category-select select:focus,
.xfields-group input:focus,
.xfields-group select:focus,
select#pmlist_doaction:focus,
.recipient select:focus,
.qq-uploader:focus {
    color: var(--tj-color-text-body);
    box-shadow: 0 0 0 !important;
    outline: 0;
    background: var(--tj-color-theme-dark);
    border-color: var(--tj-color-theme-primary) !important;
}

.form-label,
.xfields-group .addnews,
.xfieldscolleft,
.admin_checkboxs label {
    font-weight: 500;
    color: var(--tj-color-text-body);
}

.xfields-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin_checkboxs input {
    margin-right: .5rem;
}

.vote_list label {
    font-weight: 400;
}

.recip select {
    height: 47px;
}

select#pmlist_doaction {
    display: inline-block;
    width: 150px !important;
}

.xfields-group tr {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.xfields-group .xfields {
    width: 70%;
}


/* ==========================================
   PUSH
   ========================================== */

.DLEPush {
    z-index: 2001;
    position: fixed;
    right: 20px;
    top: 20px;
}

@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: #333;
    margin-bottom: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 15px rgb(0 0 0 / 20%);
    background-color: #fff;
    border-radius: 10px;
}

.DLEPush-notification .DLEPush-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    width: 45px;
    height: 100%;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    text-align: center;
}

.DLEPush-notification .DLEPush-icon svg {
    scale: .8;
}

.DLEPush-notification .DLEPush-header {
    font-weight: 500;
    grid-column: 2;
    grid-row: 1;
    font-size: 1rem;
    margin-left: 1rem;
    margin-top: .5rem;
}

.DLEPush-notification .DLEPush-header:empty {
    margin-top: 0;
}

.DLEPush-notification .DLEPush-message {
    grid-column: 2;
    grid-row: 2;
    font-size: .875rem;
    margin: 1rem;
}

.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: 1.15rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    color: inherit;
    outline: 0;
    opacity: .75;
}

.DLEPush-notification .DLEPush-close:hover {
    opacity: 1;
}

@media only screen and (min-width: 601px) {
    .DLEPush-notification.wrapper {
        min-width: 400px;
    }
}

@media only screen and (max-width: 600px) {
    .xfieldscolleft {
        float: none;
        width: 100%;
    }

    .xfieldscolright {
        float: none;
        width: 100%;
    }
}

.DLEPush-notification.wrapper.push-success {
    background-color: #e0f2f1;
}

.DLEPush-notification.wrapper.push-success .DLEPush-icon {
    background-color: #00897b;
}

.DLEPush-notification.wrapper.push-warning {
    background-color: #FFF3E0;
}

.DLEPush-notification.wrapper.push-warning .DLEPush-icon {
    background-color: #FF9800;
}

.DLEPush-notification.wrapper.push-error {
    background-color: #FBE9E7;
}

.DLEPush-notification.wrapper.push-error .DLEPush-icon {
    background-color: #FF5722;
}


/* ==========================================
   TEXT / USER
   ========================================== */

.main_text ol,
.main_text ul {
    padding-left: 15px;
    margin-bottom: 15px;
}

.vote .form-check-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vote .form-check-input {
    margin-top: 0;
}

.vote .form-check-input:checked {
    background-color: var(--ot-dark-green-color);
    border-color: var(--ot-dark-green-color);
}

.main_text p:last-child {
    margin-bottom: 0;
}

.usinf {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usinf > li {
    padding: 10px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--bs-border-color);
}

.usinf > li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.ui-c1,
.ui-c2 {
    display: inline-block;
    vertical-align: middle;
}

.ui-c1 {
    width: 30%;
    margin-right: 1%;
    color: var(--bs-heading-color);
    font-weight: 500;
}

.ui-c2 {
    width: 60%;
    border-left: 1px solid var(--bs-border-color);
    color: var(--tj-color-theme-dark-2);
    padding-left: 15px;
    font-weight: 400;
}

.usinf a {
    color: var(--bs-primary);
    border-bottom: 1px dotted var(--bs-primary);
}

.drop_loginMenu ul li a {
    font-size: .95rem;
}

.drop_loginMenu ul li i {
    color: var(--bs-primary);
    width: 28px;
}

.header-login .dropdown-menu {
    background-color: var(--tj-color-theme-bg);
    color: var(--tj-color-text-body);
    border: 1px solid var(--tj-color-border-1);
    overflow: hidden;
}

.header-login .dropdown-menu li a {
    color: var(--tj-color-text-body);
}

.header-login .dropdown-menu li a:hover {
    background: var(--tj-color-theme-dark);
    color: #fff;
}

.dle_theme_dark .tox .tox-toolbar,
.dle_theme_dark .tox .tox-toolbar__overflow,
.dle_theme_dark .tox .tox-toolbar__primary {
    background: var(--tj-color-theme-dark) !important;
    background-color: var(--tj-color-theme-dark) !important;
    border-color: var(--tj-color-theme-dark) !important;
}


/* ==========================================
   MEDIA
   ========================================== */

@media only screen and (max-width: 768px) {

    .fbtm-one {
        flex-wrap: wrap;
        flex-direction: column;
        gap: 15px;
    }

    .usinf > li {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        margin: 0;
    }

    .usinf .ui-c1,
    .usinf .ui-c2 {
        width: 100%;
        margin: 0;
    }

    .usinf .ui-c2 {
        border: 0;
        padding-left: 0;
        margin-top: 8px;
        font-size: .9rem;
    }
}


/* ==========================================
   DARK
   ========================================== */

[data-bs-theme=dark] .text-dark {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-white-rgb),var(--bs-text-opacity)) !important;
}

.bcat,
.bcat .text-dark {
    transition: all .4s ease;
}

.bcat:hover {
    background: #1a4fba;
    color: #fff;
}

.bcat:hover .text-dark {
    color: #fff !important;
}

.tj-lastcomments ul li:last-child {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 0 !important;
}

.comment-item__img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.img-fit-cover {
    position: relative;
    overflow: hidden;
}

.comment-item__author {
    font-weight: 600;
    font-size: 14px;
}

.comment-item__author a {
    color: #45619d;
}

.tox.tox-tinymce {
    border: 1px solid var(--bs-border-color) !important;
}

.lst_blkc > .col-md-6:nth-child(3) .text-bg-success {
    background-color: RGBA(var(--bs-info-rgb),var(--bs-bg-opacity,1)) !important;
}


/* ==========================================
   TAGS
   ========================================== */

.tag_btns a {
    padding: .4rem .8rem !important;
    font-size: .8125rem !important;
    border-radius: .2rem !important;
    color: #2163e8 !important;
    background-color: rgba(33,99,232,.1) !important;
    border-color: transparent !important;
}

.tag_btns a:hover {
    color: #fff !important;
    background-color: #2163e8 !important;
    border-color: #2163e8 !important;
}


/* ==========================================
   FIRST LETTER
   ========================================== */

.main_text p:nth-child(1)::first-letter {
    font-size: 4em;
    font-weight: bold;
    display: block;
    float: left;
    margin: .04em .2em 0 0;
    color: var(--bs-primary);
    line-height: 1;
    background: rgb(33 99 232 / 10%);
    padding-left: .5rem;
    padding-right: .5rem;
    border-radius: .25rem;
}


/* ==========================================
   TIMEZONE
   ========================================== */

.timezoneselect {
    display: block;
    width: 100%;
    padding: .5rem 1rem;
    font-size: .9375rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-gray-700);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: 1px solid var(--bs-border-color);
    border-radius: .25rem;
}


/* ==========================================
   YANDEX CAPTCHA
   ========================================== */

.smart-captcha {
    display: inline-block;
}


/* ==========================================
   MATH
   ========================================== */

.mathml-container {
    font-family: math;
}

div.mathml-block {
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .139em .35em;
}

div.mathml-block .katex {
    font-size: 1.1em;
}

span.mathml-inline {
    display: inline-block;
    vertical-align: middle;
    margin: 0 .12em;
}


/* ==========================================
   HIDDEN TEXT
   ========================================== */

.dleshowhidden {
    color: #104d92;
    background-color: #E3F2FD;
    border: 1px solid #1E88E5;
    box-shadow: 0 5px 12px rgba(126,142,177,.2);
    padding: .83em;
}





.twofactor-wrapper select {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.twofactor-wrapper select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}