/* Language switch button (both languages) */
#fmd-lang-toggle{position:fixed;inset-block-start:10px;inset-inline-end:12px;z-index:2147483000;min-height:36px;padding:6px 14px;border:1px solid #8aa0b8;border-radius:999px;background:#fff;color:#17263a;font:600 14px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;box-shadow:0 2px 8px rgba(0,0,0,.18);cursor:pointer}
#fmd-lang-toggle.in-header{position:static;inset:auto;min-height:32px;padding:4px 10px;font-size:13px;box-shadow:none;margin-inline-start:6px;flex:none;z-index:auto}
#fmd-lang-toggle:focus-visible{outline:3px solid #1466f5;outline-offset:2px}
#live-root[data-theme=dark]~#fmd-lang-toggle{background:#1b2a3f;color:#e8eef7;border-color:#4a607c}

/* English (LTR) mode: the app CSS hard-codes direction:rtl and a few physical sides */
html[dir=ltr] #live-root,html[dir=ltr] #live-root *{direction:ltr}
html[dir=ltr] #live-root.drawer-open nav{right:auto;left:max(0px,calc((100% - 600px)/2));box-shadow:10px 0 35px #0004;border-radius:0 16px 16px 0}
html[dir=ltr] #live-root[data-role=admin].drawer-open nav{right:auto;left:0}
html[dir=ltr] #live-root .timeline{border-right:0;border-left:3px solid var(--brand)}
html[dir=ltr] #live-root .project-cover>.badge{right:auto;left:8px}
html[dir=ltr] #live-root .estate-status{right:auto;left:10px}
html[dir=ltr] #live-root .estate-ad .ad-label{left:auto;right:12px}
html[dir=ltr] #live-root{font-family:system-ui,-apple-system,"Segoe UI",Roboto,FmdCairo,Arial,sans-serif}
#live-root[data-theme=dark] #fmd-lang-toggle{background:#1b2a3f;color:#e8eef7;border-color:#4a607c}
#live-root>header #live-theme{max-width:122px;min-width:0;flex:0 0 auto;padding-inline:8px}
#live-root>header>div{min-width:0;flex:1 1 auto}
#live-root>header #live-theme{font-size:13px;padding-inline:4px}
#live-root>header>div small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:normal;word-break:normal}
