/* Phase 52: language selector + right-to-left (Arabic) layout. Loaded after all other workspace styles. */
.lang-switch { display: flex; align-items: center; gap: 10px; margin: 2px 10px 6px; padding: 4px 6px 4px 12px; color: var(--ink-2); }
.lang-switch .icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.lang-switch-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang-switch select, .lang-select {
  flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer;
}
.lang-select { flex: 0 1 220px; }
.lang-switch select:focus-visible, .lang-select:focus-visible { outline: 3px solid rgba(70, 86, 223, .55); outline-offset: 2px; }

/* ---- right-to-left ---- */
html[dir="rtl"] .app-sidebar { inset: 0 0 0 auto; }
