/* Theme switch, smooth change, and dark colours for the public pages (login, register, privacy, errors, maintenance). */
html{color-scheme:light}
html[data-theme=dark]{color-scheme:dark}
html.theme-anim,html.theme-anim *,html.theme-anim *::before,html.theme-anim *::after{transition:background-color .35s ease,color .35s ease,border-color .35s ease,fill .35s ease,stroke .35s ease,box-shadow .35s ease!important}
@media(prefers-reduced-motion:reduce){html.theme-anim,html.theme-anim *{transition:none!important}}
/* menu */
.th-wrap{position:relative;display:inline-flex}
.th-btn .th-sun{display:none}html[data-theme=dark] .th-btn .th-moon{display:none}html[data-theme=dark] .th-btn .th-sun{display:inline-flex}
.th-menu{position:absolute;left:0;top:calc(100% + 8px);min-width:178px;padding:6px;background:#fff;color:#1c2733;border:1px solid #e1e6ee;border-radius:12px;box-shadow:0 14px 36px rgba(15,27,45,.2);z-index:2147483000;text-align:right;animation:th-pop .14s ease-out}
.th-menu[hidden]{display:none}
@keyframes th-pop{from{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:none}}
.th-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:0;background:none;color:inherit;font:inherit;font-size:14px;font-weight:500;border-radius:8px;cursor:pointer;text-align:right}
.th-menu button:hover{background:#eef2f6}
.th-menu button svg{flex:none;color:#5d6877}
.th-menu button .th-tick{margin-right:auto;opacity:0;color:var(--ac,#0b6b6f)}
.th-menu button[aria-checked=true]{color:var(--ac,#0b6b6f);font-weight:600}.th-menu button[aria-checked=true] svg{color:var(--ac,#0b6b6f)}.th-menu button[aria-checked=true] .th-tick{opacity:1}
html[data-theme=dark] .th-menu{background:#1b2636;color:#e6edf6;border-color:#2b3a50;box-shadow:0 14px 36px rgba(0,0,0,.5)}
html[data-theme=dark] .th-menu button:hover{background:#243145}html[data-theme=dark] .th-menu button svg{color:#9aa8ba}
html[data-theme=dark] .th-menu button[aria-checked=true],html[data-theme=dark] .th-menu button[aria-checked=true] svg,html[data-theme=dark] .th-menu button .th-tick{color:var(--ac-b,#2dd4bf)}
/* round button in the corner of public pages */
.th-fab{position:fixed;top:16px;left:16px;z-index:2147482000}
.th-fab .th-btn{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d7dde6;background:rgba(255,255,255,.9);backdrop-filter:blur(6px);color:#3b4757;border-radius:50%;cursor:pointer;padding:0;box-shadow:0 2px 8px rgba(15,27,45,.1);transition:transform .15s,background .15s}
.th-fab .th-btn:hover{transform:scale(1.06)}
html[data-theme=dark] .th-fab .th-btn{background:rgba(27,38,54,.92);border-color:#33425a;color:#e6edf6}
@media(max-width:860px){.th-fab{top:12px;left:12px}}
/* ---- dark colours for the public pages ---- */
html[data-theme=dark] body.auth{background:#0d131b;color:var(--ink)}
html[data-theme=dark] .auth-card,html[data-theme=dark] .lg-card{background:var(--card);border-color:var(--line);box-shadow:0 10px 34px rgba(0,0,0,.35)}
html[data-theme=dark] .auth-main{background:#0d131b}
html[data-theme=dark] .auth-side{background:#0a1018}
html[data-theme=dark] .auth-switch{border-color:var(--line)}
html[data-theme=dark] .auth-title,html[data-theme=dark] .lg-card h1,html[data-theme=dark] .lg-card h2{color:var(--ink)}
html[data-theme=dark] .auth-card a:not(.btn):not(.gbtn),html[data-theme=dark] .lg-card a:not(.btn){color:#5fd6cf}
html[data-theme=dark] .gbtn{background:#1b2533;border-color:#33425a;color:var(--ink)}html[data-theme=dark] .gbtn:hover{background:#243145;border-color:#43546f}
html[data-theme=dark] .auth-or{color:#8c98a8}html[data-theme=dark] .auth-or:before,html[data-theme=dark] .auth-or:after{background:#2b3a50}
html[data-theme=dark] .errp-top a{color:var(--ink)}
html[data-theme=dark] .lg-card .btn.sec{background:#1b2533;color:var(--ink);border-color:#33425a}
/* the floating wave */
.th-wave{position:fixed;border-radius:50%;pointer-events:none;z-index:2147483600;will-change:transform,opacity;transform:scale(0)}
.th-wave.to-dark{background:radial-gradient(circle at 50% 50%,#0d131b 0,#0d131b 74%,rgba(13,19,27,.9) 88%,rgba(13,19,27,0) 100%);box-shadow:0 0 90px 40px rgba(45,212,191,.22)}
.th-wave.to-light{background:radial-gradient(circle at 50% 50%,#f4f5f7 0,#f4f5f7 74%,rgba(244,245,247,.9) 88%,rgba(244,245,247,0) 100%);box-shadow:0 0 90px 40px rgba(255,255,255,.55)}
.th-spin svg{animation:th-spin .6s cubic-bezier(.34,1.56,.64,1)}
@keyframes th-spin{from{transform:rotate(120deg) scale(.4);opacity:0}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.th-wave{display:none}.th-spin svg{animation:none}}
/* language switch on public pages (EN / עברית), next to the appearance button */
.th-fab{display:flex;align-items:center;gap:8px}
.lang-sw.fab{display:inline-flex;gap:2px;padding:3px;border-radius:999px;border:1px solid #d7dde6;background:rgba(255,255,255,.9);backdrop-filter:blur(6px);box-shadow:0 2px 8px rgba(15,27,45,.1)}
.lang-sw.fab a{display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:999px;font:600 13px/1 "IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;color:#3b4757;text-decoration:none}
.lang-sw.fab a:hover{color:var(--ac,#0b6b6f)}.lang-sw.fab a.on{background:var(--ac,#0b6b6f);color:#fff}.lang-sw.fab a:focus-visible{outline:2px solid var(--ac,#0b6b6f);outline-offset:2px}
html[data-theme=dark] .lang-sw.fab{background:rgba(27,38,54,.92);border-color:#33425a}html[data-theme=dark] .lang-sw.fab a{color:#e6edf6}html[data-theme=dark] .lang-sw.fab a.on{background:var(--ac-b,#2dd4bf);color:#06201d}
/* right-to-left: arrows point the other way */
html[dir=rtl] .ico-dir{transform:scaleX(-1)}
/* right-to-left: text people typed (names, site descriptions, messages) keeps its own direction */
html[dir=rtl] .tile h3,html[dir=rtl] .tile p,html[dir=rtl] .contcard .cb b,html[dir=rtl] .contcard .cb small,html[dir=rtl] .nx-n-bd b,html[dir=rtl] .nx-n-bd p,html[dir=rtl] .nx-msg,html[dir=rtl] .um-who b,html[dir=rtl] .bidi,html[dir=rtl] tr[translate=no] td,html[dir=rtl] tr[translate=no] td span,html[dir=rtl] #ms .nm,html[dir=rtl] #ms .ds,html[dir=rtl] #ms .host,html[dir=rtl] input,html[dir=rtl] textarea{unicode-bidi:plaintext}
/* tools that keep a left-to-right layout in Hebrew (code editors): each piece of text still reads in its own direction */
html[dir=rtl] .ltr-tool :is(p,h1,h2,h3,h4,small,label,li,span,b,em,td,th,button,a,div.msg,[class*=title],[class*=empty]):not(.monaco-editor *):not(.monaco-editor){unicode-bidi:plaintext}
/* ---- scrollbars: site teal everywhere ---- */
html{--sb-thumb:color-mix(in srgb,var(--ac,#0b6b6f) 34%,transparent);--sb-thumb-h:color-mix(in srgb,var(--ac,#0b6b6f) 60%,transparent);--sb-thumb-a:var(--ac,#0b6b6f)}
html[data-theme=dark]{--sb-thumb:color-mix(in srgb,var(--ac-b,#2dd4bf) 28%,transparent);--sb-thumb-h:color-mix(in srgb,var(--ac-b,#2dd4bf) 50%,transparent);--sb-thumb-a:var(--ac-b,#2dd4bf)}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track,::-webkit-scrollbar-corner{background:transparent}
::-webkit-scrollbar-thumb{background:var(--sb-thumb);border:2px solid transparent;background-clip:padding-box;border-radius:10px;min-height:32px}
::-webkit-scrollbar-thumb:hover{background:var(--sb-thumb-h);background-clip:padding-box}
::-webkit-scrollbar-thumb:active{background:var(--sb-thumb-a);background-clip:padding-box}
@supports not selector(::-webkit-scrollbar){*{scrollbar-color:var(--sb-thumb) transparent}}
