/* ============================================================
   MyBlog · 管理后台样式
   侧边栏布局、数据表格、仪表盘卡片
   ============================================================ */

/* ---- 管理后台布局：侧边栏 + 内容区 ---- */
.admin-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    min-height: calc(100vh - 120px);
}

/* ---- 侧边栏 ---- */
.admin-sidebar {
    flex: 0 0 220px;
    position: sticky;
    top: 80px;
    background: var(--surface);
    opacity: var(--panel-opacity);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    align-self: flex-start;
}

/* 侧边栏菜单列表 */
.admin-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* 侧边栏菜单项 */
.admin-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
    width: 100%;
    user-select: none;
}

.admin-sidebar-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.admin-sidebar-item:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

/* 当前激活的侧边栏项 */
.admin-sidebar-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    border-left: 3px solid var(--primary);
}

/* 危险操作项（如退出） */
.admin-sidebar-item.danger {
    color: var(--danger);
}

.admin-sidebar-item.danger:hover {
    background: var(--danger-light);
}

.admin-sidebar-item.danger.active {
    background: var(--danger-light);
    border-left-color: var(--danger);
}

/* ---- 主内容区 ---- */
.admin-content {
    flex: 1;
    min-width: 0;
}

/* 管理面板容器 */
.admin-panel {
    display: none;
    background: var(--surface);
    opacity: var(--panel-opacity);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    overflow: hidden;
}

.admin-panel.active {
    display: block;
}

.admin-panel-inner {
    padding: 28px;
}

/* 面板头部标题栏 */
.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.admin-panel-title {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.admin-panel-title svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

/* ---- 仪表盘卡片 ---- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    text-align: center;
}

.dashboard-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: var(--primary-border);
}

.dashboard-card .dash-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.4rem;
}

.dashboard-card .dash-icon.blue { background: var(--primary-light); color: var(--primary); }
.dashboard-card .dash-icon.green { background: var(--success-light); color: var(--success); }
.dashboard-card .dash-icon.purple { background: var(--accent-light); color: var(--accent); }
.dashboard-card .dash-icon.orange { background: var(--warning-light); color: var(--warning); }
.dashboard-card .dash-icon.pink { background: var(--sakura-light); color: var(--sakura-dark); }

.dashboard-card .dash-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
}

.dashboard-card .dash-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---- 数据表格（管理后台 CRUD） ---- */
.admin-data-table-wrap {
    max-height: 50vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.admin-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.admin-data-table thead th {
    position: sticky;
    top: 0;
    background: var(--surface);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
    z-index: 1;
    white-space: nowrap;
}

.admin-data-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.admin-data-table tbody tr:hover {
    background: var(--surface-hover);
}

/* 灰色淡化行（如已删除或隐藏的内容） */
.admin-data-table tbody tr.row-muted {
    opacity: 0.6;
}

/* 操作按钮单元格 */
.admin-data-table .cell-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

/* 标题单元格 — 防止文字溢出 */
.admin-data-table .cell-title {
    font-weight: 600;
    color: var(--text);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 日期单元格 */
.admin-data-table .cell-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ---- 管理工具栏（表格上方） ---- */
.admin-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.admin-toolbar .toolbar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

/* ---- 管理表单弹窗（页面内模态框） ---- */
.admin-form-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.admin-form-overlay.active {
    display: flex;
}

.admin-form-box {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 26px 28px 30px;
    max-width: 720px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.25s ease-out;
}

.admin-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-form-header h3 {
    font-size: 1.08rem;
    font-weight: 700;
}

/* 表单关闭按钮 */
.admin-form-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text);
    opacity: 0.35;
    transition: opacity var(--transition);
    line-height: 1;
}

.admin-form-close:hover {
    opacity: 0.75;
}

/* ---- 评论管理 ---- */
.comment-admin-item {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
}

.comment-admin-item .ca-body {
    flex: 1;
    min-width: 0;
}

.comment-admin-item .ca-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
    flex-wrap: wrap;
}

.comment-admin-item .ca-username {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text);
}

.comment-admin-item .ca-time {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.comment-admin-item .ca-content {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    word-break: break-word;
}

/* 评论删除按钮 */
.comment-admin-item .ca-delete {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all var(--transition);
    opacity: 0.5;
}

.comment-admin-item:hover .ca-delete {
    opacity: 1;
}

.comment-admin-item .ca-delete:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* ---- 数据中心 ---- */
.data-file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: all var(--transition);
}

.data-file-card:hover {
    border-color: var(--primary-border);
}

.data-file-card .df-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-file-card .df-name svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.data-file-card .df-size {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.data-file-card .df-actions {
    display: flex;
    gap: 6px;
}

/* 数据预览模态框 */
.data-preview-content {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    max-height: 50vh;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--text);
    margin-top: 12px;
}

/* ---- 小型区块分隔标题 ---- */
.admin-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-section-title:first-of-type {
    margin-top: 0;
}

.admin-section-title svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* ---- 验证门模态框 ---- */
.verify-gate {
    text-align: center;
    padding: 30px 20px;
}

.verify-gate .vg-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.verify-gate .vg-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.verify-gate .vg-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ---- 交互统计 ---- */
.stats-row {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stats-row span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stats-row svg {
    width: 14px;
    height: 14px;
}

/* ---- 空状态 ---- */
.admin-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.admin-empty svg {
    width: 48px;
    height: 48px;
    opacity: 0.25;
    margin-bottom: 10px;
}

/* ---- 响应式 ---- */
@media (max-width: 900px) {
    /* 中屏以下：侧边栏改为顶部横向 */
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        flex: none;
        position: static;
        width: 100%;
    }
    .admin-sidebar-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2px;
    }
    .admin-sidebar-item {
        flex: 1;
        min-width: 120px;
        padding: 8px 10px;
        font-size: 0.78rem;
        justify-content: center;
    }
    .admin-sidebar-item.active {
        border-left: none;
        border-bottom: 3px solid var(--primary);
    }
    .admin-panel-inner {
        padding: 20px 16px;
    }
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    /* 小屏手机：进一步压缩 */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .admin-sidebar-item {
        min-width: 80px;
        font-size: 0.72rem;
        padding: 6px 8px;
    }
    .admin-panel-inner {
        padding: 16px 12px;
    }
    .admin-data-table {
        font-size: 0.7rem;
    }
    .admin-data-table thead th,
    .admin-data-table tbody td {
        padding: 6px 6px;
    }
    .admin-form-box {
        padding: 16px 14px 20px;
    }
}

/* ============================================================
   游戏官网设置面板（《元素主宰 · 反应之弈》）
   ============================================================ */

/* ---- 概览统计卡 ---- */
.el-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.el-admin-stat {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
}
.el-admin-stat .el-stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.el-admin-stat .el-stat-value {
    font-size: 1.24rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-mono);
    line-height: 1.2;
    word-break: break-all;
}
.el-admin-stat .el-stat-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---- 子标签内容 ---- */
.el-admin-tabs {
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.el-admin-tab-content { display: none; }
.el-admin-tab-content.active { display: block; animation: elAdminFade 0.3s ease; }
@keyframes elAdminFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.el-admin-note {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.el-admin-note b { color: var(--text); font-family: var(--font-mono); }

/* ---- 状态徽标 ---- */
.el-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.el-pill-published { background: var(--success-light); color: var(--success); border-color: var(--success-border); }
.el-pill-draft { background: var(--warning-light); color: var(--warning); border-color: rgba(243, 156, 18, 0.3); }
.el-pill-current { background: var(--primary-light); color: var(--primary); border-color: var(--primary-border); }
.el-pill-muted { background: var(--bg-alt); color: var(--text-muted); border-color: var(--border); }
.el-pill-danger { background: var(--danger-light); color: var(--danger); border-color: var(--danger-border); }

/* ---- 邀请码 ---- */
.el-invite-box {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 18px;
    border-radius: var(--radius-sm);
    background: linear-gradient(120deg, var(--primary-light), var(--accent-light));
    border: 1px solid var(--primary-border);
}
.el-invite-value {
    font-family: var(--font-mono);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text);
    word-break: break-all;
    background: var(--surface);
    padding: 8px 12px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
}

/* ---- 版本表单 ---- */
.el-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}
.el-form-grid .form-group { margin-bottom: 0; }
.el-form-full { grid-column: 1 / -1; }
.el-form-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
}
.el-form-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.el-form-section-title svg { width: 17px; height: 17px; color: var(--primary); }
.el-form-section-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.7;
}
.el-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 10px 0;
}
.el-check-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }

/* 表单小工具条（例如「填入更新日志模板」） */
.el-form-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.el-form-toolbar-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ============================================================
   工作室设置面板（列表编辑器 / 图片上传）
   ============================================================ */
.st-editor {
    margin-bottom: 22px;
    padding: 16px 18px 18px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
}
.st-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.st-editor-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 4px;
    max-width: 640px;
}
.st-editor-list { display: flex; flex-direction: column; gap: 12px; }
.st-editor-empty {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    padding: 18px 0;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}
.st-editor-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.st-editor-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 9px 12px;
    background: var(--surface-hover);
    border-bottom: 1px solid var(--border-light);
}
.st-editor-title {
    font-size: 0.82rem;
    font-weight: 600;
    word-break: break-all;
}
.st-editor-actions { display: flex; gap: 6px; flex-shrink: 0; }
.st-editor-row-body { padding: 14px 12px 6px; }
.st-editor-row-body .form-group { margin-bottom: 12px; }
.st-editor-row-body .form-group label { font-size: 0.76rem; }
.st-editor-row-body input,
.st-editor-row-body textarea { font-size: 0.84rem; padding: 8px 11px; }
.st-editor-row-body textarea { min-height: 60px; }
/* 图片（图标 / 头像） */
.st-img-row { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.st-img-preview {
    width: 84px; height: 84px; flex-shrink: 0; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; color: var(--text-muted); overflow: hidden;
}
.st-img-preview.st-img-round { border-radius: 50%; width: 68px; height: 68px; }
.st-img-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

.el-actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
}

/* ---- 大文件上传 ---- */
.el-drop {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    text-align: center;
    background: var(--bg-alt);
    transition: all var(--transition);
    cursor: pointer;
}
.el-drop:hover, .el-drop.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.el-drop-icon { color: var(--primary); margin-bottom: 8px; }
.el-drop-icon svg { width: 30px; height: 30px; }
.el-drop-title { font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; }
.el-drop-desc { font-size: 0.75rem; color: var(--text-muted); line-height: 1.7; }
.el-drop input[type="file"] { display: none; }

.el-upload-item {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
}
.el-upload-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.el-upload-name {
    font-size: 0.85rem;
    font-weight: 600;
    word-break: break-all;
    flex: 1;
    min-width: 120px;
}
.el-upload-state { font-size: 0.76rem; color: var(--text-muted); font-family: var(--font-mono); }
.el-upload-bar {
    height: 8px;
    border-radius: 999px;
    background: var(--border-light);
    overflow: hidden;
    position: relative;
}
.el-upload-bar > span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.25s ease;
}
.el-upload-bar.indeterminate > span {
    width: 40% !important;
    animation: elUploadSlide 1.1s ease-in-out infinite;
}
@keyframes elUploadSlide {
    0% { margin-left: -40%; }
    100% { margin-left: 100%; }
}
.el-upload-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-family: var(--font-mono);
}
.el-upload-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.el-upload-ok { border-color: var(--success-border); background: var(--success-light); }
.el-upload-err { border-color: var(--danger-border); background: var(--danger-light); }

/* ---- 文件库 / 订阅列表 ---- */
.el-file-kind {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.el-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
    flex-wrap: wrap;
}
.el-sub-item:last-child { border-bottom: none; }
.el-sub-mail { flex: 1; min-width: 160px; font-family: var(--font-mono); word-break: break-all; }
.el-sub-time { font-size: 0.75rem; color: var(--text-muted); }

/* ---- 版本详情卡片 ---- */
.el-ver-detail {
    padding: 18px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
}
.el-ver-detail .form-group { margin-bottom: 12px; }
.el-ver-files { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.el-ver-file {
    flex: 1 1 240px;
    padding: 12px 14px;
    border-radius: var(--radius-xs);
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    line-height: 1.7;
}
.el-ver-file b { display: block; font-size: 0.8rem; margin-bottom: 4px; color: var(--text); }
.el-ver-file span { color: var(--text-muted); font-family: var(--font-mono); word-break: break-all; }
.el-md-preview {
    max-height: 260px;
    overflow: auto;
    padding: 14px;
    border-radius: var(--radius-xs);
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.el-md-preview h1, .el-md-preview h2, .el-md-preview h3 { color: var(--text); margin: 10px 0 6px; font-size: 0.95rem; }
.el-md-preview ul, .el-md-preview ol { margin-left: 20px; }
.el-md-preview code { font-family: var(--font-mono); background: var(--bg-alt); padding: 1px 5px; border-radius: 4px; }
