/* Arabic and right-to-left: only what direction-neutral properties cannot say.
   Every rule starts with [dir="rtl"], so it can never change an English page. */

/* drawers that wait off-screen slide in from the other side */
[dir="rtl"] .shell-sheet__panel { transform: translateX(100%); }
[dir="rtl"] .shell-sheet.is-open .shell-sheet__panel { transform: none; }
[dir="rtl"] .vt-time-drawer { transform: translateX(-100%); }
[dir="rtl"] .vt-time-drawer.open { transform: translateX(0); }
[dir="rtl"] .nd-drawer { transform: translateX(-100%); box-shadow: 8px 0 30px rgba(16, 24, 40, .18); }
[dir="rtl"] .nd-drawer.open { transform: none; }
/* People's member panel: shut, it sat over the page's left side, unseen behind its own skeleton,
   and took the clicks meant for Invite's Send (guide robot in Arabic, 16 Nov 2026) */
[dir="rtl"] .mslide { transform: translateX(-100%); box-shadow: 18px 0 50px rgba(0, 0, 0, .16); }
[dir="rtl"] .mslide.show { transform: none; }

/* the small arrow inside a select sits at the end of the box */
[dir="rtl"] .cal-sel { background-position: left 12px center; }
[dir="rtl"] .cal-fsel { background-position: left 14px center; }
[dir="rtl"] .cal-fsel.sm { background-position: left 10px center; }
[dir="rtl"] .vt-modal-cti .field-stack > label > select { background-position: left 12px center; }

/* floats have no direction-neutral value in the browsers we still support */
[dir="rtl"] .h2-away-h .h2-link { float: left; }
[dir="rtl"] .ucomp-tiptap p.is-editor-empty:first-child::before { float: right; }

/* Pop-ups a script places by their left edge: in right-to-left the stylesheet's start edge is
   `right`, which would win over the script's `left`. */
[dir="rtl"] .nav-ac[style*="left"], [dir="rtl"] .pol-pick[style*="left"], [dir="rtl"] .ax-pop[style*="left"], [dir="rtl"] .sl-pop[style*="left"], [dir="rtl"] .settings-tz__pop[style*="left"] { right: auto; }

/* The switch's knob slides on its start edge, which is `right` here. */
[dir="rtl"] .settings-tg::after { transition: right .15s; }

/* the phone tab bar's count sits by its icon: its own rule names the right edge, which in right-to-left
   met the shared badge's start edge and stretched the badge across the label */
[dir="rtl"] .shell .shell-tabs .notif-badge { right: auto; left: calc(50% - 20px); }
