.news_inside_block {
    display: flex;
    flex-direction: column;
    max-height: 360px;
    overflow-x: auto;
    overflow-y: scroll;
    padding: 0 6px 0 1px;
}

.news_posts_add_block {
    height: 254px;
}

.nb {
    gap: 12px;
}

.form_box .news_input_text {
    display: flex;
    gap: 5px;
    padding: 8px;
    border-radius: 6px;
    font-size: 10px;
    text-transform: uppercase;
    align-items: center;
    font-weight: 700;
}

.form_box .news_input_text svg {
    width: 11px;
    height: 11px;
}

.form_box input {
    margin: 5px 0;
    font-size: 13px;
    padding: 15px 14px;
    letter-spacing: 1px;
    background-color: var(--input-form);
    border-radius: 6px;
    width: 100%;
    transition: .3s;
}

.form_box .tox {
    margin: 5px 0;
}

.news_file_input_hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.news_file_upload_label {
    display: flex;
    align-items: center;
    margin: 5px 0;
    padding: 15px 14px;
    font-size: 13px;
    letter-spacing: 1px;
    background-color: var(--input-form);
    color: var(--span);
    border-radius: 6px;
    cursor: pointer;
    transition: .3s;
}

.news_file_upload_label:hover {
    color: var(--text-custom);
}

.news_checkbox {
    display: flex;
    background-color: var(--input-form);
    justify-content: flex-start;
    gap: 6px;
    padding: 8px;
    margin: 5px 0;
    align-items: center;
    border-radius: 6px;
}

.news_checkbox input {
    width: auto;
}

.news_checkbox label {
    font-size: 12px;
    font-weight: 500;
    user-select: none;
    cursor: pointer;
}

.news_second_checkbox {
    margin: 0 0 5px;
}

.news_multi_radio {
    display: flex;
    gap: 4px;
}

.modals {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: var(--bg-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11111;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modals_a {
    opacity: 1;
    visibility: visible;
}

.modals-close {
    position: absolute;
    right: 0;
    cursor: pointer;
}

.modals-close svg {
    width: 13px;
}

.modals_inside {
    padding: 12px;
    border-radius: 6px;
    width: 440px;
}

.news-content-info-i {
    margin: 20px 0;
}

.news-content-info-s {
    margin: 0 5px 0 0;
}

.news-content-info-i img,
.news-content-info-s img {
    width: 100%;
    height: 100%;
}

.modals_tittle {
    line-height: 22px;
    margin-top: 4px;
    margin-bottom: 12px;
}

.modals_tittle > div:first-child {
    font-size: 18px;
    font-weight: 600;
}

.modals_tittle > div:nth-child(2) {
    font-size: 13px;
}

#date_input {
    display: none;
}

.form_box .news_multi_radio input {
    margin: 0;
}

.form_box .news_multi_radio input[type="date"]::-webkit-calendar-picker-indicator,
.form_box .news_multi_radio input[type="time"]::-webkit-calendar-picker-indicator  {
    width: 18px;
    height: 18px;
    filter: invert(100%);
}

.form_box .news_multi_radio input[type="date"]::-webkit-calendar-picker-indicator:hover,
.form_box .news_multi_radio input[type="time"]::-webkit-calendar-picker-indicator:hover {
    cursor: pointer;
}

.form_box .news_multi_radio input[type="date"],
.form_box .news_multi_radio input[type="time"] {
    padding: 2px 4px;
    width: 110px;
    text-align: center;
}

.button_pagination.active {
    font-weight: 700;
    border-radius: 6px;
    cursor: default;
    -webkit-user-drag: none;
    user-select: none;
}

.pagination {
    background-color: transparent;
}

.modals_i {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: auto;
    position: relative;
    flex-wrap: wrap;
}

.modals_s {
    position: relative;
}

.modals_info_i {
    width: 720px;
}

.modals_info_i > img {
    display: none;
}

.modals_info_s {
    width: 580px;
    border-radius: 16px;
}

.modals_info_s img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 16px;
    opacity: .8;
    pointer-events: none;
}

.modals_s > .modals-close {
    right: -32px;
    top: -4px;
    z-index: 1;
    opacity: .3;
    transition: .3s;
}

.modals_s > .modals-close svg {
    width: 22px;
}

.modals-close-dimmed {
    opacity: .5!important;
}

.modals-content,
.modals-content-i {
    position: relative;
}

.modals-content-s {
    position: relative;
    overflow: auto;
    height: 400px;
    margin-top: 12px;
    padding-left: 4px;
}

.modals_i > .modals-close {
    position: fixed;
    right: 24px;
    top: 16px;
    z-index: 1;
}

.modals_i > .modals-close svg {
    width: 22px;
}

.body-no-scroll  {
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.news-module input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 12px;
    border-radius: 50%;
    padding: 2px;
}

.news-module input[type="radio"]:checked {
    background-size: 100% 100%;
}

@media (max-width: 576px) {
    .modals_s {
        padding: 0 4px;
    }

    .modals_info_s {
        width: 100%;
    }

    .modals_s > .modals-close {
        right: 6px;
        top: -34px;
    }
}

/* ------------------------------------------------------------------------- */

.news_m_block {
    padding: 12px;
}

.news_block_inside {
    position: relative;
}

.news_admin_edit {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(4px);
}

.news_admin_edit a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 30px;
    height: 30px;
    text-align: center;
    border-radius: 6px;
    transition: .3s;
}

.news_admin_edit a svg {
    width: 13px;
    height: 13px;
}

#ModalAdminNewsEdit .modals_inside {
    width: min(760px, calc(100vw - 24px));
    max-height: 90vh;
    overflow-y: auto;
}

.news_edit_editor {
    min-height: 220px !important;
    max-height: 420px !important;
}

.news_edit_image_preview {
    display: none;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin: 6px 0;
}

.news_edit_image_preview.is-visible {
    display: block;
}

.news_prev {
    border-radius: 6px;
}

.news_prev img {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

/* admins */

.news_admin {
    padding: 12px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
}

.na_empty {
    height: 60px;
}

.news_header {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news_header,
.news_header span {
    font-weight: 600;
}

.news_header span {
    margin: 0 1px;
}

.news_admin_avatar {
    height: 34px;
    border-radius: 4px;
}

.news_admin_info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news_admin_nick {
    font-weight: 600;
}

.news_admin_buttons {
    display: flex;
    gap: 6px;
}

.news_admin_buttons a {
    padding: 6px;
    border-radius: 6px;
    width: 36px;
    text-align: center;
    cursor: pointer;
    transition: .3s;
}

.news_admin_buttons a svg {
    width: 14px;
    height: 14px;
    transition: .3s;
}

.news_add_block {
    min-height: 782px;
}

.news_mb10 {
    margin-bottom: 10px;
}

.news_add_btn {
    margin-top: 12px;
}

#date_input {
    flex-direction: column;
    gap: 0;
}

/* settings */

.card_mt {
    margin-top: 10px;
}

/* ------------------------------------------------------------------------- */

/* List styling must stay inside news content only. The old global
   ol/ul/li rules leaked into the NEO3 navigation and footer and produced
   unwanted bullet dots across the whole site. */
.news-module .news-content-info-i ol,
.news-module .news-content-info-i ul,
.news-module .news-content-info-s ol,
.news-module .news-content-info-s ul,
.news-module .simple_editor_area ol,
.news-module .simple_editor_area ul {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0;
    margin-inline-end: 0;
    padding-inline-start: 28px;
}

.news-module .news-content-info-i li,
.news-module .news-content-info-s li,
.news-module .simple_editor_area li {
    list-style-position: outside;
}

.news-module ul.nav {
    margin-block-start: 0;
    margin-block-end: 0;
    padding-inline-start: 0;
    list-style: none;
}

.news-module ul.nav > li {
    list-style: none !important;
}
/* Extended Discord webhook settings */
.news_webhook_settings {
    max-height: 620px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.news_webhook_caption {
    margin: 8px 0 2px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .35px;
    color: var(--span);
}

.news_webhook_actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.news_webhook_actions .btn {
    flex: 1 1 0;
}

@media (max-width: 768px) {
    .news_webhook_settings {
        max-height: none;
        overflow: visible;
    }

    .news_webhook_actions {
        flex-direction: column;
    }
}

/* ========================================================================
   News settings panel 1.2.1
   Everything is scoped to the module/settings page to avoid leaking styles
   into NEO3 navigation, footer or other modules.
   ======================================================================== */
.news-module .news-settings-page {
    margin-bottom: 12px;
}

.news-module .news-settings-card {
    overflow: hidden;
    margin-bottom: 12px;
}

.news-module .news-settings-card-header {
    justify-content: space-between;
    padding: 0 14px;
    gap: 12px;
}

.news-module .news-settings-card-header > span:first-child {
    min-width: 0;
}

.news-module .news-settings-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .35px;
    background: rgba(255,255,255,.06);
}

.news-module .news-settings-status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(255,255,255,.04);
}

.news-module .news-settings-status.is-enabled {
    color: #75d58a;
}

.news-module .news-settings-status.is-disabled {
    color: var(--span);
}

.news-module .news-settings-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-module .news-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.news-module .news-settings-section {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 9px;
    background: rgba(0,0,0,.10);
}

.news-module .news-settings-section-wide {
    grid-column: 1 / -1;
}

.news-module .news-settings-section-head {
    margin-bottom: 12px;
}

.news-module .news-settings-section-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.news-module .news-settings-section-desc,
.news-module .news-settings-help,
.news-module .news-setting-toggle-desc {
    margin-top: 3px;
    color: var(--span);
    font-size: 11px;
    line-height: 1.45;
}

.news-module .news-settings-field {
    margin-top: 10px;
}

.news-module .news-settings-field:first-of-type {
    margin-top: 0;
}

.news-module .news-settings-field > label,
.news-module .news-setting-toggle-row > label,
.news-module .news-setting-toggle-row > div > label {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
}

.news-module .news-settings-field input[type="text"],
.news-module .news-settings-field input[type="password"],
.news-module .news-settings-field input[type="url"],
.news-module .news-settings-field input[type="number"] {
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: var(--input-form);
    color: inherit;
    font-size: 12px;
    line-height: 1.2;
    outline: none;
    transition: border-color .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.news-module .news-settings-field input:focus {
    border-color: var(--text-custom);
    box-shadow: 0 0 0 2px rgba(255,255,255,.025);
}

.news-module .news-settings-field input:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.news-module .news-setting-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    margin-top: 8px;
    padding: 9px 10px;
    border-radius: 7px;
    background: var(--input-form);
}

.news-module .news-setting-toggle-row:first-of-type {
    margin-top: 0;
}

.news-module .news-setting-toggle-row > div {
    min-width: 0;
}

.news-module .news-setting-toggle-row label,
.news-module .news-setting-toggle-title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.news-module .news-setting-toggle-row .switch {
    flex: 0 0 auto;
    margin: 0;
}

.news-module .news-setting-toggle-compact {
    min-height: 42px;
}

.news-module .news-settings-secret-wrap {
    position: relative;
}

.news-module .news-settings-secret-wrap input {
    padding-right: 88px !important;
}

.news-module .news-settings-secret-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    height: 30px;
    padding: 0 9px;
    border: 0;
    border-radius: 6px;
    background: rgba(255,255,255,.07);
    color: inherit;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.news-module .news-settings-secret-toggle:hover {
    background: rgba(255,255,255,.12);
}

.news-module .news-settings-color-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 7px;
    align-items: center;
}

.news-module .news-settings-color-preview {
    width: 40px;
    height: 40px;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,.09);
    background: #DEB887;
}

.news-module .news-settings-number-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.news-module .news-settings-number-row > span {
    color: var(--span);
    font-size: 11px;
}

.news-module .news-settings-mentions-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr);
    gap: 12px;
    align-items: start;
}

.news-module .news-settings-mentions-grid .news-settings-field {
    margin-top: 0;
}

.news-module .news-settings-mentions-toggles .news-setting-toggle-row:first-child {
    margin-top: 0;
}

.news-module .news-settings-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 2px;
}

.news-module .news-settings-actions .btn {
    width: auto;
    min-width: 150px;
    margin: 0;
}

.news-module .news-settings-btn-secondary {
    opacity: .88;
}

.news-module .news-settings-btn-secondary:hover {
    opacity: 1;
}

.news-module .news-settings-field.is-disabled,
.news-module .news-settings-field.is-hidden-disabled {
    opacity: .55;
}

/* The old webhook block had its own 620px scrollbar. The redesigned panel
   intentionally uses the page scroll so every option stays visible. */
.news-module .news_webhook_settings {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

@media (max-width: 992px) {
    .news-module .news-settings-grid,
    .news-module .news-settings-mentions-grid {
        grid-template-columns: 1fr;
    }

    .news-module .news-settings-section-wide {
        grid-column: auto;
    }
}

@media (max-width: 576px) {
    .news-module .news-settings-card-header {
        padding: 0 10px;
    }

    .news-module .news-settings-section {
        padding: 11px;
    }

    .news-module .news-setting-toggle-row {
        gap: 10px;
    }

    .news-module .news-settings-actions {
        flex-direction: column;
    }

    .news-module .news-settings-actions .btn {
        width: 100%;
    }

    .news-module .news-settings-secret-wrap input {
        padding-right: 76px !important;
    }

    .news-module .news-settings-secret-toggle {
        padding: 0 7px;
    }
}

/* ========================================================================
   News settings panel 1.2.2
   Two-column layout, clearer spacing, visible webhook reveal state
   ======================================================================== */
.news-module .news-settings-page {
    margin-bottom: 14px;
}

.news-module .news-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
    gap: 16px;
    align-items: start;
}

.news-module .news-settings-column {
    min-width: 0;
}

.news-module .news-settings-card {
    overflow: hidden;
    margin-bottom: 0;
}

.news-module .news-settings-card + .news-settings-card {
    margin-top: 14px;
}

.news-module .news-settings-card-header {
    justify-content: space-between;
    padding: 0 16px;
    gap: 12px;
}

.news-module .news-settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-module .news-settings-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-module .news-settings-section {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    background: rgba(0,0,0,.11);
}

.news-module .news-settings-section-head {
    margin-bottom: 14px;
}

.news-module .news-settings-section-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.news-module .news-settings-section-desc,
.news-module .news-settings-help,
.news-module .news-setting-toggle-desc {
    margin-top: 4px;
    color: var(--span);
    font-size: 11px;
    line-height: 1.5;
}

.news-module .news-settings-inner-grid,
.news-module .news-settings-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.news-module .news-settings-toggle-grid-mentions {
    margin-top: 10px;
}

.news-module .news-settings-field {
    margin-top: 12px;
}

.news-module .news-settings-field:first-of-type {
    margin-top: 0;
}

.news-module .news-settings-field > label,
.news-module .news-setting-toggle-row > label,
.news-module .news-setting-toggle-row > div > label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
}

.news-module .news-settings-field input[type="text"],
.news-module .news-settings-field input[type="password"],
.news-module .news-settings-field input[type="url"],
.news-module .news-settings-field input[type="number"] {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: var(--input-form);
    color: inherit;
    font-size: 12px;
    line-height: 1.2;
    outline: none;
    transition: border-color .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.news-module .news-settings-field input:focus {
    border-color: var(--text-custom);
    box-shadow: 0 0 0 2px rgba(255,255,255,.025);
}

.news-module .news-settings-field input:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.news-module .news-setting-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 50px;
    margin-top: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--input-form);
}

.news-module .news-setting-toggle-row-highlight {
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,.05);
}

.news-module .news-setting-toggle-row > div {
    min-width: 0;
}

.news-module .news-setting-toggle-row label,
.news-module .news-setting-toggle-title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.news-module .news-setting-toggle-row .switch {
    flex: 0 0 auto;
    margin: 0;
}

.news-module .news-setting-toggle-compact {
    min-height: 44px;
}

.news-module .news-settings-input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.news-module .news-settings-secret-wrap input {
    min-width: 0;
    padding-right: 12px !important;
}

.news-module .news-settings-secret-toggle {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    min-width: 114px;
    height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 7px;
    background: rgba(255,255,255,.08);
    color: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.news-module .news-settings-secret-toggle:hover {
    background: rgba(255,255,255,.13);
}

.news-module .news-settings-secret-full {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 7px;
    background: rgba(255,255,255,.05);
    color: var(--span);
    font-size: 11px;
    line-height: 1.45;
    word-break: break-all;
}

.news-module .news-settings-color-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.news-module .news-settings-color-preview {
    width: 44px;
    height: 42px;
    border-radius: 7px;
    border: 1px solid rgba(255,255,255,.09);
    background: #DEB887;
}

.news-module .news-settings-number-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.news-module .news-settings-number-row > span {
    color: var(--span);
    font-size: 11px;
}

.news-module .news-settings-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 2px;
}

.news-module .news-settings-actions-equal .btn {
    flex: 1 1 180px;
}

.news-module .news-settings-actions-single .btn {
    width: 100%;
}

.news-module .news-settings-actions .btn {
    margin: 0;
    min-width: 160px;
}

.news-module .news-settings-field.is-disabled,
.news-module .news-settings-field.is-hidden-disabled,
.news-module .news-setting-toggle-row.is-disabled {
    opacity: .55;
}

@media (max-width: 1200px) {
    .news-module .news-settings-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .news-module .news-settings-inner-grid,
    .news-module .news-settings-toggle-grid,
    .news-module .news-settings-input-group {
        grid-template-columns: 1fr;
    }

    .news-module .news-settings-secret-toggle {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 576px) {
    .news-module .news-settings-card-header {
        padding: 0 10px;
    }

    .news-module .news-settings-section {
        padding: 12px;
    }

    .news-module .news-setting-toggle-row {
        gap: 10px;
        align-items: flex-start;
    }

    .news-module .news-settings-actions {
        flex-direction: column;
    }

    .news-module .news-settings-actions .btn,
    .news-module .news-settings-actions-equal .btn,
    .news-module .news-settings-actions-single .btn {
        width: 100%;
        flex: 1 1 auto;
    }
}
