/* Стили, перенесенные из 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;
}

.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-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;
}

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

.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;
}

.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-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-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-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: 92px;
    }

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

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

    .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-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-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);
    }

    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;
    }

/* Источник: 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;
            }
        }
