/*
 * @module changelog_content
 * @version 1.0.1
 * @since 2026-10-05
 * Назначение: стили интерфейса, перенесённые из partials/pages/changelog_content.html.
 * Связи: исходный HTML, PageRuntime и docs/modules/TEMPLATE_ASSETS.md.
 * Причина: HTML хранит разметку/серверные данные, JS — поведение, CSS — оформление.
 * История 1.0.0: исходные функции и комментарии сохранены при выделении файла.
 * История 1.0.1: проверены подключения, JSON и состояния после SPA-переходов.
 * Проверки: tests/test_template_assets.py и tests/template-assets.test.cjs.
 */
/* ═══ КАРТОЧКА ИЗМЕНЕНИЯ ═══ */
    .changelog-entry {
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 0.75rem;
        padding: 1.25rem;
        margin-bottom: 1rem;
        transition: all 0.2s ease;
    }
    .changelog-entry:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    /* ═══ TIMELINE ═══ */
    .timeline-container {
        position: relative;
        padding-left: 2rem;
    }
    .timeline-line {
        position: absolute;
        left: 1rem;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #e5e7eb;
    }
    .timeline-dot {
        position: absolute;
        left: 0.5rem;
        top: 1.5rem;
        width: 1rem;
        height: 1rem;
        border-radius: 50%;
        border: 2px solid white;
        box-shadow: 0 0 0 2px #e5e7eb;
        background: #22c55e;
    }
    
    /* ═══ КНОПКИ (ОДИНАКОВЫЙ РАЗМЕР) ═══ */
    .btn-primary,
    .btn-secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.625rem 1rem;
        border-radius: 0.375rem;
        font-size: 0.875rem;
        font-weight: 500;
        line-height: 1.25rem;
        text-align: center;
        cursor: pointer;
        transition: background 0.2s;
    }
    .btn-primary {
        background: #dc2626;
        color: white;
        border: 1px solid #dc2626;
    }
    .btn-primary:hover {
        background: #b91c1c;
        border-color: #b91c1c;
    }
    .btn-secondary {
        background: #f3f4f6;
        color: #374151;
        border: 1px solid #e5e7eb;
    }
    .btn-secondary:hover {
        background: #e5e7eb;
    }
    
    /* ═══ МАЛЕНЬКИЕ КНОПКИ ДЕЙСТВИЙ (РЕДАКТИРОВАТЬ / УДАЛИТЬ) ═══ */
    .btn-edit,
    .btn-danger {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.375rem 0.75rem;
        border-radius: 0.375rem;
        font-size: 0.75rem;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.2s;
        background: white;
    }
    .btn-edit {
        color: #374151;
        border: 1px solid #d1d5db;
    }
    .btn-edit:hover {
        background: #f9fafb;
    }
    .btn-danger {
        color: #b91c1c;
        border: 1px solid #fecaca;
    }
    .btn-danger:hover {
        background: #fee2e2;
    }
    
    /* ═══ ПАНЕЛЬ ДЕЙСТВИЙ АДМИНА ═══ */
    .entry-actions {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 0.5rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px dashed #e5e7eb;
    }
    
    /* ═══ РЕЖИМ РЕДАКТИРОВАНИЯ (скрыт по умолчанию) ═══ */
    .entry-edit {
        display: none;
    }
    
    /* ═══ СПИСОК ОПИСАНИЯ ═══ */
    .description-list {
        list-style-type: disc;
        padding-left: 1.25rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
    .description-list li {
        font-size: 0.875rem;
        color: #4b5563;
        line-height: 1.5;
        margin-bottom: 0.25rem;
    }
    .description-list li::marker {
        color: #9ca3af;
    }
    
    /* ═══ ИНДИКАТОР ЧЕРНОВИКА (плавающий, в углу карточки) ═══ */
    .draft-indicator {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        font-size: 0.75rem;
        color: #6b7280;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    .draft-indicator.visible {
        opacity: 1;
    }
