/* ЕГЭ по литературе — каркас как на logilea.ru/tasks/ege/, палитра Литфокса */

.lit-ege-page {
    font-family: "Manrope", sans-serif;
}

.lit-ege-header-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    position: relative;
    z-index: 5;
}

.lit-ege-header-left {
    display: flex;
    align-items: center;
}

.lit-ege-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: flex-end;
}

.lit-ege-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: #222;
    border: none;
    border-radius: 25px;
    padding: 12px 26px 12px 16px;
    font-size: 1.08rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    font-family: inherit;
}

.lit-ege-back-btn:hover {
    background: #f4f6ff;
}

.lit-ege-back-btn .lit-ege-arrow-back {
    transform: scaleX(-1);
}

.lit-ege-exam-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 25px;
    padding: 12px 22px;
    font-size: 1.05rem;
    font-weight: 500;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    background: var(--color-violet);
    color: #fff;
}

.lit-ege-exam-btn:hover {
    filter: brightness(0.94);
}

.lit-ege-exam-btn.is-ghost {
    background: #fff;
    color: var(--color-violet);
    border: 2px solid var(--color-violet);
}

.lit-ege-exam-btn.is-ghost:hover {
    background: #f4f6ff;
}

.lit-ege-exam-btn.is-danger {
    background: #fff1f2;
    color: #9f1239;
    border: 2px solid #fda4af;
}

.lit-ege-exam-btn.is-danger:hover {
    background: #ffe4e6;
}

.lit-ege-header-favorites .lit-ege-heart-ico {
    flex-shrink: 0;
}

.lit-ege-header-favorites.is-active {
    background: #fff5f5;
    color: var(--color-strawberry);
    border-color: var(--color-strawberry);
}

.lit-ege-hero {
    background: linear-gradient(
        135deg,
        #f6f7fa 0%,
        rgba(200, 212, 229, 0.2) 35%,
        rgba(128, 137, 210, 0.12) 55%,
        rgba(165, 35, 28, 0.06) 100%
    );
    border-radius: 40px;
    padding: 52px 36px;
    margin-bottom: 36px;
    box-shadow: 0 4px 24px rgba(44, 63, 112, 0.06);
    position: relative;
    overflow: hidden;
}

.lit-ege-hero-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.lit-ege-hero-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 600;
    color: #18181b;
    margin: 0 0 16px;
    line-height: 1.15;
}

.lit-ege-hero-desc {
    font-size: clamp(16px, 2vw, 20px);
    color: #555;
    line-height: 1.55;
    margin: 0 0 32px;
}

.lit-ege-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.lit-ege-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    min-width: 200px;
}

.lit-ege-hero-btn.primary {
    background: var(--color-strawberry);
    color: #fff;
    box-shadow: 0 4px 16px rgba(165, 35, 28, 0.25);
}

.lit-ege-hero-btn.primary:hover:not(:disabled) {
    background: var(--color-strawberry-hover);
    transform: translateY(-2px);
}

.lit-ege-hero-btn.secondary {
    background: #fff;
    color: var(--color-strawberry);
    border: 2px solid var(--color-strawberry);
}

.lit-ege-hero-btn.secondary:hover:not(:disabled) {
    background: #fff8f7;
    transform: translateY(-2px);
}

.lit-ege-hero-btn:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lit-ege-search-section {
    margin: 28px 0 40px;
}

.lit-ege-search-row {
    display: flex;
    gap: 22px;
    align-items: stretch;
}

.lit-ege-search-card {
    flex: 1;
    background: #fff;
    border-radius: 25px;
    padding: 28px 28px 30px;
    box-shadow: 0 4px 20px rgba(44, 63, 112, 0.08);
    border: 2px solid #eef2f6;
}

.lit-ege-search-card h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 600;
    color: #2d3748;
}

.lit-ege-search-card p {
    margin: 0 0 20px;
    color: #718096;
    font-size: 1rem;
    line-height: 1.45;
}

.lit-ege-search-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lit-ege-search-input-row input {
    flex: 1;
    padding: 13px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.lit-ege-search-input-row input:focus {
    border-color: var(--color-violet);
    box-shadow: 0 0 0 3px var(--color-violet-muted);
}

.lit-ege-search-go {
    padding: 13px 22px;
    background: var(--color-violet);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: filter 0.2s;
}

.lit-ege-search-go:hover:not(:disabled) {
    filter: brightness(0.95);
}

.lit-ege-search-go:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lit-ege-tabs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 8px 0 20px;
}

.lit-ege-tabs-row .lit-ege-tabs {
    margin: 0;
}

.lit-ege-staff-bar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    justify-content: flex-end;
    min-height: 48px;
}

.lit-ege-staff-tab-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    justify-content: flex-end;
}

.lit-ege-staff-tab-group[hidden] {
    display: none !important;
}

.lit-ege-staff-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.lit-ege-staff-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    background: #fff;
    color: var(--color-violet);
    border: 2px dashed var(--color-violet);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: background 0.2s;
}

.lit-ege-staff-btn:hover {
    background: #f4f6ff;
}

.lit-ege-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    margin: 8px 0 20px;
}

.lit-ege-tab {
    padding: 12px 26px;
    border-radius: 15px;
    background: #fff;
    border: 2px solid #e5e7eb;
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lit-ege-tab:hover:not(.is-active) {
    border-color: #d1d5db;
}

.lit-ege-tab.is-active {
    border-width: 3px;
    border-color: var(--color-strawberry);
    padding: 11px 25px;
    box-shadow: 0 2px 8px rgba(165, 35, 28, 0.12);
}

.lit-ege-tab-panel {
    display: none;
    background: #fff;
    border-radius: 28px;
    padding: 28px 32px;
    border: 1px solid var(--color-buttercream);
    box-shadow: 0 2px 12px rgba(44, 63, 112, 0.05);
    min-height: 120px;
    color: #4b5563;
    line-height: 1.55;
}

.lit-ege-tab-panel.is-active {
    display: block;
}

.lit-ege-tab-panel h3 {
    margin-top: 0;
    color: #222;
}

.lit-ege-tasks-heading {
    margin-bottom: 20px;
}

.lit-ege-tasks-layout {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 380px);
    gap: 28px 36px;
    align-items: start;
}

.lit-ege-tasks-filters {
    background: #f9fafb;
    border-radius: 22px;
    padding: 22px 18px;
    border: 1px solid #eef2f6;
    position: sticky;
    top: 12px;
}

.lit-ege-filter-field {
    margin-bottom: 16px;
}

.lit-ege-filter-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 7px;
}

.lit-ege-filter-select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 600;
    color: #444444;
    font-family: inherit;
    background-color: #fff;
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.lit-ege-filter-select:focus {
    outline: none;
    border-color: var(--color-violet);
}

.lit-ege-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
}

.lit-ege-filter-apply {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 18px;
    background: var(--color-violet);
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter 0.2s;
}

.lit-ege-filter-apply:hover {
    filter: brightness(0.95);
}

.lit-ege-filter-clear {
    width: 100%;
    padding: 13px 16px;
    border-radius: 18px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.lit-ege-filter-clear:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.lit-ege-task-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.lit-ege-tasks-filter-empty {
    margin: 0 0 18px;
}

.lit-ege-task-card {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 26px;
    padding: 22px 26px;
    box-shadow: 0 2px 14px rgba(44, 63, 112, 0.06);
}

.lit-ege-task-card-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.lit-ege-task-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.lit-ege-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    background: #f3f4f6;
    color: #4b5563;
}

.lit-ege-badge--status {
    background: #eef2ff;
    color: #4f46e5;
}

.lit-ege-badge--code {
    background: #fff;
    border: 1px solid #e5e7eb;
}

a.lit-ege-badge--code-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

a.lit-ege-badge--code-link:hover {
    border-color: #9ca3af;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.lit-ege-badge--part {
    background: #f0fdf4;
    color: #166534;
}

.lit-ege-badge--exam {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.lit-ege-task-detail-wrap {
    max-width: 900px;
    margin: 0 auto 48px;
    padding: 0 16px;
}

.lit-ege-task-card--detail {
    list-style: none;
    margin: 0;
}

.lit-task-standalone-type {
    margin-bottom: 4px;
}

.lit-ege-task-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
}

.lit-ege-task-fav {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: none;
    background: none;
    padding: 0;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--color-violet);
    cursor: pointer;
    font-family: inherit;
}

.lit-ege-task-fav .lit-ege-heart-ico path {
    transition: fill 0.15s, stroke 0.15s;
}

.lit-ege-task-fav.is-on .lit-ege-heart-ico path {
    fill: var(--color-strawberry);
    stroke: var(--color-strawberry);
}

.lit-ege-task-fav--guest {
    opacity: 0.55;
    cursor: default;
    color: #9ca3af;
}

.lit-ege-task-report {
    font-size: 0.92rem;
    color: #6b7280;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lit-ege-task-report:hover {
    color: var(--color-violet);
}

.lit-ege-task-card-title {
    font-size: clamp(1.05rem, 2vw, 1.38rem);
    font-weight: 600;
    color: #9ca3af;
    margin: 0 0 14px;
    line-height: 1.28;
}

@media (max-width: 1440px) {
    .lit-ege-task-card-title {
        font-size: clamp(0.96rem, 1.85vw, 1.18rem);
    }
}

/* Текст фрагмента / вопроса: телефон 16px → ноутбук 18px → ПК 20px */
.lit-ege-task-body-font {
    font-size: 16px;
    color: #374151;
    line-height: 1.68;
}

@media (min-width: 768px) {
    .lit-ege-task-body-font {
        font-size: 18px;
    }
}

@media (min-width: 1440px) {
    .lit-ege-task-body-font {
        font-size: 20px;
    }
}

.lit-ege-task-fragment-kicker {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
}

.lit-ege-task-card-text {
    margin: 0 0 20px;
}

.lit-ege-task-question-plate {
    margin: 0 0 22px;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f4f0ff 0%, #ede9fe 45%, #faf5ff 100%);
    border: 2px solid rgba(109, 40, 217, 0.22);
    box-shadow: 0 4px 18px rgba(76, 29, 149, 0.08);
}

.lit-ege-task-question-plate-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6d28d9;
    margin-bottom: 10px;
}

.lit-ege-task-question-plate-text {
    margin: 0;
    color: #312e81;
}

.lit-ege-task-info-table-wrap {
    margin: 0 0 18px;
    overflow-x: auto;
}

.lit-ege-task-info-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.lit-ege-task-info-table th,
.lit-ege-task-info-table td {
    border: 1px solid rgba(44, 63, 112, 0.14);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.lit-ege-task-info-table th {
    background: rgba(44, 63, 112, 0.06);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2c3f70;
}

.lit-ege-task-info-table td {
    color: #22303f;
}

.lit-ege-task-response {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 2px dashed #e5e7eb;
}

.lit-ege-answer-reveal {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.lit-ege-answer-reveal-inner {
    margin: 0;
    font-size: 15px;
    color: #1f2937;
    line-height: 1.55;
}

.lit-ege-answer-reveal-answer {
    margin: 0 0 6px;
}

.lit-ege-answer-reveal-answer:last-child {
    margin-bottom: 0;
}

.lit-ege-answer-reveal-kicker {
    font-weight: 700;
    color: #111827;
    margin-right: 6px;
}

.lit-ege-answer-reveal-value {
    font-weight: 500;
}

.lit-ege-answer-reveal-explanation {
    margin: 0;
}

.lit-ege-answer-reveal-explanation-body {
    margin-top: 6px;
    color: #374151;
}

.lit-ege-answer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.lit-ege-answer-actions-start {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.lit-ege-answer-reveal-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 8px 4px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 8px;
}

.lit-ege-reveal-eye {
    flex-shrink: 0;
    color: #666;
}

.lit-ege-response-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lit-ege-answer-input,
.lit-ege-answer-textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 14px;
    transition: border-color 0.15s;
}

.lit-ege-answer-input:focus,
.lit-ege-answer-textarea:focus {
    outline: none;
    border-color: var(--color-violet);
}

.lit-ege-task-response .lit-ege-answer-input::placeholder,
.lit-ege-task-response .lit-ege-answer-textarea::placeholder {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 1;
    color: #9ca3af;
}

.lit-ege-answer-textarea {
    min-height: 140px;
    resize: vertical;
}

.lit-ege-response-file-label {
    display: block;
    margin-bottom: 16px;
}

.lit-ege-response-file-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lit-ege-answer-file {
    font-size: 0.9rem;
}

.lit-ege-choice-fieldset {
    border: none;
    margin: 0 0 16px;
    padding: 0;
}

.lit-ege-choice-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lit-ege-choice-legend-hint {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.01em;
    color: #6b7280;
}

.lit-ege-choice-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    color: #374151;
    cursor: pointer;
    line-height: 1.45;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}

.lit-ege-choice-label:has(input:focus-visible) {
    outline: 2px solid var(--color-violet);
    outline-offset: 2px;
}

.lit-ege-choice-text {
    flex: 1;
    min-width: 0;
}

.lit-ege-choice-label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin: 2px 0 0;
    border: 2px solid #bbb;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    position: relative;
    align-self: flex-start;
    box-sizing: border-box;
}

.lit-ege-choice-label input[type="checkbox"]:checked {
    background: var(--color-violet);
    border-color: var(--color-violet);
}

.lit-ege-choice-label input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
    box-sizing: border-box;
}

.lit-ege-choice-label input[type="checkbox"]:disabled {
    cursor: default;
}

@media (min-width: 768px) {
    .lit-ege-choice-label {
        font-size: 18px;
    }
}

@media (min-width: 1440px) {
    .lit-ege-choice-label {
        font-size: 20px;
    }
}

.lit-ege-answer-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 16px;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.lit-ege-answer-submit:not(:disabled) {
    background: var(--color-violet);
    color: #fff;
    cursor: pointer;
}

.lit-ege-answer-submit:not(:disabled):hover {
    filter: brightness(1.05);
}

.lit-ege-badge--status.is-done {
    background: #dcfce7;
    color: #166534;
}

.lit-ege-badge--status.is-correct-result {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.lit-ege-badge--status.is-incorrect-result {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.lit-ege-answer-input.is-solved-correct,
textarea.lit-ege-answer-textarea.is-solved-correct {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
    box-shadow: 0 0 0 1px #bbf7d0;
}

.lit-ege-choice-label.is-solved-correct {
    background: #f0fdf4;
    border-color: #86efac;
}

.lit-ege-choice-label.is-solved-correct .lit-ege-choice-text {
    color: #166534;
}

.lit-ege-choice-label.is-solved-correct input[type="checkbox"] {
    background: #22c55e;
    border-color: #16a34a;
}

.lit-ege-choice-label.is-solved-incorrect {
    background: #fef2f2;
    border-color: #fecaca;
}

.lit-ege-choice-label.is-solved-incorrect .lit-ege-choice-text {
    color: #991b1b;
}

.lit-ege-choice-label.is-solved-incorrect input[type="checkbox"] {
    background: #ef4444;
    border-color: #dc2626;
}

.lit-ege-choice-label.is-solved-incorrect input[type="checkbox"]:checked::after {
    content: "×";
    position: absolute;
    left: 50%;
    top: 50%;
    width: auto;
    height: auto;
    border: none;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 960px) {
    .lit-ege-tasks-layout {
        grid-template-columns: 1fr;
    }

    .lit-ege-tasks-filters {
        position: static;
    }
}

/* Модалка «Об экзамене» */
.lit-ege-modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lit-ege-modal-bg.is-open {
    display: flex;
}

.lit-ege-modal {
    background: #fff;
    border-radius: 28px;
    padding: 28px 40px 24px 32px;
    max-width: 640px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--color-strawberry, #a5231c) transparent;
}

.lit-ege-modal::-webkit-scrollbar,
.lit-ege-stats-history-list::-webkit-scrollbar,
.lit-ege-stats-topic-list::-webkit-scrollbar,
.lit-ege-stats-modal__body::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.lit-ege-modal::-webkit-scrollbar-track,
.lit-ege-stats-history-list::-webkit-scrollbar-track,
.lit-ege-stats-topic-list::-webkit-scrollbar-track,
.lit-ege-stats-modal__body::-webkit-scrollbar-track {
    background: transparent;
}

.lit-ege-modal::-webkit-scrollbar-thumb,
.lit-ege-stats-history-list::-webkit-scrollbar-thumb,
.lit-ege-stats-topic-list::-webkit-scrollbar-thumb,
.lit-ege-stats-modal__body::-webkit-scrollbar-thumb {
    background-color: var(--color-strawberry, #a5231c);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.lit-ege-modal::-webkit-scrollbar-thumb:hover,
.lit-ege-stats-history-list::-webkit-scrollbar-thumb:hover,
.lit-ege-stats-topic-list::-webkit-scrollbar-thumb:hover,
.lit-ege-stats-modal__body::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-strawberry-hover, #7f1b15);
}

.lit-ege-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 1.75rem;
    line-height: 1;
    border: none;
    background: none;
    color: var(--color-violet);
    cursor: pointer;
}

.lit-ege-modal h2 {
    margin-top: 0;
    font-size: 1.4rem;
}

.lit-ege-modal-body {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
}

.lit-ege-modal-body ul {
    padding-left: 1.2em;
}

.lit-ege-modal-actions {
    margin-top: 20px;
}

.lit-ege-modal--wide {
    max-width: min(920px, 96vw);
}

.lit-ege-form label {
    display: block;
    margin-top: 14px;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.lit-ege-form input[type="text"],
.lit-ege-form input[type="number"],
.lit-ege-form select,
.lit-ege-form textarea {
    width: 100%;
    padding: 11px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
}

.lit-ege-form textarea {
    min-height: 100px;
    resize: vertical;
}

.lit-ege-form input:focus,
.lit-ege-form select:focus,
.lit-ege-form textarea:focus {
    outline: none;
    border-color: var(--color-violet);
}

.lit-ege-form .lit-ege-form-hint {
    font-size: 0.88rem;
    color: #6b7280;
    margin: 4px 0 0;
}

#litSectionsSortList {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

#litSectionsSortList li {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #f4f6ff;
    border-radius: 14px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 500;
}

#litSectionsSortList li .lit-sort-hint {
    color: #9ca3af;
    font-size: 18px;
}

#litExamSlotsSortList {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: grid;
    gap: 10px;
}

#litExamSlotsSortList .lit-exam-slot-row {
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.lit-exam-slot-main {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.lit-sec-sort-title {
    font-weight: 700;
    color: #1f2937;
}

.lit-sec-sort-meta {
    font-size: 0.86rem;
    color: #6b7280;
}

.lit-ege-empty {
    color: #6b7280;
    margin: 0;
}

.lit-ege-list-cards {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lit-ege-list-cards > li {
    background: #fff;
    border-radius: 25px;
    padding: 14px 18px;
    border: 1px solid #e8e8e8;
}

.lit-ege-list-card-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lit-ege-progress-row--clickable {
    cursor: pointer;
}

.lit-ege-progress-row--clickable:focus-visible {
    outline: 2px solid var(--color-violet);
    outline-offset: 3px;
}

.lit-ege-list-card-main {
    flex: 1;
    min-width: 0;
}

.lit-ege-list-card-main strong {
    font-size: 1.05rem;
    color: #1f2937;
}

.lit-ege-list-card-desc {
    white-space: pre-wrap;
}

.lit-ege-progress-ring {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.lit-ege-progress-ring-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.lit-ege-progress-ring-track {
    stroke: #f5e8c8;
}

.lit-ege-progress-ring-arc {
    stroke: #f28c18;
    transition: stroke-dashoffset 0.35s ease;
}

.lit-ege-progress-ring-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #4b5563;
    line-height: 1;
    pointer-events: none;
}

@media (min-width: 480px) {
    .lit-ege-progress-ring {
        width: 64px;
        height: 64px;
    }

    .lit-ege-progress-ring-pct {
        font-size: 12px;
    }
}

.lit-ege-list-cards .lit-meta {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 6px;
}

#litAddSectionModalBg {
    z-index: 1250;
}

#litAddSectionModalBg .lit-ege-modal {
    max-width: 520px;
}

@media (max-width: 900px) {
    .lit-ege-search-row {
        flex-direction: column;
    }

    .lit-ege-header-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .lit-ege-header-actions {
        justify-content: flex-start;
    }

    .lit-ege-hero {
        padding: 36px 22px;
    }

    .lit-ege-hero-btn {
        width: 100%;
        max-width: 320px;
    }
}

/* ——— Пользовательские тесты ——— */
.lit-ege-hero--compact {
    padding: 28px 40px 12px;
}

.lit-ege-test-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lit-ege-test-list-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.lit-ege-test-list-main {
    min-width: 0;
    flex: 1;
}

.lit-ege-test-list-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lit-ege-test-list-title:hover {
    text-decoration: underline;
}

.lit-ege-test-list-meta {
    margin: 6px 0 0;
    font-size: 0.9rem;
    color: #666;
}

.lit-ege-test-list-actions {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 10px;
}

.lit-ege-test-list-delete-form {
    margin: 0;
}

.lit-ege-test-empty-plate {
    margin-top: 8px;
    padding: 28px 32px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(44, 63, 112, 0.06);
}

.lit-ege-test-list-empty {
    margin: 0;
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.55;
    color: #3f3f46;
}

/* Группы тестов */
.lit-ege-group-create-plate {
    margin: 16px 0 28px;
    padding: 24px 28px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(44, 63, 112, 0.06);
}

.lit-ege-group-create-plate__title {
    margin: 0 0 16px;
    font-size: 1.15rem;
    font-weight: 600;
}

.lit-ege-group-create-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
}

.lit-ege-group-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
    flex: 1 1 240px;
}

.lit-ege-group-field--block {
    flex: 1 1 100%;
    min-width: 0;
}

.lit-ege-group-field__label {
    font-size: 0.92rem;
    font-weight: 500;
    color: #3f3f46;
}

.lit-ege-group-field__input {
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fafafa;
}

.lit-ege-group-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lit-ege-group-list-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(44, 63, 112, 0.05);
}

.lit-ege-group-list-title {
    font-size: 1.08rem;
    font-weight: 600;
    color: #1a1a1c;
    text-decoration: none;
}

.lit-ege-group-list-title:hover {
    text-decoration: underline;
}

.lit-ege-group-list-meta {
    margin: 6px 0 0;
    font-size: 0.9rem;
    color: #71717a;
}

.lit-ege-group-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.lit-ege-group-share-plate {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.lit-ege-group-share-input {
    width: 100%;
    min-width: 0;
}

.lit-ege-group-title-form {
    margin-bottom: 28px;
    padding: 20px 24px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.lit-ege-group-section-title {
    margin: 24px 0 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

.lit-ege-group-members {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lit-ege-group-members__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.lit-ege-group-members__name {
    font-weight: 500;
}

.lit-ege-group-members__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.lit-ege-group-inline-form {
    display: inline;
    margin: 0;
}

.lit-ege-group-inline-form button[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.lit-ege-group-add-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 32px;
}

.lit-ege-group-select {
    min-width: 220px;
    flex: 1 1 280px;
}

.lit-ege-group-empty-hint {
    margin: 0 0 20px;
    color: #52525b;
    line-height: 1.5;
}

.lit-ege-page--test-group-take .lit-ege-group-take-cards {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.lit-ege-group-take-cards__item {
    margin: 0;
    padding: 0;
}

.lit-ege-group-take-card {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
    padding: 22px 24px;
    border-radius: 22px;
    background: #fff;
    border: 2px solid #d4d4d8;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.lit-ege-group-take-card:hover {
    box-shadow: 0 6px 28px rgba(44, 63, 112, 0.1);
}

.lit-ege-group-take-card--done {
    border-color: var(--color-violet, #5b4dff);
}

.lit-ege-group-take-card__num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
    font-weight: 700;
    font-size: 1rem;
    color: #52525b;
}

.lit-ege-group-take-card--done .lit-ege-group-take-card__num {
    background: rgba(91, 77, 255, 0.12);
    color: var(--color-violet, #5b4dff);
}

.lit-ege-group-take-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.lit-ege-group-take-card__title {
    font-size: clamp(1.02rem, 2vw, 1.15rem);
    font-weight: 600;
    color: var(--color-violet, #5b4dff);
    line-height: 1.35;
}

.lit-ege-group-take-card__hint {
    font-size: 0.92rem;
    color: #71717a;
    font-weight: 500;
}

.lit-ege-group-take-card__badge {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-violet, #5b4dff);
    opacity: 0.92;
}

.lit-ege-test-take-head {
    margin: 12px 0 20px;
}

.lit-ege-test-take-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0;
}

.lit-ege-test-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin: 0 auto 28px;
    padding: 16px 14px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    position: sticky;
    top: 8px;
    z-index: 2;
    box-sizing: border-box;
}

.lit-ege-test-nav-strip-wrap {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.lit-ege-test-nav-strip {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 2px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lit-ege-test-nav-strip::-webkit-scrollbar {
    display: none;
}

.lit-ege-test-nav-arrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 14px;
    background: #fff;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
    font-family: inherit;
}

.lit-ege-test-nav-arrow:hover:not(:disabled) {
    background: #f4f6ff;
    color: var(--color-violet, #5b4dff);
}

.lit-ege-test-nav-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.lit-ege-test-nav-arrow[hidden] {
    display: none !important;
}

.lit-ege-test-nav-pill--finish {
    flex-shrink: 0;
}

/* В стиле вкладок «Темы / разделы» + крупные номера */
.lit-ege-test-nav-pill {
    display: inline-flex;
    align-items: stretch;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    border-radius: 16px;
    padding: 0;
    border: 2px solid #e5e7eb;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.lit-ege-test-nav-pill:hover:not(.is-current) {
    border-color: #d1d5db;
}

.lit-ege-test-nav-pill-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 1.28rem;
    line-height: 1;
    color: #111827;
    border-radius: 14px;
    background: #fff;
    pointer-events: none;
}

.lit-ege-test-nav-pill.is-correct {
    border-color: #15803d;
    box-shadow: 0 2px 10px rgba(21, 128, 61, 0.2);
}

.lit-ege-test-nav-pill.is-correct .lit-ege-test-nav-pill-inner {
    background: #16a34a;
    color: #fff;
}

.lit-ege-test-nav-pill.is-wrong {
    border-color: #dc2626;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.18);
}

.lit-ege-test-nav-pill.is-wrong .lit-ege-test-nav-pill-inner {
    background: #ef4444;
    color: #fff;
}

.lit-ege-test-nav-pill.is-answered {
    border-color: #f59e0b;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
}

.lit-ege-test-nav-pill.is-answered .lit-ege-test-nav-pill-inner {
    background: #fbbf24;
    color: #1f2937;
}

/* Текущий невыполненный: «бегущая» рамка по контуру */
.lit-ege-test-nav-pill.is-current:not(.is-correct):not(.is-wrong):not(.is-answered) {
    border: none;
    padding: 3px;
    background: linear-gradient(
        90deg,
        var(--color-strawberry),
        #7c3aed,
        #2563eb,
        var(--color-violet, #6366f1),
        var(--color-strawberry)
    );
    background-size: 280% 100%;
    animation: lit-ege-test-nav-border-run 2.2s linear infinite;
    box-shadow: 0 3px 14px rgba(99, 102, 241, 0.22);
}

.lit-ege-test-nav-pill.is-current:not(.is-correct):not(.is-wrong):not(.is-answered) .lit-ege-test-nav-pill-inner {
    background: #fff;
    color: #111827;
}

.lit-ege-test-nav-pill.is-current.is-correct {
    animation: none;
    padding: 0;
    border-width: 3px;
    border-color: #15803d;
    box-shadow: 0 2px 8px rgba(21, 128, 61, 0.2);
}

.lit-ege-test-nav-pill.is-current.is-wrong {
    animation: none;
    padding: 0;
    border-width: 3px;
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.lit-ege-test-nav-pill.is-current.is-answered {
    animation: none;
    padding: 0;
    border-width: 3px;
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.22);
}

@keyframes lit-ege-test-nav-border-run {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.lit-ege-test-take-body {

    margin: 0 auto;
}

.lit-ege-test-panel.lit-ege-task-card--test {
    display: none;
    margin-bottom: 0;
}

.lit-ege-test-panel.lit-ege-task-card--test.is-active {
    display: block;
    margin-bottom: 36px;
}

.lit-ege-test-panel.lit-ege-test-panel--finish {
    display: none;
    margin-bottom: 36px;
}

.lit-ege-test-panel.lit-ege-test-panel--finish.is-active {
    display: block;
}

.lit-ege-test-finish-plate {
    margin: 0 auto;
    padding: 28px 24px 32px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e4e4e7;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.lit-ege-test-finish-title {
    margin: 0 0 12px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #18181b;
}

.lit-ege-test-finish-lead {
    margin: 0 0 22px;
    font-size: 1rem;
    line-height: 1.55;
    color: #52525b;
}

.lit-ege-test-finish-submit {
    min-width: 200px;
}

.lit-ege-test-finish-result {
    margin-top: 24px;
    padding-top: 20px;
    text-align: center;
}

.lit-ege-test-result-progress-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 14px;
}

.lit-ege-test-result-progress-ring {
    width: 160px;
    height: 160px;
    transform: rotate(-90deg);
}

.lit-ege-test-result-progress-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 10;
}

.lit-ege-test-result-progress-arc {
    fill: none;
    stroke: #2563eb;
    stroke-width: 10;
    stroke-linecap: round;
    /* r=52 => C ≈ 2πr ≈ 326.73 */
    stroke-dasharray: 327;
    stroke-dashoffset: 327;
    transition: stroke-dashoffset 0.35s ease;
}

.lit-ege-test-result-progress-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    font-weight: 800;
    color: #111827;
}

.lit-ege-test-result-summary {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #18181b;
    text-align: center;
}

.lit-ege-test-result-wrong {
    margin-top: 16px;
    text-align: left;
}

.lit-ege-test-result-wrong-title {
    margin: 0 0 12px;
    font-size: 1.1rem;
    color: #991b1b;
}

.lit-ege-task-card--result {
    margin: 0 0 16px;
}

.lit-ege-test-result-wrong-list {
    margin: 0;
    padding-left: 18px;
    color: #374151;
}

.lit-ege-test-result-wrong-list li {
    margin: 0 0 6px;
}

.lit-ege-test-result-all-correct {
    margin: 8px 0 0;
    color: #166534;
    font-weight: 600;
}

.lit-ege-test-nav-pill-inner--finish {
    min-width: 3rem;
    width: 3rem;
    height: 3rem;
    padding: 0;
    font-size: 1.3rem;
    font-family: Georgia, serif;
}

.lit-ege-answer-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border: 1px solid rgba(99, 102, 241, 0.35);
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    color: #334155;
    border-radius: 16px;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.14);
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lit-ege-answer-next:hover {
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
}

.lit-ege-answer-next:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.2);
}

.lit-ege-answer-next:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.25);
    outline-offset: 2px;
}

.lit-ege-answer-next:disabled {
    opacity: 0.55;
    cursor: default;
    transform: none;
    box-shadow: none;
}

@media (max-width: 640px) {
    .lit-ege-answer-next {
        width: 100%;
        margin-left: 0;
    }
}

.lit-ege-answer-submit.is-saved {
    background: #9ca3af;
    border-color: #9ca3af;
    color: #fff;
    cursor: default;
    box-shadow: none;
}

.lit-ege-answer-input.is-saved-answer {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.lit-ege-answer-reveal-toggle--take {
    min-width: 3rem;
    padding-inline: 0.6rem;
    justify-content: center;
    font-weight: 700;
}

.lit-ege-page--test-take:not(.is-test-submitted) .lit-ege-answer-reveal-toggle--take {
    display: none;
}

.lit-ege-page--test-take:not(.is-test-submitted) .lit-ege-answer-reveal {
    display: none;
}

.lit-ege-badge--test-num {
    background: #2c5282;
    color: #fff;
    border: none;
}

.lit-ege-page--test-edit .lit-ege-test-edit-wrap {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 200px);
    padding-bottom: 5.5rem;
    box-sizing: border-box;
}

.lit-ege-test-edit-inner {
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    width: 100%;
}

.lit-ege-test-edit-h1 {
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.lit-ege-test-edit-lead {
    margin: 0 0 20px;
    color: #555;
    max-width: 720px;
}

.lit-ege-test-edit-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.lit-ege-test-title-input {
    width: 100%;
    max-width: 560px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 8px;
}

.lit-ege-test-save-toast {
    position: fixed;
    left: calc(16px + env(safe-area-inset-left, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1200;
    max-width: min(360px, calc(100vw - 32px));
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.06);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lit-ege-test-save-toast__text {
    display: block;
}

.lit-ege-test-save-toast[data-state="saved"] {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.lit-ege-test-save-toast[data-state="pending"] {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.lit-ege-test-save-toast[data-state="saving"] {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.lit-ege-test-save-toast[data-state="error"] {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.lit-ege-test-blocks {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    flex: 1 0 auto;
}

.lit-ege-test-edit-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    margin-top: auto;
    padding: 32px 16px 48px;
    box-sizing: border-box;
}

.lit-ege-test-block-row {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 12px 16px;
    align-items: start;
    padding: 18px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: #fafafa;
    width: 100%;
    box-sizing: border-box;
}

.lit-ege-test-block-row--custom {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
}

.lit-ege-test-block-row.is-dragging {
    opacity: 0.65;
}

.lit-ege-test-block-drag {
    cursor: grab;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    padding: 4px 8px;
    color: #555;
    line-height: 1;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.lit-ege-test-block-drag:active {
    cursor: grabbing;
}

.lit-ege-test-block-num {
    font-weight: 700;
    color: #2c5282;
    min-width: 1.5rem;
    text-align: center;
    padding-top: 6px;
}

.lit-ege-test-block-main {
    grid-column: 3;
    min-width: 0;
    width: 100%;
}

.lit-ege-test-block-inner {
    max-width: 920px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.lit-ege-test-block-inner--bank .lit-ege-test-block-label {
    display: block;
    font-weight: 600;
    margin: 0 0 8px;
}

.lit-ege-test-block-row .lit-ege-test-block-remove {
    grid-column: 4;
    align-self: start;
}

.lit-ege-test-block-label {
    font-weight: 600;
    margin: 0;
}

.lit-ege-test-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-size: 0.95rem;
}

.lit-ege-test-custom-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lit-ege-test-field-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
}

.lit-ege-test-info-table-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 2px;
    padding: 10px 12px 12px;
    border: 1px solid rgba(44, 63, 112, 0.12);
    border-radius: 12px;
    background: rgba(44, 63, 112, 0.03);
}

.lit-ege-test-info-table-box .lit-ege-test-field-label {
    margin: 0;
}

.lit-ege-test-info-table-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
}

.lit-ege-test-info-table-editor-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lit-ege-test-info-table-editor-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
}

.lit-ege-test-table-row-remove {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.06);
    color: #4b5563;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.lit-ege-test-table-row-remove:hover {
    background: rgba(165, 35, 28, 0.12);
    color: var(--color-strawberry, #a5231c);
}

/* display:flex ниже перебивает встроенное скрытие по [hidden] — явно восстанавливаем */
.lit-ege-test-choice-box[hidden],
.lit-ege-test-answer-short[hidden],
.lit-ege-test-answer-extended[hidden] {
    display: none !important;
}

.lit-ege-test-choice-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.lit-ege-test-choice-box .lit-ege-choice-fieldset {
    margin: 0;
}

.lit-ege-test-choice-box .lit-ege-choice-fieldset legend {
    padding: 0;
    margin-bottom: 8px;
}

.lit-ege-test-choice-editor-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.lit-ege-test-choice-editor-label {
    flex: 1;
    min-width: 0;
}

.lit-ege-test-choice-editor-label .lit-ege-test-choice-option-text {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    color: #374151;
    padding: 0;
    margin: 0;
    outline: none;
}

.lit-ege-test-choice-row-remove {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    margin-top: 10px;
    border: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.06);
    color: #4b5563;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.lit-ege-test-choice-row-remove:hover {
    background: rgba(165, 35, 28, 0.12);
    color: var(--color-strawberry, #a5231c);
}

@media (min-width: 768px) {
    .lit-ege-test-choice-editor-label .lit-ege-test-choice-option-text {
        font-size: 1.125rem;
    }
}

@media (max-width: 720px) {
    .lit-ege-test-block-row,
    .lit-ege-test-block-row--custom {
        grid-template-columns: 1fr;
    }

    .lit-ege-test-block-num {
        text-align: left;
    }

    .lit-ege-test-block-main,
    .lit-ege-test-block-row .lit-ege-test-block-remove {
        grid-column: 1;
    }

    .lit-ege-test-choice-row-remove {
        margin-top: 8px;
    }

    .lit-ege-test-info-table-head,
    .lit-ege-test-info-table-editor-row {
        grid-template-columns: 1fr;
    }
}

/* ——— Статистика (bento-сетка, светлая тема) ——— */

.lit-ege-page--statistics {
    margin: 0 auto;
    box-sizing: border-box;
    --stats-tile-overview: #e8ebf6;
    --stats-tile-history: #f4f2f8;
    --stats-tile-topics: #e4e7f4;
    --stats-tile-divisions: #f3ecec;
    --stats-tile-bank: #ebe4f0;
    --stats-track: rgba(44, 63, 112, 0.09);
}

.lit-ege-stats-hero {
    margin-bottom: 22px;
}

.lit-ege-stats-hero__title {
    font-size: clamp(1.5rem, 2.8vw, 1.85rem);
    font-weight: 700;
    color: var(--color-blueberry, #2c3f70);
    margin: 0 0 6px;
    letter-spacing: -0.03em;
}

.lit-ege-stats-hero__lead {
    margin: 0;
    max-width: 38rem;
    color: var(--color-text-muted, #4d5d7a);
    font-size: 0.92rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .lit-ege-stats-hero__lead {
        font-size: 16px;
    }
}

.lit-ege-stats-bento-shell {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-sizing: border-box;
}

.lit-ege-stats-bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    gap: 16px;
}

.lit-ege-stats-card--overview {
    grid-column: 1 / 8;
    grid-row: 1;
}

.lit-ege-stats-card--history {
    grid-column: 8 / 13;
    grid-row: 1 / span 2;
}

.lit-ege-stats-card--topics {
    grid-column: 1 / 5;
    grid-row: 2;
}

.lit-ege-stats-card--divisions {
    grid-column: 5 / 8;
    grid-row: 2;
}

.lit-ege-stats-card--bank {
    grid-column: 1 / -1;
    grid-row: 3;
}

.lit-ege-stats-card {
    border: none;
    border-radius: 22px;
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-sizing: border-box;
}

.lit-ege-stats-tile--overview {
    background: var(--stats-tile-overview);
}

.lit-ege-stats-tile--history {
    background: var(--stats-tile-history);
}

.lit-ege-stats-tile--topics {
    background: var(--stats-tile-topics);
}

.lit-ege-stats-tile--divisions {
    background: var(--stats-tile-divisions);
}

.lit-ege-stats-tile--bank {
    background: var(--stats-tile-bank);
}

.lit-ege-stats-overview-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.lit-ege-stats-overview-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted, #4d5d7a);
}

.lit-ege-stats-overview-legend li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lit-ege-stats-overview-legend__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.lit-ege-stats-overview-legend__dot--violet {
    background: var(--color-violet, #8089d2);
}

.lit-ege-stats-overview-legend__dot--blueberry {
    background: var(--color-blueberry, #2c3f70);
}

.lit-ege-stats-overview-legend__dot--strawberry {
    background: var(--color-strawberry, #a5231c);
}

.lit-ege-stats-overview-legend__dot--butter {
    background: var(--color-buttercream, #c8d4e5);
}

.lit-ege-stats-overview-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lit-ege-stats-overview-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    align-items: center;
}

@media (max-width: 520px) {
    .lit-ege-stats-overview-bar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 10px;
    }

    .lit-ege-stats-overview-bar__val {
        justify-self: end;
    }
}

.lit-ege-stats-overview-bar__track {
    height: 10px;
    border-radius: 999px;
    background: var(--stats-track);
    overflow: hidden;
}

.lit-ege-stats-overview-bar__fill {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: 4px;
}

.lit-ege-stats-overview-bar__fill--violet {
    background: var(--color-violet, #8089d2);
}

.lit-ege-stats-overview-bar__fill--blueberry {
    background: var(--color-blueberry, #2c3f70);
}

.lit-ege-stats-overview-bar__fill--strawberry {
    background: var(--color-strawberry, #a5231c);
}

.lit-ege-stats-overview-bar__fill--butter {
    background: var(--color-buttercream, #c8d4e5);
}

.lit-ege-stats-overview-bar__val {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-blueberry, #2c3f70);
    min-width: 2.25rem;
    text-align: right;
    letter-spacing: -0.02em;
}

.lit-ege-stats-overview-bar__val--raw {
    font-size: 1.05rem;
}

.lit-ege-stats-card--interactive {
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.lit-ege-stats-card--interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(44, 63, 112, 0.1);
}

.lit-ege-stats-card--interactive:focus-visible {
    outline: 2px solid var(--color-violet, #8089d2);
    outline-offset: 3px;
}

.lit-ege-stats-card__eyebrow {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(44, 63, 112, 0.52);
}

.lit-ege-stats-card__hero {
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lit-ege-stats-card__hero--inline {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 16px;
}

.lit-ege-stats-card__hero-num {
    font-size: clamp(2.4rem, 5.2vw, 3.15rem);
    font-weight: 800;
    line-height: 1;
    color: var(--color-blueberry, #2c3f70);
    letter-spacing: -0.04em;
}

.lit-ege-stats-card__hero-num--violet {
    color: var(--color-violet, #8089d2);
}

.lit-ege-stats-card__hero-unit {
    font-size: 0.52em;
    font-weight: 800;
    margin-left: 1px;
}

.lit-ege-stats-card__hero-caption {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-muted, #4d5d7a);
    line-height: 1.35;
    max-width: 22rem;
}

.lit-ege-stats-card__title--compact {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.lit-ege-stats-pct {
    font-weight: 800;
    color: var(--color-blueberry, #2c3f70);
}

.lit-ege-stats-card__submetric {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: #334155;
}

.lit-ege-stats-card__submetric strong {
    color: var(--color-strawberry, #a5231c);
    font-weight: 800;
}

.lit-ege-stats-card__hint {
    margin: 12px 0 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted, #4d5d7a);
    opacity: 0.85;
}

.lit-ege-stats-history-item__score {
    font-weight: 800;
    color: var(--color-blueberry, #2c3f70);
}

.lit-ege-stats-card__metric-num--xl {
    font-size: clamp(2.1rem, 4.5vw, 2.75rem);
    font-weight: 800;
}

.lit-ege-stats-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-blueberry, #2c3f70);
    margin: 0 0 4px;
}

.lit-ege-stats-card__kicker {
    margin: 0 0 14px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted, #4d5d7a);
    opacity: 0.92;
}

.lit-ege-stats-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.lit-ege-stats-card__metric-inline {
    text-align: right;
}

.lit-ege-stats-card__metric-num {
    display: block;
    font-size: 50px;
    font-weight: 700;
    color: var(--color-blueberry, #2c3f70);
    line-height: 1.1;
}

.lit-ege-stats-card__metric-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted, #4d5d7a);
}

.lit-ege-stats-history-list {
    list-style: none;
    margin: 0;
    padding: 0 12px 0 0;
    flex: 1;
    min-height: 0;
    max-height: min(52vh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--color-strawberry, #a5231c) transparent;
}

.lit-ege-stats-history-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(44, 63, 112, 0.07);
}

.lit-ege-stats-history-item:last-child {
    border-bottom: none;
}

.lit-ege-stats-history-item__main {
    min-width: 0;
    flex: 1;
}

.lit-ege-stats-history-item__title {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lit-ege-stats-history-item__meta {
    display: block;
    font-size: 0.82rem;
    color: var(--color-text-muted, #4d5d7a);
    margin-top: 4px;
}

.lit-ege-stats-history-item__link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 16px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    background: var(--color-strawberry, #a5231c);
    color: var(--color-white, #fff);
    transition: background 0.15s ease;
}

.lit-ege-stats-history-item__link:hover {
    background: var(--color-strawberry-hover, #7f1b15);
}

.lit-ege-stats-card__footer {
    margin-top: 10px;
}

.lit-ege-stats-text-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-strawberry, #a5231c);
    text-decoration: none;
}

.lit-ege-stats-text-link:hover {
    text-decoration: underline;
}

.lit-ege-stats-empty {
    flex: 1;
    padding: 12px 0;
    font-size: 0.92rem;
    color: var(--color-text-muted, #4d5d7a);
    line-height: 1.5;
}

.lit-ege-stats-empty a {
    color: var(--color-strawberry, #a5231c);
    font-weight: 600;
}

.lit-ege-stats-topic-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0 12px 0 0;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    max-height: min(38vh, 280px);
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--color-strawberry, #a5231c) transparent;
}

.lit-ege-stats-topic-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lit-ege-stats-topic-row:last-child {
    border-bottom: none;
}

.lit-ege-stats-topic-row .lit-ege-progress-ring {
    flex-shrink: 0;
    transform: scale(0.92);
    transform-origin: left center;
}

.lit-ege-stats-topic-row__text {
    min-width: 0;
}

.lit-ege-stats-topic-row__name {
    display: block;
    font-weight: 600;
    font-size: 16px;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lit-ege-stats-topic-row__sub {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted, #4d5d7a);
    margin-top: 2px;
}

.lit-ege-stats-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    border: none;
    color: var(--color-blueberry, #2c3f70);
    background: rgba(255, 255, 255, 0.72);
    transition: background 0.15s ease, filter 0.15s ease;
}

.lit-ege-stats-card__cta:hover {
    background: rgba(255, 255, 255, 0.92);
}

.lit-ege-stats-card__cta--primary {
    background: var(--color-blueberry, #2c3f70);
    color: #fff;
}

.lit-ege-stats-card__cta--primary:hover {
    filter: brightness(1.06);
}

.lit-ege-stats-bank-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    flex: 1;
    min-height: 0;
}

@media (min-width: 520px) {
    .lit-ege-stats-bank-body {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
}

.lit-ege-stats-bank-body--minimal {
    gap: 8px;
    flex: 0 0 auto;
    margin: 4px 0 10px;
}

.lit-ege-stats-bank-body--minimal .lit-ege-stats-bank-ring--card {
    width: 100px;
    height: 100px;
}

.lit-ege-stats-bank-body--minimal .lit-ege-stats-bank-ring--card .lit-ege-stats-bank-ring__svg {
    width: 100px;
    height: 100px;
}

.lit-ege-stats-bank-body--minimal .lit-ege-stats-bank-ring--card .lit-ege-stats-bank-ring__pct {
    font-size: 1.25rem;
}

.lit-ege-stats-bank-ring-wrap {
    flex-shrink: 0;
}

.lit-ege-stats-bank-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.lit-ege-stats-bank-ring--card {
    width: 132px;
    height: 132px;
}

.lit-ege-stats-bank-ring--card .lit-ege-stats-bank-ring__svg {
    width: 132px;
    height: 132px;
}

.lit-ege-stats-bank-ring--card .lit-ege-stats-bank-ring__pct {
    font-size: 1.5rem;
    font-weight: 800;
}

.lit-ege-stats-bank-ring__svg {
    width: 120px;
    height: 120px;
}

.lit-ege-stats-bank-ring--modal {
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
}

.lit-ege-stats-bank-ring--modal .lit-ege-stats-bank-ring__svg {
    width: 160px;
    height: 160px;
}

.lit-ege-stats-bank-ring--modal .lit-ege-stats-bank-ring__pct {
    font-size: 1.85rem;
    font-weight: 800;
}

.lit-ege-stats-bank-ring__track {
    stroke: rgba(200, 212, 229, 0.9);
}

.lit-ege-stats-bank-ring__arc {
    stroke: var(--color-violet, #8089d2);
}

.lit-ege-stats-bank-ring__pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-blueberry, #2c3f70);
}

.lit-ege-stats-bank-copy {
    min-width: 0;
}

.lit-ege-stats-bank-lead {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 800;
    color: var(--color-blueberry, #2c3f70);
}

.lit-ege-stats-bank-lead__num {
    color: var(--color-violet, #8089d2);
}

.lit-ege-stats-bank-desc {
    margin: 0 0 10px;
    font-size: 0.88rem;
    color: var(--color-text-muted, #4d5d7a);
    line-height: 1.5;
}

.lit-ege-stats-bank-meta {
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
}

@media (max-width: 900px) {
    .lit-ege-stats-bento {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .lit-ege-stats-card--overview {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .lit-ege-stats-card--history {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .lit-ege-stats-card--topics {
        grid-column: 1 / 4;
        grid-row: auto;
    }

    .lit-ege-stats-card--divisions {
        grid-column: 4 / 7;
        grid-row: auto;
    }

    .lit-ege-stats-card--bank {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

@media (max-width: 640px) {
    .lit-ege-stats-bento {
        grid-template-columns: 1fr;
    }

    .lit-ege-stats-card--overview,
    .lit-ege-stats-card--topics,
    .lit-ege-stats-card--divisions,
    .lit-ege-stats-card--bank,
    .lit-ege-stats-card--history {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .lit-ege-stats-history-list {
        max-height: 360px;
    }
}

/* Модальные окна статистики */
body.lit-stats-modal-open {
    overflow: hidden;
}

.lit-ege-stats-modal[hidden] {
    display: none !important;
}

.lit-ege-stats-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.lit-ege-stats-modal__backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(44, 63, 112, 0.38);
    cursor: pointer;
}

.lit-ege-stats-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    max-height: min(88vh, 620px);
    display: flex;
    flex-direction: column;
    background: var(--color-white, #fff);
    border-radius: 22px;
    border: none;
    box-shadow: 0 24px 56px rgba(44, 63, 112, 0.14);
    overflow: hidden;
    box-sizing: border-box;
}

.lit-ege-stats-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 8px 20px;
}

.lit-ege-stats-modal__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-blueberry, #2c3f70);
}

.lit-ege-stats-modal__close {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.06);
    color: #475569;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.lit-ege-stats-modal__close:hover {
    background: rgba(165, 35, 28, 0.12);
    color: var(--color-strawberry, #a5231c);
}

.lit-ege-stats-modal__lead {
    margin: 0;
    padding: 12px 20px 0;
    font-size: 0.92rem;
    color: #475569;
}

.lit-ege-stats-modal__body {
    padding: 14px 28px 18px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--color-strawberry, #a5231c) transparent;
}

.lit-ege-stats-modal__body--bank {
    text-align: center;
}

.lit-ege-stats-modal-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lit-ege-stats-modal-list__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(44, 63, 112, 0.07);
}

.lit-ege-stats-modal-list__row:last-child {
    border-bottom: none;
}

.lit-ege-stats-modal-list__row .lit-ege-progress-ring {
    flex-shrink: 0;
}

.lit-ege-stats-modal-list__row > div {
    min-width: 0;
    flex: 1;
}

.lit-ege-stats-modal-list__name {
    display: block;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lit-ege-stats-modal-list__val {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-violet, #8089d2);
    margin-top: 4px;
}

.lit-ege-stats-modal-metrics {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    text-align: left;
}

.lit-ege-stats-modal-metrics li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(200, 212, 229, 0.5);
}

.lit-ege-stats-modal-metrics li:last-child {
    border-bottom: none;
}

.lit-ege-stats-modal-metrics__val {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--color-violet, #8089d2);
}

.lit-ege-stats-modal-metrics__lbl {
    font-size: 0.84rem;
    color: var(--color-text-muted, #4d5d7a);
    line-height: 1.35;
}

.lit-ege-stats-modal__note {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.45;
    text-align: left;
}

.lit-ege-stats-modal__footer {
    padding: 14px 20px 18px;

}

.lit-ege-stats-modal__footer .lit-ege-stats-card__cta {
    width: 100%;
    box-sizing: border-box;
}
