.analytics-page {
    max-width: 1200px;
    margin: 70px auto 0;
    padding: 24px 20px 110px;
    background: var(--site-bg);
}

.analytics-hero {
    margin-bottom: 24px;
}

.analytics-title {
    margin-bottom: 12px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.24;
}

.analytics-subtitle {
    max-width: 700px;
    color: #8a96a3;
    line-height: 1.6;
}

.analytics-search {
    margin-bottom: 18px;
}

.analytics-search input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0d1117;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.analytics-search input:focus {
    border-color: #2f8cff;
}

.analytics-categories {
    margin-bottom: 22px;
}

.category-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.category-group-title {
    margin-right: 4px;
    color: #8a96a3;
    font-size: 12px;
}

.category-group.beginner {
    padding-left: 10px;
    border-left: 3px solid #facc15;
}

.category-btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0d1117;
    color: #c4ccd6;
    cursor: pointer;
    font-size: 13px;
}

.category-btn:hover {
    border-color: rgba(47, 140, 255, 0.3);
    color: #fff;
}

.category-btn.active {
    background: #2f8cff;
    border-color: #2f8cff;
    color: #fff !important;
}

.analytics-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.analytics-toolbar h2 {
    margin-bottom: 4px;
    font-size: 18px;
}

.analytics-toolbar p {
    color: #8a96a3;
    font-size: 13px;
}

.analytics-create-btn {
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #2f8cff, #1f6fe0);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.analytics-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--card-analytics-bg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.analytics-card:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 140, 255, 0.28);
}

.analytics-card__image-wrap {
    display: block;
    flex-shrink: 0;
}

.analytics-card__image {
    width: 100%;
    height: 188px;
    object-fit: cover;
}

.analytics-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #11151c;
    color: #48525f;
    font-size: 12px;
}

.analytics-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px;
}

.analytics-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.analytics-meta-chip,
.analytics-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
}

.analytics-meta-chip {
    background: rgba(255, 255, 255, 0.05);
    color: #a7b1be;
}

.analytics-tag {
    font-weight: 500;
}

.analytics-card__title {
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.35;
}

.analytics-card__title a {
    color: #fff;
    text-decoration: none;
}

.analytics-card__excerpt {
    margin-bottom: 14px;
    color: #8a96a3;
    font-size: 13px;
    line-height: 1.55;
}

.analytics-card__stats {
    display: flex;
    margin-top: auto;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.analytics-card__footer {
    margin-top: auto;
    padding-top: 14px;
}

.analytics-card__footer-actions {
    display: grid;
    gap: 10px;
}

.analytics-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.analytics-stat__label {
    color: #6f7b8b;
    font-size: 10px;
}

.analytics-stat__value {
    font-size: 14px;
    font-weight: 600;
}

.analytics-card__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(47, 140, 255, 0.1);
    color: #2f8cff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.analytics-card__manage {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgb(201 13 13 / 0.04);
    color: #d7e1ee;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.analytics-empty,
.analytics-no-results {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.analytics-load-sentinel {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 72px;
    margin-top: 18px;
    color: #7d8a99;
    font-size: 13px;
}

.analytics-load-sentinel.is-hidden {
    display: none;
}

.analytics-load-sentinel.is-loading .analytics-load-sentinel__label {
    opacity: 1;
}

.analytics-load-sentinel__label {
    opacity: 0.74;
    transition: opacity 0.18s ease;
}

.analytics-empty__box {
    width: min(480px, 100%);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #0d1117;
    text-align: center;
}

.analytics-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1200;
}

.analytics-modal.is-open {
    display: flex;
}

body.analytics-modal-open {
    overflow: hidden;
}

.analytics-modal__backdrop {
    position: absolute;
    inset: 0;

    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.08), transparent 40%),
    rgba(3, 7, 18, 0.72);

    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.analytics-modal__dialog {
    position: relative;

    width: min(860px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;

    padding: 24px 24px 0 24px;
    border-radius: 24px;

    /* главное */
    background: rgba(8, 12, 20, 0.58);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);

    /* почти незаметная рамка */
    border: 1px solid rgba(255, 255, 255, .035);

    box-shadow: 0 35px 80px rgba(0, 0, 0, .65),
    0 8px 20px rgba(0, 0, 0, .35);

    isolation: isolate;
}

.analytics-modal__dialog::before,
.analytics-modal__dialog::after {
    display: none;
}

.analytics-modal__close {
    width: 34px;
    height: 34px;

    border-radius: 50%;
    border: none;

    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .55);

    transition: .18s;
}

.analytics-modal__close:hover {
    background: rgba(255, 255, 255, .08);
    color: white;
}

.analytics-modal__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(3, 6, 12, .82);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.analytics-modal__dialog {
    display: flex;
    flex-direction: column;

    width: min(860px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.analytics-create-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.analytics-create-form__sections {
    overflow-y: auto;
    padding-right: 6px;
}

.analytics-create-form__actions {
    position: sticky;
    bottom: 0;
    z-index: 10;

    margin-top: 16px;
    padding-top: 16px;
}

.analytics-cover-upload {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 180px;
    overflow: hidden;

    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 18px;

    background: radial-gradient(circle at top, rgba(47, 140, 255, 0.08), transparent 45%),
    rgba(255, 255, 255, 0.035);

    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.analytics-cover-upload.is-dragover {
    border-color: rgba(59, 130, 246, 0.65);
    background: rgba(59, 130, 246, 0.10);
    transform: translateY(-1px);
}

.analytics-cover-upload.has-preview .analytics-cover-upload__empty {
    display: none;
}

.analytics-cover-upload__preview {
    display: none;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 16px;
}

.analytics-cover-upload.has-preview .analytics-cover-upload__preview {
    display: block;
}

.analytics-cover-upload:hover {
    border-color: rgba(47, 140, 255, 0.45);
    background: rgba(47, 140, 255, 0.06);
}

.analytics-cover-upload input[type="file"] {
    display: none;
}

.analytics-cover-upload__empty {
    display: grid;
    justify-items: center;
    gap: 6px;

    color: #cfd8e3;
    text-align: center;
}

.analytics-cover-upload__icon {
    margin-bottom: 4px;
    font-size: 30px;
}

.analytics-cover-upload__empty span {
    color: #8a96a3;
    font-size: 12px;
}

.analytics-cover-upload__preview {
    display: none;
    width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: cover;
}

.analytics-cover-upload.has-preview {
    border-style: solid;
    padding: 0;
}

.analytics-cover-upload.has-preview .analytics-cover-upload__empty {
    display: none;
}

.analytics-cover-upload.has-preview .analytics-cover-upload__preview {
    display: block;
}

.analytics-cover-upload__filename {
    margin-top: 8px;
    color: #8a96a3;
    font-size: 12px;
}


.analytics-modal__dialog::after {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025),
    inset 0 30px 60px rgba(255, 255, 255, .015);

    pointer-events: none;
}

.analytics-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.analytics-modal__header h3 {
    margin: 0 0 6px;
    font-size: 24px;
}

.analytics-modal__header p {
    margin: 0;
    color: #8a96a3;
    font-size: 13px;
}

.analytics-modal__close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.analytics-create-form {
    display: grid;
    gap: 22px;
}

.analytics-create-form__section {
    display: grid;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.analytics-create-form__section:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.analytics-create-form__section-head {
    display: grid;
    gap: 6px;
}

.analytics-create-form__section-head h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.analytics-create-form__section-head p {
    margin: 0;
    color: #8a96a3;
    font-size: 12px;
    line-height: 1.55;
}

.analytics-create-form__grid {
    display: grid;
    gap: 16px;
}

.analytics-create-form__grid--two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analytics-create-form__field {
    display: grid;
    gap: 8px;
}

.analytics-create-form__field label {
    font-size: 13px;
    color: #cfd8e3;
}

.analytics-create-form__field input[type="text"],
.analytics-create-form__field input[type="file"],
.analytics-create-form__field select,
.analytics-create-form__field textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0d1117;
    color: #fff;
    outline: none;
}

.analytics-create-form__field textarea[data-markdown-target="analytics-edit"],
.analytics-create-form__field textarea[data-markdown-target="knowledge-edit"] {
    display: none;
}

.analytics-create-form__field textarea.markdown-editor-textarea {
    display: none;
}

.analytics-editor-surface {
    min-height: calc(1.7em * 7 + 28px);
    max-height: calc(1.7em * 7 + 28px);
    height: calc(1.7em * 7 + 28px);

    padding: 14px 16px;
    overflow-y: auto;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 14px;
    line-height: 1.7;
    outline: none;
}

.analytics-compose-box .markdown-editor-surface {
    height: 210px;
    max-height: 210px;
    overflow-y: auto;
}

.analytics-compose-box .markdown-editor-surface {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.analytics-compose-box .markdown-editor-surface::-webkit-scrollbar {
    width: 5px;
}

.analytics-compose-box .markdown-editor-surface::-webkit-scrollbar-track {
    background: transparent;
}

.analytics-compose-box .markdown-editor-surface::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.analytics-compose-box .markdown-editor-surface::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.analytics-modal__dialog {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.analytics-modal__dialog::-webkit-scrollbar {
    width: 5px;
}

.analytics-modal__dialog::-webkit-scrollbar-track {
    background: transparent;
}

.analytics-modal__dialog::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.analytics-modal__dialog::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.analytics-editor-surface:empty::before {
    content: attr(data-placeholder);
    color: #8a96a3;
}

.analytics-editor-surface:focus {
    border-color: rgba(47, 140, 255, 0.42);
}

.analytics-editor-surface a {
    color: #7db4ff;
}

.analytics-editor-surface p {
    margin: 0 0 14px;
}

.analytics-editor-surface p:last-child {
    margin-bottom: 0;
}

.analytics-create-form__errors {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 84, 84, 0.12);
    color: #ffd2d2;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-line;
}

.analytics-create-form__field textarea {
    min-height: 220px;
    resize: vertical;
}

.analytics-create-form__field input:focus,
.analytics-create-form__field select:focus,
.analytics-create-form__field textarea:focus {
    border-color: #2f8cff;
}

.analytics-create-form__field ul.errorlist {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #ff8e8e;
    font-size: 12px;
}

.analytics-create-form__field--checkbox {
    align-content: start;
}

.analytics-create-form__field--checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.analytics-create-form__field--align-end {
    align-content: end;
}

.analytics-create-form__field--full {
    grid-column: 1 / -1;
}

.analytics-compose-box,
.analytics-section-card {
    display: grid;
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
}

.analytics-section-card--accent {
    border: 0;
    background: transparent;
}

.analytics-compose-box__header,
.analytics-section-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.analytics-compose-box__header label,
.analytics-section-card__header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.analytics-compose-box__header p,
.analytics-section-card__header p {
    margin: 6px 0 0;
    color: #8a96a3;
    font-size: 12px;
    line-height: 1.55;
}

.analytics-mirror-block {
    display: none;
    margin-top: 4px;
}

.analytics-mirror-block.is-active {
    display: block;
}

.analytics-color-field {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.analytics-color-field input[type="color"] {
    width: 52px;
    min-width: 52px;
    height: 40px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0d1117;
    cursor: pointer;
}

.analytics-color-field__hint {
    color: #8a96a3;
    font-size: 12px;
}

.analytics-create-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    position: sticky;
    bottom: 0;
    z-index: 20;

    display: flex;
    justify-content: flex-end;
    gap: 12px;

    margin: 24px -24px -24px;
    padding: 18px 24px;

    background: rgba(7, 10, 17, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.analytics-compose-box__hint {
    margin-top: 10px;
    color: #8090a3;
    font-size: 12px;
    line-height: 1.5;
}

.analytics-context-menu {
    position: absolute;
    z-index: 1400;
    display: none;
    min-width: 188px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(13, 17, 23, 0.98);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
}

.analytics-context-menu__item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #eef4fb;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.analytics-context-menu__shortcut {
    margin-left: auto;
    color: #8090a3;
    font-size: 12px;
    white-space: nowrap;
}

.analytics-context-menu__item:hover {
    background: rgba(47, 140, 255, 0.12);
    color: #ffffff;
}

.analytics-create-form__secondary,
.analytics-create-form__submit {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
}

.analytics-create-form__secondary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #c4ccd6;
}

.analytics-create-form__submit {
    border: 0;
    background: #2f8cff;
    color: #fff;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .analytics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .analytics-page {
        padding: 14px 10px calc(92px + env(safe-area-inset-bottom));
        margin-top: 64px;
    }

    .analytics-hero {
        margin-bottom: 18px;
    }

    .analytics-title {
        font-size: 24px;
        line-height: 1.2;
    }

    .analytics-subtitle {
        font-size: 13px;
    }

    .analytics-search {
        margin-bottom: 14px;
    }

    .analytics-search input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .analytics-categories {
        margin-bottom: 18px;
    }

    .category-group {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .category-group::-webkit-scrollbar {
        display: none;
    }

    .category-group-title {
        flex: 0 0 auto;
    }

    .category-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .analytics-toolbar {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 16px;
    }

    .analytics-toolbar__right,
    .analytics-create-btn {
        width: 100%;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .analytics-card {
        border-radius: 14px;
    }

    .analytics-card__image {
        height: 176px;
    }

    .analytics-card__body {
        padding: 14px;
    }

    .analytics-card__title {
        font-size: 16px;
    }

    .analytics-card__excerpt {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .analytics-card__stats {
        gap: 8px;
    }

    .analytics-stat {
        min-width: 0;
    }

    .analytics-create-form__grid {
        grid-template-columns: 1fr;
    }

    .analytics-create-form__grid--nested {
        grid-template-columns: 1fr;
    }

    .analytics-modal {
        padding: 10px;
    }

    .analytics-modal__dialog {
        padding: 18px;
        max-height: calc(100vh - 20px);
    }
}


/* Chrome, Edge, Opera */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.markdown-editor-surface {
    min-height: 180px;
    padding: 16px 18px;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 18px;

    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;

    outline: none;
    resize: vertical;

    transition: border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.markdown-editor-surface:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.55);

    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.markdown-editor-surface:empty::before {
    content: attr(data-placeholder);
    color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.markdown-editor-surface:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.analytics-create-form input[type="checkbox"] {
    width: 18px;
    height: 18px;

    accent-color: #3b82f6;

    cursor: pointer;
}

.analytics-author-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.analytics-author-choice__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
}

.analytics-author-choice__item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.analytics-author-choice__avatar {
    width: 42px;
    height: 42px;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.analytics-author-choice__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.analytics-author-choice__content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.analytics-author-choice__content strong {
    color: #f7f9fc;
    font-size: 14px;
}

.analytics-author-choice__content small {
    color: rgba(205, 216, 230, 0.68);
    font-size: 12px;
}

.analytics-author-choice__item:has(input:checked) {
    border-color: rgba(47, 140, 255, 0.65);
    background: rgba(47, 140, 255, 0.12);
}

/* Выбор автора аналитической публикации */
body[data-site-theme="white"] .analytics-author-choice {
    align-items: stretch;
    gap: 14px;
}

body[data-site-theme="white"] .analytics-author-choice__item {
    min-height: 78px;
    height: 100%;
    padding: 14px 16px;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 16px;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

body[data-site-theme="white"] .analytics-author-choice__item:hover {
    background: #F8FAFC;
    border-color: rgba(37, 99, 235, 0.42);
    transform: translateY(-1px);
}

body[data-site-theme="white"] .analytics-author-choice__avatar {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
}

body[data-site-theme="white"] .analytics-author-choice__content {
    min-width: 0;
    justify-content: center;
    gap: 4px;
}

body[data-site-theme="white"] .analytics-author-choice__content strong {
    color: #111827;
    font-size: 14px;
    line-height: 1.3;
}

body[data-site-theme="white"] .analytics-author-choice__content small {
    color: #6B7280;
    font-size: 12px;
    line-height: 1.35;
}

/* Выбранный автор */
body[data-site-theme="white"] .analytics-author-choice__item:has(input:checked) {
    background: rgba(37, 99, 235, 0.08);
    border-color: #3B82F6;
    box-shadow:
        0 0 0 2px rgba(37, 99, 235, 0.08),
        0 8px 20px rgba(37, 99, 235, 0.08);
}

body[data-site-theme="white"]
.analytics-author-choice__item:has(input:checked)
.analytics-author-choice__content strong {
    color: #1D4ED8;
}