/* Стили, перенесенные из Django HTML-шаблонов. */

/* Источник: templates_library/templates/templates_library/template_detail.html */
.template-badges {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.45rem;
    }

    .template-badge {
        padding: 0.36rem 0.68rem;
        border-radius: 0.35rem;
        color: #ffffff;
        font-weight: 700;
        letter-spacing: 0;
    }

    .template-badge--type {
        background: linear-gradient(135deg, #d84fc9, #b84be8);
    }

    .template-badge--free {
        background: #22c55e;
        color: #052e16;
    }

    .template-badge--registered {
        background: #38bdf8;
        color: #082f49;
    }

    .template-badge--start,
    .template-badge--pro {
        background: #f59e0b;
        color: #451a03;
    }

    body.templates-library-page .main-panel > .content {
        padding: 0 !important;
    }

    .template-gallery {
        overflow: hidden;
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 0.5rem;
        background: #0f172a;
    }

    .template-gallery__frame {
        display: flex;
        align-items: center;
        justify-content: center;
        aspect-ratio: 16 / 10;
        width: 100%;
        max-height: 520px;
        padding: 0.75rem;
        background: #f8fafc;
    }

    .template-gallery__image {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .template-gallery .carousel-control-prev,
    .template-gallery .carousel-control-next {
        width: 12%;
        opacity: 0.88;
    }

    .template-gallery .carousel-control-prev-icon,
    .template-gallery .carousel-control-next-icon {
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 999px;
        background-color: rgba(15, 23, 42, 0.72);
        background-size: 52% 52%;
    }

    .template-gallery .carousel-indicators {
        margin-bottom: 0.4rem;
    }

    .template-gallery .carousel-indicators li {
        width: 0.55rem;
        height: 0.55rem;
        border-radius: 999px;
    }

/* Источник: payments/templates/payments/paywall.html */
.paywall-hero {
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background:
                radial-gradient(circle at top right, rgba(29, 140, 248, 0.28), transparent 34%),
                linear-gradient(135deg, rgba(39, 41, 61, 0.98), rgba(24, 26, 39, 0.96));
        }

        .paywall-kicker {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.45rem 0.9rem;
            border-radius: 999px;
            background: rgba(29, 140, 248, 0.12);
            color: #4bb5ff;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .paywall-hero-title {
            margin: 1.25rem 0 0.75rem;
            font-size: 2rem;
            font-weight: 700;
            line-height: 1.15;
        }

        .paywall-hero-copy {
            max-width: 42rem;
            margin-bottom: 0;
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.72);
        }

        .paywall-status-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 0.9rem;
            margin-top: 1.75rem;
        }

        .paywall-status-item {
            min-height: 100%;
            padding: 1rem 1.1rem;
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.04);
        }

        .paywall-status-label {
            display: block;
            margin-bottom: 0.35rem;
            color: rgba(255, 255, 255, 0.58);
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .paywall-status-value {
            display: block;
            color: #ffffff;
            font-size: 1rem;
            font-weight: 600;
        }

        .paywall-provider-stack {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .paywall-provider-chip {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.9rem 1rem;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.04);
            color: #ffffff;
            font-size: 0.92rem;
        }

        .paywall-provider-chip i {
            margin-right: 0.55rem;
            color: #4bb5ff;
        }

        .paywall-provider-state {
            padding: 0.22rem 0.65rem;
            border-radius: 999px;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        .paywall-provider-state.is-enabled {
            background: rgba(0, 242, 195, 0.14);
            color: #26e7a6;
        }

        .paywall-provider-state.is-disabled {
            background: rgba(255, 140, 140, 0.14);
            color: #ff8a8a;
        }

        .paywall-plan-card {
            height: 100%;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
                #1e1e2f;
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
        }

        .paywall-plan-card:hover {
            transform: translateY(-4px);
            border-color: rgba(29, 140, 248, 0.28);
            box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
        }

        .paywall-plan-card--featured {
            border-color: rgba(29, 140, 248, 0.36);
            box-shadow: 0 18px 40px rgba(29, 140, 248, 0.08);
        }

        .paywall-plan-head {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            align-items: flex-start;
        }

        .paywall-plan-type {
            display: inline-flex;
            align-items: center;
            padding: 0.35rem 0.75rem;
            border-radius: 999px;
            background: rgba(75, 181, 255, 0.12);
            color: #4bb5ff;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.07em;
            text-transform: uppercase;
        }

        .paywall-plan-title {
            margin: 1rem 0 0.45rem;
            font-size: 1.45rem;
            font-weight: 700;
        }

        .paywall-plan-description {
            min-height: 2.8rem;
            margin-bottom: 0;
            color: rgba(255, 255, 255, 0.62);
            line-height: 1.55;
        }

        .paywall-price {
            display: flex;
            align-items: baseline;
            gap: 0.45rem;
            margin-bottom: 0.4rem;
            color: #ffffff;
            font-size: 2.35rem;
            font-weight: 800;
            line-height: 1;
        }

        .paywall-price span {
            color: rgba(255, 255, 255, 0.6);
            font-size: 1rem;
            font-weight: 600;
        }

        .paywall-stars-note {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.45rem 0.75rem;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.04);
            color: #ffd36c;
            font-size: 0.88rem;
            font-weight: 600;
        }

        .paywall-features {
            display: grid;
            gap: 0.75rem;
            margin: 1.35rem 0 1.5rem;
        }

        .paywall-feature {
            padding: 0.9rem 1rem;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            background: rgba(255, 255, 255, 0.03);
        }

        .paywall-feature-label {
            display: block;
            margin-bottom: 0.25rem;
            color: rgba(255, 255, 255, 0.56);
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .paywall-feature-value {
            color: #ffffff;
            font-size: 1rem;
            font-weight: 600;
        }

        .paywall-bonus-badge {
            display: inline-flex;
            align-items: center;
            margin-top: 0.85rem;
            padding: 0.5rem 0.8rem;
            border-radius: 999px;
            background: rgba(255, 211, 108, 0.12);
            color: #ffd36c;
            font-size: 0.82rem;
            font-weight: 700;
            line-height: 1.35;
        }

        .paywall-actions {
            display: grid;
            gap: 0.75rem;
        }

        .paywall-actions form {
            margin: 0;
        }

        .paywall-actions .btn {
            margin: 0;
        }

        .paywall-muted-note {
            margin-top: 0.85rem;
            color: rgba(255, 255, 255, 0.48);
            font-size: 0.85rem;
        }

        .paywall-auto-renew {
            display: flex;
            align-items: center;
            gap: 0.9rem;
            margin-bottom: 1rem;
            padding: 0.9rem 1rem;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.03);
        }

        .paywall-auto-renew input[type="checkbox"] {
            width: 1.1rem;
            height: 1.1rem;
            margin: 0;
            accent-color: #4b7cff;
            flex: 0 0 auto;
        }

        .paywall-auto-renew-label {
            display: block;
            margin: 0;
            color: #ffffff;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
        }

        .paywall-auto-renew-help {
            display: block;
            margin-top: 0.2rem;
            color: rgba(255, 255, 255, 0.58);
            font-size: 0.82rem;
            line-height: 1.45;
        }

        .paywall-empty-card,
        .paywall-active-card {
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
        }

        .paywall-active-icon {
            width: 3.25rem;
            height: 3.25rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(0, 242, 195, 0.14);
            color: #26e7a6;
            font-size: 1.2rem;
            margin-bottom: 1rem;
        }

        body.white-content .paywall-hero {
            border-color: rgba(20, 30, 55, 0.10);
            background:
                radial-gradient(circle at top right, rgba(29, 140, 248, 0.14), transparent 34%),
                linear-gradient(135deg, #ffffff, #f5f8fc);
            box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
        }

        body.white-content .paywall-kicker,
        body.white-content .paywall-plan-type {
            background: rgba(29, 140, 248, 0.10);
            color: #1376c5;
        }

        body.white-content .paywall-hero-title,
        body.white-content .paywall-status-value,
        body.white-content .paywall-provider-chip,
        body.white-content .paywall-plan-title,
        body.white-content .paywall-price,
        body.white-content .paywall-feature-value,
        body.white-content .paywall-auto-renew-label {
            color: #111827;
        }

        body.white-content .paywall-hero-copy,
        body.white-content .paywall-plan-description,
        body.white-content .paywall-muted-note,
        body.white-content .paywall-auto-renew-help {
            color: #5b6475;
        }

        body.white-content .paywall-status-item,
        body.white-content .paywall-provider-chip,
        body.white-content .paywall-feature,
        body.white-content .paywall-auto-renew,
        body.white-content .paywall-empty-card,
        body.white-content .paywall-active-card {
            border-color: rgba(20, 30, 55, 0.10);
            background: rgba(255, 255, 255, 0.78);
        }

        body.white-content .paywall-status-label,
        body.white-content .paywall-feature-label,
        body.white-content .paywall-price span {
            color: #6b7280;
        }

        body.white-content .paywall-plan-card {
            border-color: rgba(20, 30, 55, 0.10);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.98)),
                #ffffff;
            box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
        }

        body.white-content .paywall-plan-card:hover {
            border-color: rgba(29, 140, 248, 0.22);
            box-shadow: 0 20px 42px rgba(15, 23, 42, 0.10);
        }

        body.white-content .paywall-plan-card--featured {
            border-color: rgba(29, 140, 248, 0.28);
            box-shadow: 0 18px 38px rgba(29, 140, 248, 0.10);
        }

        body.white-content .paywall-stars-note {
            background: rgba(255, 211, 108, 0.14);
            color: #9a6700;
        }

        body.white-content .paywall-bonus-badge {
            background: rgba(255, 211, 108, 0.18);
            color: #9a6700;
        }

        body.white-content .paywall-provider-chip i {
            color: #1376c5;
        }

        body.white-content .paywall-provider-state.is-enabled {
            background: rgba(0, 242, 195, 0.10);
            color: #0f9f74;
        }

        body.white-content .paywall-provider-state.is-disabled {
            background: rgba(255, 140, 140, 0.12);
            color: #cc5b5b;
        }

        body.white-content .paywall-auto-renew input[type="checkbox"] {
            accent-color: #1376c5;
        }

        body.white-content .paywall-active-icon {
            background: rgba(0, 242, 195, 0.10);
            color: #0f9f74;
        }

    body.white-content .paywall-empty-card .text-muted,
    body.white-content .paywall-active-card .text-muted {
            color: #5b6475 !important;
        }

        @media (max-width: 991.98px) {
            .paywall-hero-title {
                font-size: 1.7rem;
            }

            .paywall-provider-stack {
                margin-top: 1.5rem;
            }
        }

/* Общие классы для стилей, снятых с HTML-атрибутов. */
.auth-card {
    max-width: 500px;
    width: 100%;
}

.auth-card--login {
    max-width: 480px;
}

.auth-public-container {
    min-height: 70vh;
}

.payment-result-container {
    max-width: 600px;
}

.admin-group-permissions-select {
    height: 200px;
}

.admin-inline-form,
.document-inline-form {
    display: inline-block;
}

.document-rename-summary {
    cursor: pointer;
}

.document-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Бейджи документов не должны наследовать белые Bootstrap-состояния в тёмной теме. */
.document-table .document-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.32rem 0.62rem;
    border: 1px solid transparent;
    border-radius: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
    white-space: normal;
    vertical-align: middle;
    box-shadow: none;
}

.document-table .document-status-badge--muted {
    color: #c8d1e5;
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.28);
}

.document-table .document-status-badge--warning {
    color: #382007;
    background: #ffb86b;
    border-color: #f59f3a;
}

.document-table .document-status-badge--danger {
    color: #ffe8f0;
    background: rgba(239, 93, 139, 0.82);
    border-color: rgba(255, 132, 171, 0.65);
}

.document-table .document-result-unavailable {
    justify-content: center;
    min-width: 6.35rem;
    white-space: nowrap;
}

body.white-content .document-table .document-status-badge--muted {
    color: #334155;
    background: #eef2f7;
    border-color: #cbd5e1;
}

body.white-content .document-table .document-status-badge--warning {
    color: #5b3400;
    background: #fff1c7;
    border-color: #f7c95f;
}

body.white-content .document-table .document-status-badge--danger {
    color: #831843;
    background: #ffe4ef;
    border-color: #f9a8c4;
}

.validation-snippet {
    white-space: pre-wrap;
}

.yandex-metrika-pixel {
    position: absolute;
    left: -9999px;
}

.status-progress {
    position: relative;
    height: 22px;
    overflow: hidden;
    border-radius: 0.25rem;
    background: #e9ecef;
}

.status-progress-meter {
    width: 0;
    height: 100%;
    background: #1d8cf8;
    transition: width 0.25s ease;
}

.status-progress-meter.is-processing {
    background: #ff8d72;
}

.status-progress-meter.is-complete {
    background: #00f2c3;
}

.status-progress-meter.is-error {
    background: #dc2626;
}

.status-progress-meter.is-error ~ .status-progress-label {
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(69, 10, 10, 0.55);
}

.status-progress-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    line-height: 1;
    pointer-events: none;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.is-initially-hidden {
    display: none;
}

.sessions-user-agent-cell {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-feature-icon {
    font-size: 40px;
}

.nav-link-plain {
    color: inherit;
    text-decoration: none;
}

.nav-link-plain:hover,
.nav-link-plain:focus {
    color: inherit;
    text-decoration: none;
}

.gge-tree-indent-0 {
    padding-left: 0;
}

.gge-tree-indent-1 {
    padding-left: 1.25rem;
}

.gge-tree-indent-2 {
    padding-left: 2.5rem;
}

.gge-tree-indent-3 {
    padding-left: 3.75rem;
}

/* Источник: templates_library/templates/templates_library/index.html */
.template-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .template-badge {
        padding: 0.32rem 0.6rem;
        border-radius: 0.35rem;
        color: #ffffff;
        font-weight: 700;
        letter-spacing: 0;
    }

    .template-badge--type {
        background: linear-gradient(135deg, #d84fc9, #b84be8);
    }

    .template-badge--free {
        background: #22c55e;
        color: #052e16;
    }

    .template-badge--registered {
        background: #38bdf8;
        color: #082f49;
    }

    .template-badge--start,
    .template-badge--pro {
        background: #f59e0b;
        color: #451a03;
    }

    body.templates-library-page .main-panel > .content {
        padding: 0 !important;
    }

    .template-preview-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 160px;
        border-radius: 0.5rem;
        background: #f1f5f9;
        color: #64748b;
        font-weight: 700;
    }

/* Источник: templates_library/templates/templates_library/category_detail.html */
.template-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .template-badge {
        padding: 0.32rem 0.6rem;
        border-radius: 0.35rem;
        color: #ffffff;
        font-weight: 700;
        letter-spacing: 0;
    }

    .template-badge--type {
        background: linear-gradient(135deg, #d84fc9, #b84be8);
    }

    .template-badge--free {
        background: #22c55e;
        color: #052e16;
    }

    .template-badge--registered {
        background: #38bdf8;
        color: #082f49;
    }

    .template-badge--start,
    .template-badge--pro {
        background: #f59e0b;
        color: #451a03;
    }

    body.templates-library-page .main-panel > .content {
        padding: 0 !important;
    }

    .template-preview-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 160px;
        border-radius: 0.5rem;
        background: #f1f5f9;
        color: #64748b;
        font-weight: 700;
    }

/* Источник: admin_panel/templates/admin_panel/backups/index.html */
.backup-command-toolbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .backup-command-copy-status {
        font-size: 0.875rem;
    }

    .backup-command-block {
        white-space: pre-wrap;
        word-break: break-word;
    }

/* Источник: documents_conversion/templates/documents_conversion/conversion_validation.html */
.conversion-validation-page {
      max-width: 100%;
      overflow-x: hidden;
    }

    .conversion-validation-page .card,
    .conversion-validation-page .card-body {
      min-width: 0;
    }

    .conversion-validation-page .table-responsive {
      display: block;
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
      overflow-y: visible;
      padding-bottom: 0;
    }

    .conversion-validation-page .table-responsive > .table {
      width: 100%;
      min-width: 0;
      max-width: 100%;
      table-layout: fixed;
      margin-bottom: 0;
    }

    .conversion-validation-page .table th,
    .conversion-validation-page .table td {
      white-space: normal;
      overflow-wrap: anywhere;
      word-break: break-word;
      vertical-align: top;
    }

    .conversion-validation-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
    }

    .conversion-validation-actions .btn {
      margin: 0 !important;
    }

/* Источник: documents_conversion/templates/documents_conversion/conversion_status.html */
.conversion-error {
    background: #fef2f2;
    border-color: #f87171;
    color: #450a0a;
}

.conversion-error strong,
.conversion-error__message,
.conversion-error__details,
.conversion-error__subtitle,
.conversion-error__note,
.conversion-error__request-id {
    color: #450a0a;
}

.conversion-error__message,
.conversion-error__details,
.conversion-error__note,
.conversion-error__request-id {
    margin-top: 0.5rem;
}

.conversion-error__details,
.conversion-error__note,
.conversion-error__request-id {
    font-size: 0.875rem;
}

.conversion-error__subtitle {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.conversion-error__diagnostics {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Предупреждение о смете или КАЦ в форме загрузки ВОР. */
.wrong-converter-notice {
    margin-bottom: 1.25rem;
    border-color: #f59e0b;
    background: #fffbeb;
    color: #451a03;
}

.wrong-converter-notice strong,
.wrong-converter-notice__message {
    color: #451a03;
}

.wrong-converter-notice__message {
    margin-top: 0.5rem;
}

.wrong-converter-notice__action {
    margin-top: 0.85rem;
}

body.white-content .wrong-converter-notice {
    border-color: #f59e0b;
    background: #fff7ed;
    color: #431407;
}

body.white-content .wrong-converter-notice strong,
body.white-content .wrong-converter-notice__message {
    color: #431407;
}

.conversion-diagnostic-card {
    padding: 0.75rem;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #111827;
}

/* Цвет карточки отражает severity структурированной диагностики. */
.conversion-diagnostic-card--warning {
    border-color: #f59e0b;
    background: #fffbeb;
}

.conversion-diagnostic-card--info {
    border-color: #9ca3af;
    background: #f3f4f6;
}

.conversion-diagnostic-card--error {
    border-color: #ef4444;
    background: #fef2f2;
}

.conversion-diagnostic-card__path {
    color: #1f2937;
    font-size: 0.82rem;
    font-weight: 600;
}

.conversion-diagnostic-card__message {
    margin-top: 0.35rem;
    color: #111827;
    font-size: 0.875rem;
}

.conversion-diagnostic-card__recommendation {
    margin-top: 0.35rem;
    color: #450a0a;
    font-size: 0.82rem;
}

.conversion-diagnostics-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.conversion-diagnostics-list h5 {
    margin-bottom: 0;
}

/* Пояснение ВОР остаётся читаемым в тёмной и светлой теме. */
.vor-upload-kind {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.65rem;
}

.vor-upload-kind__option {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 0;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.5rem;
    cursor: pointer;
}

.vor-upload-kind__option input {
    margin-top: 0.25rem;
}

.vor-upload-kind__option span {
    display: grid;
    gap: 0.25rem;
}

.vor-upload-kind__option small,
.vor-upload-kind__description {
    color: rgba(255, 255, 255, 0.7);
}

.vor-upload-kind__description {
    margin: 0;
    font-size: 0.85rem;
}

.vor-document-date__note {
    color: rgba(255, 255, 255, 0.7);
}

.vor-date-control {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
}

.vor-date-control .form-control {
    flex: 1 1 14rem;
    min-width: 0;
}

.vor-date-control__button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.document-details-link {
    font-size: 0.875rem;
    font-weight: 600;
}

body.white-content .vor-upload-kind {
    border-color: #d1d5db;
}

body.white-content .vor-upload-kind__option {
    border-color: #d1d5db;
}

body.white-content .vor-upload-kind__option small,
body.white-content .vor-upload-kind__description {
    color: #4b5563;
}

body.white-content .vor-document-date__note {
    color: #4b5563;
}

@media (max-width: 575.98px) {
    .vor-date-control {
        align-items: stretch;
        flex-direction: column;
    }

    .vor-date-control__button {
        width: 100%;
    }
}

.xsd-error-card {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #450a0a;
  }

  .xsd-error-card pre {
    background: #fff7f7;
    color: #1f2937;
    margin: 0.75rem 0 0;
    max-height: 360px;
    overflow: auto;
    padding: 0.75rem;
    border-radius: 0.25rem;
    white-space: pre-wrap;
    word-break: break-word;
  }

/* Источник: documents_conversion/templates/documents_conversion/convert_estimate.html */
.estimate-note {
        margin-bottom: 1.5rem;
        padding: 1rem 1.25rem;
        border: 1px solid rgba(91, 192, 222, 0.35);
        border-radius: 0.75rem;
        background: rgba(33, 37, 64, 0.96);
        color: rgba(255, 255, 255, 0.88);
    }

    .estimate-preview-table {
        width: 100%;
        margin-top: 1rem;
        border-collapse: collapse;
    }

    .estimate-preview-table th,
    .estimate-preview-table td {
        padding: 0.65rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        vertical-align: top;
    }

    .estimate-preview-table th {
        color: #ffffff;
        font-weight: 600;
    }

    .estimate-preview-table small {
        display: block;
        color: rgba(255, 255, 255, 0.72);
    }

    .estimate-mode-list,
    .estimate-document-selection,
    .estimate-requisites-grid {
        display: grid;
        gap: 0.75rem;
    }

    .estimate-document-selection {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }

    .estimate-document-option {
        min-height: 72px;
        padding: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 0.5rem;
    }

    .estimate-document-option small {
        display: block;
        margin-top: 0.25rem;
        color: rgba(255, 255, 255, 0.7);
    }

    .estimate-requisites-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .estimate-graph-list {
        margin-top: 0.75rem;
        padding-left: 1.25rem;
    }

    body.white-content .estimate-note {
        border-color: rgba(44, 212, 217, 0.22);
        background: #f5fbfd;
        color: #334155;
    }

    body.white-content .estimate-preview-table th,
    body.white-content .estimate-preview-table td {
        border-bottom-color: rgba(15, 23, 42, 0.12);
    }

    body.white-content .estimate-preview-table th {
        color: #111827;
    }

    body.white-content .estimate-preview-table small {
        color: #64748b;
    }

    .error-card details,
    .alert details {
        margin-top: 0.75rem;
    }

    .error-card pre,
    .alert pre,
    .error-card details,
    .alert details {
        max-height: 360px;
        overflow: auto;
        white-space: pre-wrap;
        word-break: break-word;
    }

    .error-card pre,
    .alert pre {
        padding: 0.75rem;
        border-radius: 0.5rem;
        background: #111827;
        color: #e5e7eb;
    }

    body.white-content .estimate-document-option {
        border-color: rgba(15, 23, 42, 0.14);
    }

    body.white-content .estimate-document-option small {
        color: #64748b;
    }

/* Источник: documents_conversion/templates/documents_conversion/convert_excel.html */
.conversion-help {
        margin-bottom: 1.5rem;
        padding: 1.25rem 1.5rem;
        border: 1px solid rgba(91, 192, 222, 0.35);
        border-radius: 0.75rem;
        background: linear-gradient(180deg, rgba(33, 37, 64, 0.96) 0%, rgba(25, 28, 47, 0.98) 100%);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    }

    .conversion-help__title {
        margin-bottom: 0.75rem;
        color: #ffffff;
        font-size: 1.05rem;
        font-weight: 600;
    }

    .conversion-help__list {
        margin: 0 0 1rem 1.1rem;
        padding: 0;
        color: rgba(255, 255, 255, 0.88);
    }

    .conversion-help__list li + li {
        margin-top: 0.45rem;
    }

    .conversion-help__footer {
        margin: 0;
        color: rgba(255, 255, 255, 0.82);
    }

    .conversion-help__link {
        color: #66d9ef;
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 0.15em;
    }

    .conversion-help__link:hover,
    .conversion-help__link:focus {
        color: #8ce8f7;
    }

    body.white-content .conversion-help {
        border-color: rgba(44, 212, 217, 0.22);
        background: linear-gradient(180deg, #f5fbfd 0%, #edf7fb 100%);
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    }

    body.white-content .conversion-help__title {
        color: #111827;
    }

    body.white-content .conversion-help__list,
    body.white-content .conversion-help__footer {
        color: #334155;
    }

    body.white-content .conversion-help__link {
        color: #0f8ea2;
    }

    body.white-content .conversion-help__link:hover,
    body.white-content .conversion-help__link:focus {
        color: #0b6f80;
    }

/* Источник: documents_viewer/templates/documents_viewer/open_gge_result.html */
body.gge-viewer-result-page .main-panel > .content {
        padding: 0 24px 30px;
    }

    .gge-viewer {
        --gge-text-strong: #f3f7ff;
        --gge-text-muted: #c2ccda;
        --gge-text-soft: #d8dee9;
        --gge-accent-soft: #b7f3ff;
        color: var(--gge-text-soft);
        padding: 28px 0 42px;
    }

    body.white-content .gge-viewer {
        --gge-text-strong: #172033;
        --gge-text-muted: #526174;
        --gge-text-soft: #1f2937;
        --gge-accent-soft: #0f766e;
    }

    .gge-viewer h1,
    .gge-viewer h2,
    .gge-viewer h3,
    .gge-viewer h4,
    .gge-viewer h5,
    .gge-viewer h6 {
        color: var(--gge-text-strong);
    }

    .gge-viewer-shell {
        width: min(1560px, 100%);
        margin: 0 auto;
    }

    .gge-viewer-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
        padding: 1.25rem;
        border: 1px solid rgba(44, 212, 217, 0.24);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.04);
    }

    body.white-content .gge-viewer-top,
    body.white-content .gge-viewer-pane,
    body.white-content .gge-viewer-details {
        background: #ffffff;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    }

    .gge-viewer-title {
        min-width: 0;
    }

    .gge-file-name {
        color: var(--gge-text-strong);
        font-weight: 700;
        overflow-wrap: anywhere;
    }

    .gge-viewer-stats {
        display: flex;
        flex-wrap: wrap;
        gap: .75rem;
        margin-top: 1rem;
    }

    .gge-stat {
        min-width: 138px;
        padding: .75rem .85rem;
        border: 1px solid rgba(148, 163, 184, 0.28);
        border-radius: 8px;
        background: rgba(15, 23, 42, 0.03);
    }

    .gge-stat-value {
        font-size: 1.15rem;
        font-weight: 600;
        color: #1d8cf8;
    }

    .gge-viewer-grid {
        display: grid;
        grid-template-columns: minmax(230px, 300px) minmax(0, 1fr) minmax(280px, 360px);
        gap: 1rem;
        align-items: start;
    }

    .gge-viewer-pane,
    .gge-viewer-details {
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.04);
    }

    .gge-viewer-nav,
    .gge-viewer-details {
        position: sticky;
        top: 88px;
        max-height: calc(100vh - 112px);
        overflow-y: auto;
        scrollbar-gutter: stable;
    }

    .gge-pane-header {
        padding: 1rem 1rem .75rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    }

    .gge-pane-body {
        padding: 1rem;
    }

    .gge-nav-search {
        width: 100%;
        min-height: 38px;
        padding: .55rem .7rem;
        border: 1px solid rgba(148, 163, 184, 0.45);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.04);
        color: inherit;
    }

    .gge-nav-list {
        display: flex;
        flex-direction: column;
        gap: .55rem;
        margin: .75rem 0 0;
        padding: 0;
        list-style: none;
    }

    .gge-nav-button {
        width: 100%;
        border: 1px solid rgba(148, 163, 184, 0.24);
        border-radius: 8px;
        padding: .7rem .8rem;
        background: transparent;
        color: inherit;
        text-align: left;
        line-height: 1.35;
    }

    .gge-nav-button:hover,
    .gge-nav-button.is-active {
        border-color: rgba(29, 140, 248, 0.45);
        background: rgba(29, 140, 248, 0.08);
    }

    .gge-nav-reset {
        border-color: rgba(44, 212, 217, 0.42);
        background: rgba(44, 212, 217, 0.08);
        font-weight: 600;
    }

    .gge-nav-index {
        display: inline-block;
        min-width: 2ch;
        margin-right: .35rem;
        color: var(--gge-text-strong);
    }

    .gge-nav-code {
        display: block;
        max-width: 100%;
        margin-top: .2rem;
        overflow: hidden;
        color: var(--gge-text-strong);
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .gge-nav-name {
        display: -webkit-box;
        margin-top: .25rem;
        overflow: hidden;
        color: var(--gge-text-muted);
        line-height: 1.35;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    /* Сводные итоги сметы в левой навигации. */
    .gge-nav-summary {
        margin-bottom: .85rem;
        border: 1px solid rgba(44, 212, 217, 0.28);
        border-radius: 8px;
        padding: .8rem;
        background: rgba(44, 212, 217, 0.08);
    }

    .gge-nav-summary-title {
        margin: 0 0 .6rem;
        color: var(--gge-text-strong);
        font-size: .88rem;
        font-weight: 700;
        letter-spacing: 0;
    }

    .gge-nav-summary-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .65rem;
        align-items: baseline;
        color: var(--gge-text-muted);
        font-size: .82rem;
        line-height: 1.35;
    }

    .gge-nav-summary-row + .gge-nav-summary-row {
        margin-top: .45rem;
    }

    .gge-nav-summary-row strong {
        max-width: 8.5rem;
        overflow-wrap: anywhere;
        color: var(--gge-text-strong);
        font-size: .86rem;
        font-weight: 700;
        text-align: right;
    }

    .gge-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
        padding: 1rem 1rem 0;
    }

    .gge-viewer-tab {
        border: 1px solid rgba(148, 163, 184, 0.35);
        border-radius: 8px;
        padding: .55rem .8rem;
        background: transparent;
        color: inherit;
        font-weight: 500;
        line-height: 1.25;
    }

    .gge-viewer-tab.is-active {
        border-color: rgba(44, 212, 217, 0.6);
        background: rgba(44, 212, 217, 0.12);
    }

    .gge-tab-panel {
        display: none;
    }

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

    .gge-table-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 1rem 0;
    }

    .gge-scroll-note {
        color: var(--gge-text-muted);
        font-size: .78rem;
    }

    .gge-table-note {
        padding: .55rem 1rem 0;
        color: var(--gge-text-muted);
        font-size: .9rem;
        line-height: 1.45;
    }

    /* Ключевые итоги над таблицей итогов локальной сметы. */
    .gge-key-totals {
        margin: .85rem 1rem 0;
        border: 1px solid rgba(148, 163, 184, 0.24);
        border-radius: 8px;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.035);
    }

    .gge-key-total-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: .75rem;
        margin-top: .85rem;
    }

    .gge-key-total {
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 8px;
        padding: .8rem;
        background: rgba(15, 23, 42, 0.16);
    }

    body.white-content .gge-key-total {
        background: #ffffff;
    }

    .gge-key-total-label {
        min-height: 2.4em;
        color: var(--gge-text-muted);
        font-size: .82rem;
        line-height: 1.3;
    }

    .gge-key-total-value {
        margin-top: .35rem;
        color: var(--gge-text-strong);
        font-size: 1.05rem;
        font-weight: 700;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .gge-key-total-value.is-muted,
    .gge-key-total-note {
        color: var(--gge-text-muted);
    }

    .gge-key-total-note {
        margin-top: .35rem;
        font-size: .78rem;
        line-height: 1.3;
    }

    .gge-active-filter {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: .5rem;
        padding: .75rem 1rem 0;
        color: var(--gge-text-muted);
    }

    .gge-viewer .text-muted,
    .gge-detail-label {
        color: var(--gge-text-muted) !important;
    }

    .gge-pane-header h2,
    .gge-table-toolbar h2,
    .gge-full-block-header h3,
    #gge-details-title {
        color: var(--gge-text-strong);
        font-weight: 650;
    }

    .gge-active-filter[hidden] {
        display: none;
    }

    .gge-table-scroll {
        max-height: min(68vh, 760px);
        margin: .75rem 1rem 1rem;
        overflow: auto;
        border: 1px solid rgba(148, 163, 184, 0.2);
        border-radius: 8px;
        scrollbar-gutter: stable both-edges;
    }

    .gge-viewer table {
        width: max-content;
        min-width: 100%;
        margin-bottom: 0;
        border-collapse: separate;
        border-spacing: 0;
        color: var(--gge-text-soft);
        font-size: .94rem;
        line-height: 1.45;
        table-layout: auto;
    }

    .gge-viewer thead th {
        position: sticky;
        top: 0;
        z-index: 5;
        border-bottom: 1px solid rgba(44, 212, 217, 0.45);
        background: #171927;
        color: #f4f7fb;
        font-size: .78rem;
        font-weight: 700;
        letter-spacing: 0;
        line-height: 1.35;
        text-transform: uppercase;
        vertical-align: bottom;
    }

    body.white-content .gge-viewer thead th {
        background: #f8fafc;
        color: #334155;
    }

    .gge-viewer th,
    .gge-viewer td {
        padding: .8rem .85rem;
        border-top: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16);
        vertical-align: middle;
    }

    .gge-summary-table {
        table-layout: fixed;
    }

    .gge-resources-table {
        min-width: 1180px;
    }

    .gge-offers-table {
        min-width: 1480px;
    }

    .gge-works-table {
        min-width: 1220px;
    }

    .gge-estimate-sections-table {
        min-width: 760px;
    }

    .gge-estimate-items-table {
        min-width: 1280px;
    }

    .gge-estimate-resources-table {
        min-width: 1320px;
    }

    .gge-estimate-totals-table {
        min-width: 920px;
    }

    .gge-field-table {
        min-width: 860px;
    }

    .gge-field-table .gge-col-1 {
        width: 16rem;
        text-align: left;
    }

    .gge-field-table .gge-col-2 {
        width: 28rem;
    }

    .gge-field-table .gge-col-3 {
        width: 22rem;
    }

    .gge-field-table .gge-table-cell-value {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .gge-viewer tbody tr:nth-child(even) {
        background: rgba(148, 163, 184, 0.035);
    }

    .gge-viewer tbody tr:hover {
        background: rgba(29, 140, 248, 0.11);
    }

    .gge-viewer table.gge-full-table {
        width: max-content;
        min-width: 100%;
        table-layout: auto;
    }

    .gge-full-table td,
    .gge-full-table th {
        max-width: 280px;
        white-space: nowrap;
    }

    .gge-full-block + .gge-full-block {
        margin-top: 1.25rem;
        border-top: 1px solid rgba(148, 163, 184, 0.2);
        padding-top: .5rem;
    }

    .gge-full-block-header {
        padding: 1rem 1rem .15rem;
    }

    .gge-full-table .gge-sticky-col {
        position: sticky;
        z-index: 2;
        background: #171927;
        box-shadow: 1px 0 0 rgba(148, 163, 184, 0.22);
    }

    body.white-content .gge-full-table .gge-sticky-col {
        background: #f8fafc;
    }

    .gge-full-table th.gge-sticky-col {
        z-index: 6;
    }

    .gge-full-table .gge-sticky-col-1 {
        left: 0;
        min-width: 220px;
    }

    .gge-full-table .gge-sticky-col-2 {
        left: 220px;
        min-width: 170px;
    }

    .gge-full-table .gge-sticky-col-3 {
        left: 390px;
        min-width: 180px;
    }

    .gge-cell-value {
        display: block;
        max-width: 260px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .gge-table-cell-value {
        display: block;
        min-width: 0;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .gge-col-1 {
        width: 3.25rem;
        color: #aeb7c8;
        text-align: center;
    }

    .gge-resources-table .gge-col-1 {
        width: 4rem;
    }

    .gge-resources-table .gge-col-2 {
        width: 18rem;
    }

    .gge-resources-table .gge-col-3 {
        width: 24rem;
    }

    .gge-resources-table .gge-col-4 {
        width: 8rem;
    }

    .gge-resources-table .gge-col-5 {
        width: 11rem;
        text-align: right;
    }

    .gge-resources-table .gge-col-6 {
        width: 17rem;
    }

    .gge-resources-table .gge-col-7 {
        width: 11rem;
        text-align: center;
    }

    .gge-offers-table .gge-col-1 {
        width: 6rem;
    }

    .gge-offers-table .gge-col-2 {
        width: 17rem;
    }

    .gge-offers-table .gge-col-3 {
        width: 22rem;
    }

    .gge-offers-table .gge-col-4 {
        width: 7rem;
        text-align: center;
    }

    .gge-offers-table .gge-col-5 {
        width: 17rem;
    }

    .gge-offers-table .gge-col-6,
    .gge-offers-table .gge-col-7 {
        width: 9rem;
        font-variant-numeric: tabular-nums;
    }

    .gge-offers-table .gge-col-8,
    .gge-offers-table .gge-col-9 {
        width: 10rem;
        text-align: right;
        font-variant-numeric: tabular-nums;
    }

    .gge-offers-table .gge-col-10 {
        width: 22rem;
    }

    .gge-offers-table .gge-col-11 {
        width: 18rem;
    }

    .gge-offers-table .gge-col-12 {
        width: 7rem;
        text-align: center;
    }

    .gge-works-table .gge-col-1 {
        width: 12rem;
    }

    .gge-works-table .gge-col-2 {
        width: 8rem;
    }

    .gge-works-table .gge-col-3 {
        width: 28rem;
    }

    .gge-works-table .gge-col-4 {
        width: 8rem;
    }

    .gge-works-table .gge-col-5 {
        width: 10rem;
        text-align: right;
        font-variant-numeric: tabular-nums;
    }

    .gge-works-table .gge-col-6 {
        width: 14rem;
    }

    .gge-works-table .gge-col-7 {
        width: 16rem;
    }

    .gge-works-table .gge-col-8 {
        width: 8rem;
        text-align: center;
    }

    .gge-works-table .gge-col-9 {
        width: 18rem;
    }

    .gge-resources-table .gge-col-2 .gge-table-cell-value,
    .gge-offers-table .gge-col-2 .gge-table-cell-value {
        max-width: 26ch;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .gge-offers-table .gge-col-10 .gge-table-cell-value,
    .gge-offers-table .gge-col-11 .gge-table-cell-value {
        display: -webkit-box;
        overflow: hidden;
        overflow-wrap: anywhere;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .gge-viewer tbody tr {
        cursor: pointer;
    }

    .gge-viewer tbody tr.is-selected {
        background: rgba(44, 212, 217, 0.18);
        box-shadow: inset 3px 0 0 rgba(44, 212, 217, 0.9);
    }

    .gge-viewer tbody tr.is-muted {
        display: none;
    }

    .gge-empty-filter-row {
        cursor: default;
    }

    .gge-details-list {
        display: grid;
        gap: .8rem;
        margin: 0;
    }

    .gge-detail-label {
        color: var(--gge-text-muted);
        font-size: .78rem;
        font-weight: 650;
    }

    .gge-detail-value {
        color: var(--gge-text-strong);
        overflow-wrap: anywhere;
        white-space: pre-wrap;
    }

    .gge-detail-offers {
        display: grid;
        gap: .55rem;
        margin-top: .75rem;
    }

    .gge-detail-offer {
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 8px;
        padding: .65rem;
        background: rgba(15, 23, 42, 0.03);
    }

    .gge-viewer .gge-detail-section-title {
        color: var(--gge-accent-soft);
        font-size: .82rem;
        font-weight: 750;
        letter-spacing: .02em;
        margin: 1rem 0 .65rem;
        text-transform: uppercase;
    }

    .gge-detail-block + .gge-detail-block {
        margin-top: 1rem;
    }

    .gge-detail-xml {
        margin-top: 1rem;
    }

    .gge-detail-xml summary {
        color: var(--gge-accent-soft);
        cursor: pointer;
        font-weight: 600;
    }

    .gge-detail-xml .gge-details-list {
        margin-top: .85rem;
        font-size: .9rem;
    }

    .gge-xml-preview {
        max-height: 520px;
        overflow: auto;
        border-radius: 8px;
        padding: 1rem;
        background: #111827;
        color: #e5e7eb;
        white-space: pre-wrap;
    }

    .gge-xsd-error {
        border: 1px solid rgba(248, 113, 113, 0.45);
        border-radius: 8px;
        padding: .9rem;
        background: rgba(127, 29, 29, 0.18);
        color: var(--gge-text-strong);
    }

    .gge-xsd-error + .gge-xsd-error {
        margin-top: .75rem;
    }

    .gge-xsd-error details {
        margin-top: .5rem;
    }

    .gge-tree-list {
        max-height: 520px;
        overflow: auto;
    }

    @media (max-width: 1199.98px) {
        .gge-viewer-grid {
            grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
        }

        .gge-key-total-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .gge-viewer-details {
            position: static;
            grid-column: 1 / -1;
            max-height: none;
        }
    }

    @media (max-width: 767.98px) {
        body.gge-viewer-result-page .main-panel > .content {
            padding: 0 14px 24px;
        }

        .gge-viewer-top,
        .gge-viewer-grid {
            display: block;
        }

        .gge-viewer-nav {
            position: static;
            max-height: none;
            margin-bottom: 1rem;
        }

        .gge-viewer-main {
            margin-bottom: 1rem;
        }

        .gge-table-scroll {
            max-height: none;
            margin-right: .75rem;
            margin-left: .75rem;
        }

        .gge-key-total-grid {
            grid-template-columns: minmax(0, 1fr);
        }

        .gge-key-totals {
            margin-right: .75rem;
            margin-left: .75rem;
        }

        .gge-viewer table {
            font-size: .9rem;
        }
    }

/* Источник: documents_viewer/templates/documents_viewer/open_gge.html */
body.gge-viewer-upload-page .main-panel > .content {
        padding: 0 30px 30px;
    }

    .gge-viewer-hero {
        padding: 48px 0 32px;
    }

    .gge-viewer-upload {
        border: 1px solid rgba(44, 212, 217, 0.28);
        border-radius: 8px;
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.04);
    }

    .gge-viewer-upload h2 {
        color: #b7f3ff !important;
        font-weight: 600;
        line-height: 1.35;
    }

    .gge-loading-overlay,
    .file-loading-overlay {
        position: fixed;
        inset: 0;
        z-index: 2050;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
        background: rgba(8, 13, 26, 0.72);
    }

    .gge-loading-overlay[hidden],
    .file-loading-overlay[hidden] {
        display: none;
    }

    .gge-loading-card,
    .file-loading-card {
        width: min(460px, 100%);
        border: 1px solid rgba(44, 212, 217, 0.32);
        border-radius: 8px;
        padding: 1.75rem;
        background: #111827;
        color: #edf5ff;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    }

    body.white-content .gge-loading-card,
    body.white-content .file-loading-card {
        background: #ffffff;
        color: #172033;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    }

    .gge-loading-spinner,
    .file-loading-spinner {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
        border: 4px solid rgba(44, 212, 217, 0.2);
        border-top-color: #2cd4d9;
        border-radius: 50%;
        animation: gge-loading-spin 0.9s linear infinite;
    }

    .gge-loading-steps,
    .file-loading-steps {
        margin: 0;
        padding-left: 1.2rem;
    }

    .gge-loading-steps li + li,
    .file-loading-steps li + li {
        margin-top: .45rem;
    }

    @keyframes gge-loading-spin {
        to {
            transform: rotate(360deg);
        }
    }

    body.white-content .gge-viewer-upload {
        background: #ffffff;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    }

    .gge-viewer-note {
        border-left: 4px solid #2cd4d9;
        padding: 1rem 1.25rem;
        background: rgba(44, 212, 217, 0.08);
    }

    .gge-file-help {
        display: block;
        margin-top: .5rem;
    }

    .gge-viewer-visual {
        max-height: 320px;
        object-fit: cover;
    }

    .gge-conversion-section {
        padding: 48px 0 56px;
    }

    .gge-conversion-panel {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
        gap: 32px;
        align-items: stretch;
    }

    .gge-conversion-copy,
    .gge-conversion-card {
        min-width: 0;
    }

    .gge-conversion-copy {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .gge-conversion-copy p,
    .gge-conversion-card p {
        margin-bottom: 0;
    }

    .gge-conversion-card {
        border: 1px solid rgba(44, 212, 217, 0.26);
        border-radius: 8px;
        padding: 24px;
        background: rgba(255, 255, 255, 0.04);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    }

    .gge-conversion-card h3 {
        color: #b7f3ff !important;
        font-weight: 600;
        line-height: 1.35;
    }

    .gge-conversion-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 24px;
    }

    .gge-conversion-actions .btn {
        width: 100%;
        margin: 0;
        white-space: normal;
    }

    body.white-content .gge-conversion-card {
        background: #ffffff;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    }

    body.white-content .gge-viewer-upload h2,
    body.white-content .gge-conversion-card h3 {
        color: #0f8f98 !important;
    }

    @media (max-width: 991.98px) {
        .gge-conversion-panel {
            grid-template-columns: 1fr;
        }

        .gge-conversion-card {
            max-width: none;
        }
    }

    @media (max-width: 575.98px) {
        .gge-conversion-section {
            padding: 36px 0 44px;
        }

        .gge-conversion-panel {
            gap: 24px;
        }

        .gge-conversion-card {
            padding: 20px;
        }

        .gge-loading-overlay,
        .file-loading-overlay {
            align-items: flex-start;
            padding: 4.5rem 1rem 1rem;
        }

        .gge-loading-card,
        .file-loading-card {
            padding: 1.25rem;
        }
    }

/* Источник: documents_conversion/templates/documents_conversion/convert_vor.html */
.conversion-help {
        margin-bottom: 1.5rem;
        padding: 1.25rem 1.5rem;
        border: 1px solid rgba(91, 192, 222, 0.35);
        border-radius: 0.75rem;
        background: linear-gradient(180deg, rgba(33, 37, 64, 0.96) 0%, rgba(25, 28, 47, 0.98) 100%);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    }

    .conversion-help__title {
        margin-bottom: 0.75rem;
        color: #ffffff;
        font-size: 1.05rem;
        font-weight: 600;
    }

    .conversion-help__list {
        margin: 0 0 1rem 1.1rem;
        padding: 0;
        color: rgba(255, 255, 255, 0.88);
    }

    .conversion-help__list li + li {
        margin-top: 0.45rem;
    }

    .conversion-help__footer {
        margin: 0;
        color: rgba(255, 255, 255, 0.82);
    }

    .conversion-help__link {
        color: #66d9ef;
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 0.15em;
    }

    .conversion-help__link:hover,
    .conversion-help__link:focus {
        color: #8ce8f7;
    }

    body.white-content .conversion-help {
        border-color: rgba(44, 212, 217, 0.22);
        background: linear-gradient(180deg, #f5fbfd 0%, #edf7fb 100%);
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    }

    body.white-content .conversion-help__title {
        color: #111827;
    }

    body.white-content .conversion-help__list,
    body.white-content .conversion-help__footer {
        color: #334155;
    }

    body.white-content .conversion-help__link {
        color: #0f8ea2;
    }

    body.white-content .conversion-help__link:hover,
    body.white-content .conversion-help__link:focus {
        color: #0b6f80;
    }

/* Источник: documents_generation/templates/documents_generation/generate.html */
.generation-help {
        margin-bottom: 1.5rem;
        padding: 1.25rem 1.5rem;
        border: 1px solid rgba(91, 192, 222, 0.35);
        border-radius: 0.75rem;
        background: linear-gradient(180deg, rgba(33, 37, 64, 0.96) 0%, rgba(25, 28, 47, 0.98) 100%);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    }

    .generation-help__title {
        margin-bottom: 0.75rem;
        color: #ffffff;
        font-size: 1.05rem;
        font-weight: 600;
    }

    .generation-help__list {
        margin: 0 0 1rem 1.1rem;
        padding: 0;
        color: rgba(255, 255, 255, 0.88);
    }

    .generation-help__list li + li {
        margin-top: 0.45rem;
    }

    .generation-help__footer {
        margin: 0;
        color: rgba(255, 255, 255, 0.82);
    }

    .generation-help__link {
        color: #66d9ef;
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 0.15em;
    }

    .generation-help__link:hover,
    .generation-help__link:focus {
        color: #8ce8f7;
    }

    body.white-content .generation-help {
        border-color: rgba(44, 212, 217, 0.22);
        background: linear-gradient(180deg, #f5fbfd 0%, #edf7fb 100%);
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    }

    body.white-content .generation-help__title {
        color: #111827;
    }

    body.white-content .generation-help__list,
    body.white-content .generation-help__footer {
        color: #334155;
    }

    body.white-content .generation-help__link {
        color: #0f8ea2;
    }

    body.white-content .generation-help__link:hover,
    body.white-content .generation-help__link:focus {
        color: #0b6f80;
    }

    .generation-form__section {
        margin-bottom: 1.35rem;
    }

    .generation-form__label {
        display: block;
        margin-bottom: 0.65rem;
        color: rgba(255, 255, 255, 0.78);
        font-size: 0.95rem;
        font-weight: 600;
    }

    .template-source,
    .generation-mode {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        margin-bottom: 0.9rem;
    }

    .template-source__input,
    .generation-mode__input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .template-source__option,
    .generation-mode__option {
        display: flex;
        align-items: center;
        min-height: 58px;
        padding: 0.85rem 1rem;
        border: 1px solid rgba(148, 163, 184, 0.28);
        border-radius: 0.55rem;
        background: rgba(30, 34, 54, 0.74);
        color: rgba(255, 255, 255, 0.84);
        cursor: pointer;
        transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
    }

    .template-source__option::before {
        content: "";
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        margin-right: 0.75rem;
        border: 2px solid rgba(148, 163, 184, 0.72);
        border-radius: 50%;
        background: transparent;
        box-shadow: inset 0 0 0 4px rgba(30, 34, 54, 0.95);
    }

    .generation-mode__option::before {
        content: "";
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        margin-right: 0.75rem;
        border: 2px solid rgba(148, 163, 184, 0.72);
        border-radius: 50%;
        background: transparent;
        box-shadow: inset 0 0 0 4px rgba(30, 34, 54, 0.95);
    }

    .template-source__input:checked + .template-source__option,
    .generation-mode__input:checked + .generation-mode__option {
        border-color: rgba(102, 217, 239, 0.78);
        background: rgba(35, 49, 79, 0.92);
        box-shadow: 0 0 0 1px rgba(102, 217, 239, 0.2);
        color: #ffffff;
    }

    .template-source__input:checked + .template-source__option::before,
    .generation-mode__input:checked + .generation-mode__option::before {
        border-color: #66d9ef;
        background: #66d9ef;
    }

    .template-source__input:focus-visible + .template-source__option,
    .generation-mode__input:focus-visible + .generation-mode__option {
        outline: 2px solid rgba(102, 217, 239, 0.65);
        outline-offset: 2px;
    }

    .template-source__input:disabled + .template-source__option {
        cursor: not-allowed;
        opacity: 0.52;
    }

    .generation-form__control {
        margin-top: 0.55rem;
    }

    .generation-form__file {
        padding: 0.85rem 1rem;
        border: 1px dashed rgba(148, 163, 184, 0.35);
        border-radius: 0.55rem;
        background: rgba(10, 13, 25, 0.32);
    }

    .generation-form__file .form-control {
        height: auto;
        min-height: 44px;
        padding: 0.55rem;
        border-color: transparent;
        background: transparent;
    }

    .generation-form__file input[type="file"]::file-selector-button {
        margin-right: 0.9rem;
        padding: 0.48rem 0.9rem;
        border: 0;
        border-radius: 0.4rem;
        background: #66d9ef;
        color: #0b1020;
        font-weight: 600;
        cursor: pointer;
    }

    .generation-form__select {
        min-height: 46px;
    }

    .generation-form__toggle {
        margin-top: 0.45rem;
        padding: 0.85rem 1rem;
        border: 1px solid rgba(148, 163, 184, 0.22);
        border-radius: 0.55rem;
        background: rgba(30, 34, 54, 0.36);
    }

    body.white-content .generation-form__label {
        color: #334155;
    }

    body.white-content .template-source__option,
    body.white-content .generation-mode__option,
    body.white-content .generation-form__toggle {
        border-color: rgba(15, 23, 42, 0.14);
        background: #f8fafc;
        color: #1f2937;
    }

    body.white-content .template-source__option::before,
    body.white-content .generation-mode__option::before {
        box-shadow: inset 0 0 0 4px #f8fafc;
    }

    body.white-content .template-source__input:checked + .template-source__option,
    body.white-content .generation-mode__input:checked + .generation-mode__option {
        border-color: #0f8ea2;
        background: #e8f8fb;
        color: #0f172a;
    }

    body.white-content .template-source__input:checked + .template-source__option::before,
    body.white-content .generation-mode__input:checked + .generation-mode__option::before {
        border-color: #0f8ea2;
        background: #0f8ea2;
    }

    body.white-content .generation-form__file {
        border-color: rgba(15, 23, 42, 0.18);
        background: #f8fafc;
    }

    body.white-content .generation-form__file input[type="file"]::file-selector-button {
        background: #0f8ea2;
        color: #ffffff;
    }

    @media (max-width: 767.98px) {
        .template-source,
        .generation-mode {
            grid-template-columns: 1fr;
        }
    }

/* Источник: authentication/templates/account/signup.html */
.signup-consent {
            margin-top: 1rem;
            padding: 0.9rem 1rem;
            border: 1px solid rgba(49, 94, 251, 0.22);
            border-radius: 0.75rem;
            background: rgba(49, 94, 251, 0.06);
            box-sizing: border-box;
        }

        .signup-consent__label {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            margin: 0;
            color: #1b2340;
            line-height: 1.5;
            width: 100%;
        }

        .signup-consent__label input[type="checkbox"] {
            position: static;
            display: inline-block;
            appearance: auto;
            margin-top: 0.2rem;
            margin-left: 0;
            width: 1rem;
            height: 1rem;
            min-width: 1rem;
            flex: 0 0 1rem;
            padding: 0;
        }

        .signup-consent__text {
            display: block;
            min-width: 0;
            overflow-wrap: break-word;
            word-break: normal;
        }

        .signup-consent__label a {
            color: #315efb;
            text-decoration: underline;
            text-underline-offset: 0.15em;
        }

        .signup-consent__label a:hover,
        .signup-consent__label a:focus {
            color: #1f46c8;
        }

        body:not(.white-content) .signup-consent {
            border-color: rgba(91, 192, 222, 0.28);
            background: rgba(30, 34, 56, 0.92);
        }

        body:not(.white-content) .signup-consent__label {
            color: rgba(255, 255, 255, 0.88);
        }

        body:not(.white-content) .signup-consent__label a {
            color: #66d9ef;
        }

        body:not(.white-content) .signup-consent__label a:hover,
        body:not(.white-content) .signup-consent__label a:focus {
            color: #8ce8f7;
        }

/* Источник: authentication/templates/account/login.html */
.password-toggle-btn {
        min-width: 44px;
        padding: 0 0.75rem;
    }

    .password-toggle-btn i {
        pointer-events: none;
    }

/* Источник: hello/templates/hello/chem_otkryt_gge.html */
body.gge-info-page .main-panel > .content {
            padding: 0 30px 30px;
        }

        body.gge-info-page .hero-section {
            padding-top: 48px;
        }

        body.gge-info-page .info-note {
            border-left: 4px solid #2cd4d9;
            padding-left: 1rem;
        }

        @media (max-width: 575.98px) {
            body.gge-info-page .main-panel > .content {
                padding: 0 15px 24px;
            }
        }

/* Источник: hello/templates/hello/excel_to_gge.html */
body.public-landing-page .main-panel > .content {
            padding: 0 30px 30px;
        }

        body.public-landing-page .hero-section {
            padding-top: 48px;
        }

/* Источник: hello/templates/hello/gge_format.html */
body.gge-info-page .main-panel > .content {
            padding: 0 30px 30px;
        }

        body.gge-info-page .hero-section {
            padding-top: 48px;
        }

        body.gge-info-page .info-note {
            border-left: 4px solid #2cd4d9;
            padding-left: 1rem;
        }

        @media (max-width: 575.98px) {
            body.gge-info-page .main-panel > .content {
                padding: 0 15px 24px;
            }
        }

/* Источник: hello/templates/hello/for_estimators_pto.html */
.estimators-benefit-title {
            color: #ffffff;
            font-weight: 700;
        }

        body.estimators-page .main-panel > .content {
            padding: 32px 30px 30px;
        }

        .estimators-hero-section {
            padding-top: 48px !important;
            padding-bottom: 2rem !important;
        }

        body.white-content .estimators-benefit-title {
            color: #111827;
        }

        .estimators-hero-visual {
            display: block;
            width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
        }

        body.white-content .estimators-hero-visual {
            box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
        }

/* Источник: hello/templates/hello/index.html */
body.public-landing-page .main-panel > .content {
            padding: 0 30px 30px;
        }

        body.public-landing-page .hero-section {
            padding-top: 48px;
        }

        body.public-landing-page .section-heading {
            color: var(--landing-heading);
            margin-bottom: 1rem;
        }

        body.public-landing-page .section-intro {
            max-width: 860px;
            margin: 0 auto;
            color: var(--landing-text-muted) !important;
            line-height: 1.75;
        }

        body.public-landing-page .flow-visual-section .section-intro {
            color: var(--landing-text) !important;
        }

        body.public-landing-page .pain-solution-section,
        body.public-landing-page .flow-visual-section,
        body.public-landing-page .audience-section,
        body.public-landing-page .pricing-teaser-section,
        body.public-landing-page .section-cta {
            padding-top: 72px;
            padding-bottom: 72px;
        }

        body.public-landing-page .pain-solution-card,
        body.public-landing-page .audience-card {
            height: 100%;
        }

        body.public-landing-page .pain-solution-card__label,
        body.public-landing-page .audience-card__label {
            display: inline-flex;
            align-items: center;
            margin-bottom: 1rem;
            padding: 0.35rem 0.8rem;
            border-radius: 999px;
            background: rgba(44, 212, 217, 0.12);
            color: #15aab1;
            font-size: 0.82rem;
            font-weight: 700;
            letter-spacing: 0.03em;
            text-transform: uppercase;
        }

        body.public-landing-page .flow-diagram {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
            align-items: stretch;
            gap: 1rem;
        }

        body.public-landing-page .flow-diagram__node {
            position: relative;
            isolation: isolate;
            height: 100%;
            padding: 2rem 1.75rem;
            border: 1px solid var(--landing-card-border);
            border-radius: 24px;
            background: var(--landing-card-bg);
            box-shadow: var(--landing-shadow);
        }

        body.public-landing-page .flow-diagram__node::after {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 0;
            border-radius: 24px;
            pointer-events: none;
            background: linear-gradient(145deg, rgba(44, 212, 217, 0.10), transparent 40%);
        }

        body.public-landing-page .flow-diagram__node > * {
            position: relative;
            z-index: 1;
        }

        body.public-landing-page .flow-diagram__eyebrow {
            display: inline-flex;
            margin-bottom: 1rem;
            padding: 0.35rem 0.8rem;
            border-radius: 999px;
            background: rgba(217, 70, 239, 0.12);
            color: #c026d3;
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }

        body.public-landing-page .flow-diagram__node h3 {
            margin-bottom: 1rem;
            color: var(--landing-heading) !important;
            font-weight: 700;
        }

        body.public-landing-page .flow-diagram__node p,
        body.public-landing-page .flow-diagram__node li {
            color: var(--landing-text) !important;
            line-height: 1.7;
        }

        body.public-landing-page .flow-diagram__steps li::marker {
            color: rgba(255, 255, 255, 0.86);
        }

        body.public-landing-page .flow-diagram__steps {
            margin: 0;
            padding-left: 1.1rem;
        }

        body.public-landing-page .flow-diagram__steps li + li {
            margin-top: 0.5rem;
        }

        body.public-landing-page .flow-diagram__arrow {
            display: flex;
            align-items: center;
            justify-content: center;
            color: #15aab1;
            font-size: 2rem;
            font-weight: 700;
        }

        body.public-landing-page .flow-diagram__outputs {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-top: 1.25rem;
        }

        body.public-landing-page .flow-diagram__output {
            display: inline-flex;
            align-items: center;
            padding: 0.55rem 0.9rem;
            border-radius: 999px;
            background: rgba(44, 212, 217, 0.12);
            color: var(--landing-heading);
            font-weight: 600;
        }

        body.public-landing-page .pricing-teaser {
            padding: 2.25rem 2rem;
        }

        body.public-landing-page .pricing-teaser__badges {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-top: 1.5rem;
        }

        body.public-landing-page .pricing-teaser__badge {
            display: inline-flex;
            align-items: center;
            padding: 0.6rem 0.95rem;
            border: 1px solid var(--landing-card-border);
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.04);
            color: var(--landing-heading);
            font-weight: 600;
        }

        body.public-landing-page .section-cta {
            text-align: center;
        }

        body.public-landing-page .section-cta .btn {
            margin: 0 0.5rem 0.75rem;
        }

        @media (max-width: 991.98px) {
            body.public-landing-page .pain-solution-section,
            body.public-landing-page .flow-visual-section,
            body.public-landing-page .audience-section,
            body.public-landing-page .pricing-teaser-section,
            body.public-landing-page .section-cta {
                padding-top: 56px;
                padding-bottom: 56px;
            }

            body.public-landing-page .flow-diagram {
                grid-template-columns: 1fr;
            }

            body.public-landing-page .flow-diagram__arrow {
                min-height: 2.5rem;
                font-size: 1.75rem;
                transform: rotate(90deg);
            }

            body.public-landing-page .pricing-teaser {
                padding: 1.75rem 1.5rem;
            }
        }

        @media (max-width: 575.98px) {
            body.public-landing-page .main-panel > .content {
                padding: 0 15px 24px;
            }

            body.public-landing-page .section-cta .btn {
                display: flex;
                justify-content: center;
                width: 100%;
                margin: 0 0 0.75rem;
            }
        }

/* Источник: hello/templates/hello/proverka_gge.html */
body.gge-info-page .main-panel > .content {
            padding: 0 30px 30px;
        }

        body.gge-info-page .hero-section {
            padding-top: 48px;
        }

        body.gge-info-page .info-note {
            border-left: 4px solid #2cd4d9;
            padding-left: 1rem;
        }

        @media (max-width: 575.98px) {
            body.gge-info-page .main-panel > .content {
                padding: 0 15px 24px;
            }
        }

/* Источник: hello/templates/hello/base/includes/cookie_banner.html */
.aivio-cookie-banner {
        position: fixed;
        right: 1rem;
        bottom: 1rem;
        z-index: 1080;
        display: flex;
        flex-wrap: wrap;
        max-width: 38rem;
        width: min(38rem, calc(100vw - 2rem));
        gap: 1rem;
        align-items: center;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        background: rgba(31, 33, 48, 0.98);
        color: #ffffff;
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    }

    .aivio-cookie-banner[hidden] {
        display: none;
    }

    .aivio-cookie-banner__text {
        flex: 1 1 16rem;
        line-height: 1.45;
    }

    .aivio-cookie-banner__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        flex: 0 1 auto;
        justify-content: flex-end;
    }

    .aivio-cookie-banner__actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        white-space: nowrap;
    }

    body.white-content .aivio-cookie-banner {
        border-color: rgba(20, 30, 55, 0.12);
        background: rgba(255, 255, 255, 0.98);
        color: #1f2937;
    }

    @media (max-width: 575.98px) {
        .aivio-cookie-banner {
            right: 0.75rem;
            left: 0.75rem;
            bottom: 0.75rem;
            width: auto;
            flex-direction: column;
            align-items: stretch;
        }

        .aivio-cookie-banner__actions {
            flex-direction: column;
            justify-content: stretch;
            width: 100%;
        }

        .aivio-cookie-banner__actions .btn {
            width: 100%;
        }
    }

/* Источник: hello/templates/hello/base/base-fullscreen.html */
.fullscreen-wrapper {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .fullscreen-content {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
        }

/* Источник: hello/templates/hello/vor_to_gge.html */
body.vor-landing-page .main-panel > .content {
            padding: 0 30px 30px;
        }

        body.vor-landing-page .hero-section {
            padding-top: 48px;
        }

        body.vor-landing-page .vor-note {
            border-left: 4px solid #2cd4d9;
            padding-left: 1rem;
        }

        @media (max-width: 575.98px) {
            body.vor-landing-page .main-panel > .content {
                padding: 0 15px 24px;
            }
        }

/* Источник: documents_conversion/templates/documents_conversion/vor_source_draft_detail.html */
.vor-source-draft-page {
    padding-left: 18px;
    padding-right: 18px;
}

.vor-source-draft-shell {
    max-width: 1560px;
    margin: 0 auto;
}

.vor-source-draft {
    --vor-panel: rgba(255, 255, 255, 0.04);
    --vor-panel-strong: rgba(255, 255, 255, 0.07);
    --vor-border: rgba(255, 255, 255, 0.14);
    --vor-border-strong: rgba(255, 255, 255, 0.24);
    --vor-text: #f4f5f8;
    --vor-muted: #c0c6d4;
    --vor-muted-strong: #d6dae5;
    --vor-table-head: #242a38;
    --vor-ready: #2f9461;
    --vor-warning: #d28a22;
    --vor-blocking: #d64f5f;
    --vor-info: #8190a8;
    --vor-focus: #7ab0ff;
    font-size: 14px;
}

.vor-source-draft__header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.vor-source-draft__header h1 {
    font-size: 24px;
    line-height: 1.25;
}

.vor-source-draft .btn,
.vor-source-draft .form-control,
.vor-source-draft .form-label,
.vor-source-draft .table > thead > tr > th,
.vor-source-draft .table > tbody > tr > td,
.vor-source-draft label,
.vor-source-draft summary {
    font-size: 14px;
}

.vor-source-draft__eyebrow,
.vor-source-draft__label {
    display: block;
    color: var(--vor-muted);
    font-size: 14px;
}

.vor-source-draft__eyebrow {
    margin-bottom: 4px;
    text-transform: uppercase;
}

.vor-source-draft__status-link {
    flex: 0 0 auto;
}

.vor-source-draft__summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.vor-source-draft__summary-item {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--vor-border);
    border-radius: 6px;
    background: var(--vor-panel);
}

.vor-source-draft__summary-item strong {
    display: block;
    margin-top: 4px;
    color: var(--vor-text);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.vor-source-draft__section,
.vor-source-draft__diagnostics,
.vor-source-draft__staff-json {
    margin-top: 18px;
    border: 1px solid var(--vor-border);
    border-radius: 6px;
    padding: 16px;
    background: var(--vor-panel);
}

.vor-source-draft__section-heading {
    display: flex;
    gap: 12px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}

.vor-source-draft__section-heading h2 {
    margin: 0;
    color: var(--vor-text);
    font-size: 18px;
    line-height: 1.35;
}

.vor-source-draft__ready-message {
    margin: 0;
    border: 1px solid rgba(47, 148, 97, 0.38);
    border-radius: 6px;
    padding: 12px 14px;
    color: #e9fff4;
    background: rgba(47, 148, 97, 0.13);
}

.vor-source-draft__document {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 18px;
    border: 1px solid rgba(47, 148, 97, 0.38);
    border-radius: 6px;
    padding: 14px;
    color: var(--vor-text);
    background: rgba(47, 148, 97, 0.12);
}

.vor-source-draft__document h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.vor-source-draft__document p {
    margin: 0;
    color: var(--vor-muted);
}

.vor-source-draft__document-warning {
    margin-top: 6px !important;
    color: #f1c06a !important;
}

/* Действия документа отделены от редактирования строк, чтобы скачивание не меняло черновик. */
.vor-source-draft__document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.vor-source-draft__diagnostic-groups {
    display: grid;
    gap: 10px;
}

.vor-source-diagnostic {
    border: 1px solid var(--vor-border);
    border-left-width: 5px;
    border-radius: 6px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.vor-source-diagnostic--blocking {
    border-left-color: var(--vor-blocking);
    background: rgba(214, 79, 95, 0.1);
}

.vor-source-diagnostic--warning {
    border-left-color: var(--vor-warning);
    background: rgba(210, 138, 34, 0.12);
}

.vor-source-diagnostic--info {
    border-left-color: var(--vor-info);
    background: rgba(129, 144, 168, 0.1);
}

.vor-source-diagnostic__meta,
.vor-source-diagnostic__targets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.vor-source-diagnostic__severity,
.vor-source-diagnostic__count {
    border-radius: 999px;
    padding: 3px 9px;
    color: var(--vor-text);
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
}

.vor-source-diagnostic--blocking .vor-source-diagnostic__severity {
    background: rgba(214, 79, 95, 0.28);
}

.vor-source-diagnostic--warning .vor-source-diagnostic__severity {
    background: rgba(210, 138, 34, 0.3);
}

.vor-source-diagnostic__message {
    margin: 10px 0 0;
    color: var(--vor-text);
    overflow-wrap: anywhere;
}

.vor-source-diagnostic__targets {
    margin-top: 10px;
}

.vor-source-diagnostic__targets a {
    border: 1px solid var(--vor-border-strong);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--vor-muted-strong);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.vor-source-diagnostic__targets a:hover {
    border-color: var(--vor-focus);
    background: rgba(122, 176, 255, 0.12);
}

.vor-source-draft__resolved-diagnostics {
    margin-top: 12px;
}

.vor-source-draft__resolved-diagnostics summary,
.vor-source-draft__mapping summary,
.vor-source-draft__staff-json summary,
.vor-source-draft__details summary {
    cursor: pointer;
}

.vor-source-draft__mapping summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: baseline;
    color: var(--vor-text);
    font-size: 18px;
    font-weight: 600;
}

.vor-source-draft__mapping summary small {
    color: var(--vor-muted);
    font-size: 14px;
    font-weight: 400;
}

.vor-source-draft__mapping-form,
.vor-source-draft__controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    align-items: end;
}

.vor-source-draft__parameters .vor-source-draft__controls {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
}

.vor-source-draft__parameters .form-group {
    margin-bottom: 0;
}

.vor-source-draft__mapping-form {
    margin-top: 14px;
}

.vor-source-draft__mapping-action {
    display: flex;
    align-items: end;
}

.vor-source-draft__table-options {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.vor-source-draft__table-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--vor-border);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.vor-source-draft__table-option:hover {
    border-color: var(--vor-border-strong);
    background: var(--vor-panel-strong);
}

.vor-source-draft__table-option span {
    min-width: 0;
}

.vor-source-draft__table-option small {
    display: block;
    color: var(--vor-muted);
    font-size: 14px;
}

.vor-source-draft__rows-list {
    display: grid;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    margin-top: 6px;
    overflow-x: clip;
}

.vor-source-draft__list-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
    gap: 10px 14px;
    align-items: end;
    margin-bottom: 12px;
    border: 1px solid var(--vor-border);
    border-radius: 6px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.vor-source-draft__search {
    min-width: 0;
}

.vor-source-draft__search label {
    display: block;
    margin-bottom: 4px;
    color: var(--vor-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.vor-source-draft__filters,
.vor-source-draft__list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.vor-source-draft__list-counter {
    margin: 0;
    color: var(--vor-muted-strong);
    font-size: 13px;
}

.vor-source-draft__list-actions {
    justify-content: flex-end;
}

.vor-source-draft__row[hidden] {
    display: none !important;
}

.vor-source-draft__work-header {
    position: sticky;
    top: 8px;
    z-index: 2;
    display: grid;
    grid-template-columns: 44px minmax(60px, 70px) minmax(75px, 90px) minmax(320px, 1fr) minmax(80px, 100px) minmax(110px, 135px) minmax(105px, 130px);
    gap: 10px;
    align-items: center;
    min-width: 0;
    border: 1px solid var(--vor-border);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--vor-muted-strong);
    background: var(--vor-table-head);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.vor-source-draft__row {
    min-width: 0;
    border: 1px solid var(--vor-border);
    border-left: 4px solid var(--vor-info);
    border-radius: 6px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.vor-source-draft__work-row {
    display: grid;
    gap: 10px;
}

.vor-source-draft__work-main,
.vor-source-draft__work-secondary,
.vor-source-draft__details-grid {
    display: grid;
    min-width: 0;
    gap: 10px;
}

.vor-source-draft__work-main {
    grid-template-columns: 44px minmax(60px, 70px) minmax(75px, 90px) minmax(320px, 1fr) minmax(80px, 100px) minmax(110px, 135px) minmax(105px, 130px);
    align-items: start;
}

.vor-source-draft__work-secondary {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    align-items: start;
}

.vor-source-draft__work-cell {
    min-width: 0;
}

.vor-source-draft__field-label {
    display: block;
    margin-bottom: 4px;
    color: var(--vor-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.vor-source-draft__work-main .vor-source-draft__field-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.vor-source-draft__work-cell--include {
    justify-content: center;
    min-height: 36px;
    padding-top: 6px;
}

.vor-source-draft__work-cell--quantity input {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.vor-source-draft__work-cell--name textarea,
.vor-source-draft__work-cell--calculation textarea {
    min-height: 38px;
    max-height: 180px;
    overflow-y: auto;
    resize: vertical;
}

.vor-source-draft__work-cell--calculation textarea {
    min-height: 38px;
}

.vor-source-draft__work-cell--calculation textarea:focus {
    min-height: 72px;
}

.vor-source-draft__details-comment textarea {
    min-height: 60px;
    max-height: 150px;
}

.vor-source-draft__row .form-control {
    min-width: 0;
    padding: 7px 8px;
    font-size: 13px;
}

.vor-source-draft__row--ready {
    border-left-color: var(--vor-ready);
}

.vor-source-draft__row--needs_review {
    border-left-color: var(--vor-warning);
}

.vor-source-draft__row--blocking {
    border-left-color: var(--vor-blocking);
}

.vor-source-draft__row--excluded {
    border-left-color: var(--vor-muted);
    background: rgba(255, 255, 255, 0.015);
}

.vor-source-draft__row--excluded .form-control,
.vor-source-draft__row--excluded textarea {
    color: var(--vor-muted-strong);
    background-color: rgba(255, 255, 255, 0.045);
}

.vor-source-draft__section-breadcrumb {
    margin: -2px 0 0;
    color: var(--vor-muted);
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.vor-source-draft__section-breadcrumb--empty {
    color: var(--vor-muted-strong);
}

.vor-source-draft__checkbox {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.vor-source-draft__status {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--vor-text);
    background: #3d4454;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.vor-source-draft__row--ready .vor-source-draft__status {
    background: #226646;
}

.vor-source-draft__row--needs_review .vor-source-draft__status {
    background: #7a5a16;
}

.vor-source-draft__row--excluded .vor-source-draft__status {
    background: #50545f;
}

.vor-source-draft__row--blocking .vor-source-draft__status {
    background: #8f2f37;
}

.vor-source-draft__details {
    min-width: 0;
    border-top: 1px solid var(--vor-border);
    padding-top: 8px;
}

.vor-source-draft__details summary {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--vor-muted-strong);
    background: rgba(255, 255, 255, 0.045);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.vor-source-draft__details--attention summary {
    color: var(--vor-text);
}

.vor-source-draft__details-indicator {
    border-radius: 999px;
    padding: 2px 7px;
    color: var(--vor-text);
    background: rgba(211, 160, 59, 0.24);
    font-size: 12px;
}

.vor-source-draft__details-grid {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 180px) minmax(0, 1.4fr);
    margin-top: 10px;
}

.vor-source-draft__source-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.vor-source-draft__source,
.vor-source-draft__provenance {
    min-width: 0;
    overflow-wrap: anywhere;
}

.vor-source-draft__source h3,
.vor-source-draft__provenance h3 {
    margin: 0 0 6px;
    color: var(--vor-muted-strong);
    font-size: 13px;
    font-weight: 700;
}

.vor-source-draft__source dl {
    display: grid;
    grid-template-columns: minmax(90px, max-content) 1fr;
    gap: 4px 8px;
    margin: 8px 0 0;
}

.vor-source-draft__source dt,
.vor-source-draft__source dd,
.vor-source-draft__source p {
    color: var(--vor-muted);
    font-size: 13px;
}

.vor-source-draft__source dd {
    margin: 0;
}

.vor-source-draft__provenance pre {
    max-height: 220px;
    margin: 0;
    overflow: auto;
    border-radius: 6px;
    padding: 8px;
    color: var(--vor-muted-strong);
    background: rgba(0, 0, 0, 0.18);
    font-size: 12px;
    white-space: pre-wrap;
}

.vor-source-draft__field-note {
    display: block;
    margin: 8px 0 0;
    color: var(--vor-muted);
    font-size: 12px;
    line-height: 1.25;
}

.vor-source-draft__source-difference {
    color: var(--vor-muted-strong);
}

.vor-source-draft__negative-note {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 12px;
    border: 1px solid rgba(255, 209, 102, 0.35);
    border-radius: 6px;
    color: #f3dfad;
    background: rgba(255, 209, 102, 0.08);
}

.vor-source-draft__negative-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    color: #1b1c24;
    background: #ffd166;
    font-size: 0.72rem;
    font-weight: 700;
}

.vor-source-draft__dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7, 9, 18, 0.68);
}

.vor-source-draft__dialog-backdrop[hidden] {
    display: none;
}

.vor-source-draft__dialog {
    width: min(520px, 100%);
    padding: 22px;
    border: 1px solid rgba(119, 228, 255, 0.25);
    border-radius: 8px;
    color: #f4f7fb;
    background: #171622;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.vor-source-draft__dialog h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}

.vor-source-draft__dialog p {
    margin: 0;
    color: #d9d9e3;
    line-height: 1.55;
}

.vor-source-draft__dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.vor-source-draft__section-row {
    display: grid;
    grid-template-columns: 32px auto auto auto minmax(220px, 1fr) auto;
    gap: 10px;
    align-items: center;
    border-left-color: var(--vor-info);
    background: rgba(99, 179, 237, 0.06);
    padding-top: 10px;
    padding-bottom: 10px;
}

.vor-source-draft__section-row--level-1 {
    border-left-width: 6px;
    background: rgba(99, 179, 237, 0.1);
}

.vor-source-draft__section-collapse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--vor-border);
    border-radius: 6px;
    color: var(--vor-text);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.vor-source-draft__section-collapse[aria-expanded="false"] span {
    transform: rotate(-90deg);
}

.vor-source-draft__section-collapse span {
    transition: transform 0.16s ease;
}

.vor-source-draft__section-marker,
.vor-source-draft__section-level {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 3px 8px;
    color: var(--vor-text);
    background: rgba(99, 179, 237, 0.16);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.vor-source-draft__section-level {
    color: var(--vor-muted-strong);
    background: rgba(255, 255, 255, 0.07);
    font-weight: 700;
}

.vor-source-draft__section-title {
    min-width: 0;
}

.vor-source-draft__section-title .form-control {
    font-weight: 700;
}

.vor-source-draft__section-counts {
    margin: 0;
    color: var(--vor-muted);
    font-size: 13px;
    white-space: nowrap;
}

.vor-source-draft__section-row--level-2 {
    padding-left: 34px;
}

.vor-source-draft__section-row--level-3 {
    padding-left: 58px;
}

.vor-source-draft__section-row--level-4,
.vor-source-draft__section-row--level-5,
.vor-source-draft__section-row--level-6 {
    padding-left: 82px;
}

.vor-source-draft__empty {
    margin: 0;
    border: 1px solid var(--vor-border);
    border-radius: 6px;
    padding: 14px;
    color: var(--vor-muted);
}

@media (max-width: 1279.98px) {
    .vor-source-draft__work-header {
        display: none;
    }

    .vor-source-draft__work-main .vor-source-draft__field-label {
        position: static;
        width: auto;
        height: auto;
        margin: 0 0 4px;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }

    .vor-source-draft__work-main {
        grid-template-areas:
            "include number lsr unit quantity status"
            "name name name name name name";
        grid-template-columns: 44px minmax(60px, 70px) minmax(75px, 90px) minmax(72px, 90px) minmax(100px, 130px) minmax(105px, 130px);
    }

    .vor-source-draft__work-cell--include {
        grid-area: include;
        align-self: end;
    }

    .vor-source-draft__work-cell--number {
        grid-area: number;
    }

    .vor-source-draft__work-cell--lsr {
        grid-area: lsr;
    }

    .vor-source-draft__work-cell--name {
        grid-area: name;
    }

    .vor-source-draft__work-cell--unit {
        grid-area: unit;
    }

    .vor-source-draft__work-cell--quantity {
        grid-area: quantity;
    }

    .vor-source-draft__work-cell--status {
        grid-area: status;
    }

    .vor-source-draft__work-secondary {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .vor-source-draft__list-toolbar {
        grid-template-columns: 1fr;
    }

    .vor-source-draft__list-actions {
        justify-content: flex-start;
    }

    .vor-source-draft__work-main {
        grid-template-areas:
            "include number status"
            "lsr lsr lsr"
            "name name name"
            "unit quantity quantity";
        grid-template-columns: 78px minmax(0, 1fr) minmax(0, 1fr);
    }

    .vor-source-draft__work-cell--include {
        justify-content: flex-start;
        align-self: start;
    }

    .vor-source-draft__work-secondary,
    .vor-source-draft__details-grid,
    .vor-source-draft__source-grid {
        grid-template-columns: 1fr;
    }

    .vor-source-draft__work-cell--reference {
        grid-column: auto;
    }

    .vor-source-draft__section-row {
        grid-template-columns: 32px 1fr;
        align-items: start;
    }

    .vor-source-draft__section-toggle,
    .vor-source-draft__section-marker,
    .vor-source-draft__section-level,
    .vor-source-draft__section-title,
    .vor-source-draft__section-counts {
        grid-column: 1 / -1;
    }

    .vor-source-draft__section-row--level-2 {
        padding-left: 22px;
    }

    .vor-source-draft__section-row--level-3,
    .vor-source-draft__section-row--level-4,
    .vor-source-draft__section-row--level-5,
    .vor-source-draft__section-row--level-6 {
        padding-left: 34px;
    }
}

.vor-source-draft__actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin: 18px -20px -20px;
    border-top: 1px solid var(--vor-border);
    padding: 14px 20px;
    background: rgba(39, 44, 57, 0.96);
    backdrop-filter: blur(8px);
}

/* Видимый cookie-баннер не должен перехватывать клики по нижним действиям редактора. */
body.aivio-cookie-banner-visible .vor-source-draft__actions {
    bottom: 9rem;
}

/* Полноэкранное ожидание нужно только для долгой сборки официального Excel ВОР. */
.vor-source-draft__loading-screen {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 13, 26, 0.74);
    backdrop-filter: blur(6px);
}

.vor-source-draft__loading-screen[hidden] {
    display: none;
}

.vor-source-draft__loading-panel {
    width: min(460px, 100%);
    border: 1px solid rgba(91, 217, 226, 0.34);
    border-radius: 8px;
    padding: 28px;
    color: #eef7ff;
    background: #111827;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.vor-source-draft__loading-panel h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    line-height: 1.25;
}

.vor-source-draft__loading-panel p {
    margin: 0;
    color: rgba(238, 247, 255, 0.78);
    line-height: 1.5;
}

.vor-source-draft__loading-spinner {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border: 4px solid rgba(91, 217, 226, 0.24);
    border-top-color: #5bd9e2;
    border-radius: 50%;
    animation: vor-source-draft-loading-spin 0.85s linear infinite;
}

.vor-source-draft__button-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.45rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -0.15em;
    animation: vor-source-draft-loading-spin 0.75s linear infinite;
}

.vor-source-draft__actions .btn.is-loading,
.vor-source-draft__actions .btn[aria-disabled="true"] {
    pointer-events: none;
}

@keyframes vor-source-draft-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.vor-source-draft__retry-form {
    margin-top: 18px;
}

.vor-source-draft__staff-json {
    color: var(--vor-muted);
    background: rgba(255, 255, 255, 0.025);
}

.vor-source-draft__staff-json pre {
    max-height: 360px;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.vor-source-draft input[id],
.vor-source-draft select[id],
.vor-source-draft textarea[id],
.vor-source-draft__row {
    scroll-margin-top: 110px;
}

.vor-source-draft input:focus-visible,
.vor-source-draft select:focus-visible,
.vor-source-draft textarea:focus-visible,
.vor-source-draft button:focus-visible,
.vor-source-draft a:focus-visible,
.vor-source-draft summary:focus-visible,
.vor-source-draft__rows-list:focus-visible,
.vor-source-draft__table-option:focus-within {
    outline: 2px solid var(--vor-focus);
    outline-offset: 2px;
}

body.white-content .vor-source-draft {
    --vor-panel: #ffffff;
    --vor-panel-strong: #f4f7fb;
    --vor-border: rgba(31, 41, 55, 0.16);
    --vor-border-strong: rgba(31, 41, 55, 0.28);
    --vor-text: #182230;
    --vor-muted: #5b6678;
    --vor-muted-strong: #374151;
    --vor-table-head: #eef2f7;
    --vor-info: #718096;
}

body.white-content .vor-source-draft__ready-message {
    color: #145136;
    background: rgba(47, 148, 97, 0.1);
}

body.white-content .vor-source-draft__document {
    background: rgba(47, 148, 97, 0.1);
}

body.white-content .vor-source-draft__document-warning {
    color: #8a5b00 !important;
}

body.white-content .vor-source-diagnostic,
body.white-content .vor-source-draft__table-option {
    background: #ffffff;
}

body.white-content .vor-source-draft__actions {
    background: rgba(255, 255, 255, 0.96);
}

body.white-content .vor-source-draft__loading-panel {
    color: #172033;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

body.white-content .vor-source-draft__loading-panel p {
    color: #5b6678;
}

@media (prefers-reduced-motion: reduce) {
    .vor-source-draft__loading-spinner,
    .vor-source-draft__button-spinner {
        animation: none;
    }
}

@media (max-width: 1200px) {
    .vor-source-draft__summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .vor-source-draft__parameters .vor-source-draft__controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .vor-source-draft-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .vor-source-draft__header {
        display: block;
    }

    .vor-source-draft__status-link {
        margin-top: 12px;
    }

    .vor-source-draft__summary {
        grid-template-columns: 1fr;
    }

    .vor-source-draft__actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.aivio-cookie-banner-visible .vor-source-draft__actions {
        bottom: 14rem;
    }

    .vor-source-draft__loading-screen {
        align-items: flex-start;
        padding: 72px 16px 16px;
    }

    .vor-source-draft__loading-panel {
        padding: 22px;
    }

    .vor-source-draft__actions .btn {
        width: 100%;
    }

    .vor-source-draft__document {
        display: block;
    }

    .vor-source-draft__document .btn {
        width: 100%;
        margin-top: 12px;
    }

    .vor-source-draft__document-actions {
        display: block;
    }
}
