/* YAML to JSON converter - two-pane input/output, direction toggle, error line.
   Reuses base .seg / .copy-btn; colors come from theme tokens only. */

/* Controls: direction segment. */
.yj-controls {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    margin-bottom: 16px;
}
.yj-direction-label { font-size: 14px; color: var(--muted); font-weight: 600; }

/* Panes: side by side on wide screens, stacked on narrow. */
.yj-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .yj-panes { grid-template-columns: 1fr; } }

.yj-pane { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.yj-pane-head { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.yj-pane-label { font-size: 14px; color: var(--muted); font-weight: 600; }

.yj-area {
    width: 100%; box-sizing: border-box; min-height: 320px; resize: vertical;
    font-family: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
    font-size: 14px; line-height: 1.5; tab-size: 2; padding: 12px;
    color: var(--text); background: var(--surface);
    border: 1px solid var(--border); border-radius: 12px;
    white-space: pre; overflow: auto;
}
.yj-area:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.yj-output { background: var(--bg); }

.yj-error { margin: 14px 0 0; color: var(--bad); font-variant-numeric: tabular-nums; }
