/* Layout follows the chosen interface language; images and identifiers keep their meaning. */
html[dir="rtl"] body{font-family:Tahoma,"Segoe UI",Arial,sans-serif;letter-spacing:normal}
html[dir="rtl"] :is(h1,h2,h3,.eyebrow,.brand small){letter-spacing:normal}
html[dir="rtl"] :is(p,li,label,th,td,.modal-description,.page-heading,.hero-copy,.form-field,.teacher-day-panel,.training-step,.family-desk-heading){text-align:start}
html[dir="rtl"] :is(.button,.icon-button,.answer-letter,.play-colour,.play-counter,.avatar-options label){text-align:center}
html[dir="rtl"] .main-nav{margin-left:0;margin-right:auto}
html[dir="rtl"] .hero-copy{padding-left:0;padding-right:10px}
html[dir="rtl"] .skip-link{left:auto;right:20px}
html[dir="rtl"] :is(ul,ol){padding-left:0;padding-right:1.5em}
html[dir="rtl"] :is(input[type="email"],input[type="password"],input[type="url"],input[type="tel"],input[type="number"],input[type="time"],input[type="date"],input[name="username"],input[name="code"],input[name="token"],code,pre,.access-visible-pass,.school-pass-code,.studio-teacher-pass dd,.answer-letter,.math-expression,.number-line){direction:ltr;unicode-bidi:isolate;text-align:left}
html[dir="rtl"] :is(textarea,input[type="text"]){text-align:start;unicode-bidi:plaintext}
html[dir="rtl"] :is(input[name="username"],input[name="code"],input[name="token"]){direction:ltr;unicode-bidi:isolate;text-align:left}
html[dir="rtl"] :is(canvas,.campus-art,.vintage-campus-art,.office-meta-scene,.play-drawing-canvas,.kita-adventure-picture){direction:ltr}
html[dir="rtl"] :is([data-action="quiz-next"],[data-action="quiz-prev"],[data-action="training-next"],[data-action="training-prev"]) .icon{transform:scaleX(-1)}
html[dir="rtl"] .language-control{direction:rtl}
.language-control select{min-width:100px;max-width:140px}
[dir="auto"],bdi{unicode-bidi:isolate}
html[dir="rtl"] :is(.family-desk-card,.concierge-prompt-grid button,.concierge-book-days button,.concierge-ai-list button,.teacher-day-prompts .button,.login-guide-actions>.button,.school-tools-links>a){text-align:start}
html[dir="rtl"] :is(.family-desk-card>.icon:last-child,.concierge-task-credit,.concierge-steps>strong,.concierge-actions .text-button:last-child,.concierge-chat-message.user,.teacher-day-chat-log article.user){margin-left:0;margin-right:auto}
html[dir="rtl"] .teacher-day-students small{margin-left:0;margin-right:.4rem}
html[dir="rtl"] .teacher-day-prompts .button{margin-left:.5rem;margin-right:0}
html[dir="rtl"] .teacher-day-step-card blockquote{border-left:0;border-right:3px solid #bda06b}
html[dir="rtl"] .concierge-book-work>div{border-left:0;border-right:2px solid #c3b57f;padding-left:0;padding-right:15px}
html[dir="rtl"] .concierge-agent-draft{border-left:1px solid #c4a768;border-right:4px solid #b48b43}
html[dir="rtl"] .school-tools-links>a[aria-current]{box-shadow:inset -3px 0 #648466}
html[dir="rtl"] :is(.teacher-day-time,.concierge-event-time){direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] .teacher-day-timeline{padding:0}
/* A worksheet or target-language passage can differ from its surrounding UI. */
:is(article,section,div,p,span)[lang="ar"],:is(article,section,div,p,span)[lang="fa"],:is(article,section,div,p,span)[lang="prs"],:is(article,section,div,p,span)[lang="ur"]{direction:rtl;unicode-bidi:isolate}
:is(article,section,div,p,span)[lang="de"],:is(article,section,div,p,span)[lang="en"],:is(article,section,div,p,span)[lang="sq"],:is(article,section,div,p,span)[lang="fr"],:is(article,section,div,p,span)[lang="es"]{direction:ltr;unicode-bidi:isolate}
@media print{html[dir="rtl"] :is(th,td){text-align:right}html[dir="rtl"] :is(code,pre,input[type="number"]){text-align:left}}
