/* The interface can mirror; user content and numeric fields keep their own direction. */
.language-picker{display:flex;align-items:center;gap:.4rem;font-size:.78rem;min-width:0;color:var(--ink);}
.language-picker select{font:inherit;border:1px solid var(--line,#d2d8d0);border-radius:8px;padding:.45rem .3rem;max-width:142px;background:var(--surface,#fff);color:inherit;}
.language-notice{font-size:.84rem;line-height:1.5;border:1px solid var(--line,#d2d8d0);border-radius:10px;padding:.7rem 1rem;margin:1rem 0;background:var(--surface,#fff);color:var(--ink,#24372e);}
.language-notice[hidden]{display:none!important;}

[dir="rtl"] .hero,[dir="rtl"] .tool-card,[dir="rtl"] .tools-heading,[dir="rtl"] .page-hero{text-align:start;}
[dir="rtl"] .search-box input{padding-inline-start:42px;padding-inline-end:36px;}
[dir="rtl"] .search-box>svg{left:auto;right:14px;}
[dir="rtl"] .search-box kbd{right:auto;left:12px;}
[dir="rtl"] .menu-panel{right:auto;left:0;}
[dir="rtl"] .workbench,[dir="rtl"] input[type="number"],[dir="rtl"] input[type="range"],[dir="rtl"] pre,[dir="rtl"] code{direction:ltr;}
html[lang="ar"],html[lang="ur"],html[lang="hi"],html[lang="bn"],html[lang="ta"],html[lang="th"]{line-height:1.6;}
/* Bottom-only controls stay readable and touch-friendly without crowding navigation. */
.footer>.language-settings{flex:1 0 100%;display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1rem;min-width:0;font-weight:400;letter-spacing:normal;}
.language-settings .language-notice{flex:1 1 28rem;min-width:0;margin:0;padding:0;border:0;background:none;font-size:.78rem;color:var(--muted,var(--ink));}
.language-picker{flex-wrap:wrap;}
.language-picker select{min-height:44px;max-width:min(100%,220px);font-size:16px;}
.dialog-language-settings{padding:0 24px 24px;}
.card-title,.page-hero h1,#dialog-title{overflow-wrap:anywhere;}
/* Generated mixed-content fragments must not inherit authored span-only decoration. */
i18n-text{display:inline;}
/* Reporting remains available in the footer/menu; long translations must not push navigation offscreen. */
@media(max-width:800px){.topbar-actions .header-report{display:none;}}
