@font-face {
    font-family: "Moderustic-Medium";
    src: url("../fonts/Moderustic-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Moderustic-Regular";
    src: url("../fonts/Moderustic-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* CSS переменные для темы */
:root {
    --theme-bg-primary: #edeef0;
    --theme-bg-secondary: #ffffff;
    --event-particle-color: #ffffff;
    --theme-bg-tertiary: #f5f5f5;
    --theme-text-primary: #3e3e3e;
    --theme-text-secondary: #3e3e3e94;
    --theme-text-tertiary: #000000;
    --theme-border: rgba(0, 0, 0, 0.1);
    --theme-shadow: #eaeaea;
    --theme-button-primary: #1a1a1a;
    --theme-button-primary-hover: #2d2d2d;
    --theme-button-secondary: #1a1a1a;
    --theme-button-secondary-hover: #2d2d2d;
    --theme-nav-bg: #ffffff;
    --theme-article-bg: #ffffff;
    --theme-input-bg: #ffffff;
    --theme-input-border: rgba(0, 0, 0, 0.2);
    --theme-select-arrow: #1a1a1a;
    --theme-select-focus: #1a1a1a;
}

/* Тёмная тема */

/* Toast notifications (top-right) */
.app-toast-stack {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 10050;
    display: grid;
    gap: 10px;
    max-width: min(360px, calc(100vw - 36px));
    pointer-events: none;
}
.app-toast {
    pointer-events: auto;
    display: grid;
    grid-template-columns: 1fr 28px;
    gap: 10px;
    align-items: start;
    padding: 12px 12px 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--theme-border, rgba(0,0,0,0.1));
    background: var(--theme-bg-secondary, #fff);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateX(calc(100% + 22px));
    opacity: 0;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease;
    position: relative;
    overflow: hidden;
}
.app-toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}
.app-toast.is-hiding {
    opacity: 0;
}
.app-toast__message {
    font-size: 14px;
    line-height: 1.35;
    color: var(--theme-text-primary, #111);
    word-break: break-word;
}
.app-toast__close {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--theme-text-secondary, rgba(0,0,0,0.55));
    font-size: 22px;
    line-height: 1;
    padding: 0;
    margin: 0;
    cursor: pointer;
}
.app-toast__close:hover { color: var(--theme-text-primary, #111); }
.app-toast::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(45, 90, 170, 0.55);
}
.app-toast--success::before { background: rgba(45, 130, 80, 0.65); }
.app-toast--error::before { background: rgba(200, 60, 60, 0.7); }

@media (max-width: 480px) {
    .app-toast-stack {
        top: 12px;
        left: 12px;
        right: 12px;
        max-width: none;
    }
    .app-toast {
        transform: translateY(calc(-100% - 18px));
    }
    .app-toast.is-visible {
        transform: translateY(0);
    }
}

html {
  scroll-behavior: smooth;
}

*{
    margin: 0;
    padding: 0;
    color: var(--theme-text-primary);   
    list-style: none;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ============================================
   ЕДИНЫЙ СОВРЕМЕННЫЙ ШАБЛОН ДЛЯ SELECT
   ============================================ */
select {
    display: block;
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-size: 16px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-weight: 500;
    color: var(--theme-text-primary);
    background-color: var(--theme-input-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    border: 2px solid var(--theme-input-border);
    border-radius: 10px;
    box-sizing: border-box;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

select:hover {
    border-color: var(--theme-select-arrow);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08);
}

select:focus {
    border-color: var(--theme-select-focus);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.06), 0 4px 12px rgba(102, 126, 234, 0.1);
    outline: none;
}

select:active {
    transform: translateY(0);
}

select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: var(--theme-bg-tertiary);
}

/* Стилизация списка опций (dropdown) */
select option {
    padding: 10px 12px;
    background-color: var(--theme-input-bg);
    color: var(--theme-text-primary);
    font-size: 16px;
    font-weight: 500;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    min-height: 36px;
    line-height: 1.4;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

select option:hover,
select option:focus {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
}

select option:checked,
select option[selected] {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}

select option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--theme-bg-tertiary);
}

/* Улучшенная стилизация для темной темы */



/* Кастомный dropdown контейнер для улучшенной стилизации */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Переопределение для regField - убираем flex */
.regField .custom-select-wrapper {
    display: block !important;
    width: 100%;
}

/* Для select с фиксированной шириной (например, sort-select) */
.custom-select-wrapper:not(:has(select[style*="width"])) {
    width: 100%;
}

.custom-select-wrapper select {
    width: 100%;
}

/* Кастомный select элемент */
.custom-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 40px 8px 16px;
    font-size: 16px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-weight: 500;
    color: var(--theme-text-primary);
    background-color: var(--theme-input-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    border: 2px solid var(--theme-input-border);
    border-radius: 32px;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    -webkit-user-select: none;
    user-select: none;
    min-height: 44px;
}

.custom-select:hover {
    border-color: var(--theme-select-arrow);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08);
}

.custom-select.open {
    border-color: var(--theme-select-focus);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.06), 0 4px 12px rgba(102, 126, 234, 0.1);
    padding: 8px 40px 8px 16px;
}

.custom-select.open {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 3l5 5H1z'/%3E%3C/svg%3E");
}

/* Кастомный список опций */
.custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--theme-input-bg);
    border: 2px solid var(--theme-select-focus);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(102, 126, 234, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 4px;
    box-sizing: border-box;
}

.custom-select-search-wrapper {
    padding: 8px 10px;
    border-bottom: 1px solid var(--theme-border);
    background-color: var(--theme-input-bg);
    position: sticky;
    top: 0;
    z-index: 1;
}

.custom-select-search {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--theme-input-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    color: var(--theme-text-primary);
    background-color: var(--theme-input-bg);
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-select-search:focus {
    border-color: var(--theme-select-focus);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.custom-select-options.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Кастомная опция */
.custom-select-option {
    padding: 12px 12px;
    font-size: 15px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-weight: 500;
    color: var(--theme-text-primary);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--theme-border);
    min-height: 36px;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.custom-select-option.is-hidden {
    display: none;
}

.custom-select-option:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.custom-select-option:last-child {
    border-bottom: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.custom-select-option:hover:not(.disabled):not(.selected) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
    padding-left: 16px;
}

.custom-select-option.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: var(--theme-select-focus);
}

.custom-select-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--theme-bg-tertiary);
}

.custom-select-option.disabled:hover {
    background-color: var(--theme-bg-tertiary);
    color: var(--theme-text-primary);
    font-weight: 500;
    padding-left: 16px;
}

.custom-select-wrapper.is-form-reg {
    display: block !important;
    width: 100%;
    margin-bottom: 0;
    position: relative !important;
}

.custom-select-wrapper.is-form-reg .custom-select {
    padding: 12px 40px 12px 16px;
    font-size: 16px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-weight: 500;
    color: var(--theme-text-primary, #3e3e3e);
    border: 2px solid var(--theme-input-border, rgba(0, 0, 0, 0.2));
    border-radius: 16px;
    background-color: var(--theme-input-bg, #ffffff);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 48px;
}

.custom-select-wrapper.is-form-reg .custom-select:hover {
    border-color: var(--theme-button-primary, #1a1a1a);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.08);
}

.custom-select-wrapper.is-form-reg .custom-select.open {
    border-color: var(--theme-button-primary, #1a1a1a);
    box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.06), 0 4px 12px rgba(26, 26, 26, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 3l5 5H1z'/%3E%3C/svg%3E");
}

/* Список внутри обёртки (не портал в body) */
.custom-select-wrapper.is-form-reg .custom-select-options:not(.custom-select-options--portal) {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    border: 2px solid var(--theme-button-primary, #1a1a1a) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(26, 26, 26, 0.1) !important;
    margin-top: 4px !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    z-index: 10050 !important;
    background-color: var(--theme-input-bg, #ffffff) !important;
}

/* Портал в document.body: позицию/ширину задаёт JS (без !important top/left/width) */
.custom-select-options.is-form-reg.custom-select-options--portal {
    border: 2px solid var(--theme-button-primary, #1a1a1a);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(26, 26, 26, 0.1);
    background-color: var(--theme-input-bg, #ffffff);
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
}

.custom-select-wrapper.is-form-reg .custom-select-option,
.custom-select-options.is-form-reg .custom-select-option {
    padding: 4px 16px;
    font-size: 15px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-weight: 500;
    color: var(--theme-text-primary, #3e3e3e);
    border-bottom: 1px solid var(--theme-border, rgba(0, 0, 0, 0.1));
    min-height: 45px;
}

.custom-select-wrapper.is-form-reg .custom-select-option:first-child,
.custom-select-options.is-form-reg .custom-select-option:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.custom-select-wrapper.is-form-reg .custom-select-option:last-child,
.custom-select-options.is-form-reg .custom-select-option:last-child {
    border-bottom: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.custom-select-wrapper.is-form-reg .custom-select-option:hover:not(.disabled):not(.selected),
.custom-select-options.is-form-reg .custom-select-option:hover:not(.disabled):not(.selected) {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.06) 0%, rgba(45, 45, 45, 0.06) 100%);
    padding-left: 16px;
}

.custom-select-wrapper.is-form-reg .custom-select-option.selected,
.custom-select-options.is-form-reg .custom-select-option.selected {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.12) 0%, rgba(45, 45, 45, 0.12) 100%);
    color: var(--theme-button-primary, #1a1a1a);
}

.custom-select-wrapper.is-form-reg .custom-select-option.disabled,
.custom-select-options.is-form-reg .custom-select-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--theme-bg-tertiary, #f3f4f6);
}

.custom-select-wrapper.is-form-reg .custom-select-option.disabled:hover,
.custom-select-options.is-form-reg .custom-select-option.disabled:hover {
    background-color: var(--theme-bg-tertiary, #f3f4f6);
    color: var(--theme-text-primary, #3e3e3e);
    font-weight: 500;
    padding-left: 16px;
}

.custom-select-wrapper.is-form-reg select {
    display: none !important;
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
}

/* Убираем сдвиг текста при наведении на странице публикации (кроме вида «как регистрация») */
.publication .custom-select-wrapper:not(.is-form-reg) .custom-select-option:hover:not(.disabled):not(.selected) {
    padding-left: 12px;
}

.publication .custom-select-wrapper:not(.is-form-reg) .custom-select-option.disabled:hover {
    padding-left: 12px;
}

/* Скроллбар для списка опций */
.custom-select-options::-webkit-scrollbar {
    width: 8px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: var(--theme-bg-tertiary);
    border-radius: 4px;
    margin: 4px;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.28);
    border-radius: 4px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.42);
}

/* Firefox */
@supports (scrollbar-color: auto) {
.custom-select-options {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.28) var(--theme-bg-tertiary);
}
}

html[data-theme="dark"] .custom-select-options::-webkit-scrollbar-track {
    background: var(--theme-bg-tertiary);
}
html[data-theme="dark"] .custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
}
html[data-theme="dark"] .custom-select-options::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.32);
}
@supports (scrollbar-color: auto) {
html[data-theme="dark"] .custom-select-options {
    scrollbar-color: rgba(255, 255, 255, 0.22) var(--theme-bg-tertiary);
}
}

/* Темная тема для кастомного select */








/* Дополнительные стили для улучшения визуализации dropdown */
select::-ms-expand {
    display: none;
}

select::-webkit-scrollbar {
    width: 8px;
}

select::-webkit-scrollbar-track {
    background: var(--theme-bg-tertiary);
    border-radius: 4px;
}

select::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.28);
    border-radius: 4px;
}

select::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.42);
}

@supports (scrollbar-color: auto) {
select {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.28) var(--theme-bg-tertiary);
}
}

html[data-theme="dark"] select::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
}
html[data-theme="dark"] select::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.32);
}
@supports (scrollbar-color: auto) {
html[data-theme="dark"] select {
    scrollbar-color: rgba(255, 255, 255, 0.22) var(--theme-bg-tertiary);
}
}



/* Тёмная тема для select */



/* Специальные стили для select в формах */
.input select,
.regField select,
.form-container select,
.event-social-type {
    min-width: 150px;
}

/* Переопределение для специфических контекстов */
#multistep-form-container select {
    width: 100%;
}

/* Стили для поля хештегов, чтобы выглядело как раскрывающийся список */
#hashtags {
    padding: 12px 16px;
    font-size: 16px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-weight: 500;
    color: var(--theme-text-primary);
    background-color: var(--theme-input-bg);
    border: 2px solid var(--theme-input-border);
    border-radius: 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#hashtags:hover {
    border-color: var(--theme-select-arrow);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08);
}

#hashtags:focus {
    border-color: var(--theme-select-focus);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.06), 0 4px 12px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Единый дизайн для всех полей ввода текста */
.input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="date"]):not([type="time"]):not([type="datetime-local"]),
input[type="text"]:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="date"]):not([type="time"]):not([type="datetime-local"]),
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea {
    padding: 12px 16px;
    font-size: 16px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-weight: 500;
    color: var(--theme-text-primary);
    background-color: var(--theme-input-bg);
    border: 2px solid var(--theme-input-border);
    border-radius: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    outline: none;
    width: 100%;
}

.input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="date"]):not([type="time"]):not([type="datetime-local"]):hover,
input[type="text"]:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="date"]):not([type="time"]):not([type="datetime-local"]):hover,
input[type="email"]:hover,
input[type="url"]:hover,
input[type="tel"]:hover,
input[type="search"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
textarea:hover {
    border-color: var(--theme-select-arrow);
    background-color: var(--theme-input-bg);
}

.input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="date"]):not([type="time"]):not([type="datetime-local"]):focus,
input[type="text"]:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="date"]):not([type="time"]):not([type="datetime-local"]):focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus {
    border-color: var(--theme-select-focus);
    background-color: var(--theme-input-bg);
    outline: none;
}

#sort-select {
    min-width: 220px;
    width: auto;
}

/* Специальные стили для sort-select на странице events (как regField в auth.css) */
.sort-select-wrapper,
.custom-select-wrapper:has(#sort-select) {
    width: auto;
    display: inline-block;
}

.events-filter-control {
    position: relative;
    display: inline-block;
    min-width: 220px;
}

.events-filter-control .custom-select-wrapper,
.events-filter-control #sort-select {
    width: 100%;
}

.sort-select-wrapper .custom-select,
.custom-select-wrapper:has(#sort-select) .custom-select {
    width: auto;
    min-width: 220px;
    padding: 12px 40px 12px 16px;
    color: var(--theme-text-primary);
    background-color: var(--theme-input-bg);
    border: 2px solid var(--theme-input-border);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    box-shadow: 0 0 8px var(--theme-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sort-select-wrapper .custom-select:hover,
.custom-select-wrapper:has(#sort-select) .custom-select:hover {
    border-color: var(--theme-button-primary);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.08);
}

.sort-select-wrapper .custom-select.open,
.custom-select-wrapper:has(#sort-select) .custom-select.open {
    border-color: var(--theme-button-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 3l5 5H1z'/%3E%3C/svg%3E");
}

/* Сортировка: «без» рамки в покое на лентах — прозрачный border 2px (без скачка и без дубля с hover); hover/open — только общие правила sort-select + блок .open ниже */
body.page-news-feed .sort-select-wrapper .custom-select,
body.page-news-feed .custom-select-wrapper:has(#sort-select) .custom-select,
body.page-post .sort-select-wrapper .custom-select,
body.page-post .custom-select-wrapper:has(#sort-select) .custom-select,
body.page-events-feed .sort-select-wrapper .custom-select,
body.page-events-feed .custom-select-wrapper:has(#sort-select) .custom-select {
    border: 2px solid transparent;
}

/* Иначе shorthand выше перебивает общий .sort-select-wrapper .custom-select:hover (border-color) */
body.page-news-feed .sort-select-wrapper .custom-select:hover,
body.page-news-feed .custom-select-wrapper:has(#sort-select) .custom-select:hover,
body.page-post .sort-select-wrapper .custom-select:hover,
body.page-post .custom-select-wrapper:has(#sort-select) .custom-select:hover,
body.page-events-feed .sort-select-wrapper .custom-select:hover,
body.page-events-feed .custom-select-wrapper:has(#sort-select) .custom-select:hover {
    border-color: var(--theme-button-primary);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.08);
}

body.page-news-feed .sort-select-wrapper .custom-select.open,
body.page-news-feed .custom-select-wrapper:has(#sort-select) .custom-select.open,
body.page-post .sort-select-wrapper .custom-select.open,
body.page-post .custom-select-wrapper:has(#sort-select) .custom-select.open,
body.page-events-feed .sort-select-wrapper .custom-select.open,
body.page-events-feed .custom-select-wrapper:has(#sort-select) .custom-select.open {
    border-color: var(--theme-button-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 3l5 5H1z'/%3E%3C/svg%3E");
}

.sort-select-wrapper .custom-select-options,
.custom-select-wrapper:has(#sort-select) .custom-select-options {
    width: auto;
    min-width: 100%;
    background-color: var(--theme-input-bg);
    border: 2px solid var(--theme-button-primary);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(26, 26, 26, 0.1);
}

.sort-select-wrapper .custom-select-option,
.custom-select-wrapper:has(#sort-select) .custom-select-option {
    padding: 4px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--theme-text-primary);
    border-bottom: 1px solid var(--theme-border);
}

.sort-select-wrapper .custom-select-option:hover:not(.disabled):not(.selected),
.custom-select-wrapper:has(#sort-select) .custom-select-option:hover:not(.disabled):not(.selected) {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.06) 0%, rgba(45, 45, 45, 0.06) 100%);
}

.sort-select-wrapper .custom-select-option.selected,
.custom-select-wrapper:has(#sort-select) .custom-select-option.selected {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.12) 0%, rgba(45, 45, 45, 0.12) 100%);
    color: var(--theme-button-primary);
}

.sort-select-wrapper .custom-select-options::-webkit-scrollbar-thumb,
.custom-select-wrapper:has(#sort-select) .custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(26, 26, 26, 0.35);
}

.sort-select-wrapper .custom-select-options::-webkit-scrollbar-thumb:hover,
.custom-select-wrapper:has(#sort-select) .custom-select-options::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 26, 26, 0.5);
}

body{
    padding: 0;
    margin: 0;
    background-color: var(--theme-bg-primary);
    /* Без monospace в цепочке: иначе флаги и др. emoji берутся из моноширинного шрифта и показываются как буквы (RU вместо 🇷🇺). */
    font-family: "Moderustic-Regular", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

p,h1{
    margin: 0;
    padding: 0;
}

button{
    cursor: pointer;
}

h1{
    font-size: 24px;
    padding: 0 24px;
    margin: 0;
}

h2{
    font-size: 18px;
}

h4{
    font-size: 16px;
}

p{
    font-size: 17px;
}

time{
    color: var(--theme-text-secondary);
}

header{
    position: fixed;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    background-color: var(--theme-bg-primary);

    .logo {
        position: absolute;
        left: 20px; 
        display: flex;
        align-items: center;

        h1{
            font-size: 24px;
            padding: 0;
        }
    }

    .logo img {
        height: 40px;
        margin-right: 8px;
    }

    #btnAuth{
        background-color: var(--theme-button-primary);
        border: none;
        border-radius: 32px;
        font-size: 18px;
        padding: 12px 36px;
        transition: all 0.3s ease;
        position: absolute;
        right: 20px;
        color: white;
        overflow: hidden;
    }

    #btnAuth:hover{
        background-color: var(--theme-button-primary-hover);   
    }

    #btnAuth:active{
        padding: 10px 32px;
        right: 22px;
    }

    #btnExit{
        display: flex;
        gap: 5px;
        background-color: var(--theme-button-secondary);
        border: none;
        border-radius: 32px;
        font-size: 18px;
        padding: 10px 20px;
        transition: all 0.3s ease;
        position: absolute;
        right: 20px;
        color: white;
        align-items: center;
        overflow: hidden;
    }

    #btnExit:hover{
        background-color: var(--theme-button-secondary-hover);   
    }
}

html[data-js="1"]:not([data-header-auth-ready="1"]) header #btnAuth {
    color: transparent;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.06);
    box-shadow: 0 0 8px var(--theme-shadow);
}

html[data-js="1"]:not([data-header-auth-ready="1"]) header #btnAuth::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 45%, transparent 90%);
    transform: translateX(-100%);
    animation: post-skeleton-shimmer 1.05s linear infinite;
}

html[data-js="1"]:not([data-header-auth-ready="1"]) header #btnExit {
    color: transparent;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.06);
    box-shadow: 0 0 8px var(--theme-shadow);
}

html[data-js="1"]:not([data-header-auth-ready="1"]) header #btnExit img {
    opacity: 0;
}

html[data-js="1"]:not([data-header-auth-ready="1"]) header #btnExit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.12) 45%, transparent 90%);
    transform: translateX(-100%);
    animation: post-skeleton-shimmer 1.05s linear infinite;
}

html[data-js="1"][data-theme="dark"]:not([data-header-auth-ready="1"]) header #btnAuth {
    background: rgba(255, 255, 255, 0.07);
}

html[data-js="1"][data-theme="dark"]:not([data-header-auth-ready="1"]) header #btnAuth::before {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.14) 45%, transparent 90%);
}

html[data-js="1"][data-theme="dark"]:not([data-header-auth-ready="1"]) header #btnExit {
    background: rgba(255, 255, 255, 0.07);
}

html[data-js="1"][data-theme="dark"]:not([data-header-auth-ready="1"]) header #btnExit::before {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.14) 45%, transparent 90%);
}

/**/

header * {
    box-sizing: border-box;
}

.nav {
    width: 320px;
    min-width: 320px;
    height: 100%;
    position: fixed;
    top: 0;
    bottom: 0;
    margin: 0;
    left: -320px;
    padding: 15px 20px;
    -webkit-transition: left 0.3s;
    -moz-transition: left 0.3s;
    transition: left 0.3s;
    z-index: 2000;
    background-color: var(--theme-nav-bg);
    box-shadow: 0 0 8px var(--theme-shadow);

    menu{
        margin: 0;
        padding-top: 70px;
    }

    .nav-toggle {
        position: absolute;
        left: 340px;
        top: 24px;
        color: var(--theme-text-tertiary);
        cursor: pointer;
        font-size: 24px;
        line-height: 1;
        z-index: 2001;
        -webkit-transition: color .25s ease-in-out;
        -moz-transition: color .25s ease-in-out;
        transition: color .25s ease-in-out;
    }

    .nav-toggle:after {
        content: '\2630';
        text-decoration: none;
    }

    & > ul {
        display: block;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    & > ul > li {
        line-height: 2.5;
        opacity: 0;
        -webkit-transform: translateX(-50%);
        -moz-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        transform: translateX(-50%);
        -webkit-transition: opacity .5s .1s, -webkit-transform .5s .1s;
        -moz-transition: opacity .5s .1s, -moz-transform .5s .1s;
        -ms-transition: opacity .5s .1s, -ms-transform .5s .1s;
        transition: opacity .5s .1s, transform .5s .1s;
    }

    & > ul > li:nth-child(2) {
        -webkit-transition: opacity .5s .2s, -webkit-transform .5s .2s;
        transition: opacity .5s .2s, transform .5s .2s;
    }

    & > ul > li:nth-child(3) {
        -webkit-transition: opacity .5s .3s, -webkit-transform .5s .3s;
        transition: opacity .5s .3s, transform .5s .3s;
    }

    & > ul > li:nth-child(4) {
        -webkit-transition: opacity .5s .4s, -webkit-transform .5s .4s;
        transition: opacity .5s .4s, transform .5s .4s;
    }

    & > ul > li:nth-child(5) {
        -webkit-transition: opacity .5s .5s, -webkit-transform .5s .5s;
        transition: opacity .5s .5s, transform .5s .5s;
    }

    & > ul > li:nth-child(6) {
        -webkit-transition: opacity .5s .6s, -webkit-transform .5s .6s;
        transition: opacity .5s .6s, transform .5s .6s;
    }

    & > ul > li:nth-child(7) {
        -webkit-transition: opacity .5s .7s, -webkit-transform .5s .7s;
        transition: opacity .5s .7s, transform .5s .7s;
    }

    & > ul > li > a {
        display: inline-block;
        position: relative;
        padding: 0;
        font-family: 'Open Sans', sans-serif;
        font-weight: 300;
        font-size: 1.2em;
        color: #dadada;
        width: 100%;
        text-decoration: none;
        -webkit-transition: color .5s ease, padding .5s ease;
        -moz-transition: color .5s ease, padding .5s ease;
        transition: color .5s ease, padding .5s ease;
    }



}

[id='nav-toggle']:checked ~ .nav h2 {
    opacity: 1;
    -webkit-transform: scale(1, 1);
    -moz-transform: scale(1, 1);
    -ms-transform: scale(1, 1);
    transform: scale(1, 1);
}

[id='nav-toggle']:checked ~ .nav > ul > li {
    opacity: 1;
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
}

[id='nav-toggle'] {
    position: absolute;
    display: none;
}

[id='nav-toggle']:checked ~ .nav > .nav-toggle {
    left: 20px;
}

[id='nav-toggle']:checked ~ .nav {
    left: 0;
    -webkit-box-shadow: 4px 0px 6px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 4px 0px 6px rgba(0, 0, 0, 0.1);
    box-shadow: 4px 0px 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

body.menu-open {
    overflow: hidden;
}



/**/

aside{
    height: 100vh;
    float: left;
    padding: 20px;
    padding-top: 70px;
    overflow-y: hidden;
    transition: overflow 0.2s;
    box-sizing: border-box;
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.aside-nav-shell {
    position: fixed;
}

aside:hover {
    overflow-y: auto;
}

aside:hover .scroll-wrapper {
  overflow-y: auto;
}

.scroll-wrapper {
  height: 100%;
  overflow-y: hidden;
  padding: 20px;
  box-sizing: border-box;
}

::-webkit-scrollbar {
    width: .65em;
}

::-webkit-scrollbar-track {
    background-color: rgba(217, 217, 217, 0.75);
}

::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 128, 128, 0.7);
}

aside nav{
    margin-top: 20px;
    width: 225px;

    menu{
        display: grid;
        padding: 0 0 20px 0;
        gap: 20px;

        h1{
            font-size: 18px;
        }

        a{
            background-color: var(--theme-bg-tertiary);
            height: 40px;
            border-radius: 20px;
            align-items: center;
            display: flex;
            justify-content: flex-start;
            color: var(--theme-text-tertiary);
            font-size: 18px;  
            padding: 4px 12px;
            gap: 12px;
            box-shadow: 0 0 8px var(--theme-shadow);
            min-width: 0;

            img{
                width: 16px;
                aspect-ratio: 1 / 1;
                flex: 0 0 auto;
            }
        }

        a:hover,
        a[aria-current="page"],
        a.is-active{
            background-color: var(--theme-nav-bg);
        }
    }

    .club-aside{
        li{
            min-width: 0;
            max-width: 100%;
        }

        a{
            box-sizing: content-box;
            height: 40px;
            width: auto;
            min-width: 0;
            padding: 4px 12px;
        }

        img{
            width: 24px;
            height: 24px;
            flex-shrink: 0;
            border-radius: 50%;
            object-fit: cover;
        }
    }

}

/* Навигация: обрезаем длинный текст через ... */
aside nav menu a .nav-link-text,
aside nav menu a .club-name,
.sidePanel nav menu a .nav-link-text,
.sidePanel nav menu a .club-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Мобильная панель: блок юр. ссылок внизу экрана при коротком меню; при переполнении — общий скролл, как у aside */
.sidePanel .nav {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    bottom: auto;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    box-sizing: border-box;
}

aside .aside-legal,
.sidePanel .aside-legal {
    margin-top: 24px;
    padding: 0 0 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--theme-text-tertiary);
}

aside .aside-legal {
    width: 225px;
}

.sidePanel .aside-legal {
    width: 100%;
    padding: 0 20px 28px;
    margin-top: auto;
    flex-shrink: 0;
}

aside .aside-legal a,
.sidePanel .aside-legal a {
    color: inherit;
    text-decoration: none;
    border: none;
    border-radius: 0;
    height: auto;
    margin: 0;
    padding: 0;
    display: inline;
    align-items: unset;
    justify-content: unset;
    font-size: inherit;
}

aside .aside-legal a:hover,
.sidePanel .aside-legal a:hover {
    background: none;
    color: var(--theme-text-secondary, var(--theme-text-tertiary));
    text-decoration: none;
}

aside .aside-legal__copy,
.sidePanel .aside-legal__copy {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.85;
}

.sidePanel nav{
    menu{
        background-color: var(--theme-nav-bg);
        border-radius: 8px;
        margin-top: 55px;
        display: grid;
        padding: 20px 0;
        gap: 20px;

        h1{
            font-size: 18px;
        }

        a{
            height: 40px;
            border: 1px solid var(--theme-border);
            border-radius: 16px;
            align-items: center;
            display: flex;
            justify-content: flex-start;
            margin: 0 20px;
            color: var(--theme-text-tertiary);
            font-size: 18px;
            padding: 0 12px;
            gap: 12px;
            width: calc(100% - 40px);
            box-sizing: border-box;
            min-width: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;

            img{
                width: 16px;
                aspect-ratio: 1 / 1;
            }
        }

        a:hover{
            background-color: var(--theme-bg-tertiary);
        }
    }

    li{
        max-width: 100%;
        overflow: hidden;
    }
}

.club-avatar-img{
    border-radius: 50%;
    object-fit: cover;
}

.club-name{
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

main{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    padding-top: 70px;
}

article{
    margin-top: 20px;
    background-color: var(--theme-article-bg);
    border-radius: 32px;
    box-shadow: 0 0 8px var(--theme-shadow);
}

/* Тень карточек только: ленты объявлений/мероприятий и страница публикации; таймлайн лендинга — event_page.css */
body.page-news-feed section.news article,
body.page-post section.news article,
body.page-events-feed section.news article {
    box-shadow: 0 0 8px var(--theme-shadow);
}

.swiper-container {
    max-width: 680px;
    margin: 0 auto;
    background-color: var(--theme-bg-tertiary);
    --swiper-navigation-size: 14px;
    --post-media-frame-height: clamp(220px, 52vw, 520px);
    position: relative;

    .swiper-wrapper {
    display: flex;
    align-items: center;
    }

    .swiper-slide {
    display: flex;
    justify-content: center; 
    align-items: center;   
    flex: 0 0 100% !important;
    width: 100% !important;
    height: var(--post-media-frame-height);
    max-height: 520px;
    overflow: hidden;
    background: transparent;
    }

    .swiper-slide img,
    .swiper-slide video {
        display: block;
        width: 100%;
        height: 100%;
        max-height: 100%;
        object-fit: contain;
        background: transparent;
    }

    .swiper-slide .post-modern-video,
    .swiper-slide .post-modern-embed {
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 0;
        background: #000;
    }

    .swiper-slide .post-modern-video {
        object-fit: contain;
    }

    .swiper-slide .plyr {
        width: 100%;
        height: var(--post-media-frame-height);
        max-height: 680px;
        border-radius: 0;
        overflow: hidden;
        --plyr-color-main: #cfcfcf;
        background: #090909;
        position: relative;
    }

    .swiper-slide .plyr:fullscreen,
    .swiper-slide .plyr.plyr--fullscreen-fallback {
        width: 100vw !important;
        height: 100vh !important;
        max-height: none !important;
        background: #000;
    }

    .swiper-slide .plyr:fullscreen .plyr__video-wrapper,
    .swiper-slide .plyr.plyr--fullscreen-fallback .plyr__video-wrapper {
        width: 100vw !important;
        height: 100vh !important;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #000;
    }

    .swiper-slide .plyr:fullscreen video,
    .swiper-slide .plyr.plyr--fullscreen-fallback video {
        width: 100vw !important;
        height: 100vh !important;
        object-fit: contain !important;
        object-position: center center !important;
    }

    .swiper-slide .plyr:fullscreen.plyr--hide-controls .plyr__controls,
    .swiper-slide .plyr.plyr--fullscreen-fallback.plyr--hide-controls .plyr__controls {
        opacity: 0;
        transform: translateY(16px);
        pointer-events: none;
    }

    .swiper-slide .plyr__video-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        background: #090909;
    }

    .swiper-slide .plyr video {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        object-position: center center;
        display: block;
        margin: 0 auto;
    }

    .swiper-slide .plyr--video .plyr__controls {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        min-height: 52px;
        box-sizing: border-box;
        padding: 8px 10px;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: opacity 0.22s ease, transform 0.22s ease;
    }

    /* На паузе / остановлено: только центральная кнопка; нижняя панель (.plyr__controls) скрыта */
    .swiper-slide .plyr.plyr--video.plyr--paused .plyr__controls,
    .swiper-slide .plyr.plyr--video.plyr--stopped .plyr__controls {
        opacity: 0 !important;
        pointer-events: none !important;
        transform: translateY(100%) !important;
        visibility: hidden !important;
    }

    .swiper-slide .plyr.plyr--video.plyr--paused .plyr__control--overlaid,
    .swiper-slide .plyr.plyr--video.plyr--stopped .plyr__control--overlaid {
        opacity: 0.9 !important;
        visibility: visible !important;
    }

    /* Нижняя панель при наведении на слайд во время воспроизведения (plyr--hide-controls) */
    .swiper-slide:has(.plyr):hover .plyr.plyr--video.plyr--playing.plyr--hide-controls .plyr__controls,
    .swiper-slide:has(.plyr):focus-within .plyr.plyr--video.plyr--playing.plyr--hide-controls .plyr__controls {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
        visibility: visible !important;
    }

    /* На паузе / остановлено: при наведении на контейнер со слайдом — показать нижнюю панель */
    .swiper-slide:has(.plyr):hover .plyr.plyr--video.plyr--paused .plyr__controls,
    .swiper-slide:has(.plyr):hover .plyr.plyr--video.plyr--stopped .plyr__controls,
    .swiper-slide:has(.plyr):focus-within .plyr.plyr--video.plyr--paused .plyr__controls,
    .swiper-slide:has(.plyr):focus-within .plyr.plyr--video.plyr--stopped .plyr__controls {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
        visibility: visible !important;
    }

    .swiper-slide .plyr__control svg {
        fill: rgba(255, 255, 255, 0.78);
    }

    .swiper-slide .plyr__control:hover svg,
    .swiper-slide .plyr__control[aria-expanded="true"] svg {
        fill: #ffffff;
    }

    .swiper-slide .plyr__time {
        color: rgba(255, 255, 255, 0.78);
    }

    .swiper-slide .plyr__menu__container {
        background: rgba(18, 18, 18, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    }

    .swiper-slide .plyr__menu__container .plyr__control {
        color: rgba(255, 255, 255, 0.82);
    }

    .swiper-slide .plyr__menu__container .plyr__control,
    .swiper-slide .plyr__menu__container .plyr__control span,
    .swiper-slide .plyr__menu__container .plyr__menu__value {
        color: rgba(255, 255, 255, 0.88) !important;
    }

    .swiper-slide .plyr__menu__container .plyr__control:hover,
    .swiper-slide .plyr__menu__container .plyr__control[aria-checked="true"] {
        background: rgba(255, 255, 255, 0.1);
        color: #fff !important;
    }

    /* Полоска под строкой «Назад» в подменю (скорость и т.д.) */
    .swiper-slide .plyr__menu__container .plyr__control--back::before {
        background: rgba(0, 0, 0, 0.72) !important;
        box-shadow: 0 1px 0 rgba(0, 0, 0, 0.55) !important;
    }

    /* Кружки выбора скорости (menuitemradio), без затрагивания ::before у «Назад» */
    .swiper-slide .plyr__menu__container .plyr__control[role="menuitemradio"]::before {
        background: rgba(0, 0, 0, 0.4) !important;
        border: 2px solid #1f1f1f !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
        opacity: 1 !important;
    }

    .swiper-slide .plyr__menu__container .plyr__control[role="menuitemradio"]:hover::before,
    .swiper-slide .plyr__menu__container .plyr__control[role="menuitemradio"]:focus-visible::before {
        background: rgba(0, 0, 0, 0.52) !important;
        border-color: #2a2a2a !important;
    }

    .swiper-slide .plyr__menu__container .plyr__control[role="menuitemradio"][aria-checked="true"]::before {
        background: #1a1a1a !important;
        border-color: #0f0f0f !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    }

    .swiper-slide .plyr__menu__container .plyr__control[role="menuitemradio"]::after {
        background: #4a4a4a !important;
        border: 0 !important;
    }

    .swiper-slide .plyr__menu__container .plyr__control[role="menuitemradio"][aria-checked="true"]::after {
        background: #707070 !important;
        opacity: 1 !important;
    }

    .swiper-slide .plyr__control--overlaid {
        background: rgba(20, 20, 20, 0.88);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 999px;
    }

    .swiper-slide .plyr__control--overlaid:hover,
    .swiper-slide .plyr__control--overlaid:focus-visible {
        background: rgba(32, 32, 32, 0.95);
    }

    .swiper-slide .plyr__controls .plyr__control:not(.plyr__control--overlaid) {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .swiper-slide .plyr__controls .plyr__control:not(.plyr__control--overlaid):hover,
    .swiper-slide .plyr__controls .plyr__control:not(.plyr__control--overlaid):focus-visible,
    .swiper-slide .plyr__controls .plyr__control:not(.plyr__control--overlaid)[aria-expanded="true"] {
        background: transparent !important;
    }

    .swiper-slide .plyr__progress {
        min-width: 0;
    }

    .swiper-slide .plyr__volume {
        min-width: 116px;
        width: 116px;
        max-width: 116px;
        flex: 0 0 116px;
    }

    .swiper-slide .post-modern-video-frame {
        width: 100%;
        height: 100%;
        background:
            radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 40%),
            radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 42%),
            #090909;
        border-radius: 0;
        overflow: hidden;
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    }


    .swiper-button-next, .swiper-button-prev {
        width: 28px;
        height: 28px;
        background: rgba(255, 255, 255, 0.85);
        border-radius: 50%;
        color: var(--theme-text-secondary, #666);
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
        transition: all 0.2s ease;
        opacity: 0;
        pointer-events: none;
    }

    &:hover .swiper-button-next,
    &:hover .swiper-button-prev {
        opacity: 1;
        pointer-events: auto;
    }

    .swiper-button-disabled {
        display: none !important;
    }

    .swiper-button-next:hover, .swiper-button-prev:hover {
        background: rgba(255, 255, 255, 0.95);
        color: var(--theme-text-primary, #333);
    }

    .swiper-button-next::after, .swiper-button-prev::after {
        font-size: 14px;
        font-weight: bold;
    }

    &.swiper-single-slide .swiper-button-prev,
    &.swiper-single-slide .swiper-button-next {
        display: none;
    }

    &.swiper-single-slide .swiper-photo-counter {
        display: none;
    }

    .swiper-photo-counter {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 10;
        background: rgba(0, 0, 0, 0.35);
        color: rgba(255, 255, 255, 0.7);
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 13px;
        font-weight: 500;
        pointer-events: none;
        opacity: 0.6;
        transition: opacity 0.25s ease, background 0.25s ease, color 0.25s ease;
    }

    &:hover .swiper-photo-counter {
        opacity: 1;
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
    }
}

/* Жёсткое ограничение высоты медиа в карточках ленты:
   и фото, и видео рисуются в одинаковой рамке и не растягивают пост. */
section.news article .swiper-container {
    --post-media-frame-height: clamp(220px, 52vw, 680px);
}

section.news article .swiper-container .swiper-slide {
    height: auto !important;
    max-height: 680px !important;
    overflow: hidden;
    background: transparent;
}

section.news article .swiper-container .swiper-slide img,
section.news article .swiper-container .swiper-slide video {
    width: 100% !important;
    height: auto !important;
    max-height: 680px !important;
    object-fit: contain;
    display: block;
}

section.news article .swiper-container .swiper-slide .post-modern-video {
    width: 100% !important;
    height: auto !important;
    max-height: 680px !important;
    border-radius: 0;
}

section.news article .swiper-container .swiper-slide .plyr:fullscreen video.post-modern-video,
section.news article .swiper-container .swiper-slide .plyr.plyr--fullscreen-fallback video.post-modern-video {
    max-height: 100% !important;
}

section.news article .swiper-container .swiper-slide .plyr {
    width: 100% !important;
    height: clamp(220px, 52vw, 680px) !important;
    max-height: 680px !important;
}

section.news article .swiper-container .swiper-slide .post-modern-video-frame {
    max-height: 680px !important;
}

/*поиск*/

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 700px;
  border-radius: 50px;
  overflow: visible;
  padding: 10px;

    .header-search-skeleton {
        position: absolute;
        inset: 0;
        z-index: 4;
        display: flex;
        align-items: center;
        padding: 10px;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.18s ease, visibility 0.18s ease;

        .header-search-skeleton__desktop {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .header-search-skeleton__mobile {
            display: none;
        }

        .skel {
            --skel-base: rgba(0, 0, 0, 0.06);
            --skel-shine: rgba(0, 0, 0, 0.12);
            background: var(--skel-base);
            position: relative;
            overflow: hidden;
        }

        .skel::before {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, transparent 0%, var(--skel-shine) 45%, transparent 90%);
            transform: translateX(-100%);
            animation: post-skeleton-shimmer 1.05s linear infinite;
        }

        .header-search-skeleton__desktop-icon {
            width: 47px;
            height: 47px;
            border-radius: 50%;
            flex: 0 0 auto;
        }

        .header-search-skeleton__desktop-field {
            flex: 1 1 auto;
            height: 47px;
            border-radius: 10px;
        }

        .header-search-skeleton__mobile-icon {
            width: 44px;
            height: 44px;
            border-radius: 50%;
        }
    }

    .search-icon {
        position: static;
        background-color: var(--theme-input-bg);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23000000' fill='none' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16' y1='16' x2='21' y2='21'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        padding: 12px;
        background-size: 16px 16px;
        border: 3px solid #fff;
        width: auto;
        height: 47px;
        aspect-ratio: 1/1;
        box-shadow: 0 0 8px var(--theme-shadow);
        border-radius: 50%;
        cursor: pointer;
        outline: none;
    }

    input {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        font-size: 18px;
        font-family: "Moderustic-Regular", monospace, sans-serif;
        font-weight: 500;
        outline: none;
        display: block;
        box-sizing: border-box;
        border-radius: 50px;
        border: 3px solid transparent;
        background-color: var(--theme-input-bg);
        color: var(--theme-text-primary);
        box-shadow: 0 0 8px var(--theme-shadow);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 9px 18px;
    }

    input:hover:not(:focus) {
        border-color: transparent;
    }

    input:focus {
        border: 3px solid rgba(58, 58, 58, 0.35);
        box-shadow: 0 0 8px var(--theme-shadow);
    }

    [type="search"]::-webkit-search-cancel-button {
        -webkit-appearance: none;
        appearance: none;
        height: 10px;
        width: 10px;
        background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjEyMy4wNXB4IiBoZWlnaHQ9IjEyMy4wNXB4IiB2aWV3Qm94PSIwIDAgMTIzLjA1IDEyMy4wNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTIzLjA1IDEyMy4wNTsiDQoJIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPHBhdGggZD0iTTEyMS4zMjUsMTAuOTI1bC04LjUtOC4zOTljLTIuMy0yLjMtNi4xLTIuMy04LjUsMGwtNDIuNCw0Mi4zOTlMMTguNzI2LDEuNzI2Yy0yLjMwMS0yLjMwMS02LjEwMS0yLjMwMS04LjUsMGwtOC41LDguNQ0KCQljLTIuMzAxLDIuMy0yLjMwMSw2LjEsMCw4LjVsNDMuMSw0My4xbC00Mi4zLDQyLjVjLTIuMywyLjMtMi4zLDYuMSwwLDguNWw4LjUsOC41YzIuMywyLjMsNi4xLDIuMyw4LjUsMGw0Mi4zOTktNDIuNGw0Mi40LDQyLjQNCgkJYzIuMywyLjMsNi4xLDIuMyw4LjUsMGw4LjUtOC41YzIuMy0yLjMsMi4zLTYuMSwwLTguNWwtNDIuNS00Mi40bDQyLjQtNDIuMzk5QzEyMy42MjUsMTcuMTI1LDEyMy42MjUsMTMuMzI1LDEyMS4zMjUsMTAuOTI1eiIvPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPC9zdmc+DQo=');
        background-size: 10px 10px;
    }
}

html[data-js="1"] header .search .header-search-skeleton {
    opacity: 1;
    visibility: visible;
}

html[data-js="1"] header .search > :not(.header-search-skeleton) {
    visibility: hidden;
}

html[data-js="1"][data-header-search-ready="1"] header .search .header-search-skeleton {
    opacity: 0;
    visibility: hidden;
}

html[data-js="1"][data-header-search-ready="1"] header .search > :not(.header-search-skeleton) {
    visibility: visible;
}

html[data-js="1"][data-theme="dark"] header .search .header-search-skeleton .skel {
    --skel-base: rgba(255, 255, 255, 0.07);
    --skel-shine: rgba(255, 255, 255, 0.14);
}

.news, .events{
    margin-top: 20px;

    article{
        width: 680px;
    }

    .info-2{
        padding: 0 24px;
        padding-bottom: 16px;  

        .text {
            max-width: 632px;
            min-width: 0;
            white-space: pre-wrap;
            overflow-wrap: anywhere;
            word-break: break-word;
            padding: 0;
            display: -webkit-box;
            -webkit-line-clamp: 5;
            line-clamp: 5;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: all 0.3s ease;
            margin-top: 15px;
            font-variant-emoji: emoji;
            /* Emoji/флаги первыми: в Moderustic есть глифы на U+1F1E6–U+1F1FF как буквы — иначе видно «RU», не 🇷🇺 */
            font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Moderustic-Regular", ui-sans-serif, sans-serif;

            /* Длинные URL в <a>: перенос по ширине карточки (line-clamp + -webkit-box иначе режут без min-width/жёсткого break) */
            a,
            .post-inline-hashtag {
                display: inline;
                overflow-wrap: anywhere;
                word-break: break-word;
            }

            a[href*="://"] {
                word-break: break-all;
            }
        }

        .text.expanded {
            display: block;
            -webkit-line-clamp: unset;
            line-clamp: unset;
            overflow: visible;
            text-overflow: unset;
            text-align: justify;
        }

        /* «Развернуть» и т.п.; не трогать .post-event-action-btn (Записаться) */
        button:not(.post-event-action-btn) {
            background: none;
            border: none;
            font-size: 14px;
            margin-top: 16px;  
            color: #3e3e3e94;  
            font-weight: bold;    
            cursor: pointer;
        }

        /* «Развернуть» создаётся JS-ом только при необходимости */

        h4{
            text-align: right;
            margin-top: 16px;
        }
        
        .post-hashtags {
            margin-top: 16px;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            
            .hashtag {
                background-color: #f0f0f0;
                color: #666;
                padding: 4px 8px;
                border-radius: 12px;
                font-size: 13px;
                font-weight: 500;
                cursor: pointer;
                transition: all 0.2s ease;
            }
            
            .hashtag:hover {
                background-color: #e0e0e0;
                color: #333;
            }
        }
    }
}

.info{
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 24px;
        padding-bottom: 0;
        margin-bottom: 15px;

        div{
            display: flex;
            align-items: center;
            box-sizing: border-box;
        }

        img{
            width: 40px;
            aspect-ratio: 1/1;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 12px;         
        }

        h1{
            margin: 0 24px;
        }

        button{
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            min-width: 36px;
            min-height: 36px;
            box-sizing: border-box;
            background: none;
            border: none;
            padding: 6px;
            border-radius: 50%;   

            img{
                width: 20px;
                border-radius: 0;
                margin: 0;
            }
        }

        button:hover{
            background-color: #eaeaea8c;
        }

        button:focus,
        button.dialog-open{
            background-color: #eaeaea;
        }
    }

.info .info_public{
    flex: 1;
    min-width: 0;
}

.info .info_public > a{
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.info .info_public > a > h2{
    margin: 0;
    line-height: 1.25;
    display: block;
    max-height: calc(1.25em * 2);
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.info .info_public > a > h2.is-truncated{
    -webkit-mask-image: linear-gradient(to right, black 55%, rgba(0, 0, 0, 0.45) 78%, transparent 100%);
    mask-image: linear-gradient(to right, black 55%, rgba(0, 0, 0, 0.45) 78%, transparent 100%);
}

    .post-title {
        padding: 0 24px;
        padding-top: 24px;
        margin-bottom: 15px;

        h3 {
            font-size: 20px;
            font-weight: 600;
            color: #2c2c2c;
            margin: 0;
            line-height: 1.3;
            margin-bottom: 15px;
            overflow-wrap: break-word;
            word-break: break-word;
        }
    }

/**/

.club_info{
    width: 100%;
    max-width: 680px;
    margin-bottom: 20px;
    box-sizing: border-box;
    min-width: 0;

    p{
        white-space: pre-wrap;
        text-align: justify;
        padding: 24px;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: anywhere;
        word-break: break-word;

        a,
        .post-inline-hashtag {
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        a[href*="://"] {
            word-break: break-all;
        }
    }
}

.club-info-card {
    position: relative;
    overflow: hidden;
}

.publication, .settings{
    box-sizing: border-box;

    width: 100%;
    max-width: 680px;
}

.scheduled-publications {
    margin-top: 20px;
}

.scheduled-publications .scheduled-table-container {
    margin-top: 12px;
}

.scheduled-publications-hint {
    margin-top: 12px;
    font-size: 14px;
    color: var(--theme-text-secondary);
}

.settings .scheduled-publications-table .cancel-scheduled-btn {
    border: 1px solid rgba(102, 126, 234, 0.28);
    background: rgba(102, 126, 234, 0.10);
    color: #3b47b7;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.settings .scheduled-publications-table .cancel-scheduled-btn:hover {
    background: rgba(102, 126, 234, 0.16);
    border-color: rgba(102, 126, 234, 0.34);
}

.settings .scheduled-publications-table .cancel-scheduled-btn:active {
    transform: translateY(1px);
}

.settings .scheduled-publications-table .cancel-scheduled-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Унифицированная кнопка "Открыть пост" в таблицах статистики */
.events-table .open-post-btn,
.general-info-page .open-post-btn {
    border: 1px solid rgba(102, 126, 234, 0.28);
    background: rgba(102, 126, 234, 0.10);
    color: #3b47b7;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.events-table .open-post-btn:hover,
.general-info-page .open-post-btn:hover {
    background: rgba(102, 126, 234, 0.16);
    border-color: rgba(102, 126, 234, 0.34);
}

.events-table .open-post-btn:active,
.general-info-page .open-post-btn:active {
    transform: translateY(1px);
}

.profileFieldTelegramForwarding .profileFieldText {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    word-break: break-all;
}

.profileFieldTelegramForwardingToggle .profileFieldHint {
    grid-column: 1 / -1;
    margin-top: 8px;
    color: var(--theme-text-secondary);
    font-size: 13px;
    line-height: 1.35;
}

.profileFieldMainTelegramForwarding .telegram-forwarding-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.profileFieldMainTelegramForwarding .telegram-forwarding-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-text-primary, #2f2a3c);
    line-height: 1.3;
}

.profileFieldTelegramForwardingToggle {
    grid-template-columns: 1fr;
}

.profileFieldTelegramForwardingToggle .profileFieldHint a {
    color: #3b47b7;
    text-decoration: underline;
}

.profileFieldTelegramEventsToggle {
    grid-template-columns: 1fr;
}

.telegram-events-mode-row {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: nowrap;
    padding: 12px;
    margin-top: 10px;
    overflow-x: auto;
}

.telegram-events-mode-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    font-size: 14px;
    color: var(--theme-text-primary, #2f2a3c);
    cursor: pointer;
    white-space: nowrap;
}

.telegram-events-mode-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.telegram-events-mode-box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #9ca3af;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.telegram-events-mode-box::after {
    content: "✓";
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.telegram-events-mode-text {
    font-size: 14px;
    line-height: 1.25;
}

.telegram-events-mode-option input[type="radio"]:checked + .telegram-events-mode-box {
    border-color: #667eea;
    background: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.24), 0 0 12px rgba(102, 126, 234, 0.42);
}

.telegram-events-mode-option input[type="radio"]:checked + .telegram-events-mode-box::after {
    opacity: 1;
    transform: scale(1);
}

.telegram-events-mode-option input[type="radio"]:focus-visible + .telegram-events-mode-box {
    outline: 2px solid rgba(102, 126, 234, 0.45);
    outline-offset: 2px;
}

.social-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

.social-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.social-switch .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #c7c7c7;
    transition: 0.2s;
    border-radius: 999px;
}

.social-switch .slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    top: 3px;
    background-color: #fff;
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.social-switch input:checked + .slider {
    background-color: #667eea;
}

.social-switch input:checked + .slider::before {
    transform: translateX(20px);
}

/* ── Блок уведомлений: ключ ── */
.profileFieldNotifyKey .profileFieldText {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    word-break: break-all;
}

/* ── Бейджи статуса привязки ── */
.notify-link-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    margin-top: 8px;
}

.notify-link-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: #f3f3f5;
    color: #999;
    border: 1px solid #e5e5ea;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.notify-link-badge[data-linked="1"] {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #a5d6a7;
}

/* ── Блок уведомлений: тоггл + канал ── */
.profileFieldNotifyToggle {
    grid-template-columns: 1fr;
}

.profileFieldNotifyToggle .notify-hint {
    grid-column: 1 / -1;
    margin-top: 8px;
    color: var(--theme-text-secondary);
    font-size: 13px;
    line-height: 1.35;
}

.profileFieldNotifyToggle .notify-hint a {
    color: #3b47b7;
    text-decoration: underline;
}

/* ── Выбор канала: чипы ── */
.notify-channel-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding: 2px 0;
}

.notify-channel-option {
    display: inline-flex;
    position: relative;
    cursor: pointer;
}

.notify-channel-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.notify-channel-box {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px solid #d0d5e8;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    background: #f6f7fb;
    transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
    user-select: none;
    white-space: nowrap;
}

.notify-channel-option input[type="radio"]:checked + .notify-channel-box {
    border-color: #667eea;
    background: #667eea;
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.notify-channel-option input[type="radio"]:focus-visible + .notify-channel-box {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

.notify-channel-option input[type="radio"]:disabled + .notify-channel-box {
    opacity: 0.5;
    cursor: not-allowed;
}

.scheduled-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.scheduled-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.scheduled-preview-content {
    position: relative;
    z-index: 1;
    background-color: var(--theme-bg-primary);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 24px;
    box-sizing: border-box;
    width: 100%;
    max-width: 728px;
}

.scheduled-preview-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.scheduled-preview-close:hover {
    background: #e2e2e2;
}

.scheduled-preview-post article {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    background-color: var(--theme-article-bg);
    border-radius: 32px;
    box-shadow: 0 0 8px var(--theme-shadow);
}

.scheduled-preview-post .info-2 {
    padding: 0 24px;
    padding-bottom: 16px;
}

.scheduled-preview-post .info-2 .text {
    max-width: 632px;
    min-width: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    margin-top: 15px;
    line-height: 1.5;
    font-variant-emoji: emoji;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Moderustic-Regular", ui-sans-serif, sans-serif;

    a,
    .post-inline-hashtag {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    a[href*="://"] {
        word-break: break-all;
    }
}

.scheduled-preview-post .post-hashtags {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.scheduled-preview-post .post-hashtags .hashtag {
    background-color: #f0f0f0;
    color: #666;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.scheduled-preview-post .info-2 h4 {
    text-align: right;
    margin-top: 16px;
}

.scheduled-preview-event-date {
    padding: 24px 24px 0 24px;
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c2c2c;
    line-height: 1.3;
}

.scheduled-preview-media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.scheduled-preview-actions {
    margin: 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.scheduled-preview-btn {
    border: 1px solid var(--theme-border);
    padding: 10px 18px;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.scheduled-preview-btn.primary {
    background: #667eea;
    color: #ffffff;
    border-color: transparent;
}

.scheduled-preview-btn.primary:hover {
    background: #5568d3;
}

.scheduled-preview-btn.secondary:hover {
    background: #f2f2f2;
}

.scheduled-preview-share {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    box-sizing: border-box;
    background: none;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
}

.scheduled-preview-share img {
    width: 20px;
    height: 20px;
}

.scheduled-preview-modal .event-registration a,
.scheduled-preview-modal .event-registration button {
    pointer-events: none;
    opacity: 0.6;
}


.reference{
    box-sizing: border-box;
    width: 100%;
    max-width: 680px;
    margin-top: 20px;

    h1{
        padding: 0;
    }

    p, ol li, p{
        line-height: 1.5;
        font-size: 18px;
        text-align: justify;
    }
    
    article{
        background-color: #ffffff;
        border-radius: 32px;
        padding: 24px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    ol{
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-left: 0;
    }

    a{
        color: #4e79eb;
    }

    ul{
        display: flex;
        flex-direction: column;
        max-width: 740px;
        margin: 0 auto;
        gap: 16px;
        padding: 0;

        li{
            padding: 6px;
            border: 1px solid #E5E7EB;
            border-radius: 20px;
            overflow: hidden;
            list-style: none;

            label {
                display: block;
                padding: 8px;
                padding-bottom: 12px;
                cursor: pointer;
                font-weight: bold;
                font-size: 18px;
            }

            label {
                position: relative;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }
            
            label::after {
                content: '';
                display: inline-block;
                width: 8px;
                height: 8px;
                border-right: 2px solid #000;
                border-bottom: 2px solid #000;
                transform: rotate(45deg);
                transition: transform 0.3s ease;
                margin-left: 8px;
            }
            
            input:checked + label::after {
                transform: rotate(-45deg);
            }
            
            
            div {
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease, padding 0.3s ease;
                padding: 0 16px;
            }
            
            input:checked + label + div {
                max-height: 1000px;
                padding: 16px;
            }
        }
    }
}

.reference-article-card {
    position: relative;
    overflow: hidden;
}

.settings{

    article{
        padding: 20px;
        box-sizing: border-box;
        font-size: 18px;
        flex-wrap: wrap;

        figure{
            display: flex;

            img{
                object-fit: contain;
                margin-right: 12px;
            }

            figcaption{
                display: flex;
                justify-content: flex-start;
                gap: 5px;
            }   
        }

        button{
            border: none;
            background-color: var(--theme-button-secondary);
            border-radius: 32px;
            font-size: 18px;
            padding: 12px 20px;
            transition: all 0.3s ease;
            color: white;
            cursor: pointer;

            &:hover {
                background-color: var(--theme-button-secondary-hover);
            }
        }

        h1{
            padding: 0;
        }
    }

    article:nth-child(1){
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;   

        figure{
            align-items: center;

            img{
                width: 62px;
            }

            figcaption{
                flex-direction: column;
            }
        }
    }

    article.settings-card {
        display: flex;
        flex-direction: column;
        gap: 20px;

        div{
            display: flex;
            flex-direction: column;
            gap: 20px ;

            figure{
                display: flex;
                flex-direction: row;
            }

            div{
                display: flex;
                flex-direction: row;      
                justify-content: space-between;
                align-items: center;
            }
        }

        button{
            width: 138px;
            padding: 12px 16px;
        }
    }
}



    .feedback{
        margin-top: 20px;
        max-width: 680px;
        width: 100%;

        form{
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                padding: 32px;
                gap: 32px;
                box-sizing: border-box;     

                div{
                    display: flex;
                    flex-direction: column;
                    gap: 14px;
                    width: 100%;
                    box-sizing: border-box;
                }

                &:nth-child(2){
                    height: 220px;

                    div{
                        display: flex;
                        flex-direction: row;
                        align-items: center;
                    }

                    img{
                    width: 16px;    
                    height: 16px; 
                    }

                    div:nth-child(4) img{
                        width: 12px;    
                    }

                }

                &:nth-child(3){
                    height: 92px;
                    
                    div{
                        flex-direction: row;
                    }
                }

                input{
                    outline: none;
                    width: 100%;
                    height: 50px;
                    border: 1px solid #E5E7EB;
                    border-radius: 8px;
                    padding: 0 16px;
                    font-size: 18px;
                    box-sizing: border-box;
                }

                textarea{
                    outline: none;
                    border: 1px solid #E5E7EB;
                    border-radius: 8px;
                    width: 100%;
                    aspect-ratio: 4 / 3;
                    padding: 16px;
                    font-size: 18px;
                    resize: none;
                    box-sizing: border-box;
                }

                button{
                    margin-top: 30px;
                    width: 100%;
                    height: 48px;
                    border: none;
                    background-color: #d81c1c;
                    transition: all 0.3s ease;
                    border-radius: 8px;
                    color: white;
                    font-size: 18px;
                }

                button:hover{
                    background-color: #c01919;   
            }
    }
}

/* Модальное окно обратной связи */
.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 1002;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feedback-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.feedback-modal-content {
    position: relative;
    box-sizing: border-box;
    background: var(--theme-bg-secondary);
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10002;
    animation: feedbackModalSlideIn 0.3s ease;
}

@keyframes feedbackModalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.feedback-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--theme-text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.feedback-modal-close:hover {
    background-color: var(--theme-bg-tertiary);
    color: var(--theme-text-primary);
}

.feedback-modal-content h2 {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--theme-text-primary);
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feedback-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feedback-form-group label {
    font-size: 16px;
    font-weight: 500;
    color: var(--theme-text-primary);
    display: flex;
    align-items: center;
}

.feedback-form-group input,
.feedback-form-group textarea,
.feedback-form-group select:not([data-custom-select-initialized="true"]) {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--theme-input-border);
    border-radius: 16px;
    font-size: 16px;
    font-family: inherit;
    background-color: var(--theme-input-bg);
    color: var(--theme-text-primary);
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.feedback-form-group input:focus,
.feedback-form-group textarea:focus,
.feedback-form-group select:not([data-custom-select-initialized="true"]):focus {
    outline: none;
    border-color: var(--theme-select-focus);
}

.feedback-form-group textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

.club-post-message-modal .club-post-message-name-field {
    cursor: default;
    opacity: 0.72;
    background-color: var(--theme-bg-tertiary, #eef0f4) !important;
    color: var(--theme-text-secondary, #6b7280);
}

.club-post-message-modal .club-post-message-name-field:focus {
    outline: none;
    border-color: var(--theme-input-border);
}

/* Современный чекбокс под общий дизайн */
.checkbox-modern {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    color: var(--theme-text-primary);
    max-width: 100%;
}

.checkbox-modern__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.checkbox-modern__box {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 2px solid var(--theme-input-border, rgba(0,0,0,0.2));
    background-color: var(--theme-input-bg, #ffffff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: all 0.18s ease;
}

.checkbox-modern__icon {
    width: 12px;
    height: 12px;
    stroke: #ffffff;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: scale(0.6);
    opacity: 0;
    transition: all 0.18s ease;
}

.checkbox-modern__label {
    display: -webkit-box;
    max-width: 320px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    word-break: break-word;
}

.checkbox-modern__label a {
    color: inherit;
    text-decoration: underline;
}

.checkbox-modern:hover .checkbox-modern__box {
    border-color: var(--theme-select-arrow, var(--theme-button-primary));
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.checkbox-modern__input:focus-visible + .checkbox-modern__box {
    outline: 2px solid var(--theme-select-focus, var(--theme-button-primary));
    outline-offset: 2px;
}

.checkbox-modern__input:checked + .checkbox-modern__box {
    border-color: var(--theme-button-primary);
    background-color: var(--theme-button-primary);
}

.checkbox-modern__input:checked + .checkbox-modern__box .checkbox-modern__icon {
    opacity: 1;
    transform: scale(1);
}

.checkbox-modern:hover .checkbox-modern__input:checked + .checkbox-modern__box {
    border-color: var(--theme-button-primary);
    background-color: var(--theme-button-primary);
}

.feedback-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--theme-button-primary);
    color: white;
    border: none;
    border-radius: 32px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 8px;
}

.feedback-submit-btn:hover {
    background: var(--theme-button-primary-hover);
}

.feedback-submit-btn:active {
    transform: scale(0.98);
}


/* Модальное окно жалобы на публикацию */
.report-modal {
    position: fixed;
    inset: 0;
    z-index: 1002;
    display: flex;
    justify-content: center;
    align-items: center;
}

.report-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.report-modal-content {
    position: relative;
    box-sizing: border-box;
    background: var(--theme-bg-secondary);
    border-radius: 32px;
    padding: 32px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10002;
    animation: feedbackModalSlideIn 0.3s ease;
}

.report-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--theme-text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.report-modal-close:hover {
    background-color: var(--theme-bg-tertiary);
    color: var(--theme-text-primary);
}

.report-modal-content h2 {
    margin: 0 0 8px 0;
    padding-right: 40px;
    font-size: 24px;
    font-weight: 600;
    color: var(--theme-text-primary);
}

.report-modal-subtitle {
    margin: 0 0 24px 0;
    font-size: 14px;
    color: var(--theme-text-secondary);
}

.report-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.report-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--theme-input-border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--theme-bg-primary);
}

.report-option:hover {
    border-color: var(--theme-select-focus);
    background: var(--theme-bg-tertiary);
}

.report-option:has(input:checked) {
    border-color: var(--theme-select-focus);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.report-option input {
    margin-top: 4px;
    flex-shrink: 0;
}

.report-option-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-option-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--theme-text-primary);
}

.report-option-desc {
    font-size: 13px;
    color: var(--theme-text-secondary);
    line-height: 1.4;
}

.report-other-field {
    margin-bottom: 24px;
}

.report-other-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--theme-text-primary);
    margin-bottom: 8px;
}

.report-other-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--theme-input-border);
    border-radius: 20px;
    font-size: 15px;
    font-family: inherit;
    background-color: var(--theme-input-bg);
    color: var(--theme-text-primary);
    box-sizing: border-box;
    resize: none;
    min-height: 180px;
}

.report-other-field textarea:focus {
    outline: none;
    border-color: var(--theme-select-focus);
}

.report-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.report-cancel-btn {
    padding: 12px 20px;
    border: 2px solid var(--theme-input-border);
    border-radius: 32px;
    background: transparent;
    color: var(--theme-text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-cancel-btn:hover {
    border-color: var(--theme-text-secondary);
    color: var(--theme-text-primary);
}

.report-submit-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 32px;
    background: var(--theme-button-primary);
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.report-submit-btn:hover:not(:disabled) {
    background: var(--theme-button-primary-hover);
}

.report-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Модальное окно списка репортов по публикации (Общая информация) */
.reports-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reports-detail-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.reports-detail-content {
    position: relative;
    z-index: 1;
    background: var(--theme-bg-primary);
    border-radius: 16px;
    padding: 24px;
    max-width: 560px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.reports-detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: var(--theme-text-secondary);
    cursor: pointer;
    border-radius: 50%;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}

.reports-detail-close:hover {
    background: var(--theme-bg-tertiary);
    color: var(--theme-text-primary);
}

.reports-detail-content h2 {
    margin: 0 0 20px 0;
    padding-right: 40px;
    font-size: 18px;
    font-weight: 600;
    color: var(--theme-text-primary);
}

#reports-detail-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reports-detail-item {
    padding: 14px;
    background: var(--theme-bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--theme-input-border);
}

.reports-detail-item-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 8px;
}

.reports-detail-item-num {
    font-weight: 600;
    color: var(--theme-text-primary);
}

.reports-detail-item-date {
    font-size: 14px;
    color: var(--theme-text-secondary);
}

.reports-detail-item-category {
    font-size: 14px;
    color: var(--theme-select-focus);
}

.reports-detail-item-desc {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: var(--theme-text-primary);
    line-height: 1.4;
}

.reports-detail-item-reporter {
    margin: 0;
    font-size: 13px;
    color: var(--theme-text-secondary);
}

.reports-table-hint {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--theme-text-secondary);
}

.reports-row:hover {
    background: var(--theme-bg-tertiary);
}

.indicatorBtnOne,
.indicatorBtnTwo,
.indicator {
    aspect-ratio: 1 / 1;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff4444; /* красный по умолчанию (отключено) */
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-right: 8px;
    /* Гарантируем, что в индикаторах не будет текста */
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
    overflow: hidden;
}

.indicatorBtnOne.connected,
.indicatorBtnTwo.connected,
.indicator.connected {
    background-color: #44ff44; /* зеленый (подключено) */
}

/* Стили для секции интеграции с соцсетями */
.social-integration {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    background-color: #f9f9f9;
}

.social-item figure {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.social-item figure img {
    width: 24px;
    height: 24px;
}

.social-item figcaption {
    font-weight: 500;
    color: #333;
}

.social-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings .parser-news-info-card {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 16px;
}

.settings .parser-news-info-banner {
    width: min(680px, 100%);
    padding: 18px 16px;
    border-radius: 14px;
    background: #f3f0ff;
    border: 1px solid #dcd3ff;
    box-sizing: border-box;
}

.settings .parser-news-info-value {
    font-size: 15px;
    line-height: 1.35;
    color: #2f225f;
    font-weight: 600;
    margin: 0;
}

.settings .parser-news-info-note {
    font-size: 13px;
    line-height: 1.4;
    color: #5e5580;
    margin-top: 8px;
}

.settings .general-info-open-btn,
.settings .stats-open-btn,
.settings .social-toggle-btn,
.club-edit-modal-content .social-toggle-btn {
    border: 1px solid rgba(102, 126, 234, 0.28);
    background: rgba(102, 126, 234, 0.10);
    color: #3b47b7;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.settings .general-info-open-btn:hover,
.settings .stats-open-btn:hover,
.settings .social-toggle-btn:hover,
.club-edit-modal-content .social-toggle-btn:hover {
    background: rgba(102, 126, 234, 0.16);
    border-color: rgba(102, 126, 234, 0.34);
}

.settings .general-info-open-btn:active,
.settings .stats-open-btn:active,
.settings .social-toggle-btn:active,
.club-edit-modal-content .social-toggle-btn:active {
    transform: translateY(1px);
}

.settings .social-toggle-btn:disabled,
.club-edit-modal-content .social-toggle-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Фолбэк для прочих .social-toggle-btn (не в настройках и не в модалке организации) */
.social-toggle-btn:hover {
    background-color: var(--theme-button-secondary-hover);
}

.social-toggle-btn:active {
    transform: translateY(1px);
}

.publication article .publication-section-hint {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    background: rgba(102, 126, 234, 0.08);
    color: var(--theme-text-primary, #3e3e3e);
    font-size: 12px;
    line-height: 1.4;
}

.publication article .publication-section-hint:empty {
    display: none;
}

.publication article .publication-section-hint.is-info {
    border: none;
    background: rgba(102, 126, 234, 0.10);
}

.publication article .publication-section-hint.is-ok {
    border: none;
    background: rgba(34, 197, 94, 0.10);
}

.publication article .publication-section-hint.is-warn {
    border: none;
    background: rgba(245, 158, 11, 0.12);
}

.publication article .publication-section-hint.is-danger {
    border: none;
    background: rgba(239, 68, 68, 0.10);
}



.publication{    
    * {
        box-sizing: border-box;
    }

    article {
        background-color: #ffffff;
        padding: 20px;
        border-radius: 32px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-width: 680px;
        width: 100%;
        min-height: 800px;
        max-height: none;
        overflow: visible;
        display: flex;
        flex-direction: column;

        .hide {
            display: none;
        }

        #stepperValue {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            text-align: center;
            font-size: 16px;
            gap: 10px;
        }
        #stepper-placeholder {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
            margin-bottom: 2rem;
            padding: 8px 0;
            opacity: 0.9;
        }
        .stepper-placeholder-line {
            flex: 1;
            height: 2px;
            border-radius: 999px;
            background: linear-gradient(90deg, #dbe1ff 0%, #cfd7ff 100%);
        }
        .stepper-placeholder-dot {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #d4dbff;
            box-shadow: 0 0 0 4px rgba(212, 219, 255, 0.35);
            flex-shrink: 0;
        }
        .steps {
            display: inline-block;
            width: 32px;
            height: 32px;
            line-height: 32px;
            border-radius: 50%;
            background-color: #c7c9f1;
            color: #ffffff;
            text-align: center;
            transition: 0.3s ease;
        }
        .step-separator {
            flex: 1;
            min-width: 18px;
            height: 2px;
            border-radius: 999px;
            background: #d7ddf7;
        }
        .steps.highlight {
            background: #667eea;
            color: #ffffff;
            font-weight: bold;
        }
        .form-container {
            display: none;
            max-height: none;
            overflow: visible;
        }
        .form-container:not(.hide) {
            display: flex;
            flex-direction: column;
            gap: 16px;
            max-height: none;
            overflow: visible;
        }
        label {
            display: block;
            font-size: 16px;
        }
        
        /* Разрешаем flexbox для label, которые должны быть flex-контейнерами */
        label:has(input[type="radio"]),
        label:has(input[type="checkbox"]),
        label.custom-switch,
        label.radio-option,
        label[class*="flex"],
        label[style*="flex"] {
            display: flex;
        }
        
        /* Для label с radio/checkbox внутри, которые должны быть в строку */
        label.radio-option {
            display: flex;
            flex-direction: row;
            align-items: center;
        }

        input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="date"]):not([type="time"]):not([type="datetime-local"]) {
            display: block;
            width: 100%;
            padding: 12px 16px;
            font-size: 16px;
            font-family: "Moderustic-Regular", monospace, sans-serif;
            font-weight: 500;
            color: var(--theme-text-primary);
            background-color: var(--theme-input-bg);
            border: 2px solid var(--theme-input-border);
            border-radius: 32px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-sizing: border-box;
            outline: none;
        }

        input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="date"]):not([type="time"]):not([type="datetime-local"]):hover {
            border-color: var(--theme-select-arrow);
            background-color: var(--theme-input-bg);
        }

        input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="date"]):not([type="time"]):not([type="datetime-local"]):focus {
            border-color: var(--theme-select-focus);
            background-color: var(--theme-input-bg);
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.06), 0 4px 12px rgba(102, 126, 234, 0.1);
            outline: none;
        }

        /* Стили для полей даты и времени в стиле календаря и выпадающего списка */
        input[type="date"],
        input[type="time"],
        input[type="datetime-local"] {
            font-family: "Moderustic-Regular", monospace, sans-serif;
            font-weight: 500;
            color: var(--theme-text-primary);
            background-color: var(--theme-input-bg);
            border: 2px solid var(--theme-input-border);
            border-radius: 10px;
            padding: 10px 14px;
            min-height: 44px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        input[type="date"]:hover,
        input[type="time"]:hover,
        input[type="datetime-local"]:hover {
            border-color: var(--theme-select-arrow);
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
        }

        input[type="date"]:focus,
        input[type="time"]:focus,
        input[type="datetime-local"]:focus {
            border-color: var(--theme-select-focus);
            box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.06), 0 4px 12px rgba(102, 126, 234, 0.1);
            outline: none;
        }

        /* Темная тема для полей даты и времени */



        /* select использует глобальный шаблон выше */


        .btn{
            display: block;
            width: 100%;
            padding: 14px 12px;
            font-size: 16px;
            color: #fff;
            background-color: #667eea;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .btn:hover {
            background-color: #5568d3;
        }

        .btn:disabled {
            background: #dddddd;
            cursor: not-allowed;
        }
        .btn.hide {
            display: none;
        }

        #error-message {
            color: #ffffff;
            font-size: 14px;
            margin: auto;
            margin-top: 2.5rem;
            text-align: center;
            background-color: #e92828;
            padding: 6px 16px;
            border-radius: 16px;
        }

        #error-message:empty {
            display: none;
        }

        #multistep-form-container{
            display: flex;
    flex-direction: column;
            flex: 1 1 auto;
            min-height: min-content;
            overflow: visible;
            width: 100%;
            box-sizing: border-box;
            gap: 16px;
        }
        
        #multistep-form-container > div:first-child {
            flex: 1 1 auto;
            min-height: min-content;
            overflow: visible;
            width: 100%;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
        }
        
        .btns {
            display: flex;
            justify-content: space-between;
            gap: 20%;
            margin-top: auto;
            padding-top: 20px;
            flex-shrink: 0;
        }

        .upload-area{
            color: var(--c-text-primary);
            background-color: var(--c-background-primary);
            line-height: 1.5;
            margin-top: 1.25rem;
            border: none;
            background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23ccc' stroke-width='3' stroke-dasharray='6%2c 14' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
            background-color: transparent;
            padding: 3rem;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            text-align: center;

            *, *::after, *::before {
                box-sizing: border-box;
            }

            :root {
                --c-action-primary: #2e44ff;
                --c-action-primary-accent: #e9e5ff;
                --c-action-secondary: #e5e5e5;
                --c-text-primary: #0d0f21;
                --c-text-secondary: #6a6b76;
                --c-background-primary: #d0d1de;
            }

            input, button, select, textarea {
                font: inherit;
            }

            .upload-area-icon {
                display: block;
                width: 2.25rem;
                height: 2.25rem;
            }

            .upload-area-icon svg {
                max-height: 100%;
                max-width: 100%;
            }

            .upload-area-title {
                margin-top: 1rem;
                font-weight: 700;
                color: var(--c-text-primary);
            }

            .upload-area-description {
                color: var(--c-text-secondary);
            }

            .upload-area-description strong {
                color: var(--c-action-primary);
                font-weight: 700;
            }

            .btn-secondary,
            .btn-primary {
                padding: .5rem 1rem;
                font-weight: 500;
                border: 2px solid var(--c-action-secondary);
                border-radius: .25rem;
                background-color: transparent;
                cursor: pointer;
            }

            .btn-primary {
                color: #FFF;
                background-color: var(--c-action-primary);
                border-color: var(--c-action-primary);
            }
            
        }

        .upload-area:hover,
        .upload-area:focus {
            background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23323a45' stroke-width='3' stroke-dasharray='6%2c 14' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
        }

        .upload-area.drag-over {
            background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%232e44ff' stroke-width='4' stroke-dasharray='6%2c 14' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
            background-color: rgba(46, 68, 255, 0.05);
            transform: scale(1.02);
            transition: all 0.2s ease;
        }   

        .uploaded-files-list {
            margin-top: 1.5rem;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 1rem;
        }

        .uploaded-file-item {
            position: relative;
            background-color: var(--c-action-primary-accent);
            border-radius: 0.75rem;
            overflow: hidden;
            padding: 0.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
            transition: transform 0.2s ease, opacity 0.2s ease;
            animation: fadeIn 0.3s ease forwards;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .file-thumb {
            width: 100%;
            height: 70px;
            object-fit: cover;
            border-radius: 0.5rem;
            background-color: #d0d0d0;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 2rem;
            color: var(--c-action-primary);
        }

        .file-name {
            margin-top: 0.5rem;
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--c-text-primary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            width: 100%;
        }

        .remove-file-btn {
            position: absolute;
            top: 6px;
            right: 6px;
            background-color: rgba(0, 0, 0, 0.5);
            color: #fff;
            border: none;
            border-radius: 50%;
            width: 22px;
            height: 22px;
            font-size: 0.9rem;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: background 0.2s;
        }

        .remove-file-btn:hover {
            background-color: rgba(0, 0, 0, 0.7);
        }

        textarea{
            outline: none;
            border: 1px solid #E5E7EB;
            border-radius: 8px;
            width: 100%;
            height: 584px;
            padding: 16px;
            font-size: 16px;
            resize: none;
            box-sizing: border-box;
        }

    }
}

.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;

    &.show {
        opacity: 1;
        pointer-events: auto;
    }

    &.show .modal-content {
        transform: translateY(0);
        opacity: 1;
    }

    .modal-content {
        background-color: #ffffff;
        padding: 48px 0;
        border-radius: 16px;
        position: relative;
        width: 320px;
        max-width: 90%;
        text-align: center;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        transform: translateY(-20px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .close-button {
        position: absolute;
        top: 12px;
        right: 16px;
        font-size: 24px;
        font-weight: bold;
        color: #888;
        cursor: pointer;
        transition: color 0.2s ease;
    }

    .close-button:hover {
        color: #333;
    }

    p {
        font-size: 18px;
        margin-bottom: 48px;
    }

    .modal-actions {
        display: flex;
        justify-content: center;
        gap: 48px;
    }

    .btn {
        padding: 10px 28px;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.2s ease;

        &.btn-yes {
            background-color: #667eea;
            color: #fff;
        }

        &.btn-no {
            background-color: #e0e0e0;
            color: #333;
        }

        &.btn-yes:hover {
            background-color: #5568d3;
        }

        &.btn-no:hover {
            background-color: #cfcfcf;
        }
    }

}

/*3 этап*/

.publish-time-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    border: 2px solid var(--theme-input-border);
    border-radius: 10px;
    padding: 6px 10px;
    background-color: var(--theme-input-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.publish-time-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.publish-time-selector .btn.publish-time-button{
    width: auto;
    padding: 8px 12px;
}

.publish-time-selector .btn.btn-reset {
    background-color: #f5f5f5;
    color: #333;
    border: 2px solid #e1e5e9;
    padding: 8px 12px;
}

.publish-time-selector .btn.btn-reset:hover {
    background-color: #e8e8e8;
    border-color: #d0d0d0;
}

.publish-time-selector .btn.btn-reset:active {
    background-color: #dcdcdc;
}

/* Стили для поля datetime-local в модальном окне планирования */
#schedule-modal input[type="datetime-local"],
.modal input[type="datetime-local"] {
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-weight: 500;
    color: var(--theme-text-primary);
    background-color: var(--theme-input-bg);
    border: 2px solid var(--theme-input-border);
    border-radius: 10px;
    padding: 10px 14px;
    min-height: 44px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-sizing: border-box;
}

#schedule-modal input[type="datetime-local"]:hover,
.modal input[type="datetime-local"]:hover {
    border-color: var(--theme-select-arrow);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
}

#schedule-modal input[type="datetime-local"]:focus,
.modal input[type="datetime-local"]:focus {
    border-color: var(--theme-select-focus);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.06), 0 4px 12px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Темная тема для модального окна */



/* ============================================
   КАСТОМНЫЕ КАЛЕНДАРЬ И СЕЛЕКТОР ВРЕМЕНИ
   ============================================ */

/* Обертка для кастомного календаря */
.custom-date-picker-wrapper,
.custom-time-picker-wrapper,
.custom-datetime-picker-wrapper {
    position: relative;
    width: 100%;
}

/* В строке schedule-datetime-row обертки должны иметь одинаковую ширину */
.schedule-datetime-row .custom-date-picker-wrapper,
.schedule-datetime-row .custom-time-picker-wrapper {
    flex: 1;
    min-width: 0;
}

/* Элемент отображения календаря */
.custom-date-picker-display,
.custom-time-picker-display,
.custom-datetime-picker-display {
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-weight: 500;
    color: var(--theme-text-primary);
    background-color: var(--theme-input-bg);
    border: 2px solid var(--theme-input-border);
    border-radius: 18px;
    padding: 10px 14px;
    height: 44px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    box-sizing: border-box;
    outline: none;
}

.custom-date-picker-display:hover,
.custom-time-picker-display:hover,
.custom-datetime-picker-display:hover {
    border-color: var(--theme-select-arrow);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
}

.custom-date-picker-display:focus,
.custom-time-picker-display:focus,
.custom-datetime-picker-display:focus {
    border-color: var(--theme-select-focus);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.06), 0 4px 12px rgba(102, 126, 234, 0.1);
    outline: none;
}

.custom-date-picker-display.active,
.custom-time-picker-display.active,
.custom-datetime-picker-display.active {
    border-color: var(--theme-select-focus);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.06), 0 4px 12px rgba(102, 126, 234, 0.1);
}

.custom-date-picker-display.placeholder,
.custom-time-picker-display.placeholder,
.custom-datetime-picker-display.placeholder {
    color: var(--theme-text-secondary);
}

/* Темная тема для элементов отображения */



/* Кастомный календарь */
.custom-date-picker {
    position: absolute;
    z-index: 1000;
    background-color: var(--theme-input-bg);
    border: 2px solid var(--theme-select-focus);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(102, 126, 234, 0.1);
    padding: 12px;
    min-width: 240px;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.custom-date-picker.open {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Заголовок календаря */
.custom-date-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.custom-date-picker-month-year {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.custom-date-picker-month {
    font-size: 15px;
    font-weight: 600;
    color: var(--theme-text-primary);
    font-family: "Moderustic-Regular", monospace, sans-serif;
}

.custom-date-picker-year {
    font-size: 12px;
    color: var(--theme-text-secondary);
    font-family: "Moderustic-Regular", monospace, sans-serif;
}

.custom-date-picker-nav-btn {
    padding: 6px 10px;
    font-size: 14px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-weight: 500;
    color: var(--theme-text-primary);
    background-color: var(--theme-input-bg);
    border: 2px solid var(--theme-input-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    outline: none;
}

.custom-date-picker-nav-btn:hover {
    border-color: var(--theme-select-arrow);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
}

.custom-date-picker-nav-btn:focus {
    border-color: var(--theme-select-focus);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.06), 0 4px 12px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Дни недели */
.custom-date-picker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 6px;
}

.custom-date-picker-weekday {
    text-align: center;
    font-weight: 600;
    color: var(--theme-text-secondary);
    font-size: 11px;
    padding: 4px 2px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
}

/* Дни календаря */
.custom-date-picker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.custom-date-picker-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 500;
    color: var(--theme-text-primary);
    font-family: "Moderustic-Regular", monospace, sans-serif;
    min-height: 28px;
    background-color: transparent;
    border: 1.5px solid transparent;
}

.custom-date-picker-day:not(.empty):hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
    border-color: var(--theme-select-arrow);
    transform: scale(1.05);
}

.custom-date-picker-day.today {
    font-weight: 600;
    border-color: var(--theme-select-arrow);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.custom-date-picker-day.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: var(--theme-select-focus);
    border-color: var(--theme-select-focus);
    font-weight: 600;
}

.custom-date-picker-day.empty {
    cursor: default;
    background-color: transparent;
}

/* Темная тема для календаря */






/* Кастомный селектор времени */
.custom-time-picker {
    position: absolute;
    z-index: 1000;
    background-color: var(--theme-input-bg);
    border: 2px solid var(--theme-select-focus);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(102, 126, 234, 0.1);
    padding: 12px;
    min-width: 240px;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.custom-time-picker.open {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.custom-time-picker-header {
    text-align: center;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-text-primary);
    font-family: "Moderustic-Regular", monospace, sans-serif;
}

.custom-time-picker-content {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.custom-time-picker-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.custom-time-picker-column-title {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--theme-text-secondary);
    margin-bottom: 6px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
}

.custom-time-picker-scrollable {
    max-height: 160px;
    overflow-y: auto;
    border: 2px solid var(--theme-input-border);
    border-radius: 8px;
    background-color: var(--theme-bg-secondary);
}

/* Скроллбар для селектора времени */
.custom-time-picker-scrollable::-webkit-scrollbar {
    width: 8px;
}

.custom-time-picker-scrollable::-webkit-scrollbar-track {
    background: var(--theme-bg-tertiary);
    border-radius: 4px;
}

.custom-time-picker-scrollable::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.6);
    border-radius: 4px;
}

.custom-time-picker-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8);
}

.custom-time-picker-option {
    padding: 6px 8px;
    font-size: 13px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-weight: 500;
    color: var(--theme-text-primary);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--theme-border);
    text-align: center;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-time-picker-option:first-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.custom-time-picker-option:last-child {
    border-bottom: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.custom-time-picker-option:hover:not(.selected) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
}

.custom-time-picker-option.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: var(--theme-select-focus);
    font-weight: 600;
}

.custom-time-picker-footer {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.custom-time-picker-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-weight: 500;
    color: var(--theme-text-primary);
    background-color: var(--theme-input-bg);
    border: 2px solid var(--theme-input-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    outline: none;
}

.custom-time-picker-btn:hover {
    border-color: var(--theme-select-arrow);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
}

.custom-time-picker-btn:focus {
    border-color: var(--theme-select-focus);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.06), 0 4px 12px rgba(102, 126, 234, 0.1);
    outline: none;
}

.custom-time-picker-btn-apply {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: var(--theme-select-focus);
    color: var(--theme-select-focus);
    font-weight: 600;
}

.custom-time-picker-btn-apply:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}

/* Темная тема для селектора времени */









/* Кастомный селектор даты и времени */
.custom-datetime-picker {
    position: absolute;
    z-index: 1000;
    background-color: var(--theme-input-bg);
    border: 2px solid var(--theme-select-focus);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(102, 126, 234, 0.1);
    padding: 16px;
    min-width: 400px;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.custom-datetime-picker.open {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.custom-picker-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 9998;
}

.custom-picker-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.custom-picker-close-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 2px solid var(--theme-input-border);
    border-radius: 999px;
    background: var(--theme-input-bg);
    color: var(--theme-text-primary);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.custom-datetime-picker-header {
    text-align: center;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--theme-text-primary);
    font-family: "Moderustic-Regular", monospace, sans-serif;
}

.custom-datetime-picker-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.custom-datetime-picker-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-datetime-picker-section label {
    font-size: 14px;
    font-weight: 500;
    color: var(--theme-text-secondary);
    font-family: "Moderustic-Regular", monospace, sans-serif;
}

.custom-datetime-picker-date-wrapper,
.custom-datetime-picker-time-wrapper {
    width: 100%;
}

.custom-datetime-picker-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.custom-datetime-picker-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-weight: 500;
    color: var(--theme-text-primary);
    background-color: var(--theme-input-bg);
    border: 2px solid var(--theme-input-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    outline: none;
}

.custom-datetime-picker-btn:hover {
    border-color: var(--theme-select-arrow);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
}

.custom-datetime-picker-btn:focus {
    border-color: var(--theme-select-focus);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.06), 0 4px 12px rgba(102, 126, 234, 0.1);
    outline: none;
}

.custom-datetime-picker-btn-apply {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: var(--theme-select-focus);
    color: var(--theme-select-focus);
    font-weight: 600;
}

.custom-datetime-picker-btn-apply:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}

/* Темная тема для селектора даты и времени */





/* Адаптивность */
@media (max-width: 768px) {
    .custom-date-picker,
    .custom-time-picker,
    .custom-datetime-picker {
        min-width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }

    .custom-datetime-picker {
        min-width: calc(100vw - 40px);
    }

    .custom-time-picker-content {
        flex-direction: column;
    }

    .custom-date-picker.mobile-modal,
    .custom-time-picker.mobile-modal,
    .custom-datetime-picker.mobile-modal {
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(var(--custom-picker-mobile-scale, 1)) !important;
        transform-origin: center center;
        width: auto;
        min-width: 0;
        max-width: none;
        max-height: none;
        overflow: visible;
        z-index: 9999;
        border-radius: 18px;
        padding: 16px;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
        will-change: transform;
    }

    .custom-date-picker.mobile-modal .custom-picker-close-btn,
    .custom-time-picker.mobile-modal .custom-picker-close-btn,
    .custom-datetime-picker.mobile-modal .custom-picker-close-btn {
        display: inline-flex;
    }

    .custom-date-picker.mobile-modal .custom-date-picker-header,
    .custom-time-picker.mobile-modal .custom-time-picker-header,
    .custom-datetime-picker.mobile-modal .custom-datetime-picker-header {
        gap: 10px;
    }
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.hide {
    display: none !important;
}

.modal-overlay.show {
    display: flex !important;
}

/* Специфичные стили для попапа выбора времени публикации */
.schedule-popup {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.schedule-popup.hide {
    display: none !important;
}

.schedule-popup.show {
    display: block !important;
}

.schedule-popup-content {
    padding: 1.5rem;
}

.schedule-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.schedule-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--theme-text-primary, #333);
}

.schedule-popup-header .modal-close {
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    margin-left: 1rem;
}

.schedule-popup-header .modal-close:hover {
    color: #000;
}

/* Дата, время и кнопка в одну строку */
.schedule-datetime-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 0;
}

/* Одинаковая ширина для всех элементов в строке */
.schedule-datetime-row .custom-date-picker-wrapper,
.schedule-datetime-row .custom-time-picker-wrapper,
.schedule-datetime-row .btn.btn-yes,
.schedule-datetime-row .btn.btn-reset {
    flex: 1;
    min-width: 0;
}

.schedule-datetime-row input[type="date"],
.schedule-datetime-row input[type="time"] {
    flex: 1;
    min-width: 0;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-weight: 500;
    color: var(--theme-text-primary, #333);
    background-color: var(--theme-input-bg, #fff);
    border: 2px solid var(--theme-input-border, #e1e5e9);
    border-radius: 10px;
    padding: 10px 14px;
    min-height: 44px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-sizing: border-box;
}

.schedule-datetime-row input[type="date"]:hover,
.schedule-datetime-row input[type="time"]:hover {
    border-color: var(--theme-select-arrow, #667eea);
    background-color: var(--theme-input-bg);
}

.schedule-datetime-row input[type="date"]:focus,
.schedule-datetime-row input[type="time"]:focus {
    border-color: var(--theme-select-focus, #667eea);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.06), 0 4px 12px rgba(102, 126, 234, 0.1);
    outline: none;
}

.schedule-datetime-row .btn.btn-yes {
    white-space: nowrap;
    padding: 10px 20px;
    min-height: 44px;
    width: 100%;
    box-sizing: border-box;
}

.modal-window {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.modal-title {
    font-size: 20px;
    margin-bottom: 1rem;
}

.modal-actions {
    margin-top: 1.5rem;
    text-align: right;
}

.profileEditing{
    box-sizing: border-box;
    width: 100%;
    max-width: 680px;
    margin-top: 20px;

    article{
        display: flex;
        flex-direction: column;
        padding: 20px;
        box-sizing: border-box;
        font-size: 18px;
        flex-wrap: wrap;
        gap: 40px;

        .telProfile,.passwordProfile,.tgProfile,.vkProfile,.descriptionProfile,.mailProfile{
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;

            figure,p{
                width: 120px;
            }
        }

        #telProfileValue,#mailProfileValue{
            width: 180px;
        }

        .tgProfile figure,.vkProfile figure{
            display: flex;
            flex-direction: row;
            align-items: center;

 

            img {
                object-fit: contain;
                margin-right: 12px;
            }

            figcaption {
                display: flex;
                justify-content: flex-start;
                gap: 5px;
            }
        }

        .profileEditingOne{
            display: flex;
            gap: 40px;

            .photoProfile{
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 10px;
                
                img{
                    width: 120px;    
                    aspect-ratio: 1/1;
                    border-radius: 50%;
                    object-fit: cover;
                }
                
                .editAvatarBtn {
                    padding: 8px;
                    border: none;
                    border-radius: 4px;
                    background-color: #667eea;
                    color: white;
                    cursor: pointer;
                    font-size: 14px;
                    transition: background-color 0.3s ease;
                }

                .editAvatarBtn:hover {
                    background-color: #5568d3;
                }

                .editAvatarBtn:active {
                    transform: translateY(1px);
                }
            }
        }

        .nameProfile{
            display: flex;
            flex-direction: column;
            justify-content: space-evenly;
        }

        .nameProfileValue{
            font-size: 18px;
        }
    }

    button {
        background: var(--theme-button-secondary);
        border: none;
        border-radius: 32px;
        font-size: 17px;
        padding: 8px 12px;
        transition: all 0.3s ease;
        color: white;
    }

    button:hover{
        background-color: var(--theme-button-secondary-hover);
    }

    textarea{
        border: 2px solid #eaeaea;
        outline: none;
        border-radius: 12px;
        width: 100%;
        height: 420px;
        resize: none;
        padding: 12px;
        box-sizing: border-box;
        font-size: 17px;
        margin-bottom: 20px;
    }

    .infoProfile{
        border: none;
        outline: none;
        border-bottom: 2px solid #ccc;
        background: none;
        width: 100%;
        max-width: 160px;
        font-size: 17px;
        margin-right: 40px;
        padding: 6px;
    }

    .mailProfile .infoProfile {
        border-radius: 0;
        max-width: 420px;
    }

    .telProfile #tel.infoProfile {
        max-width: 420px;
    }

    #tel.infoProfile,
    #tel.infoProfile:hover,
    #tel.infoProfile:focus {
        border: none;
        border-bottom: none;
        box-shadow: none;
        outline: none;
    }

    .backBtn,.savePrifile{
        background-color: var(--theme-button-secondary);
        border: none;
        border-radius: 32px;
        font-size: 16px;
        padding: 10px 12px;        
        color: white;
        cursor: pointer;
        transition: background-color 0.3s ease;

        &:hover{
            background-color: var(--theme-button-secondary-hover);
        }
    }

    .backBtn{
        margin-top: 20px;
        margin-left: 20px;
    }
}

#mainProfileAvatar{
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
}

/* Стили для страницы поиска */
.search-info {
    border-radius: 8px;
    padding: 0 24px;
    margin-bottom: 20px;
}

.search-info p {
    margin: 8px 0;
    color: #6c757d;
    font-size: 14px;
}

.search-info strong {
    color: #495057;
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.no-results p {
    margin: 10px 0;
    color: #6c757d;
    font-size: 16px;
    line-height: 1.5;
}

.no-results p:first-child {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

/* Стили для модального окна поделиться */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1000;
    display: none;
}

.modal-content {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 16px;
    min-width: 200px;
    max-width: 250px;
    z-index: 2;
    animation: modalSlideIn 0.2s ease-out;
    border: 1px solid #e1e5e9;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Окна «Поделиться» / «Действия»: только opacity, чтобы fixed top/left не конфликтовали с transform */
@keyframes shareDialogFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.share-title {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-button {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.share-button:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.share-button:active {
    transform: translateY(0);
}

.share-button img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    border-radius: 4px;
}

.share-button span {
    flex: 1;
    text-align: left;
}

/* Кнопки Скрыть и Удалить — только для модераторов; Удалить — также для автора поста (организация) */
.moderator-only {
    display: none !important;
}
body.user-is-moderator .moderator-only {
    display: flex !important;
}
.post-owner-delete {
    display: none !important;
}
.post-owner-delete.post-owner-visible {
    display: flex !important;
}

/* Кнопки управления постом (Скрыть, Удалить, Пожаловаться) — цвета для share-button */
.share-button.post-hide-btn {
    background: #f8f9fa;
    color: #555;
}
.share-button.post-hide-btn:hover {
    background: #e9ecef;
    color: #333;
}
.share-button.post-delete-btn {
    background: #fff5f5;
    color: #c53030;
}
.share-button.post-delete-btn:hover {
    background: #fed7d7;
    color: #9b2c2c;
}

/* Контейнер кнопок поделиться и меню */
.info-buttons {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
}

/* Иконка поделиться — тёмно-серая по умолчанию, чёрная при наведении */
img[src*="share.svg"] {
    transition: filter 0.2s ease;
}
button:hover img[src*="share.svg"],
.scheduled-preview-share:hover img[src*="share.svg"] {
    filter: brightness(0) saturate(100%);
}

/* Иконка три точки — тёмно-серая по умолчанию, чёрная при наведении */
img[src*="three.svg"] {
    transition: filter 0.2s ease;
}
button:hover img[src*="three.svg"] {
    filter: brightness(0) saturate(100%);
}

.share-button.post-report-btn {
    background: #f8f9fa;
    color: #555;
}
.share-button.post-report-btn:hover {
    background: #e9ecef;
    color: #333;
}
.actions-dialog-buttons .share-button img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    border-radius: 4px;
}

/* Стили для диалога действий (Скрыть, Удалить, Пожаловаться) — как в поделиться */
.actions-dialog {
    position: fixed;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 12px;
    min-width: 200px;
    max-width: 250px;
    z-index: 1000;
    margin: 0;
    animation: shareDialogFadeIn 0.2s ease-out;
}
.actions-dialog::backdrop {
    background: transparent;
}
.actions-dialog[open] {
    display: block;
}
.actions-dialog-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Стили для диалогового окна поделиться */
.share-dialog {
    position: fixed;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 12px;
    min-width: 200px;
    max-width: 250px;
    z-index: 1000;
    margin: 0;
    animation: shareDialogFadeIn 0.2s ease-out;
}

.share-dialog::backdrop {
    background: transparent;
}

.share-dialog[open] {
    display: block;
}

/* «Записаться» и «Подробнее» в карточке поста */
.post-event-action-btn {
    background-color: var(--theme-button-primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 32px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-block;
    margin-top: 16px;
    text-decoration: none;
    box-sizing: border-box;
}

a.post-event-action-btn:hover {
    color: #fff;
}

.post-event-action-btn:hover {
    background-color: var(--theme-button-primary-hover);
}

.post-event-action-btn:disabled {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

.post-event-action-btn:disabled:hover {
    background-color: var(--theme-button-primary);
}

.register-event-btn.register-event-btn--cancel {
    background-color: #ff3b30;
}

.register-event-btn.register-event-btn--cancel:hover {
    background-color: #d32f2f;
}

/* Стили для переключателя записи на мероприятие */
.event-registration-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#event-registration-container {
    display: flex;
    flex-direction: column;
    max-height: none;
    overflow: visible;
}

#event-registration-container.hide {
    display: none !important;
}

/* ============================================
   СТИЛИ ДЛЯ БЛОКА ДАТЫ ПРОВЕДЕНИЯ МЕРОПРИЯТИЯ
   ============================================ */
#event-date-container {
    display: flex;
    flex-direction: column;
    max-height: none;
    overflow: visible;
}

#event-date-container.hide {
    display: none !important;
}

.event-date-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.event-date-block > label {
    font-size: 15px;
    font-weight: 500;
    color: var(--theme-text-primary);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Переключатель типа даты (один день / период) */
.event-dates-toggle {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background-color: var(--theme-bg-secondary);
    border-radius: 18px;
    border: 1px solid var(--theme-input-border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-dates-toggle:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08);
}

/* Поля для выбора даты */
.event-date-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

#event-main-date-single-block,
#event-main-date-range-block {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-end;
    width: 100%;
}

#event-main-date-single-block.hide,
#event-main-date-range-block.hide {
    display: none !important;
}

#event-main-date-range-block label {
    font-size: 14px;
    font-weight: 500;
    color: var(--theme-text-secondary);
    margin-bottom: 6px;
    min-width: 30px;
    flex-shrink: 0;
    line-height: 1.4;
    text-align: center;
}

#event-main-date-range-block .input {
    flex: 1;
}

/* Контейнер для полей времени */
#event-time-fields-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background-color: var(--theme-bg-secondary);
    border-radius: 18px;
    border: 1px solid var(--theme-input-border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#event-time-fields-container:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08);
}

#event-time-fields-container > label {
    font-size: 15px;
    font-weight: 500;
    color: var(--theme-text-primary);
    margin-bottom: 0;
    line-height: 1.4;
}

#event-time-range-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

#event-time-range-days {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.event-time-range-day-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background-color: var(--theme-input-bg);
    border: 1px solid var(--theme-input-border);
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-time-range-day-item:hover {
    border-color: var(--theme-select-arrow);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.06);
}

.event-time-range-day-item label {
    font-size: 13px;
    font-weight: 500;
    color: var(--theme-text-secondary);
    margin-bottom: 2px;
    line-height: 1.4;
}

.event-time-range-day-item input[type="date"],
.event-time-range-day-item input[type="time"] {
    width: 100%;
}

/* ============================================
   СТИЛИ ДЛЯ БЛОКА ВРЕМЕНИ В СТРАНИЦЕ МЕРОПРИЯТИЯ
   ============================================ */
.event-time-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    transition: none;
    margin-bottom: 0;
}

.event-time-wrapper:hover {
    border-color: transparent;
    box-shadow: none;
}

.event-time-wrapper > label {
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-text-primary);
    margin-bottom: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-time-wrapper > label::before {
    content: none;
}

/* Переключатель типа времени (один интервал / несколько) */
.event-time-toggle {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background-color: var(--theme-bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--theme-input-border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-time-toggle .radio-option {
    flex: 1;
    padding: 8px 0;
    justify-content: flex-start;
    border-radius: 0;
    background-color: transparent;
    transition: all 0.2s ease;
    margin: 0;
}

.event-time-toggle .radio-option:has(input[type="radio"]:checked) {
    background-color: transparent;
    box-shadow: none;
    transform: none;
}

.event-time-toggle .radio-option:hover {
    background-color: transparent;
}

.event-time-toggle .radio-option:has(input[type="radio"]:checked) .radio-label {
    color: var(--theme-text-primary);
    font-weight: 500;
}

.event-time-toggle:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Поля для времени */
.event-time-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* Компактное размещение полей времени на одной строке */
.event-time-single-row,
#event-time-single-block {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.time-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

.time-input-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--theme-text-secondary);
    margin-bottom: 0;
    display: block;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-input-group input[type="time"],
.time-input-group input[type="date"] {
    width: 100%;
    box-sizing: border-box;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--theme-text-primary);
    background-color: var(--theme-input-bg);
    border: 1px solid var(--theme-input-border);
    border-radius: 8px;
    padding: 10px 14px;
    min-height: 42px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), inset 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    line-height: 1.4;
}

.time-input-group input[type="time"]:hover,
.time-input-group input[type="date"]:hover {
    border-color: var(--theme-select-arrow);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.04) 0%, rgba(118, 75, 162, 0.04) 100%);
    transform: translateY(-1px);
}

.time-input-group input[type="time"]:focus,
.time-input-group input[type="date"]:focus {
    background-color: var(--theme-input-bg);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 2px 6px rgba(102, 126, 234, 0.15);
    border-color: var(--theme-select-focus);
}

#event-time-multi-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.event-page-time-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
}

.event-page-time-row input[type="time"] {
    width: 100%;
    max-width: none;
}

.event-page-time-row .custom-time-picker-wrapper {
    flex: 1;
}

.event-page-time-date,
#event-page-time-single-date {
    font-size: 14px;
    font-weight: 500;
    color: var(--theme-text-secondary);
    margin-bottom: 4px;
}

.event-time-entries {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* Стили для элемента времени (используется в JavaScript) */
.event-time-entry {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    padding: 12px;
    padding-right: 50px;
    background-color: var(--theme-input-bg);
    border: 1px solid var(--theme-input-border);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    flex-wrap: nowrap;
}

.event-time-entry .time-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--theme-text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.event-time-entry input[type="date"] {
    min-width: 150px;
    max-width: 180px;
    flex-shrink: 0;
    width: auto;
}

.event-time-entry input[type="time"] {
    min-width: 120px;
    max-width: 150px;
    flex-shrink: 0;
    width: auto;
}

.event-time-entry .remove-field-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    min-width: 32px;
}

.event-time-entry:hover {
    border-color: var(--theme-input-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transform: none;
}

.event-time-entry .time-input-group {
    flex: 1;
}

/* Удалено - теперь используется абсолютное позиционирование */

/* Улучшенная видимость кнопки удаления во всех блоках */
.event-content-block-item .remove-field-btn,
.event-schedule-item .remove-field-btn,
.event-partner-item .remove-field-btn,
.event-faq-item .remove-field-btn,
.event-social-item .remove-field-btn,
.event-location-method-item .remove-field-btn {
    visibility: visible;
    opacity: 1;
    position: relative;
    z-index: 10;
}

.event-time-entry:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}


.event-time-entry .time-input-group {
    flex: 1;
    min-width: 0;
}

.event-time-entry-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background-color: var(--theme-input-bg);
    border: 1px solid var(--theme-input-border);
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-time-entry-item:hover {
    border-color: var(--theme-input-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.event-time-entry-item label {
    font-size: 13px;
    font-weight: 500;
    color: var(--theme-text-secondary);
    margin-bottom: 2px;
    line-height: 1.4;
}

.event-time-entry-item .time-inputs {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
}

.event-time-entry-item .time-inputs input[type="time"] {
    flex: 1;
}

.event-time-entry-item .day-select {
    width: 100%;
}

/* Темная тема для блоков даты и времени */









/* Новый переключатель */
.custom-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s ease;
    border-radius: 26px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.custom-switch input:checked + .switch-slider {
    background-color: #667eea;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.custom-switch input:checked + .switch-slider:before {
    transform: translateX(22px);
}

.custom-switch input:focus + .switch-slider {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(102, 126, 234, 0.25);
}

.custom-switch:hover .switch-slider {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.custom-switch:hover input:checked + .switch-slider {
    background-color: #5568d3;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Опции регистрации */
#registration-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
    width: 100%;
    box-sizing: border-box;
}

#registration-options.hide {
    display: none !important;
}

.registration-type-options,
.event-dates-toggle,
.event-time-toggle,
.event-page-type-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: var(--theme-bg-secondary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    background-color: transparent;
    box-shadow: none;
    position: relative;
}

.radio-option:hover {
    background-color: var(--theme-bg-secondary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.radio-option:has(input[type="radio"]:checked) {
    background-color: var(--theme-bg-secondary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid var(--theme-input-border);
    border-radius: 50%;
    background-color: var(--theme-input-bg);
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.radio-option input[type="radio"]:hover {
    border-color: var(--theme-text-secondary);
}

.radio-option input[type="radio"]:checked {
    border-color: var(--theme-select-focus);
    background-color: var(--theme-input-bg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--theme-select-focus);
}

.radio-option input[type="radio"]:focus {
    outline: none;
    border-color: var(--theme-select-focus);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.radio-label {
    margin-left: 0;
    font-size: 16px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-weight: 500;
    color: var(--theme-text-primary);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.4;
}

.radio-option:has(input[type="radio"]:checked) .radio-label {
    color: var(--theme-text-primary);
    font-weight: 500;
}

/* Темная тема для radio кнопок */









/* Общие стили для всех radio кнопок (на случай, если они используются без .radio-option) */
input[type="radio"]:not(.radio-option input[type="radio"]) {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--theme-input-border);
    border-radius: 50%;
    background-color: var(--theme-input-bg);
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

input[type="radio"]:not(.radio-option input[type="radio"]):hover {
    border-color: var(--theme-text-secondary);
}

input[type="radio"]:not(.radio-option input[type="radio"]):checked {
    border-color: var(--theme-select-focus);
    background-color: var(--theme-input-bg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

input[type="radio"]:not(.radio-option input[type="radio"]):checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--theme-select-focus);
}

input[type="radio"]:not(.radio-option input[type="radio"]):focus {
    outline: none;
    border-color: var(--theme-select-focus);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Темная тема для общих radio кнопок */





/* Блоки регистрации */
.registration-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background-color: var(--theme-bg-secondary);
    border-radius: 18px;
    border: 1px solid var(--theme-input-border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-sizing: border-box;
}

.registration-block:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08);
}

#external-link-block.hide,
#site-form-block.hide {
    display: none !important;
}

.registration-block label {
    font-size: 15px;
    font-weight: 500;
    color: var(--theme-text-primary);
    margin-bottom: 6px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    line-height: 1.4;
}

/* Темная тема для блоков регистрации */



.form-fields-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--theme-text-primary);
    margin-bottom: 8px;
    display: block;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    line-height: 1.4;
}

/* Темная тема для меток полей формы */

/* Список полей формы */
#form-fields-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Переключатели стандартных полей формы */
.form-fields-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 8px 0 16px;
    width: 100%;
    box-sizing: border-box;
}

.form-field-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
    flex-wrap: wrap;
}

.form-field-toggle:last-child {
    border-bottom: none;
}

.form-field-toggle-label {
    font-weight: 500;
    margin: 0;
    font-size: 16px;
    color: var(--theme-text-primary);
    flex: 1;
    min-width: 200px;
    line-height: 1.4;
}

.form-field-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-field-item:hover {
    border-color: #999;
}

.form-field-item input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    font-size: 16px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-weight: 500;
    color: var(--theme-text-primary);
    background-color: var(--theme-input-bg);
    border: 2px solid var(--theme-input-border);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    outline: none;
}

.form-field-item input[readonly] {
    cursor: default;
}

.form-field-item input:invalid:not(:focus) {
    border-color: #e92828;
}

.form-field-item input:hover {
    border-color: var(--theme-select-arrow);
    background-color: var(--theme-input-bg);
}

.form-field-item input:focus {
    border-color: var(--theme-select-focus);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.06), 0 4px 12px rgba(102, 126, 234, 0.1);
    outline: none;
}

.remove-field-btn {
    width: 32px;
    height: 32px;
    min-width: 36px;
    border: none;
    background-color: transparent;
    color: var(--theme-select-focus);
    border-radius: 0;
    cursor: pointer;
    font-size: 24px;
    font-weight: normal;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    box-shadow: none;
    position: relative;
    z-index: 10;
    visibility: visible !important;
    opacity: 1 !important;
}

.remove-field-btn:empty::before,
.remove-field-btn:has-text("×")::before {
    content: "×";
    font-size: 24px;
    line-height: 1;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--theme-select-focus);
}

.remove-field-btn:not(:empty) {
    font-size: 24px;
}

.remove-field-btn:hover {
    background-color: transparent;
    border-color: transparent;
    transform: scale(1.15);
}

.remove-field-btn:active {
    transform: scale(1.1);
}

/* Кнопка добавления поля */
.btn-add-field {
    max-width: 262px;
    width: 100%;
    padding: 14px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #667eea;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    justify-content: center;
}

.btn-add-field * {
    color: #fff !important;
}

.btn-add-field:hover {
    background-color: #5568d3;
    color: #fff !important;
}

.btn-add-field:hover * {
    color: #fff !important;
}

.btn-add-field:active {
    background-color: #5568d3;
    color: #fff !important;
}

.btn-add-field:active * {
    color: #fff !important;
}

.btn-add-field:focus {
    outline: none;
}

.btn-add-icon {
    font-size: 16px;
    line-height: 1;
    font-weight: bold;
    color: white;
}

/* Темная тема для кнопки добавления */






/* Кнопка предпросмотра страницы мероприятия */
#preview-event-page-btn {
    background-color: #20242b !important;
    color: #ffffff !important;
    padding: 14px 12px !important;
    border-radius: 32px !important;
    border: 1px solid #20242b !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    font-family: "Moderustic-Regular", monospace, sans-serif !important;
    transition: background-color 0.3s ease !important;
    width: 100% !important;
    max-width: 260px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    justify-content: center;
}

#preview-event-page-btn:hover {
    background-color: #111418 !important;
    border-color: #111418 !important;
}

#preview-event-page-btn:active {
    background-color: #111418 !important;
    border-color: #111418 !important;
}

#preview-event-page-btn:focus {
    outline: none !important;
}

/* Контейнер для кнопки предпросмотра */
.event-page-block-item > div:has(#preview-event-page-btn) {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--theme-input-border);
    display: flex;
    justify-content: center;
}


/* Стили для блока страницы мероприятия */
.event-page-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

#event-page-container {
    display: flex;
    flex-direction: column;
    max-height: none;
    overflow: visible;
}

#event-page-container.hide {
    display: none !important;
}

#event-extra-button-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Опции страницы мероприятия */
#event-page-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
}

#event-page-options.hide {
    display: none !important;
}

.event-page-type-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background-color: var(--theme-bg-secondary);
    border-radius: 18px;
    border: 1px solid var(--theme-input-border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-page-type-options:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08);
}

/* Блоки страницы мероприятия */
.event-page-block-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    background: transparent;
    border-radius: 0;
    border: none;
    box-sizing: border-box;
    box-shadow: none;
    transition: none;
}

/* Улучшенные отступы для прямых дочерних элементов */
.event-page-block-item > * {
    margin-top: 0;
    margin-bottom: 0;
}

.event-page-block-item > *:not(:last-child) {
    margin-bottom: 0;
}

/* Секции внутри блока */
.event-page-block-item > .event-page-section {
    margin-bottom: 14px;
}

.event-page-block-item > .event-page-section:last-child {
    margin-bottom: 0;
}

.event-page-block-item:hover {
    box-shadow: none;
}

#external-page-link-block.hide,
#site-page-block.hide {
    display: none !important;
}

/* Блок внешней ссылки на страницу мероприятия оформлен как обычный контейнер формы */
#external-page-link-block {
    background-color: var(--theme-bg-secondary);
    border-radius: 18px;
    border: 1px solid var(--theme-input-border);
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-page-block-item label {
    font-size: 16px;
    font-weight: 500;
    color: var(--theme-text-primary);
    margin-bottom: 0;
    margin-top: 0;
    display: block;
    line-height: 1.4;
}

.event-page-block-item label:not(:first-child) {
    margin-top: 0;
}

/* Специальные стили для меток внутри секций */
.event-page-section-content label {
    font-size: 16px;
    font-weight: 500;
    color: var(--theme-text-primary);
    margin-bottom: 0;
    margin-top: 0;
    display: block;
    line-height: 1.4;
}

.event-page-section-content label:not(:first-child) {
    margin-top: 0;
}

/* Поля ввода внутри секций наследуют стили от .event-page-block-item */
.event-page-section-content input[type="text"],
.event-page-section-content input[type="url"],
.event-page-section-content input[type="tel"],
.event-page-section-content input[type="email"],
.event-page-section-content input[type="time"],
.event-page-section-content input[type="date"] {
    font-weight: 500;
    font-size: 16px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    color: var(--theme-text-primary);
    background-color: var(--theme-input-bg);
    border: 2px solid var(--theme-input-border);
    border-radius: 10px;
    padding: 12px 16px;
    min-height: 42px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    outline: none;
    width: 100%;
    line-height: 1.4;
}

.event-page-section-content input[type="text"]:hover,
.event-page-section-content input[type="url"]:hover,
.event-page-section-content input[type="tel"]:hover,
.event-page-section-content input[type="email"]:hover,
.event-page-section-content input[type="time"]:hover,
.event-page-section-content input[type="date"]:hover {
    border-color: var(--theme-select-arrow);
    background-color: var(--theme-input-bg);
}

.event-page-section-content input[type="text"]:focus,
.event-page-section-content input[type="url"]:focus,
.event-page-section-content input[type="tel"]:focus,
.event-page-section-content input[type="email"]:focus,
.event-page-section-content input[type="time"]:focus,
.event-page-section-content input[type="date"]:focus {
    background-color: var(--theme-input-bg);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.06), 0 4px 12px rgba(102, 126, 234, 0.1);
    border-color: var(--theme-select-focus);
}

/* Поля ввода в блоке страницы мероприятия */
.event-page-block-item input[type="text"],
.event-page-block-item input[type="url"],
.event-page-block-item input[type="tel"],
.event-page-block-item input[type="email"] {
    font-weight: 500;
    font-size: 16px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    color: var(--theme-text-primary);
    background-color: var(--theme-input-bg);
    border: 2px solid var(--theme-input-border);
    border-radius: 10px;
    padding: 12px 16px;
    min-height: 42px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    outline: none;
    width: 100%;
    line-height: 1.4;
}

.event-page-block-item input[type="text"]:hover,
.event-page-block-item input[type="url"]:hover,
.event-page-block-item input[type="tel"]:hover,
.event-page-block-item input[type="email"]:hover {
    border-color: var(--theme-select-arrow);
    background-color: var(--theme-input-bg);
}

.event-page-block-item input[type="text"]:focus,
.event-page-block-item input[type="url"]:focus,
.event-page-block-item input[type="tel"]:focus,
.event-page-block-item input[type="email"]:focus {
    background-color: var(--theme-input-bg);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.06), 0 4px 12px rgba(102, 126, 234, 0.1);
    border-color: var(--theme-select-focus);
}

/* Темная тема для полей ввода */



.event-page-block-item textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Аккордеоны для разделов страницы мероприятия */
/* Группы полей внутри конструктора страницы мероприятия */
.event-page-section {
    margin-bottom: 20px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    flex-shrink: 0;
    background-color: var(--theme-bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--theme-input-border);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-page-section.expanded {
    overflow-x: hidden;
    overflow-y: visible;
}

.event-page-section:last-child {
    margin-bottom: 0;
}

.event-page-section:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    border-color: var(--theme-input-border);
}

.event-page-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    cursor: pointer;
    background: transparent;
    transition: none;
    -webkit-user-select: none;
    user-select: none;
    border-bottom: none;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.event-page-section-header:hover {
    background: transparent;
}

.event-page-section.expanded .event-page-section-header {
    border-bottom: none;
    background: transparent;
}

.event-page-section-header h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--theme-text-primary);
    margin: 0;
    padding: 0;
    border: none;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0;
}

.event-page-section-header h3::before {
    content: none;
}

.event-page-section:nth-child(2) .event-page-section-header h3::before {
    content: none;
}

.event-page-section:nth-child(3) .event-page-section-header h3::before {
    content: none;
}

.event-page-section-toggle {
    font-size: 16px;
    color: var(--theme-text-secondary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
    line-height: 1;
    font-weight: normal;
}

.event-page-section-header:hover .event-page-section-toggle {
    color: var(--theme-text-primary);
}

.event-page-section.expanded .event-page-section-toggle {
    transform: rotate(180deg);
}

/* Контент внутри групп конструктора страницы мероприятия */
.event-page-section-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.event-page-section.expanded .event-page-section-content {
    display: flex;
}

/* Улучшенные отступы для элементов внутри секций */
.event-page-section-content > * {
    margin-top: 0;
    margin-bottom: 0;
}

.event-page-section-content > label:first-child {
    margin-top: 0;
}

.event-page-section-content > *:not(:last-child):not(label) {
    margin-bottom: 0;
}

.event-page-section-content label + input,
.event-page-section-content label + textarea,
.event-page-section-content label + select,
.event-page-section-content label + div,
.event-page-section-content label + button {
    margin-top: 0;
}

/* Поля, следующие друг за другом без метки между ними */
.event-page-section-content input[type="text"] + input[type="url"],
.event-page-section-content input[type="url"] + input[type="text"],
.event-page-section-content input[type="text"] + input[type="text"],
.event-page-section-content input[type="url"] + input[type="url"] {
    margin-top: 8px;
}

/* Улучшенные отступы для последовательных элементов */
.event-page-section-content > label + input,
.event-page-section-content > label + textarea,
.event-page-section-content > label + select {
    margin-top: 0;
}

.event-page-section-content > input + label,
.event-page-section-content > textarea + label,
.event-page-section-content > select + label {
    margin-top: 14px;
}

/* Кнопки внутри секций */
.event-page-section-content .btn-add-field {
    margin-top: 0;
    margin-bottom: 0;
    align-self: flex-start;
}

.event-page-section-content .file-upload-btn {
    margin-top: 0;
    margin-bottom: 0;
}

/* Улучшенные отступы для оберток внутри секций */
.event-page-section-content .background-selector-wrapper,
.event-page-section-content .contacts-row,
.event-page-section-content .event-time-wrapper {
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
}

.event-page-section-content .file-upload-wrapper {
    margin-top: 0;
    margin-bottom: 12px;
}

/* Улучшенные отступы для последовательных элементов */
.event-page-section-content label + .file-upload-wrapper,
.event-page-section-content label + .background-selector-wrapper,
.event-page-section-content label + .event-time-wrapper,
.event-page-section-content label + .contacts-row {
    margin-top: 0;
}

.event-page-section-content .helper-text + * {
    margin-top: 0;
}

/* Улучшенные отступы для h4 */
.event-page-section-content h4 + * {
    margin-top: 0;
}

/* Заголовки в блоке страницы мероприятия */
.event-page-block-item h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--theme-text-primary);
    margin: 0;
    padding: 0;
    border-bottom: none;
    line-height: 1.4;
}

.event-page-block-item h3:first-child {
    margin-top: 0;
}

/* Если h3 внутри аккордеона, убираем стандартные стили */
.event-page-section-content h3 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
    color: var(--theme-text-primary);
}

.event-page-block-item h4 {
    font-size: 18px;
    font-weight: 500;
    color: var(--theme-text-primary);
    margin: 0;
    line-height: 1.4;
}

.event-page-section-content h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--theme-text-primary);
    line-height: 1.4;
}

.event-page-section-content h4:first-child {
    margin-top: 0;
}

.event-page-section-content p {
    margin: 0 0 14px 0;
    line-height: 1.5;
    color: var(--theme-text-primary);
    font-size: 16px;
}

.event-page-section-content p:last-child {
    margin-bottom: 0;
}

/* Вспомогательный текст */
.helper-text {
    font-size: 14px;
    color: var(--theme-text-secondary);
    margin-top: 0;
    margin-bottom: 14px;
    font-style: normal;
    line-height: 1.5;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border-left: none;
    box-shadow: none;
}

.event-page-section-content .helper-text {
    margin-bottom: 14px;
    margin-top: 0;
}

.event-page-section-content .helper-text:last-child {
    margin-bottom: 0;
}

/* Списки блоков контента, расписания, партнеров, FAQ, соцсетей */
.event-content-blocks-list,
.event-schedule-list,
.event-partners-list,
.event-faq-list,
.event-socials-list,
.event-location-methods-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    margin-top: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

.event-page-section-content .event-content-blocks-list,
.event-page-section-content .event-schedule-list,
.event-page-section-content .event-partners-list,
.event-page-section-content .event-faq-list,
.event-page-section-content .event-socials-list,
.event-page-section-content .event-location-methods-list {
    margin-top: 0;
    margin-bottom: 12px;
}

/* Фильтр дней расписания в конструкторе страницы мероприятия */
.event-schedule-day-filter {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-top: 12px;
    margin-bottom: 8px;
    width: 100%;
    max-width: 260px;
    align-items: center;
}

.event-schedule-day-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--theme-text-secondary);
}

.event-schedule-day-select {
    width: 100%;
}

.event-content-blocks-list .event-content-block:last-child {
    margin-bottom: 0;
}

/* Элементы списков */
.event-content-block-item,
.event-schedule-item,
.event-partner-item,
.event-faq-item,
.event-social-item,
.event-location-method-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    padding-top: 50px;
    background-color: var(--theme-input-bg);
    border: 1px solid var(--theme-input-border);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    flex-shrink: 0;
}

.event-schedule-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
}

.event-schedule-row .time-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--theme-text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.event-schedule-row input[type="time"] {
    min-width: 120px;
    max-width: 150px;
    flex-shrink: 0;
    width: auto;
}

.event-schedule-image-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.event-schedule-image-upload .event-schedule-image-btn {
    flex-shrink: 0;
}

.event-schedule-image-preview {
    width: min(100%, 120px);
    height: auto;
    aspect-ratio: 1.3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--theme-input-border, #ddd);
}

/* Блок контента (заголовок, описание, изображения) */
.event-content-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    padding-top: 50px;
    margin-bottom: 0;
    background-color: var(--theme-input-bg, #f9f9f9);
    border: 1px solid var(--theme-input-border, #ddd);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-content-block:hover {
    border-color: var(--theme-input-border, #ddd);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.event-content-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.event-content-block-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--theme-text-primary, #2c2c2c);
}

.event-content-block label,
.event-content-block .event-content-block-field-label {
    font-size: 16px;
    font-weight: 500;
    color: var(--theme-text-primary, #2c2c2c);
    margin-bottom: 4px;
    line-height: 1.4;
}

.event-content-block input,
.event-content-block select,
.event-content-block textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.event-content-block .event-block-helper {
    font-size: 12px;
    color: var(--theme-text-secondary, #666);
    margin-bottom: 0;
}

.event-block-images-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    min-width: 0;
}

.event-block-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    min-width: 0;
}

/* Кнопка удаления всегда видна в правом верхнем углу */
.event-content-block .remove-field-btn,
.event-content-block-item .remove-field-btn,
.event-schedule-item .remove-field-btn,
.event-partner-item .remove-field-btn,
.event-faq-item .remove-field-btn,
.event-social-item .remove-field-btn,
.event-location-method-item .remove-field-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    z-index: 20;
    width: 32px;
    height: 32px;
    min-width: 32px;
}

.event-content-block-item:hover,
.event-schedule-item:hover,
.event-partner-item:hover,
.event-faq-item:hover,
.event-social-item:hover,
.event-location-method-item:hover {
    border-color: var(--theme-input-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.event-content-block-item label,
.event-schedule-item label,
.event-partner-item label,
.event-faq-item label,
.event-social-item label {
    font-size: 16px;
    font-weight: 500;
    color: var(--theme-text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.event-content-block-item input,
.event-content-block-item textarea,
.event-schedule-item textarea,
.event-partner-item input,
.event-faq-item input,
.event-faq-item textarea,
.event-social-item input,
.event-location-method-item input,
.event-location-method-item select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.event-social-item select {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 100;
}

.event-social-item select:focus {
    z-index: 101;
}

.event-faq-item textarea,
.event-schedule-item textarea {
    resize: vertical;
    min-height: 60px;
}

.event-content-block textarea {
    resize: vertical;
    min-height: 80px;
}

/* Компактный выбор фона */
.background-selector-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
}

.background-selector-wrapper > label {
    font-size: 16px;
    font-weight: 600;
    color: var(--theme-text-primary);
    margin-bottom: 0;
    line-height: 1.4;
    font-family: "Moderustic-Regular", monospace, sans-serif;
}

.header-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.header-presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.header-preset-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    border: 1px solid var(--theme-input-border);
    border-radius: 12px;
    background: var(--theme-bg-secondary);
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-preset-card:hover {
    border-color: #2e44ff;
    box-shadow: 0 0 0 2px rgba(46, 68, 255, 0.12);
}

.header-preset-title {
    font-size: 14px;
    font-weight: 600;
}

.header-preset-desc {
    font-size: 12px;
    color: var(--theme-text-secondary);
}

.header-template-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 14px;
    padding: 10px;
    border: 1px solid var(--theme-input-border);
    background-color: var(--theme-bg-secondary);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.header-template-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.header-template-card:has(input:checked) {
    border-color: #2e44ff;
    box-shadow: 0 0 0 2px rgba(46, 68, 255, 0.15);
    transform: translateY(-1px);
}

.header-template-icon {
    display: block;
    width: 100%;
    height: 64px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-template-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.header-template-icon--solid { background: #2e44ff; }
.header-template-icon--bubbles {
    background:
        radial-gradient(circle at 20% 35%, #7aa2ff 0%, rgba(122, 162, 255, 0) 38%),
        radial-gradient(circle at 70% 62%, #9c72ff 0%, rgba(156, 114, 255, 0) 43%),
        #1d2f93;
}
.header-template-icon--gradient { background: linear-gradient(135deg, #0052d4 0%, #4364f7 45%, #6fb1fc 100%); }
.header-template-icon--mesh {
    background:
        radial-gradient(circle at 20% 20%, rgba(44, 198, 255, 0.8), transparent 45%),
        radial-gradient(circle at 80% 65%, rgba(109, 87, 255, 0.8), transparent 45%),
        #0f1529;
}
.header-template-icon--spotlight {
    background:
        radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(180deg, #293048 0%, #121826 100%);
}
.header-template-icon--noise {
    background:
        radial-gradient(circle at 25% 35%, rgba(255,255,255,0.11) 0 1px, transparent 1px),
        radial-gradient(circle at 74% 63%, rgba(255,255,255,0.09) 0 1px, transparent 1px),
        linear-gradient(140deg, #24344f 0%, #1a2233 100%);
    background-size: 10px 10px, 12px 12px, auto;
}
.header-template-icon--neon {
    background:
        radial-gradient(circle at 30% 30%, rgba(64, 255, 236, 0.48), transparent 38%),
        radial-gradient(circle at 70% 72%, rgba(162, 93, 255, 0.42), transparent 40%),
        #090b1d;
}
.header-template-icon--aurora {
    background:
        radial-gradient(circle at 18% 24%, rgba(0, 255, 198, 0.45), transparent 42%),
        radial-gradient(circle at 82% 74%, rgba(88, 101, 242, 0.42), transparent 46%),
        radial-gradient(circle at 52% 42%, rgba(255, 0, 200, 0.28), transparent 40%),
        #070b1d;
}
.header-template-icon--halo {
    background:
        radial-gradient(circle at 25% 50%, rgba(56, 189, 248, 0.38) 0%, transparent 33%),
        radial-gradient(circle at 75% 50%, rgba(168, 85, 247, 0.4) 0%, transparent 35%),
        linear-gradient(180deg, #0f172a 0%, #090f1d 100%);
}
.header-template-icon--glass {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0.06) 45%, rgba(255,255,255,0.2) 100%),
        linear-gradient(140deg, #3b82f6 0%, #8b5cf6 100%);
}
.header-template-icon--saas-wave {
    background:
        radial-gradient(150% 120% at 0% 100%, rgba(59,130,246,0.75), transparent 55%),
        radial-gradient(120% 120% at 100% 0%, rgba(6,182,212,0.72), transparent 50%),
        #0b1220;
}
.header-template-icon--minimal-grid {
    background:
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(135deg, #111827 0%, #0b1020 100%);
    background-size: 14px 14px, 14px 14px, auto;
}
/* Фото-шаблоны Header — только фон, без имитации текста */
.header-template-icon--image-cover {
    background:
        linear-gradient(rgba(0,0,0,0.42), rgba(0,0,0,0.42)),
        linear-gradient(160deg, #7eb8c9 0%, #5a8faa 30%, #6a9e7d 55%, #3d6050 80%, #2c4540 100%);
}

.header-template-icon--image-soft {
    background:
        linear-gradient(120deg, rgba(15,23,42,0.38), rgba(59,130,246,0.32)),
        linear-gradient(160deg, #7eb8c9 0%, #5a8faa 30%, #6a9e7d 55%, #3d6050 80%, #2c4540 100%);
}

.header-template-icon--image-split {
    background:
        linear-gradient(105deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.85) 46%, rgba(0,0,0,0.18) 46%),
        linear-gradient(160deg, #7eb8c9 0%, #5a8faa 30%, #6a9e7d 55%, #3d6050 80%, #2c4540 100%);
}

.header-template-icon--image-particles {
    background:
        radial-gradient(circle 1.5px at 18% 25%, rgba(255,255,255,0.72) 0%, transparent 100%),
        radial-gradient(circle 1px at 75% 70%, rgba(255,255,255,0.58) 0%, transparent 100%),
        radial-gradient(circle 1px at 40% 80%, rgba(255,255,255,0.48) 0%, transparent 100%),
        radial-gradient(circle 1px at 85% 30%, rgba(255,255,255,0.52) 0%, transparent 100%),
        radial-gradient(circle 1.5px at 55% 15%, rgba(255,255,255,0.62) 0%, transparent 100%),
        radial-gradient(circle 1px at 30% 55%, rgba(255,255,255,0.44) 0%, transparent 100%),
        radial-gradient(circle 1px at 62% 45%, rgba(255,255,255,0.38) 0%, transparent 100%),
        linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.52)),
        linear-gradient(160deg, #7eb8c9 0%, #5a8faa 30%, #6a9e7d 55%, #3d6050 80%, #2c4540 100%);
}

.header-template-icon--image-duotone {
    background:
        linear-gradient(120deg, rgba(0, 220, 180, 0.42), rgba(100, 60, 230, 0.58)),
        linear-gradient(160deg, #7eb8c9 0%, #5a8faa 30%, #6a9e7d 55%, #3d6050 80%, #2c4540 100%);
    background-blend-mode: color, normal;
}

.header-template-icon--image-vignette {
    background:
        radial-gradient(circle at center, rgba(0,0,0,0) 25%, rgba(0,0,0,0.65) 100%),
        linear-gradient(160deg, #7eb8c9 0%, #5a8faa 30%, #6a9e7d 55%, #3d6050 80%, #2c4540 100%);
}

.header-template-icon--image-glow-soft {
    background:
        radial-gradient(circle at 15% 22%, rgba(56, 189, 248, 0.45), transparent 42%),
        radial-gradient(circle at 80% 76%, rgba(217, 70, 239, 0.38), transparent 44%),
        linear-gradient(rgba(10, 16, 33, 0.3), rgba(10, 16, 33, 0.48)),
        linear-gradient(160deg, #7eb8c9 0%, #5a8faa 30%, #6a9e7d 55%, #3d6050 80%, #2c4540 100%);
}

.header-template-icon--image-glow-rim {
    background:
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0.02) 30%, rgba(56, 189, 248, 0.35) 62%, rgba(168, 85, 247, 0.35) 100%),
        linear-gradient(rgba(8, 12, 24, 0.28), rgba(8, 12, 24, 0.4)),
        linear-gradient(160deg, #7eb8c9 0%, #5a8faa 30%, #6a9e7d 55%, #3d6050 80%, #2c4540 100%);
}

/* ===== Иконки мастера создания страницы мероприятия ===== */

.header-template-icon--wizard-generate {
    background: url("/static/assets/img/wizard_generate.png") center/cover no-repeat;
}
.header-template-icon--wizard-manual {
    background: url("/static/assets/img/wizard_manual.png") center/cover no-repeat;
}
.header-template-icon--wizard-type-text {
    background: url("/static/assets/img/wizard_type_text.png") center/cover no-repeat;
}
.header-template-icon--wizard-type-file {
    background: url("/static/assets/img/wizard_type_file.png") center/cover no-repeat;
}
.header-template-icon--wizard-type-none {
    background: url("/static/assets/img/wizard_type_none.png") center/cover no-repeat;
}

.header-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.header-layout-card {
    position: relative;
    border-radius: 14px;
    border: 1px solid var(--theme-input-border);
    background: linear-gradient(160deg, color-mix(in srgb, var(--theme-bg-secondary) 92%, #ffffff 8%), var(--theme-bg-secondary));
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 54px;
    display: flex;
    align-items: center;
}

.header-layout-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.header-layout-card:has(input:checked) {
    border-color: #2e44ff;
    box-shadow: 0 0 0 2px rgba(46, 68, 255, 0.18), 0 8px 24px rgba(46, 68, 255, 0.16);
    transform: translateY(-1px);
}

.header-layout-card:hover {
    border-color: rgba(46, 68, 255, 0.45);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.header-layout-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.header-effects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.header-palette-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Строка палитры header: та же обёртка, что у остальных custom-color-picker (color-picker-wrapper) */
.color-picker-wrapper.header-palette-picker-row {
    flex: 1 1 300px;
    min-width: min(100%, 260px);
    max-width: 100%;
    width: auto;
}

.header-palette-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.header-palette-slot-label {
    font-size: 12px;
    color: var(--theme-text-secondary);
    min-width: 0;
}

.header-palette-color-picker {
    width: 100%;
    max-width: none;
}

.header-palette-remove {
    border: none;
    background: var(--theme-button-primary);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
}

.header-palette-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.header-palette-suggest-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--theme-input-border);
    background: var(--theme-bg-secondary);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}

.header-palette-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.header-palette-warning {
    margin-top: 8px;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
    border: 1px solid rgba(220, 38, 38, 0.35);
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
}

.header-palette-warning--ok {
    border-color: rgba(22, 163, 74, 0.25);
    background: rgba(22, 163, 74, 0.08);
    color: #166534;
}

.header-effect-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--theme-input-border);
    border-radius: 999px;
    padding: 6px 12px;
    background: var(--theme-bg-secondary);
    cursor: pointer;
    font-size: 13px;
}

.header-effect-chip:has(input:checked) {
    border-color: #2e44ff;
    background: rgba(46, 68, 255, 0.08);
}

.bg-option-content {
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.color-picker-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    background-color: var(--theme-input-bg);
    border: 1px solid var(--theme-input-border);
    border-radius: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-sizing: border-box;
}

/* Основной цвет — колоночная раскладка, чтобы label, пикер+# и подпись не накладывались */
.color-picker-wrapper:hover {
    border-color: var(--theme-input-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.color-picker {
    width: 60px;
    height: 40px;
    border: 1px solid var(--theme-input-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Новый кастомный color picker — одна строка: палитра | оттенок | превью+hex, одинаковая высота колонок */
.custom-color-picker {
    --ccp-track-height: 176px;
    display: grid;
    /* Палитра и колонка превью — одинаковая ширина (1fr), оттенок по центру */
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
    grid-template-rows: var(--ccp-track-height);
    column-gap: 12px;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.header-palette-picker-row .custom-color-picker {
    --ccp-track-height: 156px;
}

.custom-color-picker .custom-color-palette {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    height: 100%;
    min-height: 0;
    width: 100%;
    border-radius: 8px;
    background:
        linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 100%),
        #ff0000;
    cursor: crosshair;
    overflow: hidden;
    --thumb-x: 50%;
    --thumb-y: 50%;
}

.custom-color-picker .custom-color-palette::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
    left: var(--thumb-x);
    top: var(--thumb-y);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
}

.custom-color-picker[data-selected="true"] .custom-color-palette::after {
    opacity: 1;
}

.custom-color-picker .custom-color-hue {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    width: 16px;
    height: 100%;
    min-height: 0;
    justify-self: center;
    border-radius: 999px;
    background: linear-gradient(
        to bottom,
        #ff0000 0%,
        #ffff00 17%,
        #00ff00 33%,
        #00ffff 50%,
        #0000ff 67%,
        #ff00ff 83%,
        #ff0000 100%
    );
    cursor: pointer;
    --thumb-y: 50%;
}

.custom-color-picker .custom-color-hue::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 22px;
    height: 4px;
    border-radius: 999px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
    top: var(--thumb-y);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.custom-color-preview-block {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.custom-color-preview {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--theme-input-border);
    background-color: transparent;
    background-image:
        linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc),
        linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%, #ccc);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.custom-color-picker[data-selected="true"] .custom-color-preview {
    background-image: none;
}

.custom-color-hex-wrapper {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    background-color: var(--theme-bg-primary);
    border: 1px solid var(--theme-input-border);
}

.custom-color-hex-wrapper span {
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-size: 13px;
    color: var(--theme-text-secondary);
}

.custom-color-hex-input {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    border: none;
    outline: none;
    background: transparent;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-size: 13px;
    color: var(--theme-text-primary);
    text-transform: uppercase;
}

.custom-color-hex-input::placeholder {
    color: var(--theme-text-secondary);
}

.custom-color-hex-input:focus {
    outline: none;
}



.color-picker:hover {
    border-color: var(--theme-input-border);
    transform: scale(1.02);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.color-preview {
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-text-primary);
    padding: 6px 12px;
    background-color: var(--theme-bg-tertiary);
    border-radius: 6px;
    min-width: 80px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Удалено - уже добавлено выше */

/* Удалено - теперь используется .color-picker-wrapper */

/* Темная тема для элементов страницы мероприятия */

























/* Стили для переключателя (toggle) */
:root {
    --on-color: #667eea;
    --off-color: #ccc;
    --toggle-bg: #f5f5f5;
    --toggle-gap: 4px;
    --toggle-width: 42px;
    --transition-color: var(--off-color);
}

.toggle {
    position: relative;
    cursor: pointer;
    background: var(--toggle-bg);
    width: var(--toggle-width);
    height: calc(var(--toggle-width) / 2);
    border-radius: 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 4px #7c7e8855;
    -webkit-tap-highlight-color: transparent;
}

.toggle input {
    appearance: none;
    margin: 0;
    padding: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

.toggle input:checked ~ svg .outline {
    --transition-color: var(--on-color);
}

.toggle .off-knob,
.toggle .on-knob {
    position: absolute;
    height: calc(100% - var(--toggle-gap) * 2);
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: 0px 1px 1px rgba(10, 19, 39, 0.1),
        0px 4px 12px rgba(10, 19, 39, 0.03), 0px 4px 20px rgba(10, 19, 39, 0.04);
    transform-origin: center center;
    will-change: transform;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.toggle .off-knob {
    left: var(--toggle-gap);
    background: var(--off-color);
    transform: translateX(0);
}

.toggle .on-knob {
    right: var(--toggle-gap);
    background: var(--on-color);
    transform: scale(0.1) translateX(430px);
}

.toggle input:checked ~ .off-knob {
    transform: scale(0.1) translateX(-430px);
}

.toggle input:checked ~ .on-knob {
    transform: translateX(0) scale(1);
}

.toggle svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.toggle svg .outline {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--transition-color);
    stroke-width: 2;
    transition: stroke 0.3s ease;
}







/* Стили для загрузки файлов в форме страницы мероприятия */
.file-upload-wrapper {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-upload-btn {
    padding: 14px 12px;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.file-upload-btn,
.file-upload-btn span {
    color: var(--theme-text-primary);
}

.file-upload-btn:hover {
    background-color: #5568d3;
}

.file-upload-btn:active {
    background-color: #5568d3;
}

.file-preview {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background-color: var(--theme-bg-tertiary);
    border: 1px solid var(--theme-input-border);
    border-radius: 8px;
    margin-top: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
    box-sizing: border-box;
}

.file-preview-item:hover {
    border-color: var(--theme-select-arrow);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.1);
}

.file-preview-item img {
    border-radius: 4px;
}

.file-preview-item span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-item .remove-file-btn {
    margin-left: auto;
    background: var(--theme-button-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.file-preview-item .remove-file-btn:hover {
    background: var(--theme-button-primary-hover);
}

/* Удалено - дубликат, используется стиль выше */

.partner-logo-upload {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.partner-logo-preview-container {
    flex-shrink: 0;
}

.partner-logo-preview {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    object-fit: contain;
    border: 1px solid var(--theme-input-border, #ddd);
}

.event-schedule-image-upload .event-schedule-image-preview {
    flex-shrink: 0;
}

.event-images-list.uploaded-files-list {
    margin-top: 16px;
    margin-bottom: 16px;
}

/* Контакты на одной строке */
.contacts-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
}

.contact-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    box-sizing: border-box;
}

.contact-input-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--theme-text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
    display: block;
}

.contact-input-group input {
    width: 100%;
}

/* Темная тема */






/* Страница общей информации (модератор) */
.general-info-page .gi-tab-radio {
    display: none;
}

/* Главная (dashboard cards) */
.general-info-page .gi-home {
    margin-top: 12px;
}
.general-info-page .gi-home-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px;
    border-radius: 14px;
    background: radial-gradient(1200px 240px at 10% 0%, rgba(124, 58, 237, 0.12), transparent 60%),
                linear-gradient(180deg, var(--theme-bg-secondary, #fff), var(--theme-bg-tertiary, #f5f5f5));
    border: 1px solid var(--theme-border, rgba(0,0,0,0.1));
    box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}
.general-info-page .gi-home-hero__title {
    font-size: 22px;
    font-weight: 650;
    color: var(--theme-text-primary, #111);
    letter-spacing: 0.2px;
}
.general-info-page .gi-home-hero__subtitle {
    margin-top: 6px;
    font-size: 13px;
    color: var(--theme-text-secondary, rgba(0,0,0,0.55));
}
.general-info-page .gi-home-pill {
    font-size: 12px;
    color: var(--theme-text-primary, #111);
    background: rgba(124, 58, 237, 0.10);
    border: 1px solid rgba(124, 58, 237, 0.25);
    padding: 8px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.general-info-page .gi-home-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 12px;
}
.general-info-page .gi-home-grid--charts {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
}
.general-info-page .gi-home-grid--load-history {
    margin-top: 12px;
}
.general-info-page .gi-home-grid--charts .gi-home-card--span-full {
    grid-column: 1 / -1;
}
.general-info-page .gi-home-chart--history {
    height: 200px;
}

/* Главная: карточка парсера на всю ширину сетки + четыре метрики */
.general-info-page .gi-home-grid--with-parser {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
}
.general-info-page .gi-home-card--span-full {
    grid-column: 1 / -1;
}
.general-info-page .gi-home-card--parser {
    padding: 18px 18px 16px;
}
.general-info-page .gi-home-card--parser .gi-parser-card__title {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    font-size: 16px;
    font-weight: 650;
    color: var(--theme-text-primary, #111);
    letter-spacing: 0.2px;
}
.general-info-page .gi-home-card--parser .gi-parser-card__lead {
    position: relative;
    z-index: 1;
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
}
.general-info-page .gi-home-card--parser .gi-parser-card__field-label {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--theme-text-primary, #111);
}
.general-info-page .gi-home-card--parser .gi-parser-card__optional {
    font-weight: 500;
    color: var(--theme-text-secondary, rgba(0,0,0,0.5));
}
.general-info-page .gi-home-card--parser .gi-parser-card__input {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 560px;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.22);
    background: rgba(255, 255, 255, 0.92);
    color: var(--theme-text-primary, #111);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.general-info-page .gi-home-card--parser .gi-parser-card__input::placeholder {
    color: var(--theme-text-secondary, rgba(0,0,0,0.42));
}
.general-info-page .gi-home-card--parser .gi-parser-card__input:hover {
    border-color: rgba(124, 58, 237, 0.35);
}
.general-info-page .gi-home-card--parser .gi-parser-card__input:focus {
    outline: none;
    border-color: rgba(124, 58, 237, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.general-info-page .gi-home-card--parser .gi-parser-card__hint {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--theme-border, rgba(0, 0, 0, 0.08));
}
.general-info-page .gi-home-card--parser .gi-parser-card__transport {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed rgba(124, 58, 237, 0.28);
}
.general-info-page .gi-home-card--parser .gi-parser-card__transport-title {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--theme-text-primary, #111);
}
.general-info-page .gi-home-card--parser .gi-parser-card__transport-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.general-info-page .gi-home-card--parser .gi-parser-card__inline-fields,
.general-info-page #tab-panel-7 .gi-parser-card__inline-fields {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(320px, 1fr);
    gap: 12px;
    align-items: end;
}
.general-info-page #tab-panel-7 .gi-parser-card__transport-title {
    margin-bottom: 14px;
}
.general-info-page #tab-panel-7 .gi-parser-card__actions {
    margin-top: 20px;
}
.general-info-page .gi-home-card--parser .gi-parser-card__inline-field,
.general-info-page #tab-panel-7 .gi-parser-card__inline-field {
    min-width: 0;
}
.general-info-page .gi-home-card--parser .gi-parser-card__inline-field .gi-parser-card__input,
.general-info-page #tab-panel-7 .gi-parser-card__inline-field .gi-parser-card__input {
    margin-bottom: 0;
}
.general-info-page #parser-import-club-select {
    color: var(--theme-text-primary, #111);
    background: var(--theme-bg-primary, #fff);
}
.general-info-page #parser-import-club-select option {
    color: #111;
    background: #fff;
}
.general-info-page .gi-home-card--parser .gi-parser-card__switch {
    margin-top: 12px;
}
.general-info-page .gi-home-card--parser .gi-parser-card__textarea {
    min-height: 76px;
    resize: vertical;
}
.general-info-page .gi-home-card--parser .gi-parser-card__actions {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}
.general-info-page .gi-home-card--parser .gi-parser-card__actions .filter-apply-btn {
    min-width: 140px;
}
.general-info-page .gi-home-card--parser .gi-parser-card__status {
    font-size: 13px;
    line-height: 1.4;
    flex: 1;
    min-width: 180px;
}
.general-info-page .gi-home-badge--parser {
    color: #4c1d95;
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.28);
}

.general-info-page .gi-home-card {
    --accent: #7c3aed;
    background: linear-gradient(180deg, var(--theme-bg-secondary, #fff), var(--theme-bg-tertiary, #f5f5f5));
    border: 1px solid rgba(124, 58, 237, 0.22);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}
.general-info-page #tab-panel-7 .gi-home-card {
    overflow: visible;
}
.general-info-page #tab-panel-7 .custom-select-wrapper:has(#parser-import-club-select) .custom-select {
    min-height: 48px;
    border-radius: 20px;
    border: 2px solid var(--theme-button-primary, #1a1a1a);
    background-color: var(--theme-input-bg, #ffffff);
    color: var(--theme-text-primary, #111);
    padding: 12px 40px 12px 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.general-info-page #tab-panel-7 .custom-select-wrapper:has(#parser-import-club-select) .custom-select:hover {
    border-color: var(--theme-button-primary, #1a1a1a);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.08);
}
.general-info-page #tab-panel-7 .custom-select-wrapper:has(#parser-import-club-select) .custom-select.open {
    border-color: var(--theme-button-primary, #1a1a1a);
    box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.06), 0 4px 12px rgba(26, 26, 26, 0.1);
}
.general-info-page #tab-panel-7 .custom-select-wrapper,
.general-info-page #tab-panel-7 .custom-select,
.general-info-page #tab-panel-7 .custom-select-options {
    z-index: 80;
}
.general-info-page #tab-panel-7 .custom-select-wrapper:has(#parser-import-club-select) .custom-select-options {
    border: 2px solid var(--theme-button-primary, #1a1a1a);
    border-radius: 20px;
    overflow-y: auto;
    overflow-x: hidden;
}
.general-info-page .gi-home-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.70), rgba(255,255,255,0.00));
    pointer-events: none;
    opacity: 1;
}
.general-info-page .gi-home-card::after { content: none; }

/* Neon on the card itself: border + inner glow (no outer glow). */
.general-info-page .gi-home-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    /* neon border */
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.55),
        inset 0 0 0 2px rgba(124, 58, 237, 0.22),
        inset 0 0 18px rgba(124, 58, 237, 0.10);
}
.general-info-page .gi-home-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    z-index: 1;
}
.general-info-page .gi-home-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: rgba(124, 58, 237, 0.10);
    border: 1px solid rgba(124, 58, 237, 0.18);
    box-shadow: none;
}
.general-info-page .gi-home-icon svg {
    width: 22px;
    height: 22px;
}
.general-info-page .gi-home-badge {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #0f5132;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.22);
    white-space: nowrap;
}
.general-info-page .gi-home-card__value {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    font-size: 34px;
    font-weight: 700;
    color: var(--theme-text-primary, #111);
    letter-spacing: 0.2px;
}
.general-info-page .gi-home-card__label {
    position: relative;
    z-index: 1;
    margin-top: 4px;
    font-size: 12px;
    color: var(--theme-text-secondary, rgba(0,0,0,0.55));
}
.general-info-page .gi-home-card__hint {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(124, 58, 237, 0.9);
}
.general-info-page .gi-home-card--chart .gi-home-card__value {
    font-size: 28px;
}
.general-info-page .gi-home-chart {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    height: 220px;
}
.general-info-page .gi-home-issues {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    background: rgba(255,255,255,0.55);
    border: 1px solid var(--theme-border, rgba(0,0,0,0.1));
    border-radius: 12px;
    padding: 10px 12px;
}
.general-info-page .gi-home-issues ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}
.general-info-page .gi-home-issues li {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 10px;
    align-items: start;
    font-size: 13px;
    color: var(--theme-text-primary, #111);
}
.general-info-page .gi-home-issues li .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 3px;
    background: rgba(124, 58, 237, 0.35);
    border: 1px solid rgba(124, 58, 237, 0.35);
}
.general-info-page .gi-home-issues li.sev-info .dot { background: rgba(34, 211, 238, 0.35); border-color: rgba(34, 211, 238, 0.40); }
.general-info-page .gi-home-issues li.sev-warning .dot { background: rgba(251, 191, 36, 0.45); border-color: rgba(251, 191, 36, 0.45); }
.general-info-page .gi-home-issues li.sev-critical .dot { background: rgba(251, 113, 133, 0.45); border-color: rgba(251, 113, 133, 0.45); }
.general-info-page .gi-home-issues .issue-title { font-weight: 650; }
.general-info-page .gi-home-issues .issue-detail { color: var(--theme-text-secondary, rgba(0,0,0,0.55)); margin-top: 2px; }
.general-info-page .gi-home-card__footer {
    position: relative;
    z-index: 1;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: var(--theme-text-primary, #111);
    padding-top: 10px;
    border-top: 1px dashed rgba(124, 58, 237, 0.18);
}
.general-info-page .gi-home-muted {
    color: var(--theme-text-secondary, rgba(0,0,0,0.55));
}
.general-info-page .gi-accent-blue { --accent: #60a5fa; }
.general-info-page .gi-accent-green { --accent: #34d399; }
.general-info-page .gi-accent-amber { --accent: #fbbf24; }
.general-info-page .gi-accent-cyan { --accent: #22d3ee; }
.general-info-page .gi-accent-purple { --accent: #a78bfa; }
.general-info-page .gi-accent-rose { --accent: #fb7185; }

/* Accent = border + tinted background (no glow) */
.general-info-page .gi-home-card { background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,245,245,0.92)); }
.general-info-page .gi-accent-blue.gi-home-card { border-color: rgba(96, 165, 250, 0.32); background: linear-gradient(180deg, rgba(96,165,250,0.10), rgba(255,255,255,0.92)); }
.general-info-page .gi-accent-green.gi-home-card { border-color: rgba(52, 211, 153, 0.30); background: linear-gradient(180deg, rgba(52,211,153,0.10), rgba(255,255,255,0.92)); }
.general-info-page .gi-accent-amber.gi-home-card { border-color: rgba(251, 191, 36, 0.30); background: linear-gradient(180deg, rgba(251,191,36,0.10), rgba(255,255,255,0.92)); }
.general-info-page .gi-accent-cyan.gi-home-card { border-color: rgba(34, 211, 238, 0.30); background: linear-gradient(180deg, rgba(34,211,238,0.10), rgba(255,255,255,0.92)); }
.general-info-page .gi-accent-purple.gi-home-card { border-color: rgba(167, 139, 250, 0.30); background: linear-gradient(180deg, rgba(167,139,250,0.10), rgba(255,255,255,0.92)); }
.general-info-page .gi-accent-rose.gi-home-card { border-color: rgba(251, 113, 133, 0.30); background: linear-gradient(180deg, rgba(251,113,133,0.10), rgba(255,255,255,0.92)); }

/* Per-accent neon tint (inner, not outer) */
.general-info-page .gi-accent-blue.gi-home-card::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55), inset 0 0 0 2px rgba(96,165,250,0.22), inset 0 0 18px rgba(96,165,250,0.10); }
.general-info-page .gi-accent-green.gi-home-card::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55), inset 0 0 0 2px rgba(52,211,153,0.22), inset 0 0 18px rgba(52,211,153,0.10); }
.general-info-page .gi-accent-amber.gi-home-card::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55), inset 0 0 0 2px rgba(251,191,36,0.22), inset 0 0 18px rgba(251,191,36,0.10); }
.general-info-page .gi-accent-cyan.gi-home-card::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55), inset 0 0 0 2px rgba(34,211,238,0.22), inset 0 0 18px rgba(34,211,238,0.10); }
.general-info-page .gi-accent-purple.gi-home-card::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55), inset 0 0 0 2px rgba(167,139,250,0.22), inset 0 0 18px rgba(167,139,250,0.10); }
.general-info-page .gi-accent-rose.gi-home-card::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55), inset 0 0 0 2px rgba(251,113,133,0.22), inset 0 0 18px rgba(251,113,133,0.10); }

.general-info-page .gi-accent-blue .gi-home-icon { background: rgba(96, 165, 250, 0.14); border-color: rgba(96, 165, 250, 0.26); }
.general-info-page .gi-accent-green .gi-home-icon { background: rgba(52, 211, 153, 0.14); border-color: rgba(52, 211, 153, 0.26); }
.general-info-page .gi-accent-amber .gi-home-icon { background: rgba(251, 191, 36, 0.14); border-color: rgba(251, 191, 36, 0.26); }
.general-info-page .gi-accent-cyan .gi-home-icon { background: rgba(34, 211, 238, 0.14); border-color: rgba(34, 211, 238, 0.26); }
.general-info-page .gi-accent-purple .gi-home-icon { background: rgba(167, 139, 250, 0.14); border-color: rgba(167, 139, 250, 0.26); }
.general-info-page .gi-accent-rose .gi-home-icon { background: rgba(251, 113, 133, 0.14); border-color: rgba(251, 113, 133, 0.26); }


@media (max-width: 1200px) {
    .general-info-page .gi-home-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
    .general-info-page .gi-home-grid--with-parser { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
    .general-info-page .gi-home-grid--charts { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .general-info-page .gi-home-hero { flex-direction: column; align-items: flex-start; }
    .general-info-page .gi-home-grid { grid-template-columns: 1fr; }
    .general-info-page .gi-home-grid--with-parser { grid-template-columns: 1fr; }
    .general-info-page .gi-home-card--parser .gi-parser-card__inline-fields,
    .general-info-page #tab-panel-7 .gi-parser-card__inline-fields { grid-template-columns: 1fr; }
}

.general-info-page .general-info-tabs {
    display: flex;
    position: relative;
    background: var(--theme-bg-secondary);
    box-shadow: 0 0 1px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(102, 126, 234, 0.1);
    padding: 0.5rem;
    border-radius: 99px;
    margin-bottom: 24px;
    border: 1px solid var(--theme-border);
}

.general-info-page .general-info-tabs label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 99px;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
    z-index: 2;
    color: var(--theme-text-secondary);
}

.general-info-page #gi-tab-0:checked ~ .general-info-tabs label[for="gi-tab-0"],
.general-info-page #gi-tab-1:checked ~ .general-info-tabs label[for="gi-tab-1"],
.general-info-page #gi-tab-2:checked ~ .general-info-tabs label[for="gi-tab-2"],
.general-info-page #gi-tab-3:checked ~ .general-info-tabs label[for="gi-tab-3"],
.general-info-page #gi-tab-4:checked ~ .general-info-tabs label[for="gi-tab-4"],
.general-info-page #gi-tab-5:checked ~ .general-info-tabs label[for="gi-tab-5"],
.general-info-page #gi-tab-6:checked ~ .general-info-tabs label[for="gi-tab-6"],
.general-info-page #gi-tab-7:checked ~ .general-info-tabs label[for="gi-tab-7"] {
    color: var(--theme-button-primary);
}

.general-info-page .general-info-tabs .glider {
    position: absolute;
    height: 44px;
    width: calc((100% - 1rem) / 8);
    left: 0.5rem;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 99px;
    transition: transform 0.25s ease-out;
    z-index: 1;
}

.general-info-page #gi-tab-0:checked ~ .general-info-tabs .glider {
    transform: translateX(0);
}

.general-info-page #gi-tab-1:checked ~ .general-info-tabs .glider {
    transform: translateX(100%);
}

.general-info-page #gi-tab-2:checked ~ .general-info-tabs .glider {
    transform: translateX(200%);
}

.general-info-page #gi-tab-3:checked ~ .general-info-tabs .glider {
    transform: translateX(300%);
}

.general-info-page #gi-tab-4:checked ~ .general-info-tabs .glider {
    transform: translateX(400%);
}

.general-info-page #gi-tab-5:checked ~ .general-info-tabs .glider {
    transform: translateX(500%);
}

.general-info-page #gi-tab-6:checked ~ .general-info-tabs .glider {
    transform: translateX(600%);
}

.general-info-page #gi-tab-7:checked ~ .general-info-tabs .glider {
    transform: translateX(700%);
}

.general-info-page .tab-panel {
    display: none;
}

.general-info-page #gi-tab-0:checked ~ #tab-panel-0,
.general-info-page #gi-tab-1:checked ~ #tab-panel-1,
.general-info-page #gi-tab-2:checked ~ #tab-panel-2,
.general-info-page #gi-tab-3:checked ~ #tab-panel-3,
.general-info-page #gi-tab-4:checked ~ #tab-panel-4,
.general-info-page #gi-tab-5:checked ~ #tab-panel-5,
.general-info-page #gi-tab-6:checked ~ #tab-panel-6,
.general-info-page #gi-tab-7:checked ~ #tab-panel-7 {
    display: block;
}

.general-info-page {
    box-sizing: border-box;
    width: 100%;
    max-width: 1600px;
    margin-top: 20px;
    padding: 20px;
}

.general-info-page h1 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.general-info-page .backBtn {
    padding: 10px 20px;
    background-color: var(--theme-button-primary);
    color: white;
    border: none;
    border-radius: 32px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 16px;
}

.general-info-page .backBtn:hover {
    background-color: var(--theme-button-secondary-hover, #5568d3);
}

.general-info-section {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--theme-bg-secondary);
    border-radius: 32px;
    border: 1px solid var(--theme-border);
}

.general-info-section h2 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
}

/* Фильтры и кнопки — единый стиль */
.general-info-page .events-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
}

/* Разделы Пользователи и Скрытые: поиск на всю ширину, кнопка на той же строке */
#tab-panel-4 .events-filters,
#tab-panel-5 .events-filters {
    flex-wrap: nowrap;
}

#tab-panel-4 .events-filters .filter-group,
#tab-panel-5 .events-filters .filter-group {
    flex: 1;
    min-width: 0;
}

#tab-panel-4 .events-filters .filter-group .filter-input,
#tab-panel-5 .events-filters .filter-group .filter-input {
    width: 100%;
    box-sizing: border-box;
}

#tab-panel-4 .events-filters .filter-apply-btn,
#tab-panel-4 .events-filters .filter-reset-btn,
#tab-panel-5 .events-filters .filter-apply-btn,
#tab-panel-5 .events-filters .filter-reset-btn {
    flex-shrink: 0;
}

.general-info-page .filter-apply-btn,
.general-info-page .filter-reset-btn {
    padding: 0 20px;
    min-width: 120px;
    height: 44px;
    background-color: var(--theme-button-primary);
    color: white;
    border: none;
    border-radius: 32px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.general-info-page .filter-apply-btn:hover,
.general-info-page .filter-reset-btn:hover {
    background-color: var(--theme-button-secondary-hover, #5568d3);
}

.clubs-table-container {
    overflow-x: auto;
}

/* Кнопки в таблицах */
.general-info-page .cancel-scheduled-btn {
    padding: 8px 16px;
    background: #f2f2f2;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.general-info-page .cancel-scheduled-btn:hover {
    background: #e8e8e8;
}

.general-info-page .restore-hidden-btn {
    padding: 8px 16px;
    background: #e8f5e9;
    border: 1px solid #81c784;
    border-radius: 32px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #2e7d32;
}

.general-info-page .restore-hidden-btn:hover {
    background: #c8e6c9;
}

.general-info-page .reports-actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    white-space: nowrap;
}

.general-info-page .reports-approve-btn {
    padding: 6px 12px;
    background: #e8f5e9;
    border: 1px solid #81c784;
    border-radius: 32px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #2e7d32;
}

.general-info-page .reports-approve-btn:hover {
    background: #c8e6c9;
}

.general-info-page .reports-delete-btn {
    padding: 6px 12px;
    background: #ffebee;
    border: 1px solid #e57373;
    border-radius: 32px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #c62828;
}

.general-info-page .delete-hidden-btn {
    padding: 6px 12px;
    background: #ffebee;
    border: 1px solid #e57373;
    border-radius: 32px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #c62828;
}

.general-info-page .reports-delete-btn:hover {
    background: #ffcdd2;
}

.general-info-page .delete-hidden-btn:hover {
    background: #ffcdd2;
}

.general-info-page .table-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    white-space: nowrap;
}

.general-info-page .edit-club-btn {
    padding: 8px 16px;
    background-color: var(--theme-button-primary);
    color: white;
    border: none;
    border-radius: 32px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.general-info-page .edit-club-btn:hover {
    background-color: var(--theme-button-secondary-hover, #5568d3);
}

.general-info-page .toggle-nav-btn {
    padding: 8px 16px;
    background: #e8e8e8;
    color: #333;
    border: 1px solid var(--theme-border);
    border-radius: 32px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.general-info-page .toggle-nav-btn:hover {
    background: #ddd;
}

.general-info-page .revoke-admin-btn {
    padding: 8px 16px;
    background: #e8e8e8;
    color: #333;
    border: 1px solid var(--theme-border);
    border-radius: 32px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.general-info-page .revoke-admin-btn:hover {
    background: #ddd;
}

.general-info-page .set-admin-btn {
    padding: 8px 16px;
    background-color: var(--theme-button-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.general-info-page .set-admin-btn:hover {
    background-color: var(--theme-button-secondary-hover, #5568d3);
}

.general-info-page .toggle-inspecting-btn {
    padding: 8px 16px;
    border-radius: 32px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.general-info-page .toggle-inspecting-btn[data-inspecting="1"] {
    background-color: #e6f7e6;
    color: #1e7b1e;
    box-shadow: 0 0 0 1px rgba(30, 123, 30, 0.2);
}

.general-info-page .toggle-inspecting-btn[data-inspecting="1"]:hover {
    background-color: #d1f0d1;
}

.general-info-page .toggle-inspecting-btn[data-inspecting="0"] {
    background-color: #f3f3f3;
    color: #333;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.general-info-page .toggle-inspecting-btn[data-inspecting="0"]:hover {
    background-color: #e7e7e7;
}

/* Таблица организаций — компактнее */
.general-info-page .clubs-table th,
.general-info-page .clubs-table td {
    padding: 10px 12px;
    font-size: 14px;
}

.general-info-page .clubs-table th:nth-child(2) {
    width: 50px;
    min-width: 50px;
}

/* Модальное окно редактирования организации (оформление как feedback-modal) */
.club-edit-modal {
    position: fixed;
    inset: 0;
    /* Выше header (1001) и боковой навигации (2000), в одном слое с прочими модалками */
    z-index: 10050;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
    box-sizing: border-box;
    overflow-y: auto;
}
@supports (-webkit-overflow-scrolling: touch) {
.club-edit-modal {
    -webkit-overflow-scrolling: touch;
}
}

.club-edit-modal-overlay {
    /* Фиксируем на весь viewport: при прокруте длинной формы затемнение не «обрезается» по высоте 100vh */
    position: fixed;
    inset: 0;
    z-index: 0;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.club-edit-modal-content {
    position: relative;
    background: var(--theme-bg-secondary);
    border-radius: 16px;
    padding: 32px;
    max-width: 520px;
    width: 90%;
    max-height: min(90vh, calc(100dvh - 48px));
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1;
    flex-shrink: 0;
    animation: feedbackModalSlideIn 0.3s ease;
}
@supports (-webkit-overflow-scrolling: touch) {
.club-edit-modal-content {
    -webkit-overflow-scrolling: touch;
}
}

.club-edit-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--theme-text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.club-edit-modal-close:hover {
    background-color: var(--theme-bg-tertiary);
    color: var(--theme-text-primary);
}

.club-edit-modal-content h2 {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--theme-text-primary);
}

.club-edit-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.club-edit-modal-content .social-integration {
    margin: 0;
}

.club-edit-modal-content .social-item {
    border-color: var(--theme-input-border);
    background-color: var(--theme-input-bg);
}

.club-edit-modal-content .social-item figcaption {
    color: var(--theme-text-primary);
}

.club-edit-avatar-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.club-edit-avatar-preview img {
    width: 120px;
    height: 120px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
}

.club-edit-avatar-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background-color: #667eea;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.club-edit-avatar-btn:hover {
    background-color: #5568d3;
}

/* Тёмная тема для страницы общей информации */







/* Стили для страницы статистики мероприятий */
.eventsStatistics {
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
    padding: 20px;
}

.eventsStatistics h1 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.events-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--theme-border);
}

.events-tabs .tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    cursor: pointer;
    color: var(--theme-text-secondary);
    transition: all 0.3s ease;
    position: relative;
    top: 2px;
    max-width: 180px;
    width: 100%;
}

.events-tabs .tab-btn:hover {
    color: var(--theme-text-primary);
}

.events-tabs .tab-btn.active {
    color: var(--theme-button-primary);
    border-bottom-color: var(--theme-button-primary);
    font-weight: 600;
}

.events-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--theme-bg-secondary);
    border-radius: 18px;
    border: 1px solid var(--theme-border);
}

.events-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Группа с поиском должна заполнять всю свободную ширину */
.events-filters .filter-group:has(#filter-search),
.events-filters .filter-group:has(input#filter-search) {
    flex: 1;
    min-width: 200px;
}

/* Альтернативный селектор для браузеров без поддержки :has() */
.events-filters .filter-group:nth-child(3) {
    flex: 1;
    min-width: 200px;
}

.events-filters label {
    font-size: 16px;
    color: var(--theme-text-primary);
    font-weight: 500;
}

.events-filters .filter-input {
    padding: 10px 14px;
    border: 2px solid var(--theme-input-border);
    border-radius: 10px;
    font-size: 16px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-weight: 500;
    background-color: var(--theme-input-bg);
    color: var(--theme-text-primary);
    min-width: 150px;
    height: 44px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    outline: none;
}

.events-filters .filter-input:hover {
    border-color: var(--theme-select-arrow);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
}

.events-filters .filter-input:focus {
    outline: none;
    border-color: var(--theme-select-focus);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.06), 0 4px 12px rgba(102, 126, 234, 0.1);
}

/* Темная тема для полей фильтров */



.events-filters .filter-reset-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.events-filters .filter-reset-btn {
    padding: 0 12px;
    background-color: var(--theme-button-secondary);
    border: none;
    border-radius: 32px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: #ffffff;
    transition: background-color 0.3s ease;
    min-width: 150px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    box-sizing: border-box;
}

.events-filters .filter-reset-btn:hover {
    background-color: var(--theme-button-secondary-hover);
}

.events-filters .filter-reset-btn:active {
    background-color: var(--theme-button-secondary);
}

/* Тёмная тема для кнопки */



.events-table-container {
    overflow-x: auto;
    background-color: var(--theme-bg-secondary);
    border-radius: 18px;
    border: 1px solid var(--theme-border);
    margin-bottom: 20px;
}

.events-table-scroll {
    max-height: 70vh;
    overflow-y: auto;
}

.infinite-scroll-sentinel {
    height: 1px;
    visibility: hidden;
    pointer-events: none;
}

.events-table-container::-webkit-scrollbar {
    height: 6px;
}

.events-table-container::-webkit-scrollbar-track {
    background-color: rgba(217, 217, 217, 0.75);
    border-radius: 3px;
}

.events-table-container::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.5);
    border-radius: 3px;
}

.events-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 128, 128, 0.7);
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.events-table thead {
    background-color: var(--theme-bg-tertiary);
}

.events-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--theme-text-primary);
    border-bottom: 2px solid var(--theme-border);
    white-space: nowrap;
}

.events-table th:first-child {
    text-align: center;
    width: 50px;
    min-width: 50px;
}

.events-table td {
    padding: 12px;
    border-bottom: 1px solid var(--theme-border);
    color: var(--theme-text-primary);
}

.events-table td:first-child {
    text-align: center;
    font-weight: 500;
    color: var(--theme-text-secondary);
}

.events-table tbody tr:hover {
    background-color: var(--theme-bg-tertiary);
}

.events-table tbody tr:last-child td {
    border-bottom: none;
}

.eventsStatistics .backBtn {
    padding: 10px 12px;
    background-color: var(--theme-button-secondary);
    color: white;
    border: none;
    border-radius: 32px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.eventsStatistics .backBtn:hover {
    background-color: var(--theme-button-secondary-hover);
}







/* Стили для календаря мероприятий */
#events-calendar-container {
    background: var(--theme-bg-secondary);
    border-radius: 32px;
    padding: 20px;
    box-shadow: 0 0 8px var(--theme-shadow);
    margin-bottom: 20px;
}

#events-calendar-container.no-margin {
    margin-bottom: 0;
}

/* Навигация календаря */
.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
}

.calendar-month-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--theme-text-primary);
    flex: 1;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-weekday {
    text-align: center;
    font-weight: 600;
    color: var(--theme-text-secondary);
    padding: 4px;
    font-size: 12px;
}

html[data-js="1"] .calendar-skeleton {
    --skel-base: rgba(0, 0, 0, 0.06);
    --skel-shine: rgba(0, 0, 0, 0.11);
}
html[data-js="1"][data-theme="dark"] .calendar-skeleton {
    --skel-base: rgba(255, 255, 255, 0.07);
    --skel-shine: rgba(255, 255, 255, 0.14);
}

html[data-js="1"] .calendar-skeleton .calendar-nav-btn,
html[data-js="1"] .calendar-skeleton .calendar-month-title,
html[data-js="1"] .calendar-skeleton .calendar-weekday,
html[data-js="1"] .calendar-skeleton .calendar-day,
html[data-js="1"] .calendar-skeleton .calendar-empty {
    position: relative;
    overflow: hidden;
    color: transparent !important;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

html[data-js="1"] .calendar-skeleton .calendar-day span {
    visibility: hidden;
}

html[data-js="1"] .calendar-skeleton .calendar-nav-btn,
html[data-js="1"] .calendar-skeleton .calendar-month-title {
    background: var(--skel-base) !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html[data-js="1"] .calendar-skeleton .calendar-weekday,
html[data-js="1"] .calendar-skeleton .calendar-day,
html[data-js="1"] .calendar-skeleton .calendar-empty {
    background: var(--skel-base) !important;
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

html[data-js="1"] .calendar-skeleton .calendar-day.has-events::after {
    display: none;
}

html[data-js="1"] .calendar-skeleton .calendar-nav-btn::before,
html[data-js="1"] .calendar-skeleton .calendar-month-title::before,
html[data-js="1"] .calendar-skeleton .calendar-weekday::before,
html[data-js="1"] .calendar-skeleton .calendar-day::before,
html[data-js="1"] .calendar-skeleton .calendar-empty::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--skel-shine) 45%,
        transparent 90%
    );
    transform: translateX(-100%);
    animation: calendar-skeleton-shimmer 1.05s linear infinite;
}

@keyframes calendar-skeleton-shimmer {
    to { transform: translateX(100%); }
}

/* ============================================
   Skeleton для постов (лента)
   Включается только при включенном JS (data-js)
   ============================================ */
html[data-js="1"] .post-skeleton {
    position: relative;
    overflow: hidden;
}

.feed-loading-zone {
    width: 100%;
    min-height: 1px;
}

.feed-loading-zone > #loading {
    margin-top: 12px;
}

html[data-js="1"] .feed-loading-zone > .post-skeleton:first-child {
    margin-top: 20px;
}

html[data-js="1"] .swiper-container.media-pending {
    position: relative;
    overflow: hidden;
    min-height: 260px;
}

html[data-js="1"] .swiper-container.media-pending::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0.06) 90%);
    transform: translateX(-100%);
    animation: post-skeleton-shimmer 1.05s linear infinite;
    z-index: 2;
}

html[data-js="1"][data-theme="dark"] .swiper-container.media-pending::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.14) 45%, rgba(255, 255, 255, 0.07) 90%);
}

html[data-js="1"] .swiper-container.media-pending img,
html[data-js="1"] .swiper-container.media-pending video {
    opacity: 0;
}

/* SSR overlay: реальный контент остаётся в DOM, skeleton лежит поверх карточки до гидратации */
html[data-js="1"] article[data-post-id] {
    position: relative;
}

html[data-js="1"] article[data-post-id] .post-overlay-skeleton {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 16px 24px 18px 24px;
    background: var(--theme-article-bg);
    border-radius: inherit;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

html[data-js="1"] [data-feed-overlay-loading="1"] article[data-post-id] .post-overlay-skeleton {
    opacity: 1;
    visibility: visible;
}

html[data-js="1"] article[data-post-id] .post-overlay-skeleton__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

html[data-js="1"] article[data-post-id] .post-overlay-skeleton__identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

html[data-js="1"] article[data-post-id] .post-overlay-skeleton__actions {
    display: flex;
    gap: 10px;
}

html[data-js="1"] article[data-post-id] .post-overlay-skeleton__media {
    display: block;
}

html[data-js="1"] [data-feed-overlay-loading="1"][data-skel="nomedia"] article[data-post-id] .post-overlay-skeleton__media,
html[data-js="1"] article[data-post-id] .post-overlay-skeleton[data-overlay-variant="nomedia"] .post-overlay-skeleton__media {
    display: none;
}

html[data-js="1"] article[data-post-id] .post-overlay-skeleton__content {
    display: grid;
    gap: 10px;
}

/* Публикация: индивидуальный overlay-скелетон (мастер), до window.onload */
html[data-js="1"] section.publication > article {
    position: relative;
}

html[data-js="1"] section.publication > article .publication-skeleton {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 18px 24px 18px 24px;
    background: var(--pub-card-bg, var(--theme-article-bg));
    border-radius: inherit;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    box-sizing: border-box;
}

html[data-js="1"] section.publication[data-publication-overlay-loading="1"] > article .publication-skeleton {
    opacity: 1;
    visibility: visible;
}

html[data-js="1"] section.publication > article .publication-skeleton__header {
    display: grid;
    gap: 10px;
}
html[data-js="1"] section.publication > article .publication-skeleton__title {
    height: 28px;
    width: min(520px, 80%);
    border-radius: 12px;
}
html[data-js="1"] section.publication > article .publication-skeleton__stepper {
    height: 18px;
    width: min(320px, 56%);
    border-radius: 999px;
}
html[data-js="1"] section.publication > article .publication-skeleton__body {
    display: grid;
    gap: 12px;
    margin-top: 6px;
}
html[data-js="1"] section.publication > article .publication-skeleton__field {
    height: 44px;
    border-radius: 14px;
}
html[data-js="1"] section.publication > article .publication-skeleton__textarea {
    height: 140px;
    border-radius: 16px;
}
html[data-js="1"] section.publication > article .publication-skeleton__footer {
    display: grid;
    grid-template-columns: 120px 120px 1fr;
    gap: 10px;
    margin-top: 8px;
    align-items: end;
}
html[data-js="1"] section.publication > article .publication-skeleton__btn {
    height: 44px;
    border-radius: 14px;
}
html[data-js="1"] section.publication > article .publication-skeleton__btn--primary {
    justify-self: end;
    width: min(220px, 100%);
}

/* Настройки — «Статистика мероприятий» (организация): отдельный скелетон таблицы (не пост) */
html[data-js="1"] section.eventsStatistics:not(.inspectingStatsView) {
    position: relative;
}

html[data-js="1"] section.eventsStatistics:not(.inspectingStatsView) .events-stats-skeleton {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 16px 24px 18px 24px;
    background: var(--theme-bg-secondary, var(--theme-article-bg));
    border-radius: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    box-sizing: border-box;
}

html[data-js="1"] section.eventsStatistics[data-events-statistics-overlay-loading="1"]:not(.inspectingStatsView) .events-stats-skeleton {
    opacity: 1;
    visibility: visible;
}

html[data-js="1"] section.eventsStatistics:not(.inspectingStatsView) .events-stats-skeleton__title {
    height: 28px;
    width: min(520px, 70%);
    border-radius: 12px;
}

html[data-js="1"] section.eventsStatistics:not(.inspectingStatsView) .events-stats-skeleton__tabs {
    display: flex;
    gap: 10px;
}
html[data-js="1"] section.eventsStatistics:not(.inspectingStatsView) .events-stats-skeleton__tab {
    height: 36px;
    width: 160px;
    border-radius: 14px;
}

html[data-js="1"] section.eventsStatistics:not(.inspectingStatsView) .events-stats-skeleton__filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
@media (max-width: 900px) {
    html[data-js="1"] section.eventsStatistics:not(.inspectingStatsView) .events-stats-skeleton__filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
html[data-js="1"] section.eventsStatistics:not(.inspectingStatsView) .events-stats-skeleton__filter {
    height: 44px;
    border-radius: 14px;
}

html[data-js="1"] section.eventsStatistics:not(.inspectingStatsView) .events-stats-skeleton__table {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}
html[data-js="1"] section.eventsStatistics:not(.inspectingStatsView) .events-stats-skeleton__thead {
    display: grid;
    grid-template-columns: 60px 1.7fr 1fr 1fr 1fr 1fr;
    gap: 10px;
}
html[data-js="1"] section.eventsStatistics:not(.inspectingStatsView) .events-stats-skeleton__th {
    height: 18px;
    border-radius: 10px;
}
html[data-js="1"] section.eventsStatistics:not(.inspectingStatsView) .events-stats-skeleton__tbody {
    display: grid;
    gap: 8px;
}
html[data-js="1"] section.eventsStatistics:not(.inspectingStatsView) .events-stats-skeleton__row {
    display: grid;
    grid-template-columns: 60px 1.7fr 1fr 1fr 1fr 1fr;
    gap: 10px;
}
html[data-js="1"] section.eventsStatistics:not(.inspectingStatsView) .events-stats-skeleton__cell {
    height: 16px;
    border-radius: 10px;
}

html[data-js="1"] section.eventsStatistics:not(.inspectingStatsView) .events-stats-skeleton__back {
    height: 44px;
    width: 120px;
    border-radius: 14px;
    margin-top: 8px;
}

html[data-js="1"] section.settings article {
    position: relative;
}

html[data-js="1"] section.settings article .settings-overlay-skeleton {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 20px;
    background: var(--theme-article-bg);
    border-radius: inherit;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    box-sizing: border-box;
}

html[data-js="1"] section.settings[data-settings-overlay-loading="1"] article .settings-overlay-skeleton {
    opacity: 1;
    visibility: visible;
}

html[data-js="1"] section.settings[data-settings-overlay-loading="1"] article > :not(.settings-overlay-skeleton) {
    visibility: hidden;
}

html[data-js="1"] section.settings article .settings-overlay-skeleton__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

html[data-js="1"] section.settings article .settings-overlay-skeleton__identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

html[data-js="1"] section.settings article .settings-overlay-skeleton__title-wrap {
    display: grid;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

html[data-js="1"] section.settings article .settings-overlay-skeleton__actions {
    display: flex;
    justify-content: flex-end;
    flex: 0 0 auto;
}

html[data-js="1"] section.settings article .settings-overlay-skeleton__content {
    display: grid;
    gap: 10px;
}

html[data-js="1"] section.settings article .settings-overlay-skeleton__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex: 0 0 auto;
}

html[data-js="1"] section.settings article .settings-overlay-skeleton__title {
    width: 180px;
    max-width: 72%;
    height: 22px;
    border-radius: 999px;
}

html[data-js="1"] section.settings article .settings-overlay-skeleton__meta {
    width: 120px;
    max-width: 44%;
    height: 14px;
    border-radius: 999px;
}

html[data-js="1"] section.settings article .settings-overlay-skeleton__action {
    width: 116px;
    height: 40px;
    border-radius: 999px;
}

html[data-js="1"] section.settings article .settings-overlay-skeleton__line {
    height: 14px;
    border-radius: 999px;
}

html[data-js="1"] section.settings article .settings-overlay-skeleton__line--full {
    width: 100%;
}

html[data-js="1"] section.settings article .settings-overlay-skeleton__line--wide {
    width: 88%;
}

html[data-js="1"] section.settings article .settings-overlay-skeleton__line--mid {
    width: 62%;
}

html[data-js="1"] .profileEdit {
    position: relative;
}

html[data-js="1"] .profileEdit .profile-edit-overlay-skeleton {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 0 0 24px 0;
    background: transparent;
    border-radius: inherit;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    box-sizing: border-box;
}

html[data-js="1"] .profileEdit[data-profile-edit-overlay-loading="1"] .profile-edit-overlay-skeleton {
    opacity: 1;
    visibility: visible;
}

html[data-js="1"] .profileEdit[data-profile-edit-overlay-loading="1"] > :not(.profile-edit-overlay-skeleton) {
    visibility: hidden;
}

html[data-js="1"] .profileEdit .profile-edit-overlay-skeleton__title {
    width: 240px;
    max-width: 56%;
    height: 28px;
    border-radius: 999px;
}

html[data-js="1"] .profileEdit .profile-edit-overlay-skeleton__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    background: var(--theme-article-bg);
    border: 1px solid var(--theme-border, rgba(0,0,0,0.08));
    box-shadow: 0 2px 8px var(--theme-shadow, rgba(0, 0, 0, 0.08));
}

html[data-js="1"] .profileEdit .profile-edit-overlay-skeleton__avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    flex: 0 0 auto;
}

html[data-js="1"] .profileEdit .profile-edit-overlay-skeleton__header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

html[data-js="1"] .profileEdit .profile-edit-overlay-skeleton__pill {
    width: 128px;
    height: 40px;
    border-radius: 999px;
}

html[data-js="1"] .profileEdit .profile-edit-overlay-skeleton__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

html[data-js="1"] .profileEdit .profile-edit-overlay-skeleton__card {
    display: grid;
    gap: 12px;
    padding: 16px;
    background: var(--theme-article-bg);
    border: 1px solid var(--theme-border, rgba(0,0,0,0.08));
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--theme-shadow, rgba(0, 0, 0, 0.08));
}

html[data-js="1"] .profileEdit .profile-edit-overlay-skeleton__card-title {
    width: 120px;
    height: 14px;
    border-radius: 999px;
}

html[data-js="1"] .profileEdit .profile-edit-overlay-skeleton__line {
    height: 16px;
    border-radius: 999px;
}

html[data-js="1"] .profileEdit .profile-edit-overlay-skeleton__line--full {
    width: 100%;
}

html[data-js="1"] .profileEdit .profile-edit-overlay-skeleton__line--wide {
    width: 88%;
}

html[data-js="1"] .profileEdit .profile-edit-overlay-skeleton__line--mid {
    width: 62%;
}

html[data-js="1"] .events-filter-skeleton {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px 0 16px;
    background: var(--theme-input-bg);
    border-radius: 18px;
    border: 2px solid transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    box-sizing: border-box;
}

html[data-js="1"] [data-feed-overlay-loading="1"] .events-filter-skeleton {
    opacity: 1;
    visibility: visible;
}

html[data-js="1"] .club-info-overlay-skeleton .skel,
html[data-js="1"] .nav-overlay-skeleton .skel,
html[data-js="1"] .events-filter-skeleton .skel,
html[data-js="1"] .reference-article-skeleton .skel,
html[data-js="1"] .profile-edit-overlay-skeleton .skel,
html[data-js="1"] .settings-overlay-skeleton .skel,
html[data-js="1"] .post-skeleton .skel,
html[data-js="1"] article[data-post-id] .post-overlay-skeleton .skel,
html[data-js="1"] section.publication > article .publication-skeleton .skel,
html[data-js="1"] section.eventsStatistics:not(.inspectingStatsView) .events-stats-skeleton .skel {
    --skel-base: rgba(0, 0, 0, 0.06);
    --skel-shine: rgba(0, 0, 0, 0.12);
    background: var(--skel-base);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

html[data-js="1"] .reference-article-skeleton {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 24px;
    background: var(--theme-article-bg);
    border-radius: inherit;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

html[data-js="1"] body[data-reference-overlay-loading="1"] .reference-article-skeleton {
    opacity: 1;
    visibility: visible;
}

html[data-js="1"] .reference-article-skeleton__title {
    width: 220px;
    max-width: 58%;
    height: 26px;
    border-radius: 999px;
}

html[data-js="1"] .reference-article-skeleton--guide {
    gap: 18px;
}

html[data-js="1"] .reference-article-skeleton--faq {
    gap: 20px;
}

html[data-js="1"] .reference-article-skeleton__title--hero {
    width: 180px;
    max-width: 46%;
}

html[data-js="1"] .reference-article-skeleton__title--section {
    width: 320px;
    max-width: 78%;
}

html[data-js="1"] .reference-article-skeleton__paragraph {
    display: grid;
    gap: 12px;
}

html[data-js="1"] .reference-article-skeleton__list {
    display: grid;
    gap: 16px;
}

html[data-js="1"] .reference-article-skeleton__list-item {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid rgba(127, 140, 170, 0.18);
    border-radius: 20px;
}

html[data-js="1"] .reference-article-skeleton__line {
    height: 14px;
    border-radius: 999px;
}

html[data-js="1"] .reference-article-skeleton__line--full {
    width: 100%;
}

html[data-js="1"] .reference-article-skeleton__line--wide {
    width: 92%;
}

html[data-js="1"] .reference-article-skeleton__line--mid {
    width: 74%;
}

html[data-js="1"] .reference-faq-skeleton-list {
    display: grid;
    gap: 14px;
}

html[data-js="1"] .reference-faq-skeleton-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
}

html[data-js="1"] .reference-faq-skeleton-item__question {
    width: 78%;
    height: 18px;
    border-radius: 999px;
}

html[data-js="1"] .reference-faq-skeleton-item__question--wide {
    width: 88%;
}

html[data-js="1"] .reference-faq-skeleton-item__question--mid {
    width: 66%;
}

html[data-js="1"] .reference-faq-skeleton-item__chevron {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    flex-shrink: 0;
}

html[data-js="1"] .club-info-overlay-skeleton {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 16px 24px 24px 24px;
    background: var(--theme-article-bg);
    border-radius: inherit;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

html[data-js="1"] body[data-club-info-overlay-loading="1"] .club-info-overlay-skeleton {
    opacity: 1;
    visibility: visible;
}

html[data-js="1"] .club-info-overlay-skeleton__header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

html[data-js="1"] .club-info-overlay-skeleton__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex: 0 0 auto;
}

html[data-js="1"] .club-info-overlay-skeleton__title {
    width: 240px;
    max-width: 70%;
    height: 18px;
    border-radius: 999px;
}

html[data-js="1"] .club-info-overlay-skeleton__content {
    display: grid;
    gap: 12px;
}

html[data-js="1"] .club-info-overlay-skeleton__line {
    height: 14px;
    border-radius: 999px;
}

html[data-js="1"] .club-info-overlay-skeleton__line--full {
    width: 100%;
}

html[data-js="1"] .club-info-overlay-skeleton__line--wide {
    width: 92%;
}

html[data-js="1"] .club-info-overlay-skeleton__line--mid {
    width: 68%;
}

html[data-js="1"] .events-filter-skeleton__control {
    flex: 1 1 auto;
    height: 16px;
    border-radius: 999px;
}

html[data-js="1"] .events-filter-skeleton__icon {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

html[data-js="1"] .nav-overlay-skeleton {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    align-content: start;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    box-sizing: border-box;
}

html[data-js="1"] body[data-nav-overlay-loading="1"] .nav-overlay-skeleton {
    opacity: 1;
    visibility: visible;
}

html[data-js="1"] body[data-nav-overlay-loading="1"] aside.aside-nav-shell > nav,
html[data-js="1"] body[data-nav-overlay-loading="1"] aside.aside-nav-shell > .aside-legal,
html[data-js="1"] body[data-nav-overlay-loading="1"] .sidePanel .nav > :not(.nav-overlay-skeleton) {
    visibility: hidden;
}

html[data-js="1"] .nav-overlay-skeleton--aside {
    padding: 90px 20px 28px 20px;
    width: 265px;
    max-width: 100%;
    background: var(--theme-bg-primary);
}

html[data-js="1"] .nav-overlay-skeleton--panel {
    padding: 15px 20px 24px 20px;
    width: 320px;
    max-width: 100%;
    min-height: 100%;
    background: var(--theme-nav-bg);
    box-shadow: 0 0 8px var(--theme-shadow);
}

html[data-js="1"] .nav-overlay-skeleton__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

html[data-js="1"] .nav-overlay-skeleton__logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex: 0 0 auto;
}

html[data-js="1"] .nav-overlay-skeleton__logo-text {
    width: 148px;
    height: 20px;
    border-radius: 999px;
}

html[data-js="1"] .nav-overlay-skeleton__group {
    display: grid;
    gap: 16px;
}

html[data-js="1"] .nav-overlay-skeleton__group--footer {
    margin-top: 8px;
}

html[data-js="1"] .nav-overlay-skeleton__title {
    width: 74px;
    height: 16px;
    border-radius: 999px;
}

html[data-js="1"] .nav-overlay-skeleton__item {
    width: 100%;
    height: 40px;
    border-radius: 20px;
}

html[data-js="1"] .nav-overlay-skeleton__item--club {
    position: relative;
    overflow: hidden;
}

html[data-js="1"] .nav-overlay-skeleton__item--club::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
}

html[data-js="1"][data-theme="dark"] .nav-overlay-skeleton__item--club::after {
    background: rgba(255, 255, 255, 0.16);
}

html[data-js="1"] .nav-overlay-skeleton__legal {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

html[data-js="1"] .nav-overlay-skeleton__legal-line {
    height: 12px;
    width: 100%;
    border-radius: 999px;
}

html[data-js="1"] .nav-overlay-skeleton__legal-line--short {
    width: 58%;
}

html[data-js="1"][data-theme="dark"] .club-info-overlay-skeleton .skel,
html[data-js="1"][data-theme="dark"] .events-filter-skeleton .skel,
html[data-js="1"][data-theme="dark"] .nav-overlay-skeleton .skel,
html[data-js="1"][data-theme="dark"] .reference-article-skeleton .skel,
html[data-js="1"][data-theme="dark"] .profile-edit-overlay-skeleton .skel,
html[data-js="1"][data-theme="dark"] .settings-overlay-skeleton .skel,
html[data-js="1"][data-theme="dark"] .post-skeleton .skel,
html[data-js="1"][data-theme="dark"] article[data-post-id] .post-overlay-skeleton .skel,
html[data-js="1"][data-theme="dark"] section.publication > article .publication-skeleton .skel,
html[data-js="1"][data-theme="dark"] section.eventsStatistics:not(.inspectingStatsView) .events-stats-skeleton .skel {
    --skel-base: rgba(255, 255, 255, 0.07);
    --skel-shine: rgba(255, 255, 255, 0.14);
}

html[data-js="1"][data-theme="dark"] .reference-article-skeleton__list-item,
html[data-js="1"][data-theme="dark"] .reference-faq-skeleton-item {
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-js="1"] .club-info-overlay-skeleton .skel::before,
html[data-js="1"] .nav-overlay-skeleton .skel::before,
html[data-js="1"] .events-filter-skeleton .skel::before,
html[data-js="1"] .reference-article-skeleton .skel::before,
html[data-js="1"] .profile-edit-overlay-skeleton .skel::before,
html[data-js="1"] .settings-overlay-skeleton .skel::before,
html[data-js="1"] .post-skeleton .skel::before,
html[data-js="1"] article[data-post-id] .post-overlay-skeleton .skel::before,
html[data-js="1"] section.publication > article .publication-skeleton .skel::before,
html[data-js="1"] section.eventsStatistics:not(.inspectingStatsView) .events-stats-skeleton .skel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, var(--skel-shine) 45%, transparent 90%);
    transform: translateX(-100%);
    animation: post-skeleton-shimmer 1.05s linear infinite;
}

html[data-js="1"] .events-filter-control {
    min-height: 48px;
}

html[data-js="1"] [data-feed-overlay-loading="1"] .events-filter-control .custom-select-wrapper,
html[data-js="1"] [data-feed-overlay-loading="1"] .events-filter-control #sort-select {
    visibility: hidden;
}

html[data-js="1"] .events-filter-control .custom-select-wrapper,
html[data-js="1"] .events-filter-control #sort-select {
    visibility: visible;
}

@keyframes post-skeleton-shimmer {
    to { transform: translateX(100%); }
}

html[data-js="1"] .post-skeleton .info {
    padding: 16px 24px 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

html[data-js="1"] .post-skeleton .info_public {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

html[data-js="1"] .post-skeleton .skel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex: 0 0 auto;
}

html[data-js="1"] article[data-post-id] .post-overlay-skeleton .skel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex: 0 0 auto;
}

html[data-js="1"] .post-skeleton .skel-title {
    height: 14px;
    width: 220px;
    max-width: 46vw;
}

html[data-js="1"] article[data-post-id] .post-overlay-skeleton .skel-title {
    height: 14px;
    width: 220px;
    max-width: 46vw;
}

html[data-js="1"] .post-skeleton .info-buttons {
    display: flex;
    gap: 10px;
}

html[data-js="1"] .post-skeleton .skel-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
}

html[data-js="1"] article[data-post-id] .post-overlay-skeleton .skel-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
}

html[data-js="1"] .post-skeleton .skel-media {
    height: 260px;
    margin: 0 24px;
    border-radius: 18px;
}

html[data-js="1"] article[data-post-id] .post-overlay-skeleton .skel-media {
    height: 260px;
    width: 100%;
    border-radius: 18px;
}

html[data-js="1"] .post-skeleton .info-2 {
    padding: 12px 24px 18px 24px;
    display: grid;
    gap: 10px;
}

html[data-js="1"] .post-skeleton .skel-line {
    height: 12px;
    border-radius: 10px;
}

html[data-js="1"] article[data-post-id] .post-overlay-skeleton .skel-line {
    height: 12px;
    border-radius: 10px;
}
html[data-js="1"] .post-skeleton .skel-line.w-100 { width: 100%; }
html[data-js="1"] .post-skeleton .skel-line.w-92 { width: 92%; }
html[data-js="1"] .post-skeleton .skel-line.w-76 { width: 76%; }
html[data-js="1"] .post-skeleton .skel-line.w-48 { width: 48%; }
html[data-js="1"] article[data-post-id] .post-overlay-skeleton .skel-line.w-100 { width: 100%; }
html[data-js="1"] article[data-post-id] .post-overlay-skeleton .skel-line.w-92 { width: 92%; }
html[data-js="1"] article[data-post-id] .post-overlay-skeleton .skel-line.w-76 { width: 76%; }
html[data-js="1"] article[data-post-id] .post-overlay-skeleton .skel-line.w-48 { width: 48%; }

html[data-js="1"] .post-skeleton .skel-meta {
    height: 12px;
    width: 160px;
    justify-self: end;
}

html[data-js="1"] article[data-post-id] .post-overlay-skeleton .skel-meta {
    height: 12px;
    width: 160px;
    justify-self: end;
}

.calendar-empty {
    aspect-ratio: 1.5;
    background: var(--theme-bg-tertiary);
    border-radius: 18px;
    min-height: 24px;
}

.calendar-day {
    aspect-ratio: 1.5;
    min-height: 24px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
    box-sizing: border-box;
    padding: 4px;
    font-weight: 400;
    color: #3e3e3e;
    background: #ffffff;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.calendar-day span:first-child {
    font-size: 13px;
    line-height: 1;
}

.calendar-day.has-events {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: #667eea;
    cursor: pointer;
}

.calendar-day.has-events::after {
    content: "";
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    background: #667eea;
    border-radius: 50%;
}

.calendar-day.today {
    font-weight: 600;
}

/* Кнопки навигации календаря в стиле select */
.calendar-nav-btn {
    padding: 10px 16px;
    font-size: 15px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-weight: 500;
    color: var(--theme-text-primary);
    background-color: var(--theme-input-bg);
    border: 2px solid var(--theme-input-border);
    border-radius: 32px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    outline: none;
    white-space: nowrap;
}

.calendar-nav-btn:hover {
    border-color: var(--theme-select-arrow);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
}

.calendar-nav-btn:active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.calendar-nav-btn:focus {
    border-color: var(--theme-select-focus);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.06), 0 4px 12px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Темная тема для календаря (SSR и JS одинаково) */
html[data-theme="dark"] .calendar-empty {
    background: #1a1a1a;
}
html[data-theme="dark"] .calendar-day {
    background: #2d2d2d;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}
html[data-theme="dark"] .calendar-day.has-events {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(85, 104, 211, 0.15) 100%);
    border-color: #667eea;
}

.calendar-day.has-events:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.calendar-day.has-events:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.10) 0%, rgba(118, 75, 162, 0.10) 100%) !important;
    border-color: rgba(102, 126, 234, 0.75) !important;
}


.calendar-day.today {
    font-weight: 600;
}

.events-tooltip {
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.events-tooltip div[onclick] {
    transition: background 0.2s;
}

.events-tooltip div[onclick]:hover {
    background: #f5f5f5;
    border-radius: 4px;
}

/* Адаптивность для календаря */
@media (max-width: 768px) {
    #events-calendar-container {
        padding: 12px;
        box-shadow: none;
    }
    
    .calendar-month-title {
        font-size: 16px !important;
    }
    
    .calendar-nav-btn {
        padding: 8px 12px !important;
        font-size: 13px !important;
        min-height: 32px !important;
    }
    
    .calendar-month-title {
        font-size: 16px !important;
    }
    
    .calendar-day span:first-child {
        font-size: 14px !important;
    }
    
    .events-tooltip {
        min-width: 200px !important;
        max-width: 280px !important;
    }
}

.event-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Выше aside/nav (2000), попапов мастера (≈1000), совместимо с основными модалками (~10050) */
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
}

.event-preview-modal.show {
    display: flex !important;
}

.event-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.event-preview-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    aspect-ratio: 16/9;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 8px solid #ffffff;
    border-radius: 8px;
}

.event-preview-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.event-preview-close:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.event-preview-iframe {
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    border: none;
    display: block;
}

/* Современные стили для предпросмотра страницы мероприятия */
.event-page-preview {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

.event-header-preview {
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.event-header-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.event-header-preview > * {
    position: relative;
    z-index: 2;
}

.event-header-preview h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.event-header-preview h2 {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

.event-content-block-preview {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-content-block-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.event-content-block-preview h3 {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.event-content-block-preview p {
    color: #4a4a4a;
    font-size: 16px;
    line-height: 1.7;
}

.event-schedule-item-preview {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-left: 4px solid var(--theme-select-focus) !important;
}

.event-schedule-item-preview:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.event-partner-preview {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-width: 150px;
}

.event-partner-preview:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Партнёры на странице мероприятия */
.event-partner img {
    transition: transform 0.25s ease, filter 0.25s ease;
    transform-origin: center center;
}

.event-partner:hover img {
    transform: scale(1.06);
    filter: saturate(1.35) contrast(1.05);
}

.event-section--partners .partners {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

@media (max-width: 1024px) {
    .event-section--partners .partners {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
    }
    @supports (-webkit-overflow-scrolling: touch) {
    .event-section--partners .partners {
        -webkit-overflow-scrolling: touch;
    }
    }

    .event-section--partners .partners::-webkit-scrollbar {
        height: 6px;
    }

    .event-section--partners .partners::-webkit-scrollbar-track {
        background: transparent;
    }

    .event-section--partners .partners::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 3px;
    }
}

.event-faq-item-preview {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.event-faq-item-preview:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.event-faq-item-preview > div:first-child {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 600;
}

.event-faq-item-preview > div:last-child {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* Темная тема */
.event-page-preview.dark-theme {
    background: #0f0f0f;
    color: #e0e0e0;
}

.event-page-preview.dark-theme .event-content-block-preview {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border: 1px solid #333;
}

.event-page-preview.dark-theme .event-content-block-preview h3 {
    color: #ffffff;
}

.event-page-preview.dark-theme .event-content-block-preview p {
    color: #cccccc;
}

.event-page-preview.dark-theme .event-schedule-item-preview {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border: 1px solid #333;
    border-left: 4px solid var(--theme-select-focus) !important;
}

.event-page-preview.dark-theme .event-schedule-item-preview > div:first-child {
    color: var(--theme-select-focus);
}

.event-page-preview.dark-theme .event-schedule-item-preview > div:nth-child(2) {
    color: #ffffff;
}

.event-page-preview.dark-theme .event-schedule-item-preview > div:last-child {
    color: #aaaaaa;
}

.event-page-preview.dark-theme .event-partner-preview {
    background: #1a1a1a;
    border: 1px solid #333;
}

.event-page-preview.dark-theme .event-faq-item-preview {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border: 1px solid #333;
}

.event-page-preview.dark-theme .event-faq-item-preview > div:first-child {
    color: #ffffff;
}

.event-page-preview.dark-theme .event-faq-item-preview > div:last-child {
    color: #aaaaaa;
}

/* Адаптивность */
@media (max-width: 768px) {
    .event-header-preview {
        padding: 40px 20px !important;
        min-height: 300px !important;
    }
    
    .event-header-preview h1 {
        font-size: 32px !important;
    }
    
    .event-header-preview h2 {
        font-size: 18px !important;
    }
    
    .event-main-preview {
        padding: 30px 20px !important;
    }
    
    .event-footer-preview {
        padding: 40px 20px !important;
    }
    
    .event-content-block-preview {
        padding: 24px !important;
    }
    
    .event-preview-content {
        width: 95% !important;
        max-height: 95vh !important;
    }
}

/* Кнопки */
.event-page-preview button,
.event-page-preview a[style*="padding"] {
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.event-page-preview button:hover,
.event-page-preview a[style*="padding"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

/* Карта */
.event-page-preview iframe {
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Изображения в сетке */
.event-content-block-preview img {
    transition: transform 0.3s ease;
}

.event-content-block-preview img:hover {
    transform: scale(1.02);
}

/* Swiper для изображений */
.event-images-swiper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.event-images-swiper .swiper-button-prev,
.event-images-swiper .swiper-button-next {
    background: rgba(255, 255, 255, 0.9);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.event-images-swiper:hover .swiper-button-prev,
.event-images-swiper:hover .swiper-button-next {
    opacity: 1;
    pointer-events: auto;
}

.event-images-swiper .swiper-button-disabled {
    display: none !important;
}

.event-images-swiper .swiper-button-prev:hover,
.event-images-swiper .swiper-button-next:hover {
    background: white;
    transform: scale(1.08);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

.event-images-swiper.swiper-single-slide .swiper-button-prev,
.event-images-swiper.swiper-single-slide .swiper-button-next {
    display: none;
}

.event-images-swiper .swiper-button-prev::after,
.event-images-swiper .swiper-button-next::after {
    font-size: 14px;
    color: var(--theme-select-focus);
    font-weight: bold;
}

/* Сводка и отчёты (Общая информация) — те же стили для блока inspecting на странице настроек */
.general-info-page .reports-section {
    background: #ffffff;
    border: 1px solid var(--neon, #7c3aed);
    border-radius: 10px;
    padding: 24px;
    margin-top: 12px;
}
.general-info-page .reports-section h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #2f2a3c;
}
.general-info-page .reports-hint {
    color: #6d6390;
    font-size: 14px;
    margin: 0 0 20px 0;
}
.general-info-page .reports-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.general-info-page .report-download-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.35);
    border-radius: 10px;
    text-decoration: none;
    color: #2b233a;
    transition: background 0.2s, border-color 0.2s;
    position: relative;
}
.general-info-page .report-download-btn:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.6);
}
.general-info-page .report-download-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}
.general-info-page .report-download-btn .report-btn-loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border: 3px solid rgba(124, 58, 237, 0.3);
    border-top-color: var(--neon, #7c3aed);
    border-radius: 50%;
    animation: report-spinner 0.8s linear infinite;
}
.general-info-page .report-download-btn.loading .report-btn-loading {
    display: block;
}
.general-info-page .report-download-btn.loading .report-btn-icon {
    visibility: hidden;
}
@keyframes report-spinner {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
.general-info-page .report-btn-icon {
    font-size: 24px;
    margin-bottom: 8px;
}
.general-info-page .report-btn-text {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}
.general-info-page .report-btn-desc {
    font-size: 13px;
    color: #6d6390;
    line-height: 1.4;
}

#inspecting-insights-container {
    --neon: #7c3aed;
    --neon-soft: rgba(124, 58, 237, 0.2);
    --neon-glow: 0 0 12px rgba(124, 58, 237, 0.2);
}
#inspecting-insights-container .insights-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    grid-auto-rows: minmax(90px, auto);
    grid-auto-flow: row dense;
    gap: 12px;
    margin-top: 12px;
    align-items: stretch;
}
#inspecting-insights-container .insight-card {
    background: #ffffff;
    border: 1px solid var(--neon);
    border-radius: 10px;
    padding: 14px;
    box-shadow: var(--neon-glow);
    align-self: stretch;
    overflow: hidden;
    min-width: 0;
}
#inspecting-insights-container .insight-card.fill-max { grid-row: span 3; }
#inspecting-insights-container .insight-card.fill-small { grid-row: span 1; }
#inspecting-insights-container .insight-card.span-2 { grid-column: span 2; }
#inspecting-insights-container .insight-card.events-summary { grid-column: 1 / 2; }
#inspecting-insights-container .insight-card h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #2f2a3c;
}
#inspecting-insights-container .kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}
#inspecting-insights-container .kpi {
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.35);
    border-radius: 8px;
    padding: 10px;
}
#inspecting-insights-container .kpi .kpi-title {
    color: #5b5275;
    font-size: 12px;
    margin-bottom: 6px;
}
#inspecting-insights-container .kpi .kpi-value {
    font-size: 20px;
    font-weight: 600;
    color: #2b233a;
    text-shadow: 0 0 8px rgba(124, 58, 237, 0.35);
}
#inspecting-insights-container .kpi .kpi-sub {
    color: #6d6390;
    font-size: 12px;
    margin-top: 4px;
}
@media (min-width: 1400px) {
    #inspecting-insights-container .insights-grid { grid-template-columns: repeat(4, minmax(280px, 1fr)); }
    #inspecting-insights-container .insight-card.middle-col { grid-column: 2 / 4; }
    #inspecting-insights-container .insight-card.status-clubs { grid-column: 4 / 5; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
    #inspecting-insights-container .insights-grid { grid-template-columns: repeat(3, minmax(260px, 1fr)); }
    #inspecting-insights-container .insight-card.span-2 { grid-column: span 2; }
    #inspecting-insights-container .insight-card.events-summary { grid-column: auto / span 1; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    #inspecting-insights-container .insights-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
    #inspecting-insights-container .insight-card.span-2 { grid-column: 1 / -1; }
    #inspecting-insights-container .insight-card.events-summary { grid-column: auto / span 1; }
}
@media (max-width: 991px) {
    #inspecting-insights-container .insights-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
    #inspecting-insights-container .insight-card.span-2,
    #inspecting-insights-container .insight-card.events-summary { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
    #inspecting-insights-container .insights-grid { grid-template-columns: 1fr; }
    #inspecting-insights-container .insight-card { padding: 8px; }
    #inspecting-insights-container .kpi-grid { grid-template-columns: 1fr; gap: 8px; }
}
#inspecting-insights-container .insights-row-two {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 12px;
}
#inspecting-insights-container .trend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-auto-rows: minmax(90px, auto);
    gap: 12px;
    align-items: stretch;
}
#inspecting-insights-container .insight-card.status-clubs { display: block; }
#inspecting-insights-container .insight-card.status-clubs .status-chart { display: flex; flex-direction: column; align-items: center; }
#inspecting-insights-container .insight-card.status-clubs .status-chart canvas { width: 100% !important; max-width: 360px; max-height: 360px; }
#inspecting-insights-container .insight-card.compact { padding: 10px; height: auto; min-height: 0; }
#inspecting-insights-container .insight-card.span-3-4 { grid-column: span 3; }
#inspecting-insights-container .insight-card.span-1-3 { grid-column: span 1; }
#inspecting-insights-container .insight-card.span-2-3 { grid-column: span 2; }
#inspecting-insights-container .insight-card.wide { grid-column: 1 / -1; }
#inspecting-insights-container .insight-card.double-height { min-height: 400px; }
#inspecting-insights-container .insight-card.double-height canvas { min-height: 220px; }
#inspecting-insights-container .chart-card { display: flex; flex-direction: column; }
#inspecting-insights-container .chart-card .chart-wrap { flex: 1; display: flex; }
#inspecting-insights-container .chart-card .chart-wrap canvas { width: 100% !important; height: 100% !important; max-height: 420px; }
#inspecting-insights-container .participants-content { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
#inspecting-insights-container .participants-side { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 12px; align-items: start; }
#inspecting-insights-container .participants-donut-block { display: flex; justify-content: center; align-items: center; }
#inspecting-insights-container .participants-donut-block canvas { max-width: 360px; max-height: 360px; }
#inspecting-insights-container .participants-distribution { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
#inspecting-insights-container .trend-charts { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px; }
#inspecting-insights-container .accounts-horizontal .accounts-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#inspecting-insights-container .metric-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed rgba(124, 58, 237, 0.25); color: #3a334c; }
#inspecting-insights-container .metric-row:last-child { border-bottom: none; }
#inspecting-insights-container .badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 12px; background: rgba(124, 58, 237, 0.15); color: #4a3f6b; border: 1px solid rgba(124, 58, 237, 0.45); }
#inspecting-insights-container .progress { height: 8px; background: rgba(124, 58, 237, 0.18); border-radius: 999px; overflow: hidden; }
#inspecting-insights-container .progress > span { display: block; height: 100%; background: linear-gradient(90deg, #7c3aed, #a78bfa); }
#inspecting-insights-container .rank-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
#inspecting-insights-container .rank-num { width: 24px; height: 24px; border-radius: 50%; background: rgba(124, 58, 237, 0.2); color: #3b2f52; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
#inspecting-insights-container .rank-item { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; min-width: 0; }
#inspecting-insights-container .mini-note { font-size: 12px; color: #6d6390; }
#inspecting-insights-container .icon-pill { display: inline-flex; padding: 6px 10px; border-radius: 10px; background: rgba(124, 58, 237, 0.15); font-size: 12px; color: #4a3f6b; border: 1px solid rgba(124, 58, 237, 0.45); }
#inspecting-insights-container canvas { width: 100% !important; height: 100% !important; max-height: 420px; }

/* ==========================
   Profile edit (new redesign)
   ========================== */

.profileEdit {
    box-sizing: border-box;
    width: 100%;
    max-width: 680px;
    margin: 20px auto 0;
    padding: 0 0 24px 0;
    color: var(--theme-text-primary, #2f2a3c);
}

.profileEditHeader {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 18px;
    background: var(--theme-article-bg, #fff);
    border: 1px solid var(--theme-border, rgba(0,0,0,0.08));
    box-shadow: 0 2px 8px var(--theme-shadow, rgba(0, 0, 0, 0.08));
}

.profileEditHeaderMain {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.profileEditAvatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.profileEditAvatar img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(102, 126, 234, 0.25);
}

.profileEditAvatarAction {
    border: 1px solid rgba(102, 126, 234, 0.30);
    background: rgba(102, 126, 234, 0.10);
    color: #3b47b7;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
}
.profileEditAvatarAction:hover { background: rgba(102, 126, 234, 0.16); }
.profileEditAvatarAction:active { transform: translateY(1px); }

.profileEditHeaderActions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 0 0 auto;
}

.profileEditTitle {
    margin: 0 0 10px 0;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.profileEditMeta {
    display: grid;
    gap: 6px;
    color: var(--theme-text-secondary, #6d6390);
    font-size: 14px;
}

.profileEditMetaRow {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    min-width: 0;
}

.profileEditMetaLabel { opacity: 0.9; }
.profileEditMetaValue {
    color: var(--theme-text-primary, #2f2a3c);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.profileEditModeBtn,
.profileEditBackBtn {
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.12s ease;
}

.profileEditModeBtn {
    background: var(--theme-button-secondary, #667eea);
    color: #fff;
}
.profileEditModeBtn:hover { background: var(--theme-button-secondary-hover, #5568d3); }
.profileEditModeBtn:active { transform: translateY(1px); }

.profileEditBackBtn {
    background: var(--theme-bg-tertiary, rgba(0,0,0,0.06));
    color: var(--theme-text-primary, #2f2a3c);
}
.profileEditBackBtn:hover { background: var(--theme-bg-tertiary, rgba(0,0,0,0.09)); }

.profileEditSections {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.profileEditCard {
    background: var(--theme-article-bg, #fff);
    border: 1px solid var(--theme-border, rgba(0,0,0,0.08));
    border-radius: 18px;
    box-shadow: 0 2px 8px var(--theme-shadow, rgba(0, 0, 0, 0.08));
    overflow: visible;
}

.profileEditCardTitle {
    margin: 0;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--theme-text-secondary, #6d6390);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.profileField {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    min-width: 0;
}
.profileField:last-child { border-bottom: none; }

.profileFieldStatic {
    grid-template-columns: 1fr;
}

.profileFieldMain { min-width: 0; }
.profileFieldLabel {
    font-size: 12px;
    color: var(--theme-text-secondary, #6d6390);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profileFieldLabelWithIcon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.profileFieldValue {
    font-size: 16px;
    color: var(--theme-text-primary, #2f2a3c);
    font-weight: 600;
    min-width: 0;
}

.profileFieldText {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.profileFieldTextMultiline {
    white-space: pre-wrap;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
}

.profileFieldActions { display: flex; align-items: center; }

.profileFieldAction {
    border: 1px solid rgba(102, 126, 234, 0.28);
    background: rgba(102, 126, 234, 0.10);
    color: #3b47b7;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}
.profileFieldAction:hover { background: rgba(102, 126, 234, 0.16); }

.profileFieldEditor {
    grid-column: 1 / -1;
    margin-top: 10px;
    padding: 12px;
    border-radius: 12px;
    background: var(--theme-bg-tertiary, rgba(0,0,0,0.03));
    border: 1px solid var(--theme-border, rgba(0,0,0,0.06));
    max-width: 100%;
    overflow: visible;
}

/* Селект (custom-select) и кнопки «Сохранить / Отмена» в одну линию; визуал — .is-form-reg (custom-select.js) */
.profileEdit .profileFieldEditor:has(.custom-select-wrapper) {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    background: transparent;
    border: none;
    padding: 8px 0;
    box-shadow: none;
}

.profileEdit .profileFieldEditor:has(.custom-select-wrapper) .custom-select-wrapper {
    flex: 1 1 200px;
    min-width: min(100%, 180px);
    max-width: 100%;
    display: block !important;
    width: 100%;
    margin-bottom: 0;
    position: relative !important;
    z-index: 1;
}

.profileEdit .profileFieldEditor:has(.custom-select-wrapper) .profileFieldEditorActions {
    margin-top: 0;
    flex: 0 0 auto;
    margin-left: auto;
}

.profileEdit .profileField:has(.custom-select.open) {
    position: relative;
    z-index: 25;
}

.profileEdit .profileFieldEditor:has(.custom-select-wrapper) .custom-select-options,
.profileEdit .profileFieldEditor:has(.custom-select-wrapper) .custom-select-options.open {
    z-index: 10060 !important;
}

.profileEdit .profileFieldEditor:has(.custom-select-wrapper) .profileFieldSave {
    background-color: var(--theme-button-primary, #1a1a1a);
    color: #fff;
    border-radius: 32px;
    padding: 12px 22px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.profileEdit .profileFieldEditor:has(.custom-select-wrapper) .profileFieldSave:hover {
    background-color: var(--theme-button-primary-hover, #2d2d2d);
}

.profileEdit .profileFieldEditor:has(.custom-select-wrapper) .profileFieldCancel {
    background-color: var(--theme-input-bg, #fff);
    color: var(--theme-text-primary, #3e3e3e);
    border: 2px solid var(--theme-input-border, rgba(0, 0, 0, 0.2));
    border-radius: 32px;
    padding: 10px 20px;
    font-size: 16px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.profileEdit .profileFieldEditor:has(.custom-select-wrapper) .profileFieldCancel:hover {
    border-color: var(--theme-button-primary, #1a1a1a);
    background-color: rgba(0, 0, 0, 0.03);
}

/* Однострочные поля (имя, почта, телефон, соцсети): ввод и кнопки в одну линию */
.profileEdit .profileFieldEditor:has(> input.profileFieldInput) {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    background: transparent;
    border: none;
    padding: 8px 0;
    box-shadow: none;
}

.profileEdit .profileFieldEditor:has(> input.profileFieldInput) > input.profileFieldInput {
    flex: 1 1 200px;
    min-width: min(100%, 180px);
    max-width: 100%;
    width: auto;
    min-height: 48px;
    border: 2px solid var(--theme-input-border, rgba(0, 0, 0, 0.2));
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 16px;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profileEdit .profileFieldEditor:has(> input.profileFieldInput) > input.profileFieldInput:focus {
    border-color: var(--theme-button-primary, #1a1a1a);
    box-shadow: 0 0 0 4px rgba(26, 26, 26, 0.06), 0 4px 12px rgba(26, 26, 26, 0.1);
}

.profileEdit .profileFieldEditor:has(> input.profileFieldInput) .profileFieldEditorActions {
    margin-top: 0;
    flex: 0 0 auto;
    margin-left: auto;
}

.profileEdit .profileFieldEditor:has(> input.profileFieldInput) .profileFieldSave {
    background-color: var(--theme-button-primary, #1a1a1a);
    color: #fff;
    border-radius: 32px;
    padding: 12px 22px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.profileEdit .profileFieldEditor:has(> input.profileFieldInput) .profileFieldSave:hover {
    background-color: var(--theme-button-primary-hover, #2d2d2d);
}

.profileEdit .profileFieldEditor:has(> input.profileFieldInput) .profileFieldCancel {
    background-color: var(--theme-input-bg, #fff);
    color: var(--theme-text-primary, #3e3e3e);
    border: 2px solid var(--theme-input-border, rgba(0, 0, 0, 0.2));
    border-radius: 32px;
    padding: 10px 20px;
    font-size: 16px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.profileEdit .profileFieldEditor:has(> input.profileFieldInput) .profileFieldCancel:hover {
    border-color: var(--theme-button-primary, #1a1a1a);
    background-color: rgba(0, 0, 0, 0.03);
}

.profileEdit .profileFieldEditor[hidden] { display: none !important; }

.profileEdit .profileFieldInput.infoProfile,
.profileEdit .profileFieldTextarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--theme-input-border, rgba(0,0,0,0.12));
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 16px;
    background: var(--theme-input-bg, #fff);
    outline: none;
    max-width: 100%;
}

.profileEdit .profileFieldTextarea {
    min-height: 180px;
    resize: vertical;
}

.profileEdit .profileFieldInput.infoProfile:focus,
.profileEdit .profileFieldTextarea:focus {
    border-color: rgba(102, 126, 234, 0.7);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.10);
}

.profileFieldEditorActions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.profileFieldSave,
.profileFieldCancel {
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
}

.profileFieldSave { background: var(--theme-button-secondary, #667eea); color: #fff; }
.profileFieldSave:hover { background: var(--theme-button-secondary-hover, #5568d3); }
.profileFieldCancel { background: var(--theme-bg-tertiary, rgba(0,0,0,0.06)); color: var(--theme-text-primary, #2f2a3c); }
.profileFieldCancel:hover { background: var(--theme-bg-tertiary, rgba(0,0,0,0.09)); }

/* Edit mode behavior */
.profileEdit[data-editing="0"] .profileFieldAction { display: none; }
.profileEdit[data-editing="0"] .profileFieldEditor { display: none; }

.profileEdit[data-editing="1"] .profileEditModeBtn { background: rgba(102, 126, 234, 0.15); color: #3b47b7; border: 1px solid rgba(102, 126, 234, 0.30); }

.profileEditSaveBar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--theme-article-bg, #fff) 92%, transparent);
    border-top: 1px solid var(--theme-border, rgba(0,0,0,0.08));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    z-index: 1005;
}

.profileEditSaveBar[hidden] { display: none !important; }

.profileEditSaveBarBtn {
    flex: 1 1 0;
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    cursor: pointer;
}
.profileEditCancelAll { background: var(--theme-bg-tertiary, rgba(0,0,0,0.08)); color: var(--theme-text-primary, #2f2a3c); }
.profileEditDone { background: var(--theme-button-secondary, #667eea); color: #fff; }

@media (min-width: 681px) {
    .profileEditSaveBar { display: none !important; }
}

@media (max-width: 680px) {
    .profileEdit { padding-bottom: 92px; }
    .profileEditHeader { border-radius: 0; border-left: none; border-right: none; box-shadow: none; }
    .profileEditCard { border-radius: 0; border-left: none; border-right: none; box-shadow: none; }
    .profileEditHeaderMain { align-items: flex-start; }
    .profileEditAvatar img { width: 72px; height: 72px; }
    .profileEditHeaderActions { flex-direction: column; align-items: stretch; }
    .profileEditModeBtn, .profileEditBackBtn { width: 100%; }
}

/* Публикация: светлые карточки, тёмно-серый акцент обводки, синие основные кнопки */
.publication {
    --pub-neon: #252a33;
    --pub-neon-soft: rgba(37, 42, 51, 0.1);
    --pub-neon-mid: rgba(37, 42, 51, 0.2);
    --pub-neon-border: rgba(37, 42, 51, 0.28);
    --pub-neon-glow: 0 2px 14px rgba(15, 23, 42, 0.1);
    --pub-neon-glow-strong: 0 10px 24px rgba(15, 23, 42, 0.14);
    --pub-bg: #f5f6f8;
    --pub-card-bg: #ffffff;
    --pub-inner-bg: #ffffff;
    --pub-border: #d8dce3;
    --pub-border-strong: #9aa3b2;
    --pub-text: #1f232b;
    --pub-text-muted: #5d6470;
    --pub-btn-bg: #20242b;
    --pub-btn-bg-hover: #111418;
    --pub-btn-secondary-bg: #eef0f4;
    --pub-btn-secondary-text: #242a33;
    --pub-chip-bg: rgba(15, 23, 42, 0.06);
    --pub-radius-inner: 18px;
}

section.publication {
    padding: 12px 0 40px;
    background: transparent;
    box-sizing: border-box;
}

.publication article {
    background: var(--pub-card-bg);
    border: none;
    border-radius: 32px;
    box-shadow: var(--pub-neon-glow);
}

.publication article label {
    font-size: 14px;
    font-weight: 600;
    color: var(--pub-text);
    margin-bottom: 6px;
}

.publication article .form-container:not(.hide),
.publication article .event-date-block,
.publication article .event-registration-block,
.publication article .event-page-block,
.publication article .event-content-block {
    background: var(--pub-inner-bg);
    border: none;
    border-radius: var(--pub-radius-inner);
    padding: 14px 16px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.publication article .form-container:not(.hide) {
    padding: 18px 16px;
}

.publication article .publish-time-selector {
    border: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.publication article .event-page-section {
    background: var(--pub-inner-bg);
    border: none;
    border-radius: var(--pub-radius-inner);
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    padding: 0;
    /* Не обрезать .custom-select-options по вертикали (Соцсети и др.) */
    overflow-x: hidden;
    overflow-y: visible;
}

.publication article .input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.publication article textarea.input,
.publication article select.input,
.publication article input[type="date"],
.publication article input[type="time"],
.publication article input[type="datetime-local"] {
    width: 100%;
    min-height: 46px;
    border-radius: var(--pub-radius-inner);
    border: 1px solid var(--pub-border);
    background: #ffffff;
    color: var(--pub-text);
    padding: 10px 14px;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.publication article textarea.input {
    min-height: 140px;
    resize: vertical;
}

.publication article .custom-select,
.publication article .custom-select-options,
.publication article .custom-date-picker-display,
.publication article .custom-time-picker-display,
.publication article .custom-datetime-picker-display {
    border-radius: 18px;
}

.publication article .input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
.publication article textarea.input:hover,
.publication article select.input:hover,
.publication article input[type="date"]:hover,
.publication article input[type="time"]:hover,
.publication article input[type="datetime-local"]:hover {
    border-color: var(--pub-border-strong);
    background: #ffffff;
}

.publication article .input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.publication article textarea.input:focus,
.publication article select.input:focus,
.publication article input[type="date"]:focus,
.publication article input[type="time"]:focus,
.publication article input[type="datetime-local"]:focus {
    border-color: var(--pub-neon);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--pub-neon-soft), var(--pub-neon-glow);
    outline: none;
}

/* Вторичные кнопки — нейтральные (кнопки «Добавить …» — отдельный блок .btn-add-field) */
.publication article .btn,
.publication article #previous,
.publication article #next,
.publication article #submit {
    min-height: 46px;
    border: 1px solid #d8dce3;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: #1f232b;
    background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.18s ease, transform 0.12s ease, box-shadow 0.2s ease;
}

.publication article .btn:hover,
.publication article #previous:hover,
.publication article #next:hover,
.publication article #submit:hover {
    background: #eef0f4;
    border-color: #9aa3b2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.publication article .btn:active,
.publication article #previous:active,
.publication article #next:active,
.publication article #submit:active {
    transform: translateY(1px);
    box-shadow: none;
}

.publication article .btn:disabled,
.publication article #previous:disabled,
.publication article #next:disabled,
.publication article #submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.publication article .btn-yes,
.publication article #save-schedule {
    color: #ffffff !important;
    border-color: var(--pub-neon) !important;
    background: var(--pub-neon) !important;
}

.publication article .btn-yes:hover,
.publication article #save-schedule:hover {
    border-color: #111418 !important;
    background: #2e333d !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22) !important;
}

/* «Вперёд», «Опубликовать», «Проверить» — как активный кружок этапов */
.publication article #next,
.publication article #submit,
.publication article #preview-event-page-btn {
    color: #ffffff !important;
    border-color: #1a1e24 !important;
    background: var(--pub-neon) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
}

.publication article #next:hover,
.publication article #submit:hover,
.publication article #preview-event-page-btn:hover {
    border-color: #111418 !important;
    background: #2e333d !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22) !important;
}

.publication article #next:active,
.publication article #submit:active,
.publication article #preview-event-page-btn:active {
    border-color: #0d0f12 !important;
    background: var(--pub-btn-bg-hover) !important;
    box-shadow: none !important;
}

/* Поверх глобального #preview-event-page-btn — как у «Вперёд» / «Опубликовать» */
.publication article #preview-event-page-btn {
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 10px 18px !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 46px;
}

.publication article #previous {
    color: #314161;
    border-color: #d8dce3;
    background: #ffffff;
}

.publication article #reset-schedule,
.publication article #open-schedule-modal,
.publication article #save-schedule,
.publication article .file-upload-btn,
.publication article #preview-event-page-btn {
    border-radius: 999px;
}

.publication article #reset-schedule,
.publication article #open-schedule-modal {
    color: #304162;
    border-color: #d8dce3;
    background: #ffffff;
}

.publication article #reset-schedule:hover,
.publication article #open-schedule-modal:hover {
    background: #f3f4f6;
    border-color: #9aa3b2;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.publication article #stepperValue {
    gap: 10px;
}

.publication article .steps {
    background: #cfd4dc;
    color: #ffffff;
    font-weight: 700;
}

.publication article .steps.highlight {
    background: var(--pub-neon);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.publication article .step-separator,
.publication article .stepper-placeholder-line {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.08));
}

.publication article .stepper-placeholder-dot {
    background: #c8ced8;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

/* Группа переключателей: без внешней рамки и отступов — только зазор между карточками */
.publication article .event-dates-toggle,
.publication article .registration-type-options,
.publication article .event-page-type-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: var(--pub-radius-inner);
    box-shadow: none;
}

.publication article .event-dates-toggle:hover,
.publication article .registration-type-options:hover,
.publication article .event-page-type-options:hover {
    box-shadow: none;
}

.publication article .radio-option,
.publication article label.radio-option {
    border: 1px solid #e5e7eb;
    border-radius: var(--pub-radius-inner);
    background: #ffffff;
    box-shadow: none;
    transition: border-color 0.18s ease, background-color 0.18s ease;
    padding: 14px 16px;
    gap: 12px;
    align-items: center;
}

.publication article .radio-option:hover {
    border-color: #d1d5db;
    box-shadow: none;
}

.publication article .radio-option:has(input:checked) {
    border: 1px solid #111827;
    background: #eef2ff;
    box-shadow: none;
}

.publication article .radio-option .radio-label {
    color: #111827;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.35;
}

.publication article .radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    border: 2px solid #c5ccd6;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: none;
    flex-shrink: 0;
}

.publication article .radio-option input[type="radio"]:hover {
    border-color: #9ca3af;
}

.publication article .radio-option input[type="radio"]:checked {
    border-color: #111827;
    background: #111827;
}

.publication article .radio-option input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 9px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    border-radius: 0;
    background: transparent;
    transform: translate(-50%, -58%) rotate(45deg);
    box-shadow: none;
}

.publication article .radio-option input[type="radio"]:focus {
    outline: none;
    box-shadow: none;
}

.publication article .radio-option input[type="radio"]:focus-visible {
    outline: 2px solid #2f6bff;
    outline-offset: 2px;
}

.publication article .custom-switch .switch-slider {
    background: #aeb6c2;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.2);
}

.publication article .custom-switch:hover .switch-slider {
    background: #9aa3b2;
}

.publication article .custom-switch input:checked + .switch-slider {
    background: var(--pub-neon);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(15, 23, 42, 0.2);
}

.publication article .custom-switch:hover input:checked + .switch-slider {
    background: #2e333d;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25), 0 2px 10px rgba(15, 23, 42, 0.22);
}

.publication article .custom-switch input:focus + .switch-slider {
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.2), 0 0 0 3px var(--pub-neon-soft);
}

.publication article .custom-switch input:checked:focus + .switch-slider {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(37, 42, 51, 0.28);
}

.publication article .event-page-section.expanded {
    box-shadow: var(--pub-neon-glow);
}

.publication article .event-page-section-header {
    min-height: 54px;
}

.publication article .event-page-section-header h3 {
    color: var(--pub-text);
    font-weight: 800;
}

.publication article .event-page-section-toggle {
    border: none;
    background: #ffffff;
    color: var(--pub-text-muted);
}

.publication article .event-page-section-content h4 {
    font-size: 15px;
    font-weight: 800;
    color: #1f2a44;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--pub-chip-bg);
    border: none;
    display: inline-flex;
    width: fit-content;
}

/* «Добавить поле» / «Добавить блок» и т.п.: тёмная кнопка, читаемый текст */
.publication article .btn-add-field {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 22px;
    max-width: min(100%, 320px);
    width: auto;
    align-self: flex-start;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    font-family: "Moderustic-Regular", monospace, sans-serif;
    border-radius: 999px;
    cursor: pointer;
    color: #ffffff !important;
    border: 1px solid #1a1e24 !important;
    background: var(--pub-neon) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease, opacity 0.18s ease;
}

.publication article .btn-add-field *,
.publication article .btn-add-field .btn-add-icon {
    color: #ffffff !important;
}

.publication article .btn-add-field:hover {
    background: #2e333d !important;
    border-color: #111418 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
    transform: translateY(-1px);
}

.publication article .btn-add-field:active {
    background: var(--pub-btn-bg-hover) !important;
    border-color: #0d0f12 !important;
    box-shadow: none;
    transform: translateY(1px);
}

.publication article .btn-add-field:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.publication article .btn-add-field:focus {
    outline: none;
}

.publication article .btn-add-field:focus-visible {
    outline: 2px solid #2f6bff;
    outline-offset: 3px;
}

.publication article .btn-add-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.publication article .header-template-card {
    border: 1px solid var(--pub-border);
    background: #ffffff;
    border-radius: var(--pub-radius-inner);
}

.publication article .header-template-card:hover {
    border-color: var(--pub-border-strong);
    box-shadow: var(--pub-neon-glow);
}

.publication article .header-template-card:has(input:checked) {
    border-color: var(--pub-neon);
    box-shadow: 0 0 0 1px rgba(37, 42, 51, 0.18), var(--pub-neon-glow);
    transform: translateY(-1px);
}

.publication article .header-effect-chip {
    border: 1px solid var(--pub-border);
    background: #ffffff;
    border-radius: 999px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.publication article .header-effect-chip:has(input:checked) {
    border-color: var(--pub-neon);
    background: var(--pub-neon-soft);
    box-shadow: var(--pub-neon-glow);
}

.publication article .publication-section-hint {
    border: none;
    background: var(--pub-chip-bg);
    color: var(--pub-text);
}

.publication article .publication-section-hint.is-info {
    border: none;
    background: var(--pub-chip-bg);
}

.publication article #error-message {
    color: #7a1f1f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    margin: 14px 0 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #efb3b3;
    background: #fff2f2;
}

.publication article #error-message:empty {
    display: none;
}

html[data-theme="dark"] .publication {
    --pub-bg: #121418;
    --pub-card-bg: #1a1d24;
    --pub-inner-bg: #22262e;
    --pub-text: #eef1f6;
    --pub-text-muted: #a8b0bd;
    --pub-border: rgba(255, 255, 255, 0.12);
    --pub-border-strong: rgba(255, 255, 255, 0.22);
    --pub-chip-bg: rgba(255, 255, 255, 0.06);
    --pub-neon-glow: 0 2px 16px rgba(0, 0, 0, 0.35);
    --pub-neon-glow-strong: 0 8px 28px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .publication article .input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html[data-theme="dark"] .publication article textarea.input,
html[data-theme="dark"] .publication article select.input,
html[data-theme="dark"] .publication article input[type="date"],
html[data-theme="dark"] .publication article input[type="time"],
html[data-theme="dark"] .publication article input[type="datetime-local"] {
    background: #22262e;
    color: var(--pub-text);
    border-color: var(--pub-border);
}

html[data-theme="dark"] .publication article .form-container:not(.hide),
html[data-theme="dark"] .publication article .event-date-block,
html[data-theme="dark"] .publication article .event-registration-block,
html[data-theme="dark"] .publication article .event-page-block,
html[data-theme="dark"] .publication article .event-content-block,
html[data-theme="dark"] .publication article .event-page-section {
    background: var(--pub-inner-bg);
}

html[data-theme="dark"] .publication article .event-dates-toggle,
html[data-theme="dark"] .publication article .registration-type-options,
html[data-theme="dark"] .publication article .event-page-type-options {
    background: transparent;
    border: none;
    box-shadow: none;
}

html[data-theme="dark"] .publication article .radio-option {
    background: #1a1d24;
    border-color: var(--pub-border);
}

html[data-theme="dark"] .publication article .radio-option:has(input:checked) {
    background: rgba(47, 107, 255, 0.16);
    border-color: #e2e8f0;
}

html[data-theme="dark"] .publication article .radio-option .radio-label {
    color: var(--pub-text);
    font-weight: 500;
}

html[data-theme="dark"] .publication article .radio-option input[type="radio"] {
    border-color: #5c6578;
    background: #22262e;
}

html[data-theme="dark"] .publication article .radio-option input[type="radio"]:checked {
    border-color: #e8eaf0;
    background: #e8eaf0;
}

html[data-theme="dark"] .publication article .radio-option input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 9px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: solid #1a1d24;
    border-width: 0 2px 2px 0;
    border-radius: 0;
    background: transparent;
    transform: translate(-50%, -58%) rotate(45deg);
    box-shadow: none;
}

html[data-theme="dark"] .publication article .custom-switch .switch-slider {
    background: #3a414d;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .publication article .custom-switch:hover .switch-slider {
    background: #454c5a;
}

html[data-theme="dark"] .publication article .custom-switch input:checked + .switch-slider {
    background: var(--pub-neon);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .publication article .custom-switch:hover input:checked + .switch-slider {
    background: #2e333d;
}

html[data-theme="dark"] .publication article .custom-switch input:focus + .switch-slider {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .publication article .custom-switch input:checked:focus + .switch-slider {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .publication article .btn-add-field {
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .publication article .btn-add-field:hover {
    border-color: rgba(255, 255, 255, 0.22) !important;
}

html[data-theme="dark"] .publication article .header-template-card,
html[data-theme="dark"] .publication article .header-effect-chip {
    background: #22262e;
}

/* Publication: подтверждение публикации (как карточка мастера, палитра --pub-*) */
.publication .publication-confirm-modal.modal {
    background-color: rgba(31, 35, 43, 0.42);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1001;
}

.publication .publication-confirm-modal.modal .modal-content.publication-confirm-modal__panel,
.publication .publication-confirm-modal__panel.modal-content {
    width: min(420px, 100%);
    max-width: 100%;
    margin: 0;
    padding: 22px 22px 20px;
    text-align: left;
    background: var(--pub-card-bg, #ffffff);
    border: none;
    border-radius: 10px;
    box-shadow: var(--pub-neon-glow, 0 2px 14px rgba(15, 23, 42, 0.1)), 0 20px 50px rgba(31, 35, 43, 0.12);
    transform: translateY(-12px);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.publication .publication-confirm-modal.modal.show .publication-confirm-modal__panel,
.publication .publication-confirm-modal.modal.show .modal-content.publication-confirm-modal__panel {
    transform: translateY(0);
    opacity: 1;
}

.publication .publication-confirm-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.publication .publication-confirm-modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--pub-text, #1f232b);
    letter-spacing: -0.02em;
}

.publication .publication-confirm-modal__close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin: -6px -8px 0 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--pub-text-muted, #5d6470);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.publication .publication-confirm-modal__close:hover {
    background: var(--pub-btn-secondary-bg, #eef0f4);
    color: var(--pub-text, #1f232b);
}

.publication .publication-confirm-modal__text {
    margin: 0 0 20px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--pub-text-muted, #5d6470);
}

.publication .publication-confirm-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.publication .publication-confirm-modal__btn {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 32px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.publication .publication-confirm-modal__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.publication .publication-confirm-modal__btn--secondary {
    background: var(--pub-btn-secondary-bg, #eef0f4);
    border-color: var(--pub-border, #d8dce3);
    color: var(--pub-btn-secondary-text, #242a33);
}

.publication .publication-confirm-modal__btn--secondary:hover:not(:disabled) {
    background: #e5e9ef;
    border-color: var(--pub-border-strong, #b8beca);
}

.publication .publication-confirm-modal__btn--primary {
    background: linear-gradient(135deg, #2f6bff 0%, #5a8bff 100%);
    border-color: #2f6bff;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(47, 107, 255, 0.25);
}

.publication .publication-confirm-modal__btn--primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2355d8 0%, #4877ea 100%);
    border-color: #2355d8;
    filter: brightness(1.03);
}

@media screen and (max-width: 480px) {
    .publication .publication-confirm-modal__actions {
        flex-direction: column-reverse;
    }

    .publication .publication-confirm-modal__btn {
        width: 100%;
        justify-content: center;
    }
}

/* Empty announcement and event feeds. */
.feed-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(28px, 6vh, 72px) 20px 48px; max-width: 560px; margin: 0 auto; }
.feed-empty[hidden] { display: none; }
.feed-empty__mascot { width: clamp(160px, 22vw, 240px); height: auto; display: block; margin-bottom: 20px; object-fit: contain; }
.feed-empty .feed-empty__title { font-size: clamp(20px, 2vw, 24px); line-height: 1.35; font-weight: 600; margin: 0 0 10px; color: var(--theme-text-primary, #333); }
.feed-empty .feed-empty__text { max-width: 390px; font-size: 16px; line-height: 1.6; margin: 0; color: var(--theme-text-secondary, #686b70); }

/* Center the empty feed in the viewport below the header. */
body:is(.page-news-feed, .page-events-feed) .news:has(> .feed-empty:not([hidden])) {
    min-height: calc(100dvh - 90px);
    position: relative;
    box-sizing: border-box;
}
body:is(.page-news-feed, .page-events-feed) .feed-empty:not([hidden]) {
    position: absolute;
    top: calc(50dvh - 70px);
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100% - 32px));
    box-sizing: border-box;
    padding: 20px 0;
    margin: 0;
}
@media (max-height: 650px) {
    body.page-events-feed .news:has(> .feed-empty:not([hidden])) { display: flex; flex-direction: column; }
    body.page-events-feed .feed-empty:not([hidden]) { position: static; transform: none; margin: 20px auto; }
}

body.page-news-feed .news:has(> .feed-empty:not([hidden])) > h1 { display: none; }

/* Let empty-state copy use the available screen width. */
body:is(.page-news-feed, .page-events-feed) .feed-empty:not([hidden]) {
    width: min(600px, calc(100vw - 40px));
    max-width: none;
}
.feed-empty .feed-empty__title { width: 100%; max-width: 600px; }
.feed-empty .feed-empty__text { width: 100%; max-width: 460px; }

/* Legal footer is not part of the application navigation. */
aside .aside-legal, .sidePanel .aside-legal, .nav .aside-legal { display: none !important; }

.organization-create { border: 0; border-radius: 18px; padding: 28px; width: min(440px, calc(100vw - 32px)); box-sizing: border-box; color: var(--theme-text-primary, #333); background: var(--theme-bg-primary, #fff); }
.organization-create::backdrop { background: rgba(0,0,0,.3); }
.organization-create h2 { margin: 0 0 10px; }
.organization-create p { line-height: 1.5; margin: 0 0 18px; }
.organization-create label { display: grid; gap: 8px; margin-bottom: 16px; }
.organization-create input { padding: 12px; border: 1px solid #bfc2c5; border-radius: 9px; font: inherit; }
.organization-create-actions { display: flex; justify-content: flex-end; gap: 12px; }
.organization-create-actions button { padding: 10px 18px; border: 0; border-radius: 9px; cursor: pointer; font: inherit; }
.organization-create-actions button[type=submit] { background: #25282c; color: white; }
.organization-create-error { color: #b43726; }

/* Empty feeds occupy the space below the header without extra page height. */
body:is(.page-news-feed, .page-events-feed):has(.feed-empty:not([hidden])) > main {
    min-height: 100dvh;
    box-sizing: border-box;
    padding-bottom: 0;
}
body:is(.page-news-feed, .page-events-feed) .news:has(> .feed-empty:not([hidden])) {
    margin-top: 0;
    margin-bottom: 0;
    min-height: calc(100dvh - 70px);
}

aside nav .club-aside a[data-action="create-organization"] img,
.sidePanel nav a[data-action="create-organization"] img { border-radius: 0; object-fit: contain; }

.brand-wordmark { font-weight: 700; letter-spacing: -.7px; line-height: 1.15; }
.brand-wordmark__accent { color: #e95b00; font-weight: inherit; }

header #btnAuth { background-color: #f56600; color: #fff; border-radius: 10px; }
header #btnAuth:hover { background-color: #df5900; }

/* Header placeholders follow the final control shapes. */
html[data-js="1"]:not([data-header-auth-ready="1"]) header #btnAuth,
html[data-js="1"]:not([data-header-auth-ready="1"]) header #btnAuth::before { border-radius: 10px; }
html[data-js="1"] header .search .header-search-skeleton__desktop-field { border-radius: 10px; }

@font-face { font-family: "Clear Sans Infanity"; src: url("/static/assets/fonts/ClearSansInfanity-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
.brand-wordmark, aside.aside-nav-shell .desktop-nav-brand > .brand-wordmark { font-family: "Clear Sans Infanity", "Moderustic-Regular", sans-serif; font-weight: 700; letter-spacing: 0; }

.logo .brand-wordmark { font-family: "Clear Sans Infanity", "Moderustic-Regular", sans-serif; font-weight: 700; letter-spacing: 0; }
.logo .brand-wordmark__accent { color: #e95b00; font-weight: inherit; }

/* No calendar or sorting controls in an empty event feed. */
body.page-events-feed .news:has(> .feed-empty:not([hidden])) > #events-calendar-container,
body.page-events-feed .news:has(> .feed-empty:not([hidden])) > .events-filter-control { display: none; }

body.page-events-feed .news:has(> .feed-empty:not([hidden])) > .events-feed-heading { display: none; }

.profile-settings-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; flex: 0 0 40px; }
.profile-settings-link:hover { background: #eceef0; }
.account-settings-page { width: min(100%, 600px); padding: 20px 16px; box-sizing: border-box; }
.account-settings-heading { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin-bottom: 24px; }
.account-settings-heading h1 { text-align: center; font-size: 22px; }
.account-settings-heading > a { font-size: 32px; color: inherit; text-decoration: none; }
.account-settings-identity { display: flex; gap: 16px; align-items: center; background: #f2f3f5; border-radius: 16px; padding: 16px; }
.account-settings-identity > img { width: 56px; height: 56px; border-radius: 50%; background: #d8dce1; object-fit: cover; }
.account-settings-identity > div { display: grid; gap: 4px; min-width: 0; }
.account-settings-identity strong { overflow-wrap: anywhere; }
.account-settings-identity a { color: #d95200; text-decoration: none; font-size: 14px; }
.account-settings-group-title { margin: 30px 0 12px; color: #797d83; font-size: 13px; }
.account-settings-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; color: inherit; text-decoration: none; }
.account-settings-item > span:last-child { margin-left: auto; color: #797d83; font-size: 24px; }

.settings .profile-new-photo { display: inline-block; color: #d95200; text-decoration: none; font-size: 14px; margin: 4px 0; }
.settings .profile-edit-menu-item { margin: 16px 0; padding: 16px; border-radius: 10px; background: var(--theme-article-bg, #fff); }

#mainProfileAvatar { cursor: pointer; }
.avatar-dialog { width: min(380px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 16px; background: #fff; color: #25282c; box-shadow: 0 16px 60px rgba(0,0,0,.16); }
.avatar-dialog::backdrop { background: rgba(0,0,0,.4); }
.avatar-dialog h2 { font-size: 20px; line-height: 1.35; text-align: center; margin: 0; padding: 26px 20px; }
.avatar-dialog > button { display: block; width: 100%; padding: 17px 16px; border: 0; border-top: 1px solid #e6e7e9; background: transparent; font: inherit; color: inherit; cursor: pointer; }
.avatar-dialog > button[hidden] { display: none; }
.avatar-dialog > button:hover { background: #f6f7f8; }
.avatar-dialog [data-avatar-upload] { color: #df5900; font-weight: 600; }
.avatar-dialog [data-avatar-remove] { color: #d33c3c; }
.avatar-dialog > p { padding: 12px 20px; color: #b43726; text-align: center; }
.avatar-dialog button:disabled { opacity: .5; cursor: wait; }

/* Profile editing: compact identity card and clean stacked fields. */
.profile-editor-heading { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin: 0 0 24px; }
.profile-editor-heading > a { display: grid; place-items: center; color: inherit; width: 40px; height: 40px; }
.profile-editor-heading svg { width: 24px; height: 24px; }
.profileEdit .profile-editor-heading .profileEditTitle { margin: 0; text-align: center; font-size: 18px; line-height: 1.4; }
.profileEdit .profileEditHeader { background: #f2f3f5; border: 0; border-radius: 16px; padding: 16px; margin-bottom: 20px; box-shadow: none; }
.profileEdit .profileEditHeaderMain { width: 100%; }
.profileEdit .profileEditAvatar { display: flex; align-items: center; flex-direction: row; gap: 16px; width: 100%; }
.profileEdit .profileEditAvatar > img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #d8dce1; border: 0; }
.profile-editor-identity { display: grid; gap: 4px; min-width: 0; }
.profile-editor-identity strong { font-size: 16px; overflow-wrap: anywhere; }
.profileEdit .profile-editor-identity .editAvatarBtn { padding: 0; margin: 0; border: 0; background: transparent; color: #df5900; border-radius: 0; text-align: left; font-size: 14px; min-height: 0; box-shadow: none; }
.profileEdit .profileEditSections { display: grid; gap: 22px; }
.profileEdit .profileEditCard { border: 0; border-radius: 0; background: transparent; padding: 0; box-shadow: none; }
.profileEdit .profileEditCardTitle { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.profileEdit .profileField { border: 1px solid #dcdfe4; border-radius: 12px; background: #fff; padding: 14px 16px; margin: 0 0 12px; box-shadow: none; }
.profileEdit .profileFieldLabel { font-size: 12px; color: #777d85; margin-bottom: 5px; }
.profileEdit .profileFieldText { font-size: 16px; }
.profileEdit .profileFieldInput { border-radius: 10px; border-color: #dcdfe4; }
.profileEdit .profileFieldSave { background: #f56600; color: #fff; border-radius: 10px; }
.profileEdit .profileFieldCancel, .profileEdit .profileFieldAction { border-radius: 10px; }
@media (max-width: 768px) {
    .profileEdit { width: 100%; box-sizing: border-box; padding: 16px 12px 80px; }
    .profileEdit .profileEditHeader { display: block; }
    .profileEdit .profileEditHeaderActions { margin-top: 12px; justify-content: flex-end; }
    .profileEdit .profileEditBackBtn { display: none; }
}

/* Profile as a grouped settings list. */
.profile-menu-heading { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin-bottom: 24px; }
.profile-menu-heading a { font-size: 32px; color: inherit; text-decoration: none; }
.profile-menu-heading h1 { font-size: 18px; text-align: center; }
.settings.profile-menu { width: min(100%, 600px); box-sizing: border-box; }
.settings.profile-menu .profile-menu-group { margin: 28px 12px 12px; font-size: 13px; color: #7b8088; }
.settings.profile-menu > article:first-of-type { margin-top: 0; border: 0; background: #f2f3f5; box-shadow: none; border-radius: 16px; padding: 16px; }
.settings.profile-menu > article:first-of-type figure { display: flex; align-items: center; gap: 16px; margin: 0; }
.settings.profile-menu #mainProfileAvatar { width: 56px; height: 56px; border-radius: 50%; background: #d8dce1; object-fit: cover; }
.settings.profile-menu > .account-settings-item,
.settings.profile-menu > .profile-menu-logout { display: flex; align-items: center; gap: 16px; min-height: 54px; width: 100%; box-sizing: border-box; margin: 0; padding: 14px 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: inherit; text-align: left; font: inherit; text-decoration: none; cursor: pointer; }
.settings.profile-menu > .account-settings-item > img, .settings.profile-menu > .profile-menu-logout img { width: 24px; height: 24px; flex: 0 0 24px; }
.settings.profile-menu > .account-settings-item > span:last-child { margin-left: 0; font-size: 16px; color: inherit; }
.settings.profile-menu > .profile-edit-menu-item > span[aria-hidden] { margin-left: auto; color: #8c9095; }
.settings.profile-menu > .profile-menu-logout { color: #c34232; margin-top: 12px; }
@media(max-width:768px) { .settings.profile-menu { padding: 12px 12px 80px; } }

/* Sign out is a profile menu action, never a header button. */
header #btnExit { display: none !important; }

.settings.profile-menu > article:first-of-type figure > figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.settings.profile-menu > article:first-of-type .profile-new-photo { display: block; margin: 0; }

.settings.profile-menu .profile-menu-logout img { display: block; opacity: 1; visibility: visible; width: 24px; height: 24px; object-fit: contain; }

.settings.profile-menu > button.profile-menu-logout,
.settings.profile-menu > button.profile-menu-logout span { color: #d33c3c; }

/* Center avatar actions within the viewport on every screen size. */
dialog.avatar-dialog { position: fixed; inset: 0; margin: auto; max-height: calc(100dvh - 32px); overflow-y: auto; box-sizing: border-box; }

.profileEdit .profileEditHeaderActions { width: 100%; }
.profileEdit .profileEditModeBtn { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 52px; padding: 12px 0; border: 0; border-radius: 0; background: transparent; color: var(--theme-text-primary, #25282c); box-shadow: none; text-align: left; font: inherit; }
.profileEdit .profileEditModeBtn:hover { background: transparent; color: #df5900; }
.profileEdit .profileEditModeBtn img { width: 24px; height: 24px; }
.profileEdit .profileEditModeBtn span:last-child { margin-left: auto; color: #969ba2; }

.profileEdit .profileEditHeader { background: transparent; padding: 0; border-radius: 0; }
.profileEdit .profileEditHeaderActions { margin-top: 0; }

.profileEdit .profileEditModeBtn { box-sizing: border-box; padding: 14px 16px; }

.profileEdit.profile-edit-all .profileEditHeader, .profileEdit.profile-edit-all .profileFieldEditorActions, .profileEdit.profile-edit-all .profileField:has(.editField) > .profileFieldActions, .profileEdit.profile-edit-all .profileField:has(.editField) .profileFieldValue { display: none; }
.profileEdit.profile-edit-all .profileFieldEditor { display: block; width: 100%; margin-top: 4px; }
.profileEdit.profile-edit-all .profileFieldInput { width: 100%; box-sizing: border-box; }
.profileEdit .profile-save-all { display: block; width: 100%; margin: 20px 0; padding: 14px 16px; border: 0; border-radius: 10px; background: #f56600; color: #fff; font: inherit; cursor: pointer; }
.profileEdit .profile-save-all:disabled { opacity: .6; cursor: wait; }

.profileEdit .profileEditModeBtn { padding-left: 24px; padding-right: 16px; }
.profileEdit .profileEditModeBtn > img { flex: 0 0 24px; margin-left: 0; }

/* Personal-data groups have no outer frames; inputs keep their own borders. */
.profileEdit .profileEditCard, .profileEdit .profileField { border: 0; box-shadow: none; outline: 0; }

/* Consistent compact corners for all profile editing controls. */
.profileEdit.profile-edit-all .profileFieldEditor input,
.profileEdit.profile-edit-all .profileFieldEditor textarea,
.profileEdit.profile-edit-all .profileFieldEditor select,
.profileEdit.profile-edit-all .profileFieldEditor .custom-select,
.profileEdit.profile-edit-all .profileFieldEditor .custom-select-options { border-radius: 10px; }

.profileEdit .profileField[data-field="password"] .profileFieldAction,
.profileEdit .profileField[data-field="password"] .profileFieldAction:is(:hover, :active, :focus-visible) { background: transparent; border: 0; box-shadow: none; }

/* Match text fields to the gender selector, including nested input overrides. */
.profileEdit.profile-edit-all .profileField .profileFieldEditor input.profileFieldInput,
.profileEdit.profile-edit-all .profileField .profileFieldEditor textarea.profileFieldInput,
.profileEdit.profile-edit-all .profileField .profileFieldEditor select.profileFieldInput,
.profileEdit.profile-edit-all .profileField .profileFieldEditor .custom-select { border-radius: 10px !important; }

.profileEdit.profile-edit-all .profileField .profileFieldEditor input.profileFieldInput:focus,
.profileEdit.profile-edit-all .profileField .profileFieldEditor textarea.profileFieldInput:focus,
.profileEdit.profile-edit-all .profileField .profileFieldEditor select.profileFieldInput:focus { outline: none; border-color: #ccc; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* Keep the same neutral border while editing or opening the gender menu. */
.profileEdit .profileField input.profileFieldInput:is(:focus, :focus-visible, :active),
.profileEdit .profileField textarea.profileFieldInput:is(:focus, :focus-visible, :active),
.profileEdit .profileField select.profileFieldInput:is(:focus, :focus-visible, :active),
.profileEdit .profileField .custom-select:is(:focus, :focus-visible, .open),
.profileEdit .profileField .custom-select-wrapper:focus-within .custom-select,
.profileEdit .profileField .custom-select-options { outline: none !important; border-color: #ccc !important; box-shadow: 0 1px 3px rgba(0,0,0,.12) !important; }

.profileEdit .profileField .custom-select-wrapper .custom-select-options { border-radius: 10px !important; overflow: hidden; }
.profileEdit .profileField .custom-select-wrapper .custom-select-option:first-child { border-radius: 0; }
.profileEdit .profileField .custom-select-wrapper .custom-select-option:last-child { border-radius: 0; }

/* Portal dropdown is attached to body, outside the profile editor. */
body .custom-select-options.profile-select-options,
body .custom-select-options.profile-select-options.open { border: 1px solid #ccc !important; border-radius: 10px !important; outline: none !important; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,.1) !important; }
body .profile-select-options .custom-select-option:first-child,
body .profile-select-options .custom-select-option:last-child { border-radius: 0 !important; }

body.page-profile .custom-select-options,
body.page-profile .custom-select-options.open,
body .custom-select-options.profile-select-options { border: 0 !important; outline: 0 !important; box-shadow: 0 3px 12px rgba(0,0,0,.1) !important; }

body.page-profile .custom-select-options,
body.page-profile .custom-select-options .custom-select-option,
body .profile-select-options,
body .profile-select-options .custom-select-option { background-color: #fff; color: #25282c; }
body.page-profile .custom-select-options .custom-select-option.selected,
body .profile-select-options .custom-select-option.selected { background-color: #fff; color: #25282c; }
body.page-profile .custom-select-options .custom-select-option:hover,
body .profile-select-options .custom-select-option:hover { background-color: #f5f5f5; }

/* Final profile dropdown appearance, including form-reg and body portals. */
body.page-profile .custom-select-wrapper.is-form-reg .custom-select-options,
body.page-profile .custom-select-options.is-form-reg.custom-select-options--portal,
body.page-profile .custom-select-options.profile-select-options.open {
    border: none !important; outline: none !important; border-radius: 10px !important;
    background: #fff !important; box-shadow: 0 3px 10px rgba(0,0,0,.08) !important;
}
body.page-profile .custom-select-options.is-form-reg .custom-select-option,
body.page-profile .custom-select-options.is-form-reg .custom-select-option.selected,
body.page-profile .custom-select-options.is-form-reg .custom-select-option:hover {
    background: #fff !important; color: #25282c !important;
}

.profileEdit .profileEditCardTitle { border: 0; box-shadow: none; }
.profileEdit .profileEditCardTitle::after, .profileEdit .profileEditCardTitle::before { display: none; }

/* Dropdown outline matches the input above it. */
body.page-profile .custom-select-wrapper.is-form-reg .custom-select-options,
body.page-profile .custom-select-options.is-form-reg.custom-select-options--portal,
body.page-profile .custom-select-options.profile-select-options.open { border: 2px solid #ccc !important; border-radius: 10px !important; outline: none !important; box-shadow: 0 1px 3px rgba(0,0,0,.12) !important; }

/* Compact spacing in the unified profile editor. */
.profileEdit.profile-edit-all .profileEditSections { margin-top: 0; gap: 20px; }
.profileEdit.profile-edit-all .profileEditCardTitle { padding: 0 16px; margin: 0 0 12px; }
.profileEdit.profile-edit-all .profileField { padding: 0 16px; margin: 0 0 18px; row-gap: 6px; }
.profileEdit.profile-edit-all .profileFieldLabel { margin-bottom: 0; }
.profileEdit.profile-edit-all .profileFieldEditor { margin-top: 0; padding: 0; border: 0; background: transparent; }
.profileEdit.profile-edit-all .profileFieldEditor:has(.custom-select-wrapper) { margin-top: 0; padding: 0; gap: 0; }
.profileEdit.profile-edit-all .profileField:last-child { margin-bottom: 0; }

.settings.profile-menu #mainProfileAvatar, .profileEdit .profileEditAvatar > img { background-color: #cdd3da; }

/* Profile content surface. */
.settings.profile-menu { background: var(--theme-article-bg, #fff); border-radius: 16px; padding: 24px; margin-top: 20px; }
@media (max-width: 768px) { .settings.profile-menu { border-radius: 16px; padding: 16px; margin-top: 12px; margin-bottom: 12px; } }

/* Feedback follows the compact orange Sportevis design. */
#feedback-modal { z-index: 11000; padding: 16px; box-sizing: border-box; }
#feedback-modal .feedback-modal-overlay { background: rgba(25,30,36,.38); backdrop-filter: none; -webkit-backdrop-filter: none; }
#feedback-modal .feedback-modal-content { width: 100%; max-width: 480px; max-height: calc(100dvh - 32px); height: auto; min-height: 0; padding: 24px; border: 0; border-radius: 16px; background: #fff; }
#feedback-modal .feedback-modal-content h2 { font-size: 22px; margin: 0 36px 22px 0; }
#feedback-modal .feedback-modal-close { top: 16px; right: 16px; border-radius: 9px; font-size: 28px; color: #777d85; }
#feedback-modal .feedback-form { gap: 18px; height: auto; min-height: 0; }
#feedback-modal .feedback-form-group { gap: 7px; flex: 0 0 auto; }
#feedback-modal .feedback-form-group label { font-size: 14px; }
#feedback-modal .feedback-form-group input:not([type=checkbox]), #feedback-modal textarea { border: 2px solid #ccc; border-radius: 10px; padding: 11px 14px; background: #fff; outline: none; }
#feedback-modal .feedback-form-group--message { flex: 0 0 auto; min-height: 0; }
#feedback-modal #feedback-message { height: 140px; min-height: 110px; max-height: 240px; flex: none; resize: vertical; }
#feedback-modal .feedback-form-group input:focus, #feedback-modal textarea:focus { border-color: #ccc; outline: none; box-shadow: none; }
#feedback-modal .checkbox-modern__label { font-size: 13px; line-height: 1.5; color: #747a82; }
#feedback-modal .checkbox-modern__label a { color: #a9460b; }
#feedback-modal .feedback-submit-btn { background: #f56600; color: #fff; border: 0; border-radius: 10px; padding: 13px 16px; min-height: 46px; font: inherit; margin: 0; }
#feedback-modal .feedback-submit-btn:hover { background: #df5900; }
@media (max-width: 768px) { #feedback-modal { padding: 12px; } #feedback-modal .feedback-modal-content { padding: 22px 18px; max-height: calc(100dvh - 24px); } }

#feedback-modal #feedback-message { height: 180px; min-height: 180px; max-height: 180px; resize: none; overflow-y: auto; }

#feedback-modal .checkbox-modern__input:checked + .checkbox-modern__box { background: #f56600; border-color: #f56600; }
#feedback-modal .checkbox-modern__input:checked + .checkbox-modern__box .checkbox-modern__icon { stroke: #fff; }

#feedback-modal .checkbox-modern__box,
#feedback-modal .checkbox-modern:hover .checkbox-modern__box,
#feedback-modal .checkbox-modern__input:focus-visible + .checkbox-modern__box { border-color: #f56600; }

#feedback-modal .checkbox-modern__icon,
#feedback-modal .checkbox-modern__icon polyline { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }

#feedback-modal .checkbox-modern__input:not(:checked) + .checkbox-modern__box,
#feedback-modal .checkbox-modern:hover .checkbox-modern__input:not(:checked) + .checkbox-modern__box { border-color: #ccc; }

/* Compact share popover. */
.share-dialog .share-title { display: none; }
dialog.share-dialog { padding: 8px; border-radius: 12px; }
.share-dialog .share-buttons { gap: 4px; }
.share-dialog .share-button { padding: 9px 12px; min-height: 36px; border-radius: 8px; gap: 10px; }

dialog.actions-dialog { padding: 8px; border-radius: 12px; }
.actions-dialog .actions-dialog-buttons { gap: 4px; }
.actions-dialog .share-button { padding: 9px 12px; min-height: 36px; border-radius: 8px; gap: 10px; }

.share-dialog .share-button,
.share-dialog .share-button:is(:hover, :active, :focus-visible) { background: transparent; box-shadow: none; }

/* Hover highlights surfaces without moving menu content. */
.share-dialog .share-button, .actions-dialog .share-button { transform: none; transition: background-color .15s ease; }
.share-dialog .share-button:is(:hover, :active, :focus-visible),
.actions-dialog .share-button:is(:hover, :active, :focus-visible) { transform: none; background: #f1f2f3; box-shadow: none; }
aside.aside-nav-shell nav menu a, .sidePanel nav menu a { transform: none; }
aside.aside-nav-shell nav menu a:is(:hover, :active, :focus-visible),
.sidePanel nav menu a:is(:hover, :active, :focus-visible) { transform: none; }

.share-dialog .share-button, .actions-dialog .share-button { gap: 7px; }
aside.aside-nav-shell nav menu a, .sidePanel nav menu a { gap: 8px; }

dialog.share-dialog, dialog.actions-dialog { border-radius: 10px !important; }

/* Match the report action popover to the share menu. */
body dialog.actions-dialog, body dialog.actions-dialog[open] { border-radius: 10px !important; padding: 8px !important; }
body dialog.actions-dialog .actions-dialog-buttons { gap: 4px; }
body dialog.actions-dialog .share-button, body dialog.actions-dialog .post-report-btn { background: transparent !important; border-radius: 6px !important; padding: 9px 12px; gap: 7px; transform: none !important; box-shadow: none !important; }
body dialog.actions-dialog .share-button:hover, body dialog.actions-dialog .post-report-btn:hover { background: #f1f2f3 !important; transform: none !important; }

/* Shared geometry for share and action popovers. */
body dialog.share-dialog, body dialog.actions-dialog, body dialog.share-dialog[open], body dialog.actions-dialog[open] { padding: 8px !important; border-radius: 10px !important; border: 1px solid #dedede; }
body dialog.share-dialog .share-buttons, body dialog.actions-dialog .actions-dialog-buttons { display: flex; flex-direction: column; gap: 4px; padding: 0; margin: 0; }
body dialog.share-dialog .share-button, body dialog.actions-dialog .share-button { display: flex; align-items: center; justify-content: flex-start; box-sizing: border-box; height: 36px; min-height: 36px; padding: 8px 12px !important; margin: 0; gap: 8px !important; border: 0; border-radius: 6px !important; font-size: 14px; line-height: 20px; background: transparent !important; transform: none !important; }
body dialog.share-dialog .share-button img, body dialog.actions-dialog .share-button img { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; object-fit: contain; }
body dialog.share-dialog .share-button:hover, body dialog.actions-dialog .share-button:hover { background: #f1f2f3 !important; }

body.page-news-feed section.news > article,
body.page-events-feed section.news > article,
body.page-post section.news > article,
section.news > article[data-post-id] { border-radius: 16px; }

section.club_info > article.club-info-card, #events-calendar-container { border-radius: 16px; }
.calendar-day, .calendar-empty, .calendar-nav-btn { border-radius: 10px; }

#events-calendar { border-radius: 16px; }
#events-calendar .calendar-day, #events-calendar .calendar-empty, #events-calendar .calendar-nav-btn { border-radius: 10px; }

#events-calendar .calendar-nav-btn,
#events-calendar .calendar-nav-btn:is(:hover, :focus, :focus-visible, :active) { border: 0; outline: none; box-shadow: none; }

#events-calendar .calendar-nav-btn { width: 40px; min-width: 40px; height: 40px; padding: 0; font-size: 26px; display: grid; place-items: center; }

#events-calendar .calendar-nav-btn,
#events-calendar .calendar-nav-btn:is(:hover, :focus, :focus-visible, :active) { color: #000; font-weight: 700; background: transparent; border: 0; outline: none; box-shadow: none; transform: none; }

.profile-footer { padding: 28px 8px 8px; margin-top: 24px; text-align: center; color: #858b94; font-size: 12px; line-height: 1.7; }
.profile-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.profile-footer a { color: inherit; text-decoration: none; }
.profile-footer a:hover { text-decoration: underline; }
.profile-footer p { margin: 12px 0 0; }
.profile-footer p span { padding: 0 8px; }

.profile-footer nav a, .profile-footer > p { font-size: 12px; line-height: 1.7; font-weight: 400; }

/* Skeletons mirror the current profile and unified editor. */
.settings.profile-menu .settings-identity-skeleton { padding: 16px; border-radius: 16px; background: #f2f3f5; }
.settings-identity-skeleton .settings-overlay-skeleton__avatar { width: 56px; height: 56px; border-radius: 50%; }
.profileEdit .profile-edit-overlay-skeleton { padding: 24px; border-radius: 16px; background: #fff; }
.editor-skeleton-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; height: 40px; }
.editor-skeleton-back { width: 20px; height: 20px; border-radius: 6px; }
.editor-skeleton-title { width: 150px; height: 18px; border-radius: 5px; margin: auto; }
.editor-skeleton-group { display: grid; gap: 18px; margin-bottom: 24px; }
.editor-skeleton-section { width: 100px; height: 14px; border-radius: 4px; }
.editor-skeleton-field { display: grid; gap: 8px; padding: 0 16px; }
.editor-skeleton-label { width: 52px; height: 12px; border-radius: 4px; }
.editor-skeleton-input { width: 100%; height: 48px; border-radius: 10px; }
.editor-skeleton-save { width: 100%; height: 48px; border-radius: 10px; }
@media (max-width: 1100px) {
    .profileEdit .profile-edit-overlay-skeleton { padding: 16px 12px 92px; border-radius: 0; }
    .profileEdit .editor-skeleton-save { position: fixed; bottom: calc(12px + env(safe-area-inset-bottom)); left: 12px; width: calc(100% - 24px); }
}

/* Keep neutral input borders on hover in the profile editor. */
body.page-profile .profileEdit .profileField input.profileFieldInput:hover,
body.page-profile .profileEdit .profileField textarea.profileFieldInput:hover,
body.page-profile .profileEdit .profileField select.profileFieldInput:hover,
body.page-profile .profileEdit .custom-select-wrapper.is-form-reg .custom-select:hover,
body.page-profile .profileEdit .custom-select-wrapper .custom-select:hover { border-color: #ccc !important; outline: none !important; box-shadow: 0 1px 3px rgba(0,0,0,.12) !important; }

/* Admin tools follow the profile menu row design. */
.settings.profile-menu > article.settings-card { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: 0; }
.settings.profile-menu .settings-card > div > div { display: flex; align-items: center; gap: 12px; padding: 14px 12px; min-height: 54px; box-sizing: border-box; }
.settings.profile-menu .settings-card figure { display: flex; align-items: center; gap: 16px; margin: 0; min-width: 0; }
.settings.profile-menu .settings-card figure img { width: 24px; height: 24px; }
.settings.profile-menu .settings-card h2 { font-size: 16px; font-weight: 400; margin: 0; }
.settings.profile-menu .settings-card .stats-open-btn,
.settings.profile-menu .settings-card .general-info-open-btn { margin-left: auto; border: 0; background: transparent; box-shadow: none; border-radius: 8px; width: 40px; min-width: 40px; height: 40px; padding: 0; font-size: 0; color: #8c9097; }
.settings.profile-menu .settings-card .stats-open-btn::after,
.settings.profile-menu .settings-card .general-info-open-btn::after { content: "›"; font-size: 24px; }

.settings.profile-menu > article.settings-card { cursor: pointer; }

/* Social connections as compact profile switches. */
.settings.profile-menu article:has(> .social-integration) { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 12px; }
.settings.profile-menu article:has(> .social-integration) > h1 { font-size: 15px; font-weight: 600; margin-bottom: 12px !important; }
.settings.profile-menu .social-integration { display: grid; gap: 0; }
.settings.profile-menu .social-integration .social-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; min-height: 56px; box-sizing: border-box; }
.settings.profile-menu .social-item figure { display: flex; align-items: center; gap: 14px; margin: 0; }
.settings.profile-menu .social-item figure img { width: 24px; height: 24px; }
.settings.profile-menu .social-item figcaption { font-size: 16px; }
.settings.profile-menu .social-control .indicator { display: none; }
.settings.profile-menu .social-control .social-toggle-btn { position: relative; display: block; width: 44px; min-width: 44px; height: 26px; padding: 0; border: 0; border-radius: 13px; font-size: 0; background: #c9cdd2; box-shadow: none; cursor: pointer; }
.settings.profile-menu .social-control .social-toggle-btn::after { content: ''; position: absolute; width: 20px; height: 20px; top: 3px; left: 3px; border-radius: 50%; background: #fff; transform: translateX(0); transition: transform .15s ease; }
.settings.profile-menu .social-control:has(.indicator.connected) .social-toggle-btn { background: #f56600; }
.settings.profile-menu .social-control:has(.indicator.connected) .social-toggle-btn::after { transform: translateX(18px); }
.settings.profile-menu .social-toggle-btn:disabled { opacity: .5; cursor: wait; }
.settings.profile-menu .parser-news-info-banner { background: #f5f6f7; border: 0; border-radius: 10px; padding: 14px 16px; color: #656d77; }
@media (prefers-reduced-motion: reduce) { .settings.profile-menu .social-toggle-btn::after { transition: none; } }

/* Shared profile menu row geometry for account and organization tools. */
.settings.profile-menu > .account-settings-item,
.settings.profile-menu > .profile-menu-logout,
.settings.profile-menu .settings-card > div > div { min-height: 54px; padding: 14px 12px; gap: 16px; box-sizing: border-box; }
.settings.profile-menu .settings-card figure { gap: 16px; }
.settings.profile-menu .settings-card figure img,
.settings.profile-menu > .account-settings-item > img,
.settings.profile-menu > .profile-menu-logout > img { display: block; width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; margin: 0; }
.settings.profile-menu .settings-card figcaption { margin: 0; padding: 0; }
.settings.profile-menu .settings-card figure { padding: 0; }
.settings.profile-menu > .profile-menu-logout { margin-top: 0; }

.settings.profile-menu > .profile-edit-menu-item > span[aria-hidden],
.settings.profile-menu .settings-card .stats-open-btn,
.settings.profile-menu .settings-card .general-info-open-btn { width: 24px; min-width: 24px; height: 24px; flex: 0 0 24px; margin-left: auto; padding: 0; font-size: 0; background: url("/static/assets/img/icon/navigation/chevron-right.svg") center / 20px 20px no-repeat; }
.settings.profile-menu .settings-card .stats-open-btn::after,
.settings.profile-menu .settings-card .general-info-open-btn::after { content: none; }

/* Publication management panels follow the profile visual system. */
.settings.profile-menu > article.scheduled-publications,
.settings.profile-menu > article.received-club-messages { margin: 24px 0 0; padding: 16px; border: 1px solid #e5e7ea; border-radius: 12px; background: #fff; box-shadow: none; }
.settings.profile-menu > article.scheduled-publications > h1,
.settings.profile-menu > article.received-club-messages > h1 { margin: 0 0 16px !important; font-size: 18px; line-height: 1.4; font-weight: 600; }
.settings.profile-menu .scheduled-publications .events-table-container,
.settings.profile-menu .received-club-messages .events-table-container { border: 0; border-radius: 8px; box-shadow: none; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #d3d7dc transparent; }
.settings.profile-menu :is(.scheduled-publications, .received-club-messages) .events-table { width: 100%; border-collapse: collapse; border: 0; background: #fff; }
.settings.profile-menu :is(.scheduled-publications, .received-club-messages) .events-table th { padding: 11px 12px; background: #f4f5f6; color: #707781; font-size: 12px; font-weight: 500; border: 0; text-align: left; white-space: nowrap; }
.settings.profile-menu :is(.scheduled-publications, .received-club-messages) .events-table td { padding: 14px 12px; font-size: 14px; border: 0; border-bottom: 1px solid #eef0f2; }
.settings.profile-menu :is(.scheduled-publications, .received-club-messages) .events-table td[colspan] { padding: 28px 16px !important; color: #858b94; text-align: center; font-size: 14px; background: #fafbfc; }
.settings.profile-menu .scheduled-publications-hint { margin: 12px 0 0; color: #858b94; font-size: 12px; line-height: 1.5; }
@media (max-width: 1100px) {
    .settings.profile-menu > article.scheduled-publications, .settings.profile-menu > article.received-club-messages { padding: 14px 12px; }
}

.settings.profile-menu > article.scheduled-publications,
.settings.profile-menu > article.received-club-messages { border: 0; box-shadow: none; }

/* Current profile loading geometry: tool rows, social switches and tables. */
.settings.profile-menu .profile-tool-skeleton { display: flex; align-items: center; gap: 16px; padding: 14px 12px; border-radius: 0; background: #fff; }
.profile-tool-skeleton__icon { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 6px; }
.profile-tool-skeleton__text { width: 140px; height: 14px; border-radius: 4px; }
.profile-tool-skeleton__arrow { width: 12px; height: 18px; border-radius: 4px; margin-left: auto; }
.settings.profile-menu .profile-social-skeleton, .settings.profile-menu .profile-table-skeleton { display: block; padding: 16px; background: #fff; border-radius: 12px; }
.profile-panel-skeleton-title { width: 190px; max-width: 80%; height: 18px; border-radius: 5px; margin-bottom: 16px; }
.profile-switch-skeleton { display: flex; align-items: center; gap: 14px; height: 56px; }
.profile-switch-skeleton__toggle { width: 44px; height: 26px; border-radius: 13px; margin-left: auto; }
.profile-table-skeleton__head { height: 36px; width: 100%; border-radius: 8px 8px 0 0; }
.profile-table-skeleton__body { height: 72px; width: 100%; border-radius: 0 0 8px 8px; margin-top: 4px; }
html[data-js="1"] .settings.profile-menu[data-settings-overlay-loading="1"] > :is(.account-settings-item, .profile-menu-logout) { position: relative; color: transparent; }
html[data-js="1"] .settings.profile-menu[data-settings-overlay-loading="1"] > :is(.account-settings-item, .profile-menu-logout) > * { visibility: hidden; }
html[data-js="1"] .settings.profile-menu[data-settings-overlay-loading="1"] > :is(.account-settings-item, .profile-menu-logout)::before { content: ''; width: 24px; height: 24px; border-radius: 6px; background: #eceef0; position: absolute; left: 12px; top: 15px; }
html[data-js="1"] .settings.profile-menu[data-settings-overlay-loading="1"] > :is(.account-settings-item, .profile-menu-logout)::after { content: ''; width: 150px; height: 14px; border-radius: 4px; background: #eceef0; position: absolute; left: 52px; top: 20px; }

/* Event statistics panel. */
body.page-profile:has(.eventsStatistics) .profile-footer { display: none; }
body.page-profile > main:has(.eventsStatistics) { min-height: 0; }
body.page-profile .eventsStatistics { width: min(100%, 1160px); margin: 0; padding: 24px; box-sizing: border-box; border-radius: 16px; background: #fff; }
.eventsStatistics > h1 { margin: 0 0 24px; padding: 0; font-size: 24px; }
.eventsStatistics .events-tabs { display: flex; gap: 6px; border: 0; background: #f3f4f6; padding: 4px; border-radius: 10px; margin-bottom: 20px; }
.eventsStatistics .events-tabs .tab-btn { flex: 1; min-width: 0; padding: 11px 12px; border: 0; border-radius: 7px; background: transparent; color: #777e88; font: inherit; }
.eventsStatistics .events-tabs .tab-btn.active { color: #d65100; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.eventsStatistics .events-filters { display: flex; flex-wrap: wrap; gap: 14px; padding: 16px; border: 0; border-radius: 12px; background: #f7f8f9; box-shadow: none; margin-bottom: 20px; }
.eventsStatistics .filter-group { min-width: 140px; flex: 1; }
.eventsStatistics .filter-group label { font-size: 12px; color: #777e88; }
.eventsStatistics .filter-input { width: 100%; min-height: 44px; border: 1px solid #d5d9de; border-radius: 10px; background: #fff; padding: 10px 12px; box-shadow: none; box-sizing: border-box; }
.eventsStatistics .filter-input:is(:focus,:hover) { border-color: #bfc5cd; outline: none; box-shadow: none; }
.eventsStatistics .filter-reset-btn { border: 0; border-radius: 10px; background: #fff0e5; color: #c64b00; min-height: 44px; padding: 10px 18px; }
.eventsStatistics .events-table-container { border: 0; border-radius: 10px; scrollbar-width: thin; scrollbar-color: #d1d6dc transparent; box-shadow: none; }
.eventsStatistics .events-table th { background: #f4f5f7; border: 0; font-size: 12px; color: #727983; padding: 12px; white-space: nowrap; }
.eventsStatistics .events-table td { border: 0; border-bottom: 1px solid #eef0f2; padding: 14px 12px; }
.eventsStatistics .events-table td[colspan] { background: #fafbfc; color: #858b94; padding: 36px 16px !important; }
.eventsStatistics > .backBtn { background: transparent; color: #d65100; padding: 10px 0; margin-top: 16px; border: 0; box-shadow: none; border-radius: 0; }
.eventsStatistics .events-stats-skeleton { border-radius: 16px; background: #fff; }
.eventsStatistics .events-stats-skeleton__filter, .eventsStatistics .events-stats-skeleton__back { border-radius: 10px; }
@media (max-width: 1100px) {
    body.page-profile .eventsStatistics { padding: 18px 12px 80px; border-radius: 0; }
    .eventsStatistics > h1 { font-size: 20px; }
    .eventsStatistics .events-tabs .tab-btn { font-size: 13px; padding: 10px 6px; }
    .eventsStatistics .filter-group { flex: 1 1 calc(50% - 14px); min-width: 0; }
    .eventsStatistics .filter-group:has(#filter-search) { flex-basis: 100%; }
}

/* Section-specific skeleton geometry, without stretched grid rows. */
.profileEdit .profile-edit-overlay-skeleton { display: block; }
.editor-skeleton-password { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; height: 40px; }
.editor-skeleton-password-action { width: 110px; height: 14px; border-radius: 4px; }
.eventsStatistics .stats-skeleton-current { display: block; padding: 24px; }
.stats-skeleton-title { width: 240px; max-width: 70%; height: 24px; border-radius: 5px; margin-bottom: 24px; }
.stats-skeleton-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.stats-skeleton-tabs > span { flex: 1; height: 42px; border-radius: 8px; }
.stats-skeleton-filters { display: grid; grid-template-columns: 1fr 1fr 2fr 1fr; gap: 14px; padding: 16px; margin-bottom: 20px; }
.stats-skeleton-filters > span { height: 44px; border-radius: 10px; }
.stats-skeleton-table { border-radius: 10px; overflow: hidden; }
.stats-skeleton-row { display: grid; grid-template-columns: 30px 2fr 1fr 1fr 1fr 1fr; gap: 16px; padding: 14px 12px; }
.stats-skeleton-row > span { height: 14px; border-radius: 4px; }
.stats-skeleton-back { width: 60px; height: 16px; margin-top: 24px; border-radius: 4px; }
@media (max-width: 1100px) {
 .eventsStatistics .stats-skeleton-current { padding: 18px 12px; }
 .stats-skeleton-filters { grid-template-columns: 1fr 1fr; }
 .profileEdit .editor-skeleton-heading { margin-top: 0; }
}

.profileEdit #copy-notify-key-btn, .profileEdit #copy-notify-key-btn:is(:hover, :focus-visible, :active) { background: transparent; border: 0; box-shadow: none; }

/* Skeleton back action uses the same inset and hit area as the real heading. */
.profileEdit .editor-skeleton-heading { display: grid; grid-template-columns: 40px 1fr 40px; gap: 0; align-items: center; height: 40px; }
.profileEdit .editor-skeleton-back { width: 16px; height: 16px; justify-self: center; border-radius: 4px; margin: 0; }
.profileEdit .editor-skeleton-title { justify-self: center; margin: 0; }

/* Refined statistics: flat tabs and a light filter toolbar. */
body.page-profile .eventsStatistics { padding: 28px; border-radius: 16px; }
.eventsStatistics > h1 { font-size: 22px; font-weight: 600; margin-bottom: 24px; }
.eventsStatistics .events-tabs { gap: 24px; padding: 0; background: transparent; border-radius: 0; border-bottom: 1px solid #e8eaed; margin-bottom: 24px; }
.eventsStatistics .events-tabs .tab-btn { flex: 0 0 auto; padding: 12px 0; border-radius: 0; border-bottom: 2px solid transparent; font-size: 15px; background: transparent; box-shadow: none; }
.eventsStatistics .events-tabs .tab-btn.active { color: #e85c00; border-bottom-color: #f56600; background: transparent; box-shadow: none; }
.eventsStatistics .events-filters { padding: 0; background: transparent; border-radius: 0; gap: 16px; align-items: flex-end; margin-bottom: 24px; }
.eventsStatistics .events-filters .filter-group { flex: 0 1 190px; min-width: 0; }
.eventsStatistics .events-filters .filter-group:has(#filter-search) { flex: 1 1 240px; }
.eventsStatistics .events-filters .filter-reset-group { flex: 0 0 auto; }
.eventsStatistics .filter-input { border: 1px solid #d5d9de !important; border-radius: 10px !important; height: 44px; box-shadow: none !important; font-size: 14px; }
.eventsStatistics .filter-reset-btn { min-width: 0; padding: 10px 12px; background: transparent; color: #848a93; font-size: 14px; }
.eventsStatistics .filter-reset-btn:hover { background: #f4f5f6; color: #25282c; }
.eventsStatistics .events-table th { background: #f5f6f7; font-weight: 500; color: #6b737e; font-size: 12px; padding: 14px 12px; }
.eventsStatistics .events-table td[colspan] { background: #fff; padding: 56px 16px !important; color: #979da5; border-bottom: 1px solid #eef0f2; }
.eventsStatistics > .backBtn { margin-top: 20px; font-size: 14px; color: #707781; }
@media (max-width: 1100px) {
 body.page-profile .eventsStatistics { padding: 20px 16px 80px; }
 .eventsStatistics .events-tabs { gap: 20px; overflow-x: auto; }
 .eventsStatistics .events-tabs .tab-btn { white-space: nowrap; }
 .eventsStatistics .events-filters .filter-group { flex: 1 1 calc(50% - 16px); }
 .eventsStatistics .events-filters .filter-group:has(#filter-search) { flex: 1 1 calc(100% - 100px); }
 .eventsStatistics .events-filters .filter-reset-group { flex: 0 0 auto; }
}

/* Uniform statistics filter borders in all interaction states. */
body.page-profile .eventsStatistics .events-filters input.filter-input,
body.page-profile .eventsStatistics .events-filters input.filter-input:is(:hover, :focus, :focus-visible, :active),
body.page-profile .eventsStatistics .events-filters .flatpickr-input,
body.page-profile .eventsStatistics .events-filters .flatpickr-input:is(:hover, :focus, :focus-visible, :active) { border: 2px solid #ccc !important; border-radius: 10px !important; outline: none !important; box-shadow: none !important; box-sizing: border-box; }

body.page-profile .eventsStatistics .events-filters input.filter-input,
body.page-profile .eventsStatistics .events-filters input.filter-input:is(:hover, :focus, :focus-visible, :active) { background: #fff !important; box-shadow: none !important; filter: none; }

/* Neutral date picker borders and flat day cells in profile statistics. */
body.page-profile .custom-date-picker-display,
body.page-profile .custom-date-picker-display:is(:hover, :focus, :focus-visible, .active),
body.page-profile .custom-date-picker, body.page-profile .custom-date-picker.open { border: 2px solid #ccc !important; outline: none !important; box-shadow: none !important; border-radius: 10px; }
body.page-profile .custom-date-picker-day,
body.page-profile .custom-date-picker-day:is(:hover, :focus, :focus-visible, .today, .selected),
body.page-profile .custom-date-picker-nav-btn,
body.page-profile .custom-date-picker-nav-btn:is(:hover, :focus, :focus-visible) { box-shadow: none !important; outline: none !important; filter: none; }
body.page-profile .custom-date-picker-day.today { border-color: #ccc !important; }

body.page-profile .custom-date-picker-nav-btn,
body.page-profile .custom-date-picker-nav-btn:is(:hover, :focus, :focus-visible, :active) { border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none !important; width: 36px; height: 36px; padding: 0; font-size: 26px; font-weight: 600; color: #25282c; }
body.page-profile .custom-date-picker-nav-btn svg { width: 22px; height: 22px; }

body.page-profile .custom-date-picker-nav-btn,
body.page-profile .custom-date-picker-nav-btn:is(:hover, :focus, :active) { color: #000 !important; }
body.page-profile .custom-date-picker-nav-btn svg { stroke: #000; }

/* Shared field behavior: no glow or tinted hover/focus fill. */
body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=button]):not([type=submit]),textarea,select,.custom-select,.custom-date-picker-display,.custom-time-picker-display),
body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=button]):not([type=submit]),textarea,select,.custom-select,.custom-date-picker-display,.custom-time-picker-display):is(:hover,:focus,:focus-visible,:active,.open,.active) {
 box-shadow:none !important; filter:none !important; background-color:#fff !important; background-image:none !important;
}

/* Organization message form shares the feedback screen design. */
.organization-message-back { display:none; }
#club-post-message-modal { z-index:11000; padding:16px; box-sizing:border-box; }
#club-post-message-modal .feedback-modal-overlay { background:#191e2461; backdrop-filter:none; }
#club-post-message-modal .feedback-modal-content { width:100%; max-width:480px; height:auto; min-height:0; max-height:calc(100dvh - 32px); padding:24px; border:0; border-radius:16px; background:#fff; }
#club-post-message-modal h2 { font-size:22px; line-height:1.35; margin:0 32px 22px 0; }
#club-post-message-modal .feedback-form { gap:18px; height:auto; min-height:0; }
#club-post-message-modal .feedback-form-group { gap:7px; flex:0 0 auto; min-height:0; }
#club-post-message-modal label { font-size:14px; }
#club-post-message-modal input, #club-post-message-modal textarea,
#club-post-message-modal input:is(:focus,:hover), #club-post-message-modal textarea:is(:focus,:hover) { border:2px solid #ccc !important; border-radius:10px; outline:none; box-shadow:none !important; padding:11px 14px; }
#club-post-message-modal #club-post-message-text { height:180px; min-height:180px; max-height:180px; resize:none; flex:none; overflow:auto; }
#club-post-message-modal .feedback-submit-btn { background:#f56600; color:#fff; border:0; border-radius:10px; min-height:48px; margin:0; padding:12px 16px; }
@media(max-width:1100px) {
 #club-post-message-modal { padding:0; background:#fff; align-items:stretch; }
 #club-post-message-modal .feedback-modal-overlay { background:#fff; }
 #club-post-message-modal .feedback-modal-content { width:100%; max-width:none; height:100dvh; max-height:100dvh; border-radius:0; box-shadow:none; padding:calc(76px + env(safe-area-inset-top)) 16px calc(92px + env(safe-area-inset-bottom)); animation:none; }
 .organization-message-heading { position:fixed; top:0; left:0; right:0; z-index:2; height:calc(60px + env(safe-area-inset-top)); box-sizing:border-box; display:grid; grid-template-columns:40px 1fr 40px; align-items:center; padding:env(safe-area-inset-top) 12px 0; background:#fff; }
 #club-post-message-modal .organization-message-heading h2 { font-size:18px; margin:0; text-align:center; }
 #club-post-message-modal .feedback-modal-close { display:none; }
 .organization-message-back { display:grid; place-items:center; width:40px; height:40px; padding:8px; border:0; background:transparent; color:#30343a; }
 .organization-message-back svg { width:24px; height:24px; }
 #club-post-message-modal .feedback-submit-btn { position:fixed; bottom:calc(12px + env(safe-area-inset-bottom)); left:16px; width:calc(100% - 32px); z-index:2; }
 #club-post-message-modal .feedback-modal-content::after { content:''; position:fixed; bottom:0; left:0; right:0; height:calc(72px + env(safe-area-inset-bottom)); background:#fff; z-index:1; pointer-events:none; }
}

.app-toast::before { display: none; }

/* Full-screen report flow. */
#report-modal { position:fixed; inset:0; z-index:11000; padding:0; background:#fff; align-items:stretch; }
#report-modal .report-modal-overlay { background:#fff; backdrop-filter:none; }
#report-modal .report-modal-content { width:100%; max-width:none; height:100dvh; max-height:100dvh; border:0; border-radius:0; box-shadow:none; background:#fff; padding:calc(84px + env(safe-area-inset-top)) max(20px,calc((100vw - 600px)/2)) calc(100px + env(safe-area-inset-bottom)); box-sizing:border-box; overflow-y:auto; animation:none; }
.report-screen-heading { position:fixed; top:0; left:0; right:0; height:calc(64px + env(safe-area-inset-top)); box-sizing:border-box; padding:env(safe-area-inset-top) 16px 0; display:grid; grid-template-columns:40px 1fr 40px; align-items:center; background:#fff; z-index:2; }
#report-modal .report-screen-heading h2 { margin:0; text-align:center; font-size:18px; font-weight:600; }
.report-screen-back { display:grid; place-items:center; width:40px; height:40px; border:0; padding:8px; background:transparent; color:#30343a; }
.report-screen-back svg { width:24px; height:24px; }
#report-modal .report-modal-subtitle { margin:0 0 20px; font-size:14px; color:#858b95; }
#report-modal .report-options { display:grid; gap:0; }
#report-modal .report-option { display:flex; align-items:flex-start; gap:14px; background:transparent; border:0; border-bottom:1px solid #eef0f2; border-radius:0; padding:18px 0; box-shadow:none; }
#report-modal .report-option:has(input:checked) { background:transparent; border-color:#eef0f2; }
#report-modal .report-option input[type=radio] { accent-color:#f56600; margin:3px 0 0; width:20px; height:20px; flex:0 0 20px; box-shadow:none; }
#report-modal .report-option-title { font-size:15px; font-weight:500; color:#30343a; }
#report-modal .report-option-desc { font-size:13px; line-height:1.55; color:#8b919a; margin-top:5px; }
#report-modal .report-other-field { margin-top:20px; }
#report-modal #report-description { border:2px solid #ccc; border-radius:10px; height:120px; resize:none; box-shadow:none; }
#report-modal .report-modal-buttons { position:fixed; left:0; right:0; bottom:0; padding:12px max(20px,calc((100vw - 600px)/2)) calc(12px + env(safe-area-inset-bottom)); background:#fff; z-index:2; display:flex; margin:0; }
#report-modal .report-cancel-btn { display:none; }
#report-modal .report-submit-btn { width:100%; background:#f56600; color:#fff; border:0; border-radius:10px; min-height:48px; padding:12px 16px; box-shadow:none; }
#report-modal .report-submit-btn:hover { background:#df5900; }

/* Centered publication confirmation */
dialog.post-confirm-dialog { position:fixed; inset:0; margin:auto; padding:0; width:min(340px,calc(100vw - 32px)); max-width:none; max-height:calc(100dvh - 32px); box-sizing:border-box; border:0; border-radius:12px; background:#fff; color:#30343a; box-shadow:0 16px 48px #00000026; }
dialog.post-confirm-dialog::backdrop { background:rgba(25,29,34,.4); }
.post-confirm-dialog__content { min-height:320px; box-sizing:border-box; padding:28px 24px 24px; display:flex; flex-direction:column; align-items:center; text-align:center; }
.post-confirm-dialog__icon { display:grid; place-items:center; width:52px; height:52px; border-radius:50%; background:#fff0ee; color:#ed4545; margin-bottom:18px; }
.post-confirm-dialog__icon svg { width:26px; height:26px; }
.post-confirm-dialog h2 { font-size:20px; line-height:1.3; margin:0 0 10px; font-weight:600; }
.post-confirm-dialog p { margin:0 0 24px; color:#858b95; font-size:14px; line-height:1.5; }
.post-confirm-dialog__actions { display:flex; gap:10px; width:100%; margin-top:auto; }
.post-confirm-dialog__actions button { flex:1; min-height:44px; padding:10px 12px; border:0; border-radius:10px; font:inherit; font-size:14px; cursor:pointer; box-shadow:none; transform:none; }
.post-confirm-dialog__cancel { background:#f1f2f4; color:#454950; }
.post-confirm-dialog__confirm { background:#ed4545; color:#fff; }
@media (hover:hover) { .post-confirm-dialog__cancel:hover { background:#e7e9ed; } .post-confirm-dialog__confirm:hover { background:#da3535; } }

/* Confirmation uses the same stacked action sheet as profile photo. */
dialog.post-confirm-dialog { width:min(440px,calc(100vw - 32px)); border-radius:18px; box-shadow:none; }
.post-confirm-dialog__content { min-height:0; padding:0; display:block; }
.post-confirm-dialog__icon, .post-confirm-dialog p { display:none; }
.post-confirm-dialog h2 { margin:0; padding:30px 24px; font-size:22px; line-height:1.35; font-weight:600; }
.post-confirm-dialog__actions { display:flex; flex-direction:column-reverse; gap:0; margin:0; }
.post-confirm-dialog__actions button { flex:none; width:100%; min-height:62px; padding:18px 24px; border:0; border-top:1px solid #e3e5e8; border-radius:0; background:#fff; font-size:17px; box-shadow:none; transform:none; }
.post-confirm-dialog__actions .post-confirm-dialog__confirm { color:#ed4545; font-weight:600; }
.post-confirm-dialog__actions .post-confirm-dialog__cancel { color:#30343a; font-weight:400; }
@media (hover:hover) { .post-confirm-dialog__actions button:hover { background:#f7f8f9; } }

.profile-menu-heading a svg { width:24px; height:24px; display:block; }
/* Keep the brand mascot fully visible inside circular account avatars. */
img:is(#mainProfileAvatar,.mobile-bottom-nav__avatar,.nav-profile-avatar,.user-avatar)[src*="/static/assets/img/logo.png"] { object-fit:contain !important; padding:6px !important; box-sizing:border-box; background:#cdd3da; }
img.mobile-bottom-nav__avatar[src*="/static/assets/img/logo.png"] { padding:3px !important; }
.settings.profile-menu article.parser-news-info-card,
.settings.profile-menu article.parser-news-info-card .parser-news-info-banner { border:0 !important; box-shadow:none !important; }
.settings.profile-menu article.parser-news-info-card::after,
.settings.profile-menu article.parser-news-info-card::before { display:none !important; }
img:is(#mainProfileAvatar,.mobile-bottom-nav__avatar,.nav-profile-avatar,.user-avatar)[src*="/static/assets/img/logo.png"] { padding:1px !important; }
img.mobile-bottom-nav__avatar[src*="/static/assets/img/logo.png"] { padding:0 !important; }
img:is(#mainProfileAvatar,.mobile-bottom-nav__avatar,.nav-profile-avatar,.user-avatar)[src*="/static/assets/img/logo.png"] { padding:0 !important; object-fit:cover !important; object-position:center; }
img:is(#mainProfileAvatar,.mobile-bottom-nav__avatar,.nav-profile-avatar,.user-avatar)[src*="/static/assets/img/logo.png"] { padding:3px !important; object-fit:cover !important; }
img.mobile-bottom-nav__avatar[src*="/static/assets/img/logo.png"] { padding:1px !important; }
