::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.editor-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
}

.diff-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 900px) {
    .diff-panel {
        grid-template-columns: 1fr 1fr;
    }
}

.diff-col {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    padding: 0.75rem;
}

.diff-title {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.diff-content {
    min-height: 180px;
    max-height: 420px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Noto Sans SC', sans-serif;
    font-size: 0.95rem;
    line-height: 1.85;
    color: #0f172a;
}

.diff-add {
    background: #dcfce7;
    color: #166534;
    border-radius: 0.2rem;
}

.diff-remove {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 0.2rem;
}

.diff-keep {
    color: #334155;
}

.editor-textarea {
    width: 100%;
    min-height: 420px;
    padding: 1rem;
    border: none;
    outline: none;
    resize: vertical;
    color: #0f172a;
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Noto Sans SC', sans-serif;
    font-size: 16px;
    line-height: 1.85;
    background: #fff;
}

.editor-textarea::placeholder {
    color: #94a3b8;
}

.tox-tinymce {
    border: none !important;
}

.tox .tox-edit-area__iframe {
    background: #fff;
}

.toast {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: #1e293b;
    color: #fff;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
