/* Left-to-right overrides for the English interface.
   The layout is built for RTL, so only the rules that use physical sides are mirrored here.
   Everything is scoped to html[dir="ltr"], which means the Persian interface is untouched. */
html[dir="ltr"] body { direction: ltr; }

/* Sidebar sits on the left and the content column shifts with it. */
html[dir="ltr"] .sidebar { right: auto; left: 0; }
html[dir="ltr"] .main { margin-right: 0; margin-left: 258px; }
@media (max-width: 1100px) {
  html[dir="ltr"] .main { margin-left: 216px; }
}
@media (max-width: 720px) {
  /* Below 720px the sidebar becomes a bottom bar, so the content is full width again. */
  html[dir="ltr"] .sidebar { right: 0; left: 0; }
  html[dir="ltr"] .main { margin-left: 0; }
}

/* Physical-side details. */
html[dir="ltr"] .auth-eye { right: auto; left: 6px; }
html[dir="ltr"] .f-link { text-align: left; }
html[dir="ltr"] .acc-id strong { text-align: left; }
html[dir="ltr"] .panel header.top .sub { text-align: left; }
html[dir="ltr"] .lesson { text-align: left; }
html[dir="ltr"] .milestone { text-align: center; }
/* Numeric badges keep their tabular alignment in both directions. */
html[dir="ltr"] .stat b, html[dir="ltr"] .summary-num { direction: ltr; }
/* The floating Cyrillic keyboard stays anchored to the visual left edge on purpose. */
