/* Hebrew / right-to-left. Loaded after style.css. */
.lang-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 10px 8px 14px; font-size: 16px; letter-spacing: -.01em; }
.lang-seg { display: flex; padding: 3px; border-radius: 12px; background: rgba(120,120,128,.22); }
.lang-seg button { min-width: 74px; padding: 6px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--label2); transition: background .2s, color .2s; }
.lang-seg button.on { background: rgba(255,255,255,.2); color: var(--label); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.he-only { display: none; }
html[lang="he"] .he-only { display: block; }
.legal-note { margin: 0 0 10px; color: var(--label2); }
html[dir="rtl"] body { font-family: "Inter", "Noto Sans Hebrew", "Arial Hebrew", "Heebo", system-ui, sans-serif; }
html[dir="rtl"] .result, html[dir="rtl"] .row-btn, html[dir="rtl"] .perm, html[dir="rtl"] .update-main, html[dir="rtl"] .web-intro { text-align: right; }
html[dir="rtl"] .legal-en { text-align: left; }
html[dir="rtl"] .seg .count { margin-left: 0; margin-right: 5px; }
html[dir="rtl"] .under .ua-left { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .toast-action { margin-left: 0; margin-right: 6px; }
html[dir="rtl"] .arr-time { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .switch::after { left: auto; right: 2px; }
html[dir="rtl"] .switch:checked::after { transform: translateX(-20px); }
html[dir="rtl"] .card-go svg { transform: scaleX(-1); }
html[dir="rtl"] .under.right { background: linear-gradient(270deg, rgba(48,209,88,.9), rgba(48,209,88,.25)); }
html[dir="rtl"] .under.pause { background: linear-gradient(270deg, rgba(255,159,10,.92), rgba(255,159,10,.25)); }
html[dir="rtl"] .under.left { background: linear-gradient(90deg, rgba(255,69,58,.92), rgba(255,69,58,.25)); }
html[dir="rtl"] .lang-row { padding: 8px 14px 8px 10px; }
/* numbers, times and addresses keep their own direction inside Hebrew text */
html[dir="rtl"] .chip, html[dir="rtl"] .r-addr, html[dir="rtl"] .card-addr { unicode-bidi: plaintext; }
