.paste-editor {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.paste-editor:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem oklch(0.55 0.03 260 / 0.22);
}

.paste-editor__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.85rem;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.paste-editor__label {
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.paste-editor__lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.paste-editor__lang .form-select {
    width: auto;
    min-width: 9.5rem;
    font-size: 0.82rem;
    padding: 0.25rem 2rem 0.25rem 0.6rem;
    color: var(--ink);
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.paste-editor__lang .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.15rem oklch(0.55 0.03 260 / 0.22);
}

.paste-editor__badge {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
}

#editor {
    width: 100%;
    min-height: 26rem;
    font-size: 14px;
}

.paste-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.paste-editor--view #editor {
    min-height: 12rem;
}

@media (max-width: 600px) {
    #editor {
        min-height: 18rem;
    }

    .paste-editor__lang .form-select {
        min-width: 7.5rem;
    }
}
