:root {
    --font-heading: "Lobster", "Inter", "Segoe UI", Arial, sans-serif;
    --font-body: "Roboto Flex", "Segoe UI", Roboto, Arial, sans-serif;
    color-scheme: light;
    --bg: #0b1020;
    --bg-soft: #151b31;
    --card: #ffffff;
    --text: #eaf0ff;
    --text-dark: #111827;
    --muted: #6b7280;
    --accent: #7c3aed;
    --accent-dark: #5b21b6;
    --danger: #dc2626;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(105, 213, 255, 0.45) rgba(8, 17, 38, 0.55);
}

*::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

*::-webkit-scrollbar-track {
    background: rgba(8, 17, 38, 0.55);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(105, 213, 255, 0.5), rgba(142, 125, 255, 0.45));
    border-radius: 999px;
    border: 2px solid rgba(8, 17, 38, 0.55);
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.72), rgba(165, 180, 252, 0.62));
}

*::-webkit-scrollbar-corner {
    background: rgba(8, 17, 38, 0.55);
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: url("../bg.jpg");
    color: var(--neon-title);
    background-size: cover;
    background-repeat: repeat;
    height: 100vh;
    width: 100%;
}

body.modal-open {
    overflow: hidden;
}

h1 {
    font-family: var(--font-heading);
    font-weight: 100;
    text-align: center;
}

.container {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

.site-header {
    padding: 36px 0 24px;
}

.site-header h1 {
    margin: 0 0 8px;
    font-size: 68px;
    font-weight: 100;
    filter: drop-shadow(1px 1px 1px black);
}

.site-header p {
    margin: 0 0 14px;
    color: #c7d2fe;
}

.admin-link {
    display: inline-block;
    color: #ddd6fe;
    text-decoration: none;
    border: 1px solid #a78bfa;
    border-radius: 10px;
    padding: 8px 12px;
}

.gallery-grid {
    display: grid;
    gap: 18px;
    padding-bottom: 30px;
}

@media (min-width: 961px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

.card {
    background: var(--bg-soft);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-button {
    all: unset;
    cursor: pointer;
    display: block;
    width: 100%;
}

.card-button:focus-visible {
    outline: 2px solid rgba(105, 213, 255, 0.85);
    outline-offset: -2px;
}

.card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.card-meta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    padding: 10px 12px;
    color: #bfdbfe;
    font-size: 13px;
    align-items: center;
}

.card-meta .prompt-number {
    grid-column: 1 / -1;
    font-weight: 600;
    color: #93c5fd;
    letter-spacing: 0.02em;
}

.card-meta-category {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta-date {
    justify-self: end;
    white-space: nowrap;
    opacity: 0.88;
}

.card--partner {
    overflow: hidden;
    position: relative;
}

.card--partner--yandex {
    width: 100%;
    height: 30px;
    background: #deea00;
    text-align: center;
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    color: #363636;
    line-height: 33px;
    text-transform: uppercase;
}

.card-partner-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card-partner-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    aspect-ratio: 2 / 2.77 !important;
}

.card-meta .card-source {
    grid-column: 1 / -1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #a5b4fc;
    font-size: 12px;
}

.card-source-link,
.modal-source-group a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.card-source-link:hover,
.modal-source-group a:hover {
    color: #c7d2fe;
}

.empty-state {
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 30px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 150;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.modal-content {
    position: absolute;
    width: min(860px, 94vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, rgba(12, 24, 52, 0.97), rgba(8, 16, 36, 0.98));
    color: var(--neon-title, #dbe8ff);
    border: 2px solid rgb(233 240 255 / 36%);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0px 48px rgba(0, 0, 0, 1);
    z-index: 2;
    overflow: hidden;
    transform: translateX(-50%) translateY(-50%);
    left: 50%;
    top: 50%;
}

.modal-close {
    position: absolute;
    right: 10px;
    top: 6px;
    border: 0;
    background: transparent;
    color: #c7d6f8;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.modal-layout {
    display: grid;
    grid-template-columns: minmax(140px, 32%) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.modal-image-wrap {
    background: rgba(4, 10, 24, 0.85);
    border: 2px solid rgba(130, 170, 255, 0.36);
    border-radius: 8px;
    overflow: hidden;
    min-height: 0;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-wrap img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.modal-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.modal-heading {
    margin-top: 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--neon-title, #dbe8ff);
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.modal-actions .primary-btn,
.modal-actions .secondary-btn {
    flex: 0 1 auto;
    min-width: 0;
    padding: 8px 14px;
    font-size: 13px;
    width: 100%;
}

.modal-prompt-number {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--neon-accent, #69d5ff);
    letter-spacing: 0.02em;
}

.modal-view-count {
    margin: 0;
    font-size: 11px;
    color: #9eb0d9;
}

.modal-source-group {
    margin: 0;
    font-size: 11px;
    color: #9eb0d9;
}

.modal-source-group a {
    font-weight: 500;
}

.modal-description {
    margin: 0;
    max-height: 262px;
    overflow: auto;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
    color: var(--neon-text, #b6c6ea);
    padding-right: 4px;
}

.modal-ad {
    flex: 0 0 auto;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(130, 170, 255, 0.2);
    background: rgba(8, 18, 42, 0.72);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-ad[hidden] {
    display: none !important;
}

.modal-ad-copy {
    min-width: 0;
}

.modal-ad-title {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e8f0ff;
}

.modal-ad-text {
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
    color: #9eb0d9;
}

.modal-ad-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f4f7ff;
    color: #0b1430;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0.92;
}

.modal-ad-btn:hover {
    opacity: 1;
}

.admin-page {
    padding-bottom: 30px;
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 16px 20px;
    align-items: start;
}

.admin-sidebar {
    position: sticky;
    top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: calc(100vh - 24px);
    overflow: auto;
    padding-right: 4px;
}

.admin-sidebar-section {
    border: 1px solid var(--neon-border);
    border-radius: 12px;
    background: rgba(8, 17, 38, 0.72);
    overflow: hidden;
}

.admin-sidebar-toggle {
    all: unset;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 11px 12px;
    cursor: pointer;
    color: #e9f5ff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    transition: background 0.15s ease;
}

.admin-sidebar-toggle:hover,
.admin-sidebar-toggle.is-open {
    background: rgba(105, 213, 255, 0.08);
}

.admin-sidebar-toggle-label {
    flex: 1 1 auto;
    min-width: 0;
}

.admin-sidebar-badge {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(105, 213, 255, 0.2);
    border: 1px solid rgba(105, 213, 255, 0.35);
    color: #dbe8ff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.admin-sidebar-badge--muted {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--neon-text);
}

.admin-sidebar-chevron {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(233, 245, 255, 0.65);
    border-bottom: 2px solid rgba(233, 245, 255, 0.65);
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform 0.15s ease;
}

.admin-sidebar-toggle.is-open .admin-sidebar-chevron {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.admin-sidebar-panel[hidden] {
    display: none !important;
}

.admin-sidebar-panel > .admin-sidebar-nav,
.admin-sidebar-panel > .gallery-sources-panel--sidebar {
    padding: 0 10px 10px;
}

.admin-sidebar-panel-inner {
    padding: 0 10px 10px;
}

.admin-sidebar-panel-inner.is-category-order-open .admin-sidebar-nav {
    display: none !important;
}

.admin-sidebar-nav[hidden] {
    display: none !important;
}

.admin-sidebar .category-order-panel {
    margin-bottom: 10px;
    flex: none;
    width: 100%;
    box-sizing: border-box;
}

.admin-sidebar-panel-inner.is-category-order-open .category-order-list {
    max-height: min(52vh, 420px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.admin-sidebar-panel-inner.is-category-order-open .category-order-list::-webkit-scrollbar {
    width: 8px;
}

.admin-sidebar-panel-inner.is-category-order-open .category-order-list::-webkit-scrollbar-thumb {
    background: rgba(130, 170, 255, 0.45);
    border-radius: 999px;
}

.admin-sidebar-panel-inner.is-category-order-open .category-order-list::-webkit-scrollbar-track {
    background: rgba(8, 17, 38, 0.5);
    border-radius: 999px;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: min(52vh, 420px);
    overflow: auto;
    padding: 2px 4px 2px 0;
}

.admin-sidebar-nav .filter-chip,
.admin-sidebar-nav .filter-chip--sidebar {
    flex: 0 0 auto;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 9px 11px;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 8px;
    text-decoration: none;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
    min-height: 0;
}

.filter-chip--sidebar {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 9px 11px;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 8px;
    text-decoration: none;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
}

.admin-sidebar .category-order-toggle {
    width: 100%;
    margin: 0 0 8px;
    text-align: center;
    font-size: 12px;
    padding: 7px 10px;
}

.admin-sidebar .category-order-list {
    max-height: min(52vh, 420px);
    max-width: none;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.admin-content {
    min-width: 0;
}

.gallery-sources-panel--sidebar {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.gallery-sources-panel--sidebar .gallery-sources-hint {
    font-size: 12px;
    margin-bottom: 8px;
}

.gallery-sources-panel--sidebar .gallery-sources-stats {
    display: none;
}

.gallery-sources-panel--sidebar .gallery-sources-badge {
    font-size: 11px;
    padding: 5px 10px;
}

.gallery-sources-panel--sidebar .gallery-sources-toolbar {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 8px;
    gap: 8px;
}

.gallery-sources-panel--sidebar .gallery-sources-search-wrap {
    flex: 0 0 auto;
    min-width: 0;
}

.gallery-sources-panel--sidebar .gallery-sources-search {
    padding: 8px 10px;
    font-size: 12px;
}

.gallery-sources-panel--sidebar .gallery-sources-quick {
    justify-content: flex-start;
    gap: 6px;
}

.gallery-sources-panel--sidebar .gallery-sources-quick-btn {
    padding: 5px 9px;
    font-size: 11px;
}

.gallery-sources-panel--sidebar .gallery-sources-grid {
    grid-template-columns: 1fr;
    max-height: min(46vh, 360px);
    overflow: auto;
    gap: 5px;
    margin-bottom: 0;
    padding: 0;
}

.gallery-sources-panel--sidebar .gallery-source-card {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 6px 8px;
    align-items: center;
}

.gallery-sources-panel--sidebar .gallery-source-switch {
    width: 30px;
    height: 17px;
}

.gallery-sources-panel--sidebar .gallery-source-switch::after {
    width: 13px;
    height: 13px;
    top: 1px;
    left: 1px;
}

.gallery-sources-panel--sidebar .gallery-source-card.is-visible .gallery-source-switch::after {
    transform: translateX(13px);
}

.gallery-sources-panel--sidebar .gallery-source-name {
    font-size: 12px;
    line-height: 1.3;
}

.gallery-sources-panel--sidebar .gallery-source-status {
    width: 22px;
    height: 22px;
    padding: 0;
    font-size: 0;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gallery-sources-panel--sidebar .gallery-source-status::before {
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
}

.gallery-sources-panel--sidebar .gallery-source-card.is-visible .gallery-source-status::before {
    content: "?";
    color: #7dd3fc;
}

.gallery-sources-panel--sidebar .gallery-source-card.is-hidden .gallery-source-status::before {
    content: "?";
    color: #94a3b8;
}

.gallery-sources-panel--sidebar .gallery-sources-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-top: 10px;
}

.gallery-sources-panel--sidebar .gallery-sources-status {
    font-size: 11px;
}

@media (max-width: 960px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .admin-sidebar-nav {
        max-height: 280px;
    }
}

.toolbar {
    margin-bottom: 20px;
}

.flash {
    background: #ede9fe;
    color: #312e81;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.primary-btn,
.secondary-btn,
.danger-btn {
    border: 0;
    border-radius: 3px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
}

.primary-btn {
    background: var(--accent);
    color: #fff;
}

.primary-btn:hover {
    background: var(--accent-dark);
}

.secondary-btn {
    background: #0f172a;
    color: #fff;
}

.danger-btn {
    background: var(--danger);
    color: #fff;
}

.admin-list {
    display: grid;
    gap: 14px;
}

.admin-card {
    background: var(--card);
    color: var(--text-dark);
    border-radius: 5px;
    display: grid;
    grid-template-columns: 167px 1fr;
    overflow: hidden;
    border: 1px solid var(--border);
}

.admin-card.inactive {
    opacity: 0.75;
}

.admin-card img {
    width: 240px;
}

.admin-card-body {
    padding: 14px;
}

.admin-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
}

.status-badge {
    background: #fee2e2;
    color: #991b1b;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.admin-edit-form label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: #1f2937;
}

.admin-edit-form textarea,
.admin-edit-form input[type="url"],
.admin-edit-form input[type="file"] {
    width: 100%;
    margin-top: 4px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 9px;
    font: inherit;
}

.admin-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

@media (max-width: 840px) {
    .modal-content {
        margin: 3vh auto 0;
        max-height: 94vh;
    }

    .modal-layout {
        grid-template-columns: 1fr;
    }

    .modal-image-wrap {
        max-height: 260px;
    }

    .modal-image-wrap img {
        max-height: 260px;
    }

    .modal-description {
        max-height: 260px;
    }

    .modal-ad {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .modal-ad-btn {
        width: 100%;
    }

    .admin-card {
        grid-template-columns: 1fr;
    }

    .admin-card img {
        height: 240px;
    }
}

/* Neon redesign */
:root {
    --neon-bg-1: #040816;
    --neon-bg-2: #0b1430;
    --neon-card: rgba(14, 26, 56, 0.78);
    --neon-border: rgba(130, 170, 255, 0.26);
    --neon-title: #dbe8ff;
    --neon-text: #b6c6ea;
    --neon-accent: #69d5ff;
    --neon-accent-2: #8e7dff;
}


.site-header {
    padding: 42px 0 26px;
    text-align: center;
}

.site-header h1 {
    letter-spacing: 1px;
}

.site-header p {
    color: var(--neon-text);
}

.admin-link {
    border: 1px solid var(--neon-border);
    background: rgba(9, 18, 41, 0.72);
    color: #e9f5ff;
    box-shadow: 0 0 14px rgba(105, 213, 255, 0.16);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    align-items: center;
}

.filters-caption {
    flex: 0 0 100%;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--neon-text);
    margin: 0 0 2px;
}

.filters-caption-row {
    flex: 0 0 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 16px;
    margin-bottom: 2px;
}

.filters-caption-row .filters-caption {
    flex: 0 0 auto;
    margin: 0;
}

.category-order-toggle {
    padding: 0;
    border: none;
    background: none;
    color: #c4b5fd;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    font-family: inherit;
}

.category-order-toggle:hover,
.category-order-toggle.is-active {
    color: #e9d5ff;
}

.category-order-panel {
    flex: 0 0 100%;
    margin-bottom: 10px;
    padding: 14px 16px;
    border: 1px solid var(--neon-border);
    border-radius: 12px;
    background: rgba(8, 17, 38, 0.55);
}

.category-order-panel[hidden] {
    display: none !important;
}

.gallery-sources-panel {
    margin-bottom: 20px;
    padding: 18px 20px 16px;
    border: 1px solid var(--neon-border);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(10, 22, 48, 0.92), rgba(8, 17, 38, 0.72));
    box-shadow: 0 10px 28px rgba(2, 8, 24, 0.35);
}

.gallery-sources-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 16px;
}

.gallery-sources-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e9d5ff;
}

.gallery-sources-hint {
    margin: 0;
    max-width: 52ch;
    font-size: 13px;
    color: #c7d2fe;
    line-height: 1.5;
}

.gallery-sources-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(105, 213, 255, 0.45);
    background: rgba(45, 83, 146, 0.35);
    color: #e9f5ff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 0 16px rgba(105, 213, 255, 0.18);
}

.gallery-sources-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 14px;
}

.gallery-sources-search-wrap {
    flex: 1 1 220px;
    min-width: 0;
}

.gallery-sources-search {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--neon-border);
    background: rgba(6, 14, 32, 0.9);
    color: #e9f5ff;
    font: inherit;
    font-size: 14px;
}

.gallery-sources-search::placeholder {
    color: #8fa3cc;
}

.gallery-sources-search:focus {
    outline: none;
    border-color: rgba(105, 213, 255, 0.75);
    box-shadow: 0 0 0 3px rgba(105, 213, 255, 0.15);
}

.gallery-sources-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-sources-quick-btn {
    padding: 8px 12px;
    font-size: 12px;
}

.gallery-sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
    max-height: min(52vh, 520px);
    overflow: auto;
    padding: 4px 2px 6px;
}

.gallery-source-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--neon-border);
    background: rgba(8, 17, 38, 0.88);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.gallery-source-card:hover {
    transform: translateY(-1px);
    border-color: rgba(130, 170, 255, 0.45);
}

.gallery-source-card.is-visible {
    border-color: rgba(105, 213, 255, 0.42);
    background: linear-gradient(135deg, rgba(18, 40, 78, 0.95), rgba(12, 24, 52, 0.9));
}

.gallery-source-card.is-hidden {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.55);
    opacity: 0.82;
}

.gallery-source-card.is-filtered-out {
    display: none;
}

.gallery-source-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gallery-source-switch {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: rgba(71, 85, 105, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-source-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e2e8f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-source-card.is-visible .gallery-source-switch {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    border-color: rgba(125, 211, 252, 0.65);
}

.gallery-source-card.is-visible .gallery-source-switch::after {
    transform: translateX(18px);
    background: #fff;
}

.gallery-source-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gallery-source-name {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5ff;
    word-break: break-word;
}

.gallery-source-link {
    font-size: 12px;
    color: #93c5fd;
    text-decoration: none;
}

.gallery-source-link:hover {
    color: #bfdbfe;
    text-decoration: underline;
}

.gallery-source-status {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 5px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.gallery-source-status::before {
    display: none;
}

.gallery-sources-panel--sidebar .gallery-source-status::before {
    display: block;
}

.gallery-source-card.is-visible .gallery-source-status {
    color: #bae6fd;
    background: rgba(56, 189, 248, 0.16);
}

.gallery-source-card.is-hidden .gallery-source-status {
    color: #94a3b8;
    background: rgba(100, 116, 139, 0.2);
}

.gallery-sources-empty {
    margin: 0 0 12px;
    padding: 14px;
    border-radius: 10px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    color: #94a3b8;
    text-align: center;
    font-size: 13px;
}

.gallery-sources-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
    border-top: 1px solid rgba(130, 170, 255, 0.14);
}

.gallery-sources-status {
    min-height: 1.25em;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .gallery-sources-grid {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .gallery-source-card {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .gallery-source-status {
        grid-column: 2;
        justify-self: start;
    }
}

.category-order-hint {
    margin: 0 0 12px;
    font-size: 13px;
    color: #c7d2fe;
    line-height: 1.45;
}

.category-order-hint code {
    font-size: 12px;
    color: #e9d5ff;
}

.category-order-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 420px;
}

.category-order-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--neon-border);
    background: rgba(8, 17, 38, 0.85);
    cursor: grab;
    user-select: none;
}

.category-order-item.is-dragging {
    opacity: 0.55;
    cursor: grabbing;
}

.category-order-grip {
    color: #94a3b8;
    font-size: 14px;
    letter-spacing: -2px;
}

.category-order-name {
    flex: 1;
    color: #eaf0ff;
    font-size: 14px;
}

.category-order-slug {
    font-size: 11px;
    color: #94a3b8;
}

.category-order-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.category-order-status {
    font-size: 13px;
    color: #a5f3fc;
}

.filters--sources {
    margin-top: 6px;
}

.filter-chip--domain {
    max-width: 100%;
}

.filter-chip {
    text-decoration: none;
    color: #cfe6ff;
    border: 1px solid var(--neon-border);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(8, 17, 38, 0.75);
    font-size: 13px;
}

.filter-chip.active {
    border-color: rgba(105, 213, 255, 0.8);
    box-shadow: 0 0 14px rgba(105, 213, 255, 0.35);
    background: #376d8c;
    color: #fff;
}

.admin-sidebar-nav .filter-chip,
.admin-sidebar-nav .filter-chip--sidebar,
.admin-sidebar-nav .filter-chip--domain {
    flex: 0 0 auto;
    display: flex;
    width: 100%;
    max-width: none;
    border-radius: 8px;
    padding: 7px 11px 5px;
    font-size: 14px;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
    text-overflow: clip;
    text-shadow: 1px 1px 1px #000;
}

.gallery-sidebar-nav .filter-chip,
.gallery-sidebar-nav .filter-chip--sidebar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: none;
    border-radius: 8px;
    padding: 7px 11px 5px;
    font-size: 14px;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
    text-overflow: clip;
    text-shadow: 1px 1px 1px #000;
}

.gallery-sidebar-nav .filter-chip-label {
    min-width: 0;
}

.gallery-sidebar-nav .filter-chip-count {
    margin-left: auto;
    font-size: 0.82em;
    font-weight: 500;
    opacity: 0.78;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 961px) {
    .gallery-sidebar-nav .filter-chip,
    .gallery-sidebar-nav .filter-chip--sidebar {
        width: 100%;
    }
}

@media (min-width: 961px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 22px;
    }
}

.card {
    background: rgb(58 111 141);
    border: 1px solid var(--neon-border);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 36px rgba(1, 4, 13, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(105, 213, 255, 0.58);
    filter: drop-shadow(0 0px 15px #000);
}

.card img {
    height: 300px;
}
.card.card--partner {
    border: 2px solid #deea00;
}
.card-meta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    color: #d0ddff;
    font-size: 12px;
    line-height: 1.4;
    align-items: center;
}

.card-meta .prompt-number {
    grid-column: 1 / -1;
    font-weight: 600;
    color: var(--neon-accent);
    letter-spacing: 0.02em;
}

.card-meta .card-source {
    grid-column: 1 / -1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #b8c7ff;
    font-size: 11px;
}

.card-meta-category {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-meta-date {
    justify-self: end;
    white-space: nowrap;
    opacity: 0.88;
}

.card-source-link,
.modal-source-group a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.card-source-link:hover,
.modal-source-group a:hover {
    color: #dbe4ff;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sync-status {
    display: block;
    font-size: 13px;
    color: var(--neon-text);
    max-width: min(720px, 100%);
}

.login-card {
    width: min(520px, 94vw);
    margin: 8vh auto 0;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid var(--neon-border);
    background: rgba(8, 17, 38, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: var(--neon-text);
}

.login-form input {
    border: 1px solid var(--neon-border);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    color: #e9f5ff;
    background: rgba(8, 17, 38, 0.7);
}

.primary-btn,
.secondary-btn,
.danger-btn {
    background: linear-gradient(135deg, #2a4b89, #4e3f8f);
    color: #fff;
    border: 1px solid rgba(151, 194, 255, 0.35);
}

.danger-btn {
    background: linear-gradient(135deg, #8e2647, #ba2f38);
}

.flash {
    background: rgba(34, 56, 104, 0.65);
    color: #d6e7ff;
    border: 1px solid rgba(136, 185, 255, 0.28);
}

.admin-card {
    background: rgba(255, 255, 255, 0.97);
}

.admin-edit-form select {
    width: 100%;
    margin-top: 4px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 9px;
    font: inherit;
    min-height: 126px;
}

.gallery-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--neon-text);
    font-size: 14px;
}

.admin-scope-filters,
.admin-sort-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.per-page-form label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.per-page-form select {
    background: rgba(8, 17, 38, 0.85);
    color: #e9f5ff;
    border: 1px solid var(--neon-border);
    border-radius: 8px;
    padding: 6px 10px;
    font: inherit;
}

.counter {
    opacity: 0.85;
}

.counter-hint {
    margin-left: 6px;
    color: #9fb6dd;
    font-size: 12px;
}

.gallery-prompt-flash {
    margin-bottom: 14px;
    border-radius: 10px;
    padding: 12px 14px;
}

.gallery-prompt-flash--error {
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(80, 20, 30, 0.45);
    color: #fecaca;
}

.gallery-prompt-access {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.gallery-prompt-access--open .gallery-prompt-hint {
    font-size: 12px;
    color: #9fb6dd;
    opacity: 0.95;
}

.gallery-prompt-unlock-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 12px;
}

.gallery-prompt-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: var(--neon-text);
}

.gallery-prompt-label input {
    min-width: min(220px, 72vw);
    border: 1px solid var(--neon-border);
    border-radius: 8px;
    padding: 8px 10px;
    font: inherit;
    color: #e9f5ff;
    background: rgba(8, 17, 38, 0.85);
}

.gallery-prompt-status--ok {
    font-size: 13px;
    color: #a7f3d0;
}

.gallery-prompt-lock-link {
    text-decoration: none;
    font-size: 13px;
    padding: 8px 14px;
}

.load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 28px 0 36px;
}

.load-more-wrap .primary-btn {
    padding: 12px 28px;
    font-size: 15px;
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(105, 213, 255, 0.25);
}

.load-more-status {
    color: var(--neon-text);
    font-size: 13px;
    min-height: 18px;
    text-align: center;
}

.site-header--admin {
    padding: 16px 0 12px;
    text-align: left;
}

.admin-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}

.admin-header-main h1 {
    margin: 0 0 4px;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.admin-header-main p {
    margin: 0;
    font-size: 13px;
}

.admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.admin-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px 4px;
    font: inherit;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    border-radius: 8px;
    border: 1px solid var(--neon-border);
    background: rgb(67 115 175 / 75%);
    color: #e9f5ff;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.admin-header-btn:hover {
    border-color: rgba(105, 213, 255, 0.55);
    box-shadow: 0 0 10px rgba(105, 213, 255, 0.18);
}

.admin-header-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.admin-header-btn--primary {
    background: linear-gradient(135deg, #2a8fd4 0%, #1e6bb5 100%);
    border-color: rgba(105, 213, 255, 0.65);
    font-weight: 600;
}

.admin-header-btn--primary:hover {
    background: linear-gradient(135deg, #3aa0e8 0%, #2578c9 100%);
    box-shadow: 0 0 14px rgba(105, 213, 255, 0.28);
}

.admin-daily-top__intro {
    margin-bottom: 20px;
    color: #dbe8ff;
}

.admin-daily-top__date-form {
    margin-bottom: 14px;
}

.admin-daily-top__date-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #b8c9e6;
}

.admin-daily-top__date-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.admin-daily-top__date-input {
    min-width: 180px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(105, 213, 255, 0.35);
    background: rgba(8, 16, 32, 0.85);
    color: #e9f5ff;
    font: inherit;
}

.admin-daily-top__date-input:focus {
    outline: none;
    border-color: rgba(105, 213, 255, 0.75);
    box-shadow: 0 0 0 2px rgba(105, 213, 255, 0.15);
}

.admin-daily-top__ids-input {
    flex: 1 1 240px;
    min-width: 200px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(105, 213, 255, 0.35);
    background: rgba(8, 16, 32, 0.85);
    color: #e9f5ff;
    font: inherit;
}

.admin-daily-top__ids-input:focus {
    outline: none;
    border-color: rgba(105, 213, 255, 0.75);
    box-shadow: 0 0 0 2px rgba(105, 213, 255, 0.15);
}

.admin-daily-top__date-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #94a3b8;
}

.admin-daily-top__warning {
    margin: 0 0 8px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(251, 146, 60, 0.45);
    background: rgba(251, 146, 60, 0.12);
    color: #fdba74;
}

.admin-daily-top__intro p {
    margin: 0 0 8px;
}

.admin-daily-top__target a {
    color: #9bd6ff;
}

.admin-daily-top__badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.15);
    color: #ffd666;
    font-size: 12px;
    font-weight: 600;
}

.admin-daily-top__queue {
    margin-bottom: 28px;
}

.admin-daily-top__queue-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-daily-top__queue-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #e9f5ff;
}

.admin-daily-top__queue-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    margin-left: 8px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(0, 119, 255, 0.22);
    color: #9bd6ff;
    font-size: 14px;
    font-weight: 700;
    vertical-align: middle;
}

.admin-daily-top__clear-btn {
    padding: 8px 14px;
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-daily-top__clear-btn:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.65);
}

.admin-daily-top__clear-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.admin-daily-top__empty-list {
    margin: 0;
    padding: 18px 16px;
    border-radius: 12px;
    border: 1px dashed rgba(105, 213, 255, 0.28);
    background: rgba(8, 16, 32, 0.55);
    color: #94a3b8;
    text-align: center;
}

.admin-daily-top__grid-wrap {
    overflow-x: auto;
    padding-bottom: 4px;
}

.admin-daily-top__grid {
    display: grid;
    grid-template-columns: repeat(var(--daily-top-cols, 10), minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.admin-daily-top-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid rgba(105, 213, 255, 0.22);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(14, 24, 44, 0.95) 0%, rgba(8, 16, 32, 0.88) 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}

.admin-daily-top-card:hover {
    border-color: rgba(105, 213, 255, 0.42);
    transform: translateY(-2px);
}

.admin-daily-top-card--removing {
    opacity: 0;
    transform: scale(0.96);
}

.admin-daily-top-card--manual {
    border-color: rgba(167, 139, 250, 0.45);
}

.admin-daily-top-card--auto {
    border-color: rgba(59, 130, 246, 0.35);
}

.admin-daily-top-card__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 4;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fca5a5;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-daily-top-card__remove:hover {
    background: rgba(239, 68, 68, 0.85);
    color: #fff;
}

.admin-daily-top-card__rank {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(0, 119, 255, 0.92);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.admin-daily-top-card--manual .admin-daily-top-card__rank {
    background: rgba(124, 58, 237, 0.92);
}

.admin-daily-top-card__source-badge {
    display: none;
}

.admin-daily-top-card__media {
    position: relative;
    aspect-ratio: 3 / 4;
    background: #111827;
    height: 200px;
}

.admin-daily-top-card__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 16, 32, 0.88) 100%);
    pointer-events: none;
}

.admin-daily-top-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-daily-top-card__score {
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 2;
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(0, 119, 255, 0.88);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.admin-daily-top-card--manual .admin-daily-top-card__score {
    background: rgba(124, 58, 237, 0.88);
}

.admin-daily-top-card__no-image {
    display: grid;
    place-items: center;
    height: 100%;
    color: #94a3b8;
    font-size: 14px;
}

.admin-daily-top-card__body {
    padding: 8px;
}

.admin-daily-top-card__author-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 6px;
    padding: 6px 7px;
    border-radius: 8px;
    background: rgba(105, 213, 255, 0.08);
    border: 1px solid rgba(105, 213, 255, 0.16);
}

.admin-daily-top-card--manual .admin-daily-top-card__author-block {
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.22);
}

.admin-daily-top-card__author-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.admin-daily-top-card__author-name {
    font-size: 11px;
    font-weight: 600;
    color: #e9f5ff;
    text-decoration: none;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-daily-top-card__author-name:hover {
    color: #9bd6ff;
}

.admin-daily-top-card__title {
    margin: 0 0 6px;
    font-size: 12px;
    color: #f8fafc;
}

.admin-daily-top-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

.admin-daily-top-card__chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 600;
}

.admin-daily-top-card__chip--category {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-daily-top-card__meta,
.admin-daily-top-card__author {
    margin: 0 0 8px;
    font-size: 13px;
    color: #b8c9e6;
}

.admin-daily-top-card__author a {
    color: #9bd6ff;
}

.admin-daily-top-card__text {
    margin: 0;
    padding-top: 6px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    font-size: 10px;
    line-height: 1.4;
    color: #dbe8ff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-daily-top__runners {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(105, 213, 255, 0.12);
}

.admin-daily-top__runners-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.admin-daily-top__runners-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #cbd5e1;
}

.admin-daily-top__runners-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(105, 213, 255, 0.12);
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
}

.admin-daily-top__runners-hint {
    margin: 0 0 12px;
    font-size: 12px;
    color: #64748b;
}

.admin-daily-top__runners-empty {
    margin: 8px 0 0;
    font-size: 12px;
    color: #64748b;
}

.admin-daily-top__runners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 10px;
}

.admin-daily-top-runner {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(105, 213, 255, 0.12);
    background: rgba(8, 16, 32, 0.55);
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.admin-daily-top-runner:hover {
    border-color: rgba(105, 213, 255, 0.28);
    background: rgba(8, 16, 32, 0.72);
    transform: translateY(-1px);
}

.admin-daily-top-runner__media {
    position: relative;
    aspect-ratio: 1;
    background: rgba(15, 23, 42, 0.8);
    overflow: hidden;
}

.admin-daily-top-runner__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-daily-top-runner__no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 11px;
    color: #64748b;
}

.admin-daily-top-runner__score {
    position: absolute;
    right: 6px;
    bottom: 6px;
    min-width: 28px;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.82);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.admin-daily-top-runner__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px 10px;
    min-width: 0;
}

.admin-daily-top-runner__id {
    align-self: flex-start;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-daily-top-runner__author {
    margin: 0;
    font-size: 11px;
    color: #9bd6ff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-daily-top-runner__author a {
    color: inherit;
    text-decoration: none;
}

.admin-daily-top-runner__author a:hover {
    text-decoration: underline;
}

.admin-daily-top-runner__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 10px;
    color: #64748b;
}

.admin-daily-top-runner__add {
    margin-top: 4px;
    width: 100%;
    min-height: 30px;
    padding: 6px 10px;
    font-size: 12px;
}

.admin-daily-top__actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.admin-daily-top__publish-btn {
    min-width: 220px;
    padding: 12px 18px;
    font-size: 15px;
}

.admin-daily-top__hint {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.flash--success {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
}

.flash--error {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
}

.compact-btn {
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.3;
    border-radius: 8px;
    white-space: nowrap;
}

.admin-link--compact {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 8px;
}

.admin-toast-stack {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100vw - 28px));
    pointer-events: none;
}

.admin-job-toast {
    pointer-events: auto;
    border-radius: 12px;
    border: 1px solid var(--neon-border);
    background: rgba(8, 17, 38, 0.96);
    box-shadow: 0 12px 32px rgba(1, 4, 13, 0.55), 0 0 18px rgba(105, 213, 255, 0.12);
    overflow: hidden;
    animation: adminToastIn 0.2s ease;
}

.admin-job-toast[hidden] {
    display: none;
}

.admin-job-toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px 6px;
}

.admin-job-toast-title {
    font-size: 13px;
    color: #e9f5ff;
}

.admin-job-toast-close {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: rgba(233, 245, 255, 0.75);
    font-size: 18px;
    line-height: 1;
}

.admin-job-toast-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-job-toast-body {
    padding: 0 12px 12px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--neon-text);
    word-break: break-word;
}

.admin-job-toast--loading {
    border-color: rgba(105, 213, 255, 0.45);
}

.admin-job-toast--success {
    border-color: rgba(92, 220, 155, 0.45);
}

.admin-job-toast--success .admin-job-toast-title {
    color: #b8f5d4;
}

.admin-job-toast--error {
    border-color: rgba(255, 120, 120, 0.5);
}

.admin-job-toast--error .admin-job-toast-title {
    color: #ffb8b8;
}

@keyframes adminToastIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .admin-header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-header-actions {
        justify-content: flex-start;
    }

    .admin-toast-stack {
        left: 14px;
        right: 14px;
        width: auto;
    }
}

/* Admin: full width */
body.admin-body .container--admin {
    width: 100%;
    max-width: none;
    padding-left: 14px;
    padding-right: 14px;
}

/* Gallery: full width + fixed chrome */
body.gallery-body {
    --gallery-header-h: 64px;
    --gallery-footer-h: 56px;
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: var(--gallery-header-h);
    padding-bottom: var(--gallery-footer-h);
}

body.gallery-body .container--gallery {
    width: 100%;
    max-width: none;
    padding-left: 14px;
    padding-right: 14px;
}

.site-header-link {
    color: inherit;
    text-decoration: none;
}

.site-header-link:hover {
    color: #e9d5ff;
}

/* Top / bottom bars (gallery public pages) */
body.gallery-body .site-header {
    display: none;
}

.site-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background: #080b12;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-topbar-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav actions";
    align-items: center;
    gap: 20px;
    min-height: 64px;
    padding: 10px 14px;
}

.site-brand {
    grid-area: brand;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    min-width: 0;
}

.site-brand-logo {
    display: block;
    width: auto;
    height: 38px;
    max-width: min(240px, 42vw);
    object-fit: contain;
    object-position: left center;
}

.site-brand-fallback {
    display: none;
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 4.5vw, 1.45rem);
    line-height: 1.2;
    text-align: center;
    color: var(--neon-title, #dbe8ff);
}

.site-brand.site-brand--text .site-brand-logo {
    display: none;
}

.site-brand.site-brand--text .site-brand-fallback {
    display: block;
    width: 100%;
}

.site-topnav {
    grid-area: nav;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 22px;
    min-width: 0;
}

.site-topnav-link {
    position: relative;
    padding: 6px 0;
    color: #e8edf7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.site-topnav-link:hover {
    color: var(--neon-accent);
}

.site-topnav-link.is-active {
    color: var(--neon-accent);
}

.site-topnav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--neon-accent);
    border-radius: 999px;
}

.site-topbar-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.site-suggest-group-btn {
    border: 1px solid rgb(251 160 0 / 45%);
    border-radius: 999px;
    background: #a96d00;
    color: #f8fbff;
    padding: 9px 14px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.site-suggest-group-btn:hover {
    border-color: #fff;
    box-shadow: 0 6px 18px rgb(251 173 3 / 38%);
    transform: translateY(-1px);
}

.site-vk-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: linear-gradient(135deg, #0077ff 0%, #005bd1 100%);
    color: #fff;
    padding: 9px 14px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 119, 255, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.site-vk-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #1a86ff 0%, #0066e0 100%);
    box-shadow: 0 6px 18px rgba(0, 119, 255, 0.38);
    transform: translateY(-1px);
}

.site-vk-btn__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.site-topbar-social {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.site-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #dbe8ff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.site-social-link:hover {
    color: var(--neon-accent);
    border-color: rgba(105, 213, 255, 0.45);
    background: rgba(105, 213, 255, 0.08);
}

.site-social-link svg {
    width: 15px;
    height: 15px;
}

.site-bottombar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #080b12;
}

.site-bottombar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    min-height: 56px;
    padding: 14px;
    color: #8b97ad;
    font-size: 13px;
}

.site-bottombar-copy,
.site-bottombar-rights {
    margin: 0;
}

.gallery-footer {
    margin-top: 28px;
    margin-bottom: 32px;
    padding: 18px 14px 22px;
    border-top: 1px solid rgba(105, 213, 255, 0.2);
}

.gallery-footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 14px;
}

.gallery-articles-section {
    margin-top: 8px;
    margin-bottom: 32px;
    padding: 24px 22px 28px;
    border-radius: 16px;
    border: 1px solid var(--neon-border);
    background: rgba(8, 17, 38, 0.82);
    box-shadow: 0 12px 32px rgba(1, 4, 13, 0.35);
    color: var(--neon-text);
}

.gallery-articles-header h2 {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.2vw, 1.75rem);
    font-weight: 400;
    color: var(--neon-title);
}

.gallery-articles-header p {
    margin: 0 0 20px;
    color: #c7d2fe;
    font-size: 0.95rem;
}

.gallery-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.article-card {
    margin: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card-link {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 100%;
    border: 1px solid rgba(105, 213, 255, 0.22);
    border-radius: 14px;
    background: rgba(11, 18, 32, 0.72);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.article-card-link:hover {
    border-color: rgba(105, 213, 255, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(1, 4, 13, 0.35);
}

.article-card-media {
    aspect-ratio: 16 / 10;
    background: rgba(8, 17, 38, 0.9);
    border-bottom: 1px solid rgba(105, 213, 255, 0.12);
}

.article-card-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-cover--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(45, 83, 146, 0.45), rgba(88, 28, 135, 0.35));
    color: #dbeafe;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.article-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 8px;
    padding: 14px 16px 16px;
    min-height: 0;
}

.article-card-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.35;
    color: #e9f5ff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-date {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #94a3b8;
}

.article-card-excerpt {
    margin: 0;
    flex: 1 1 auto;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #94a3b8;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-more {
    margin-top: auto;
    padding-top: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--neon-accent);
}

.article-card-link--admin {
    cursor: default;
}

.article-card-link--admin:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(105, 213, 255, 0.22);
}

.article-card-badge {
    align-self: flex-start;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.article-card-badge--draft {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.article-card-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.admin-articles-list-lead {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

.gallery-footer-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #c4b5fd;
}

.gallery-footer-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip--footer {
    font-size: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.gallery-copyright {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.filter-chip--article {
    border-style: dashed;
}

.modal-content--suggest-group {
    width: min(640px, 94vw);
}

.modal--create-post {
    z-index: 250;
}

.modal-content--create-post {
    width: min(640px, 94vw);
    max-height: 92vh;
    overflow: auto;
}

.modal-content--create-post .modal-body {
    overflow: visible;
}

.create-post-rules {
    margin-bottom: 20px;
}

.create-post-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.create-post-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.92rem;
    color: #dbe8ff;
}

.create-post-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--neon-border);
    border-radius: 10px;
    background: #0b1220;
    color: var(--text);
    padding: 11px 12px;
    font: inherit;
    line-height: 1.5;
    resize: vertical;
    min-height: 140px;
}

.create-post-field textarea::placeholder {
    color: #64748b;
}

.create-post-field--file input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px dashed rgb(130 170 255 / 42%);
    border-radius: 10px;
    background: rgb(11 18 32 / 72%);
    color: #b8c7e6;
    padding: 10px 12px;
    font: inherit;
    cursor: pointer;
}

.create-post-field--file input[type="file"]::file-selector-button {
    margin-right: 12px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    padding: 8px 14px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.create-post-categories {
    margin: 0;
    padding: 14px 14px 12px;
    border: 1px solid rgb(130 170 255 / 28%);
    border-radius: 12px;
    background: rgb(4 10 24 / 55%);
}

.create-post-categories legend {
    padding: 0 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.create-post-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.create-post-form .create-post-category-chip,
.create-post-form .category-chip.create-post-category-chip {
    background: rgb(15 23 42 / 88%);
    color: #c7d6f8;
    border: 1px solid rgb(130 170 255 / 32%);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.86rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.create-post-form .create-post-category-chip:hover,
.create-post-form .category-chip.create-post-category-chip:hover {
    border-color: rgb(105 213 255 / 55%);
    box-shadow: 0 0 10px rgb(105 213 255 / 12%);
}

.create-post-form .create-post-category-chip.selected,
.create-post-form .category-chip.create-post-category-chip.selected {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border-color: #6366f1;
    box-shadow: 0 0 14px rgb(99 102 241 / 28%);
}

.create-post-form .suggest-group-actions {
    margin-top: 4px;
}

.suggest-group-lead {
    margin: 0 0 14px;
    color: #dbe8ff;
    line-height: 1.6;
    font-size: 0.95rem;
}

.suggest-group-rules {
    margin: 0 0 18px;
    padding-left: 1.2rem;
    color: #b8c7e6;
    font-size: 0.92rem;
    line-height: 1.55;
}

.suggest-group-rules li + li {
    margin-top: 8px;
}

.suggest-group-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.92rem;
    width: 50%;
    transform: translateX(-50%);
    position: relative;
    left: 50%;
    text-align: center;
}

.suggest-group-form input[type="url"] {
    border: 1px solid var(--neon-border);
    border-radius: 10px;
    background: #0b1220;
    color: var(--text);
    padding: 11px 12px;
    font: inherit;
}

.suggest-group-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.suggest-group-status {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.92rem;
}

.suggest-group-status.is-success {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
}

.suggest-group-status.is-error {
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
}

.admin-suggestions-panel {
    padding: 20px;
    border: 1px solid var(--neon-border);
    border-radius: 14px;
    background: rgba(8, 17, 38, 0.72);
}

.admin-suggestions-summary {
    margin-bottom: 16px;
    color: #c7d2fe;
}

.admin-suggestions-table-wrap {
    overflow-x: auto;
}

.admin-suggestions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-suggestions-table th,
.admin-suggestions-table td {
    border-bottom: 1px solid rgba(105, 213, 255, 0.15);
    padding: 10px 8px;
    text-align: left;
    vertical-align: middle;
}

.admin-suggestions-table th {
    color: #c4b5fd;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-suggestions-table a {
    color: #93c5fd;
    word-break: break-all;
}

.admin-suggestion-status,
.admin-suggestion-note {
    width: 100%;
    min-width: 140px;
    border: 1px solid var(--neon-border);
    border-radius: 8px;
    background: #0b1220;
    color: var(--text);
    padding: 8px 10px;
    font: inherit;
    font-size: 0.88rem;
}

.admin-suggestions-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-layout {
    display: grid;
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 16px 20px;
    align-items: start;
}

.gallery-sidebar {
    position: sticky;
    top: calc(var(--gallery-header-h, 64px) + 12px);
    align-self: start;
    max-height: calc(100vh - var(--gallery-header-h, 64px) - var(--gallery-footer-h, 56px) - 24px);
    overflow: auto;
    padding-right: 4px;
    z-index: 40;
}

.gallery-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 10px;
    border: 1px solid var(--neon-border);
    border-radius: 12px;
    background: rgba(8, 17, 38, 0.72);
}

.gallery-sidebar-search {
    display: flex;
    margin-bottom: 4px;
}

.gallery-sidebar-search-input {
    width: 100%;
    border: 1px solid var(--neon-border);
    border-radius: 10px;
    background: #0b1220;
    color: var(--text);
    padding: 10px 12px;
    font: inherit;
    font-size: 0.92rem;
}

.gallery-sidebar-search-input::placeholder {
    color: #94a3b8;
}

.gallery-sidebar-search-input:focus {
    outline: none;
    border-color: rgba(105, 213, 255, 0.55);
    box-shadow: 0 0 0 2px rgba(105, 213, 255, 0.15);
}

.gallery-sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.card[hidden] {
    display: none !important;
}

.gallery-sidebar-title {
    margin: 0 0 8px;
    padding: 0 2px 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--neon-text);
    border-bottom: 1px solid rgba(105, 213, 255, 0.15);
}

.gallery-main {
    min-width: 0;
    padding: 20px 5px;
}

.gallery-article {
    margin-top: 8px;
    margin-bottom: 48px;
    padding: 28px 24px 32px;
    border-radius: 16px;
    border: 1px solid var(--neon-border);
    background: rgba(8, 17, 38, 0.82);
    box-shadow: 0 12px 32px rgba(1, 4, 13, 0.35);
    color: var(--neon-text);
    line-height: 1.6;
}

.gallery-article-cover {
    margin: 0 0 20px;
    text-align: center;
}

.gallery-article-cover img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: none;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(105, 213, 255, 0.2);
}

.gallery-article-header h2,
.gallery-article-header h1 {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 400;
    line-height: 1.10;
    color: var(--neon-title);
}

.gallery-article-date {
    display: block;
    margin: 0 0 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #94a3b8;
}

.gallery-article-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(105, 213, 255, 0.18);
}

.gallery-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 20px;
}

.gallery-article-views {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 0.88rem;
    color: #94a3b8;
}

.gallery-article-views-icon {
    display: inline-flex;
    color: #7dd3fc;
}

.gallery-article-share {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.gallery-article-share-label {
    font-size: 0.82rem;
    color: #94a3b8;
    white-space: nowrap;
}

.gallery-article-share-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #e8f0ff;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.article-share-btn:hover {
    transform: translateY(-1px);
    color: #fff;
}

.article-share-btn-text {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
}

.article-share-btn--vk {
    background: rgba(0, 119, 255, 0.18);
    border-color: rgba(0, 119, 255, 0.45);
    color: #8ec5ff;
}

.article-share-btn--ok {
    background: rgba(238, 130, 8, 0.16);
    border-color: rgba(238, 130, 8, 0.42);
    color: #ffbf73;
}

.article-share-btn--max {
    background: rgba(91, 33, 182, 0.2);
    border-color: rgba(167, 139, 250, 0.45);
    color: #ddd6fe;
}

.article-share-btn--telegram {
    background: rgba(38, 165, 228, 0.16);
    border-color: rgba(38, 165, 228, 0.42);
    color: #7dd3fc;
}

.article-share-btn--bip {
    background: rgba(255, 107, 0, 0.16);
    border-color: rgba(255, 107, 0, 0.42);
    color: #fdba74;
}

.gallery-article-views-count {
    font-size: 0.92rem;
    font-weight: 600;
    color: #dbe8ff;
    font-variant-numeric: tabular-nums;
}

.gallery-article-excerpt {
    margin: 0 0 18px;
    color: #c7d2fe;
    font-size: 0.95rem;
}
    margin: 0 0 18px;
    color: #c7d2fe;
    font-size: 0.95rem;
}

.gallery-article-body h3 {
    margin: 28px 0 12px;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--neon-title);
}

.gallery-article-body p {
    margin: 0 0 14px;
    line-height: 1.65;
}

.gallery-article-body ul,
.gallery-article-body ol {
    margin: 0 0 16px;
    padding-left: 1.25rem;
}

.gallery-article-body li {
    margin-bottom: 10px;
}

body.gallery-body .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-bottom: 24px;
}

body.gallery-body .gallery-grid > .card {
    min-width: 0;
    max-width: 100%;
}

body.gallery-body .card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

@media (min-width: 768px) {
    body.gallery-body .gallery-grid {
        gap: 12px;
    }
}

@media (min-width: 961px) {
    body.gallery-body .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 12px;
    }
    body.gallery-body .card img {
    }
    body.gallery-body .card--partner img {
        height: 100%;
    }
}

@media (max-width: 1100px) and (min-width: 961px) {
    body.gallery-body {
        --gallery-header-h: 108px;
    }

    .site-topbar-inner {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "brand actions"
            "nav nav";
    }

    .site-brand {
        grid-area: brand;
    }

    .site-topnav {
        grid-area: nav;
        justify-content: flex-start;
        gap: 4px 16px;
        padding-top: 4px;
    }

    .site-topbar-actions {
        grid-area: actions;
        justify-self: end;
    }

    .site-topbar-social {
        grid-area: social;
        justify-self: end;
    }
}

@media (min-width: 961px) {
    body.gallery-body {
        padding-top: var(--gallery-header-h);
    }

    .site-topbar {
        position: fixed;
    }

    .site-brand-logo {
        width: auto;
        max-width: min(240px, 42vw);
        height: 38px;
        min-height: 0;
        max-height: none;
        margin: 0;
        object-position: left center;
    }

    .site-suggest-group-btn {
        width: auto;
        max-width: none;
        margin: 0;
        white-space: nowrap;
    }

    .gallery-sidebar {
        position: sticky;
        top: calc(var(--gallery-header-h, 64px) + 12px);
        width: auto;
        max-width: none;
        overflow: auto;
    }

    .gallery-sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: auto;
        max-width: none;
        min-width: 0;
        overflow: visible;
        padding: 12px 10px;
    }

    .gallery-sidebar-categories {
        display: flex;
        flex-direction: column;
        gap: 6px;
        flex-wrap: nowrap;
        overflow: visible;
    }

    .gallery-sidebar-search {
        display: flex;
        width: auto;
        max-width: none;
    }

    .gallery-sidebar-nav .filter-chip,
    .gallery-sidebar-nav .filter-chip--sidebar {
        display: flex;
        width: 100%;
        max-width: none;
        border-radius: 8px;
        padding: 7px 11px 5px;
        font-size: 14px;
        white-space: normal;
    }

    .gallery-sidebar-nav .filter-chip-count {
        margin-left: auto;
        font-size: 0.82em;
    }
}

@media (max-width: 960px) {
    body.gallery-body {
        --gallery-footer-h: 72px;
        padding-top: 0;
    }

    .site-topbar {
        position: sticky;
        top: 0;
    }

    .site-topbar-inner {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        min-height: 0;
        padding: 12px 14px 14px;
    }
   
    .site-brand {
        width: 100%;
        justify-content: center;
    }

    .site-brand-logo {width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 40px;
        max-height: 70px;
        object-fit: contain;
        object-position: center center;
        margin: 10px 0;
    }

    .site-topbar-actions {
        width: 100%;
        justify-content: stretch;
    }

    .site-suggest-group-btn {
        width: 60%;
        max-width: none;
        font-size: 12px;
        padding: 10px 14px;
        white-space: normal;
        text-align: center;
        margin: 0px auto 10px;
    }

    .site-topnav {
        width: 100%;
        justify-content: center;
        gap: 8px 20px;
        padding-top: 0;
    }

    .site-topnav-link {
        font-size: 13px;
    }

    .gallery-footer-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .gallery-main {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 8px 0 20px;
        overflow: hidden;
    }

    .gallery-sidebar {
        position: static;
        top: auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        max-height: none;
        overflow: hidden;
        padding-right: 0;
        z-index: auto;
    }

    .gallery-sidebar-nav {
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 10px 8px;
        overflow: hidden;
    }

    .gallery-sidebar-search {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-bottom: 0;
    }

    .gallery-sidebar-search-input {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        font-size: 16px;
    }

    body.gallery-body .gallery-grid {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body.gallery-body .card {
        overflow: hidden;
        max-width: 100%;
        border-radius: 12px;
    }

    body.gallery-body .card img {
        max-width: 100%;
    }

    .gallery-sidebar-categories {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .gallery-sidebar-categories::-webkit-scrollbar {
        display: none;
    }

    .gallery-sidebar-title {
        flex: 0 0 100%;
        margin-bottom: 4px;
        padding-bottom: 8px;
    }

    .gallery-sidebar-nav .filter-chip,
    .gallery-sidebar-nav .filter-chip--sidebar {
        display: inline-flex;
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        border-radius: 999px;
        padding: 6px 10px;
        font-size: 11px;
        gap: 5px;
    }

    .gallery-sidebar-nav .filter-chip-count {
        margin-left: 0;
        font-size: 0.78em;
    }

    .gallery-sidebar-nav .filter-chip-label {
        white-space: nowrap;
    }

    body.gallery-body .card-meta {
        padding: 8px;
        font-size: 10px;
        gap: 2px 6px;
    }

    body.gallery-body .card-meta .prompt-number {
        font-size: 11px;
    }

    body.gallery-body .card-meta-date {
        font-size: 10px;
    }

    body.gallery-body .gallery-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.gallery-body .container--gallery {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
        overflow-x: clip;
    }
}

.gallery-landing {
    margin-top: 36px;
    margin-bottom: 48px;
    padding: 28px 24px 32px;
    border-radius: 16px;
    border: 1px solid var(--neon-border);
    background: rgba(8, 17, 38, 0.82);
    box-shadow: 0 12px 32px rgba(1, 4, 13, 0.35);
    color: var(--neon-text);
    line-height: 1.65;
}

.gallery-landing-header h2 {
    margin: 0 0 18px;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 400;
    line-height: 1.35;
    color: var(--neon-title);
    text-align: left;
}

.gallery-landing-body h3 {
    margin: 28px 0 12px;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--neon-title);
}

.gallery-landing-body p {
    margin: 0 0 14px;
}

.gallery-landing-list,
.gallery-landing-steps {
    margin: 0 0 16px;
    padding-left: 1.25rem;
}

.gallery-landing-list li,
.gallery-landing-steps li {
    margin-bottom: 10px;
}

.gallery-landing-cta {
    margin-top: 18px;
    font-size: 1.05rem;
    color: var(--neon-title);
}

.gallery-landing-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgb(255 255 255 / 26%);
    background: rgb(47 111 176 / 88%);
    color: #e9f5ff;
    text-decoration: none;
    font-weight: 700;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.gallery-landing-cta-link:hover {
    border-color: rgba(255, 255, 255, 80%);
    box-shadow: 0 0 12px rgba(105, 213, 255, 0.18);
    color: #fff;
}

.bots_links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 18px;
}

.bots_links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgb(255 255 255 / 26%);
    background: rgb(255 72 72 / 88%);
    color: #e9f5ff;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.3;
    white-space: nowrap;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.bots_links a:hover {
    border-color: rgba(255, 255, 255, 80%);
    box-shadow: 0 0 12px rgba(105, 213, 255, 0.18);
}

.admin-toolbar-primary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    flex: 1 1 100%;
    width: 100%;
}

.admin-view-toggle {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 0 0 auto;
}

.admin-search-form {
    display: flex;
    flex: 1 1 320px;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.admin-search-input {
    min-width: min(420px, 100%);
    flex: 1 1 260px;
    border: 1px solid var(--neon-border);
    border-radius: 10px;
    background: rgba(8, 17, 38, 0.82);
    color: #e9f5ff;
    padding: 10px 12px;
}

.admin-search-input::placeholder {
    color: #8ea0c7;
}

.admin-search-input:focus {
    outline: 2px solid rgba(105, 213, 255, 0.35);
    outline-offset: 1px;
}

.admin-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--neon-border);
    background: rgba(8, 17, 38, 0.75);
    color: #e9f5ff;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.admin-view-btn-icon {
    display: block;
    flex-shrink: 0;
}

.admin-view-btn:hover {
    border-color: rgba(105, 213, 255, 0.55);
}

.admin-view-btn.active {
    border-color: rgba(105, 213, 255, 0.85);
    background: linear-gradient(135deg, rgba(45, 83, 146, 0.95), rgba(84, 61, 152, 0.95));
    box-shadow: 0 0 12px rgba(105, 213, 255, 0.28);
}

/* ???????? ????????? */
.admin-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--neon-border);
    background: rgba(8, 17, 38, 0.85);
    color: var(--neon-text);
    font-size: 14px;
}

.admin-bulk-bar[hidden] {
    display: none !important;
}

.admin-bulk-select-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.admin-bulk-count {
    font-weight: 600;
    min-width: 100px;
}

.admin-bulk-mode-label,
.admin-bulk-category-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-bulk-mode-select,
.admin-bulk-category-select {
    min-width: 180px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--neon-border);
    background: rgba(4, 10, 24, 0.9);
    color: #e9f5ff;
    font: inherit;
}

.admin-bulk-status {
    flex: 1 1 160px;
    font-size: 12px;
    color: rgba(233, 245, 255, 0.75);
}

.admin-card-select {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(4, 10, 24, 0.72);
    border: 1px solid rgba(105, 213, 255, 0.45);
    cursor: pointer;
}

.admin-card-select input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #69d5ff;
}

.admin-card--bulk-selected .admin-tile,
.admin-list--edit .admin-card--bulk-selected {
    outline: 2px solid rgba(105, 213, 255, 0.85);
    outline-offset: 2px;
}

/* Compact admin */
.admin-list {
    gap: 10px;
}

.admin-card {
    position: relative;
    display: block;
    overflow: visible;
    background: rgba(255, 255, 255, 0.97);
    color: var(--text-dark);
    border-radius: 12px;
    border: 1px solid var(--border);
    min-width: 0;
}

/* ????? ?????????: ?????? */
.admin-list--grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.admin-list--grid .admin-card {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.admin-list--grid .admin-card-editor {
    display: none !important;
}

.admin-tile-shell {
    position: relative;
}

.admin-tile-image-wrap,
.admin-card-editor-thumb-wrap {
    position: relative;
}

.admin-tile-views {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(8, 17, 38, 0.88);
    border: 1px solid rgba(105, 213, 255, 0.35);
    color: #e9f5ff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(1, 4, 13, 0.35);
}

.admin-tile-views-icon {
    flex: 0 0 auto;
    opacity: 0.9;
}

.admin-tile-views-count {
    min-width: 0;
}

.admin-tile-recache {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(105, 213, 255, 0.45);
    border-radius: 999px;
    background: rgba(8, 17, 38, 0.92);
    color: #e9f5ff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(1, 4, 13, 0.35);
}

.admin-tile-recache:hover:not(:disabled) {
    border-color: rgba(105, 213, 255, 0.75);
    color: var(--neon-accent);
}

.admin-tile-recache:disabled {
    opacity: 0.6;
    cursor: wait;
}

.admin-tile-shell.is-image-error .admin-tile {
    border-color: rgba(255, 120, 120, 0.45);
}

.admin-tile {
    all: unset;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--neon-border);
    background: var(--neon-card);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(1, 4, 13, 0.35);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(105, 213, 255, 0.55);
    box-shadow: 0 12px 28px rgba(1, 7, 24, 0.45), 0 0 14px rgba(105, 213, 255, 0.18);
}

.admin-tile img,
.admin-tile-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    background: rgba(8, 17, 38, 0.55);
    height: auto;
}

.admin-tile-img.is-loading {
    opacity: 0.45;
}

.admin-tile-img.is-error {
    opacity: 0.25;
    outline: 1px dashed rgba(255, 120, 120, 0.55);
}

.admin-tile-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px 6px;
    padding: 8px 10px;
    font-size: 12px;
    color: #d0ddff;
    background: rgba(8, 17, 38, 0.88);
}

.admin-tile-meta .prompt-number {
    font-weight: 700;
    color: var(--neon-accent);
}

.admin-tile-date {
    color: #b6c6ea;
    white-space: nowrap;
}

.admin-tile-categories {
    flex: 1 1 100%;
    font-size: 11px;
    line-height: 1.3;
    color: #9eb8e8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ????? ??????????????: ?????? */
.admin-list--edit {
    grid-template-columns: 1fr;
}

.admin-list--edit .admin-tile-shell {
    display: none;
}

.admin-list--edit .admin-card {
    padding: 10px;
}

.admin-list--edit .admin-card-editor {
    display: grid;
    grid-template-columns: 240px 1fr;
    align-items: start;
    gap: 12px;
    width: 100%;
}

.admin-list--edit .admin-card-actions [data-close-edit] {
    display: none;
}

.admin-card-editor-thumb-wrap {
    width: 100px;
    flex: 0 0 100px;
}

.admin-card-editor-thumb {
    width: 100%;
    max-height: 350px;
    height: auto !important;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: rgba(8, 17, 38, 0.12);
}

.admin-card-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.admin-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
}

.admin-card-meta .prompt-number {
    font-weight: 700;
    color: var(--neon-accent);
    letter-spacing: 0.02em;
}

.admin-card-form .field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: #1f2937;
}

.admin-card-form .field span {
    font-weight: 600;
}

.admin-card-form textarea,
.admin-card-form input[type="url"],
.admin-card-form input[type="file"] {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 7px 9px;
    font: inherit;
    font-size: 13px;
}

.admin-card-form textarea {
    resize: vertical;
    min-height: 250px;
}

.category-chips {
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    padding: 8px 10px;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.category-chips legend {
    font-size: 11px;
    color: #4b5563;
    padding: 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.category-chip input {
    display: none;
}

.category-chip:hover {
    border-color: #c7d2fe;
}

.category-chip.selected {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border-color: #4338ca;
}

.admin-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.autosave-status {
    margin-left: auto;
    font-size: 12px;
    color: var(--muted);
}

.autosave-status[data-kind="ok"] {
    color: #16a34a;
}

.autosave-status[data-kind="pending"] {
    color: #2563eb;
}

.autosave-status[data-kind="error"] {
    color: #dc2626;
}

/* ????????? ?????????????? (?? ?????? ??????) */
.admin-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
}

.admin-edit-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.admin-edit-modal-panel {
    position: relative;
    z-index: 1;
    margin: 4vh auto;
    width: min(1100px, 96vw);
    max-height: 92vh;
    overflow: auto;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text-dark);
    border-radius: 14px;
    padding: 16px 18px 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.admin-edit-modal-close {
    position: absolute;
    right: 10px;
    top: 8px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.admin-edit-modal-title {
    margin: 0 32px 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.admin-edit-modal-body .admin-card-editor {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 12px;
    align-items: start;
}

.admin-edit-modal-body .admin-card-editor-thumb {
    width: 220px;
    max-height: 450px;
}

@media (max-width: 840px) {
    .admin-list--edit .admin-card-editor,
    .admin-edit-modal-body .admin-card-editor {
        grid-template-columns: 1fr;
    }

    .admin-card-editor-thumb,
    .admin-edit-modal-body .admin-card-editor-thumb {
        width: 100%;
        max-height: 220px;
    }

    .admin-list--grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

/* Admin articles editor */
.admin-articles-editor,
.admin-articles-list {
    margin-bottom: 28px;
}

.admin-articles-list.gallery-articles-section {
    margin-bottom: 28px;
}

.admin-articles-list .admin-section-heading h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.2vw, 1.75rem);
    font-weight: 400;
    color: var(--neon-title);
}

.admin-articles-editor {
    padding: 20px;
    border: 1px solid var(--neon-border);
    border-radius: 14px;
    background: rgba(8, 17, 38, 0.72);
}

.admin-articles-editor h2,
.admin-articles-list h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--neon-title);
}

.admin-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.admin-article-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-article-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
}

.admin-article-form input[type="text"],
.admin-article-form input[type="number"],
.admin-article-form textarea {
    border: 1px solid var(--neon-border);
    border-radius: 10px;
    background: #0b1220;
    color: var(--text);
    padding: 10px 12px;
    font: inherit;
}

.admin-article-form textarea {
    min-height: 280px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
}

.admin-article-content-label .tox-tinymce {
    border-radius: 10px;
    border: 1px solid var(--neon-border);
    overflow: hidden;
    min-height: 420px;
}

.admin-article-content-label .tox .tox-editor-header {
    border-bottom: 1px solid rgba(105, 213, 255, 0.15);
}

.admin-article-content-label .tox .tox-edit-area__iframe {
    background: #ffffff;
}

.admin-article-content-label textarea#articleContent {
    display: none;
}

.admin-field-hint {
    font-size: 0.8rem;
    color: #94a3b8;
}

.admin-article-cover {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-article-cover-preview img {
    display: block;
    max-width: 320px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--neon-border);
}

.admin-article-cover-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-article-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.admin-article-checkbox {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
    margin: 0;
    cursor: pointer;
}

.admin-article-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
}

.admin-article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-articles-table-wrap {
    overflow-x: auto;
}

.admin-articles-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-articles-table th,
.admin-articles-table td {
    border-bottom: 1px solid rgba(105, 213, 255, 0.15);
    padding: 10px 8px;
    text-align: left;
    vertical-align: middle;
}

.admin-articles-table th {
    color: #c4b5fd;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-articles-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    white-space: nowrap;
}

.admin-view-btn--ai {
    width: auto;
    min-width: 36px;
    padding: 0 10px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: #e9f5ff;
}

.admin-view-btn--ai:hover {
    border-color: rgba(105, 213, 255, 0.55);
    color: #ffffff;
}

.admin-view-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.admin-bulk-text-panel {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--neon-border);
    background: rgba(8, 17, 38, 0.85);
}

.admin-bulk-text-source {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    margin-bottom: 14px;
}

.admin-bulk-text-source-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.admin-bulk-text-source-name {
    color: #e9f5ff;
    font-size: 16px;
}

.admin-bulk-text-source-count {
    font-size: 13px;
    color: #94a3b8;
}

.admin-bulk-text-change-source {
    font-size: 12px;
    color: #93c5fd;
    text-decoration: none;
}

.admin-bulk-text-change-source:hover {
    text-decoration: underline;
}

.admin-bulk-text-pick-title {
    margin: 0 0 14px;
    font-size: 18px;
    color: #e9f5ff;
}

.admin-bulk-text-pick-form {
    max-width: 560px;
}

.admin-bulk-text-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(105, 213, 255, 0.35);
    background: rgba(4, 10, 24, 0.9);
    color: #e9f5ff;
    font: inherit;
}

.admin-bulk-text-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--neon-text);
}

.admin-bulk-text-snippet {
    width: 100%;
    min-height: 140px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(105, 213, 255, 0.35);
    background: rgba(4, 10, 24, 0.9);
    color: #e9f5ff;
    font: inherit;
    line-height: 1.45;
    resize: vertical;
}

.admin-bulk-text-snippet:focus {
    outline: none;
    border-color: rgba(105, 213, 255, 0.75);
    box-shadow: 0 0 0 2px rgba(105, 213, 255, 0.18);
}

.admin-bulk-text-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.admin-bulk-text-status {
    font-size: 13px;
    color: #94a3b8;
}

.admin-bulk-text-status[data-kind="ok"] {
    color: #4ade80;
}

.admin-bulk-text-status[data-kind="error"] {
    color: #f87171;
}

.admin-bulk-text-match-count {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.admin-bulk-text-match-count[data-kind="ok"] {
    color: #facc15;
}

.admin-bulk-text-match-count[data-kind="warn"] {
    color: #94a3b8;
}

.admin-bulk-text-match-count[data-kind="error"] {
    color: #f87171;
}

.admin-bulk-text-match-count[data-kind="pending"] {
    color: #93c5fd;
}

.admin-bulk-text-legend {
    margin: 12px 0 0;
    font-size: 12px;
    color: #94a3b8;
}

.admin-bulk-text-legend-item {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.admin-bulk-text-legend-item--pending {
    background: rgba(59, 130, 246, 0.22);
    border: 1px solid rgba(96, 165, 250, 0.55);
    color: #bfdbfe;
}

.admin-bulk-text-legend-item--match {
    background: rgba(234, 179, 8, 0.22);
    border: 1px solid rgba(250, 204, 21, 0.55);
    color: #fef08a;
}

.admin-bulk-text-legend-item--changed {
    background: rgba(34, 197, 94, 0.22);
    border: 1px solid rgba(74, 222, 128, 0.55);
    color: #bbf7d0;
}

.admin-bulk-text-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-bulk-text-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(96, 165, 250, 0.45);
    background: rgba(59, 130, 246, 0.18);
    color: #dbeafe;
    font-size: 12px;
    line-height: 1.2;
}

.admin-bulk-text-item.is-match,
.admin-bulk-text-item[data-status="match"] {
    border-color: rgba(250, 204, 21, 0.6);
    background: rgba(234, 179, 8, 0.24);
    color: #fef9c3;
}

.admin-bulk-text-item.is-changed,
.admin-bulk-text-item[data-status="changed"] {
    border-color: rgba(74, 222, 128, 0.55);
    background: rgba(34, 197, 94, 0.22);
    color: #dcfce7;
}

.admin-bulk-text-item-id {
    font-weight: 700;
}

.admin-bulk-text-item-date {
    color: inherit;
    opacity: 0.9;
    font-size: 11px;
}

.admin-refresh-comments-panel {
    max-width: 760px;
}

.admin-refresh-comments-intro {
    margin: 0 0 16px;
    color: #cbd5e1;
    line-height: 1.5;
}

.admin-refresh-comments-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--neon-text);
    font-size: 14px;
}

.admin-refresh-comments-summary {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(74, 222, 128, 0.35);
    background: rgba(34, 197, 94, 0.12);
    color: #dcfce7;
    line-height: 1.6;
}

.admin-refresh-comments-log {
    margin-top: 14px;
    max-height: 320px;
    overflow: auto;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(105, 213, 255, 0.25);
    background: rgba(4, 10, 24, 0.92);
    color: #cbd5e1;
    font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre-wrap;
}

/* Admin settings */
.admin-settings-page {
    max-width: 1100px;
}

.admin-settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.admin-settings-tab {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--neon-border);
    background: rgba(8, 17, 38, 0.72);
    color: var(--neon-text);
    text-decoration: none;
    font-size: 14px;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.admin-settings-tab:hover {
    border-color: rgba(105, 213, 255, 0.45);
    color: #fff;
}

.admin-settings-tab.is-active {
    border-color: rgba(105, 213, 255, 0.75);
    background: linear-gradient(135deg, rgba(45, 83, 146, 0.9), rgba(84, 61, 152, 0.9));
    color: #fff;
}

.admin-settings-section {
    margin-bottom: 32px;
    padding: 20px 18px 24px;
    border: 1px solid var(--neon-border);
    border-radius: 14px;
    background: rgba(8, 17, 38, 0.72);
}

.admin-settings-section h2 {
    margin: 0 0 16px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--neon-title);
}

.admin-settings-form {
    display: grid;
    gap: 12px;
    max-width: 640px;
}

.admin-settings-form label {
    display: grid;
    gap: 6px;
    color: var(--neon-text);
    font-size: 14px;
}

.admin-settings-form input[type="text"],
.admin-settings-form input[type="password"],
.admin-settings-form input[type="number"] {
    width: 100%;
    border: 1px solid var(--neon-border);
    border-radius: 8px;
    background: #0b1220;
    color: var(--text);
    padding: 9px 11px;
    font: inherit;
}

.admin-settings-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 18px;
}

.admin-settings-inline-form--wide {
    max-width: none;
}

.admin-settings-inline-form label {
    display: grid;
    gap: 6px;
    color: var(--neon-text);
    font-size: 14px;
    min-width: 160px;
    flex: 1 1 180px;
}

.admin-settings-inline-form input[type="text"] {
    border: 1px solid var(--neon-border);
    border-radius: 8px;
    background: #0b1220;
    color: var(--text);
    padding: 9px 11px;
    font: inherit;
}

.admin-settings-checkbox {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    min-width: auto !important;
    flex: 0 0 auto;
}

.admin-settings-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.admin-settings-list-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(105, 213, 255, 0.2);
    background: rgba(4, 10, 24, 0.55);
}

.admin-settings-list-item.is-dragging {
    opacity: 0.55;
    border-color: rgba(125, 211, 252, 0.65);
}

.admin-settings-grip {
    cursor: grab;
    color: #94a3b8;
    user-select: none;
}

.admin-settings-row-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-settings-row-form input[type="text"] {
    min-width: 120px;
    flex: 1 1 140px;
    border: 1px solid var(--neon-border);
    border-radius: 8px;
    background: #0b1220;
    color: var(--text);
    padding: 8px 10px;
    font: inherit;
}

.admin-settings-promo-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(105, 213, 255, 0.28);
}

.admin-settings-promo-stats {
    min-width: 88px;
    color: #93c5fd;
    font-size: 13px;
    white-space: nowrap;
}

.admin-settings-slug-input {
    max-width: 160px;
    font-family: ui-monospace, monospace;
    font-size: 0.9rem;
}

.admin-settings-meta {
    grid-column: 2;
    font-size: 0.85rem;
    color: #94a3b8;
}

.admin-settings-delete-btn {
    color: #fca5a5;
}

#settingsFlash.is-error {
    background: rgba(220, 38, 38, 0.18);
    color: #fecaca;
}

#settingsFlash.is-success {
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
}

/* sandbox-prompts: ?????? ?????????? ???????? */
.catalog-search__hint { margin: 0.15rem 0 0; color: rgba(244,247,255,0.72); font-size: 0.85rem; }
.card[hidden] { display: none !important; }
.site-main:has(.prompt-page),
.site-main:has(.empty-state-page) { display: block; }

/* sandbox: список статей (не путать с .article-card галереи) */
.articles-list { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
.articles-list .article-card {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 1rem;
  background: rgba(12, 24, 52, 0.82);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  overflow: hidden;
  height: auto;
}
.article-card__media img,
.article-page__cover img {
  display: block; width: 100%; height: auto; object-fit: cover;
}
.article-card__body { padding: 1rem 1rem 1rem 0; }
.article-card__title { margin: 0 0 0.5rem; font-size: 1.25rem; }
.article-card__excerpt { color: rgba(244,247,255,0.72); line-height: 1.45; }
.article-page__cover { margin: 1rem 0 1.25rem; border-radius: 12px; overflow: hidden; }
.article-page__content { line-height: 1.6; }
.article-page__content img { max-width: 100%; height: auto; }
@media (max-width: 700px) {
  .articles-list .article-card { grid-template-columns: 1fr; }
  .article-card__body { padding: 0 1rem 1rem; }
}

/* sandbox: full-page prompt ? ?? ???????????? .modal-content (??? absolute overlay) */
.prompt-sheet {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  margin: 0 auto 28px;
  width: 100%;
  max-width: 1100px;
  max-height: none;
  display: block;
  background: linear-gradient(165deg, rgba(12, 24, 52, 0.97), rgba(8, 16, 36, 0.98));
  color: var(--neon-title, #dbe8ff);
  border: 2px solid rgb(233 240 255 / 36%);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  overflow: visible;
  z-index: 1;
}
.prompt-sheet .modal-body {
  overflow: visible;
  max-height: none;
}
.prompt-sheet .modal-image-wrap {
  max-height: min(70vh, 640px);
}
.prompt-sheet .modal-image-wrap img {
  max-height: min(70vh, 640px);
}
.modal-description--prompt {
  white-space: pre-wrap;
  max-height: 42vh;
  overflow: auto;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 10px;
  padding: 12px 14px;
}
.prompt-detail .breadcrumbs {
  margin: 0 0 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #9eb8e8;
  font-size: 13px;
}
.prompt-detail .breadcrumbs a {
  color: #c4b5fd;
  text-decoration: none;
}

/* sidebar: ?????? ?????????????? ?? ??????? ???????, ???????? */
@media (min-width: 961px) {
  .gallery-layout {
    display: grid !important;
    grid-template-columns: 260px minmax(0, 1fr) !important;
    gap: 20px;
  }
  .gallery-sidebar {
    display: block !important;
  }
  .gallery-sidebar-nav {
    background: rgba(8, 17, 38, 0.88);
    border: 1px solid rgba(105, 213, 255, 0.35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  }
}

.card-meta-views {
  margin-left: auto;
  opacity: 0.8;
  font-size: 11px;
}

/* Back bar outside content sheet */
.page-backbar {
    margin: 0 0 14px;
}

.page-backbar__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 24, 48, 0.55);
    color: #d7e7ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.page-backbar__link:hover {
    border-color: rgba(105, 213, 255, 0.55);
    background: rgba(20, 44, 82, 0.78);
    color: #fff;
}

.prompt-page {
    width: 100%;
}

/* Breadcrumbs */
.crumbs {
  margin: 0 0 16px;
}
.crumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
}
.crumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.3;
  color: #9eb8e8;
}
.crumbs__item:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 4px 0 8px;
  border-right: 1.5px solid rgba(158, 184, 232, 0.55);
  border-top: 1.5px solid rgba(158, 184, 232, 0.55);
  transform: rotate(45deg);
  opacity: 0.85;
}
.crumbs__link {
  color: #c7d2fe;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(105, 213, 255, 0.22);
  background: rgba(8, 17, 38, 0.55);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.crumbs__link:hover {
  color: #69d5ff;
  border-color: rgba(105, 213, 255, 0.55);
  background: rgba(105, 213, 255, 0.1);
}
.crumbs__current {
  color: #eaf0ff;
  font-weight: 600;
  padding: 4px 2px;
}
.gallery-articles-more {
  margin: 18px 0 0;
  text-align: center;
}
.modal-source-group--cats {
  opacity: 0.92;
}

/* Sentinel для автоподгрузки галереи */
.gallery-scroll-sentinel {
    width: 100%;
    height: 1px;
    pointer-events: none;
}

.load-more-wrap--auto {
    min-height: 1.5rem;
    padding: 8px 0 20px;
}


