/* Animate only deliberate theme changes, without a transition on initial load. */
.home-page.theme-switching,.home-page.theme-switching *{transition:background-color .42s ease,color .42s ease,border-color .42s ease,box-shadow .42s ease,fill .42s ease,stroke .42s ease}
.theme-icon{overflow:visible}
.theme-icon .theme-moon,.theme-icon .theme-sun{transform-origin:12px 12px;transition:transform .42s cubic-bezier(.2,.7,.2,1),opacity .3s ease}
.theme-icon .theme-moon{opacity:1;transform:rotate(0deg) scale(1)}
.theme-icon .theme-sun{opacity:0;transform:rotate(-90deg) scale(.4)}
body[data-theme="light"] .theme-icon .theme-moon{opacity:0;transform:rotate(90deg) scale(.4)}
body[data-theme="light"] .theme-icon .theme-sun{opacity:1;transform:rotate(0deg) scale(1)}
.language-button .icon{width:23px;height:23px;transform:rotate(-18deg)}
.language-button[aria-expanded="true"]{background:var(--surface);color:var(--accent)}
.language-dialog{width:760px;max-width:calc(100vw - 40px);max-height:calc(100dvh - 48px);padding:30px;border:1px solid var(--line);border-radius:22px;background:var(--surface);color:var(--text);box-shadow:0 22px 80px #0005;overflow-y:auto}
.language-dialog::backdrop{background:#0008;backdrop-filter:blur(4px)}
.language-dialog[open]{animation:language-appear .2s ease-out}
.language-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}
.language-dialog h2{font-size:25px;font-weight:600;letter-spacing:-.5px;line-height:1.4}
.language-dialog>header>.icon-button{width:32px;height:32px;flex-shrink:0}
.language-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.language-option{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-width:0;min-height:80px;padding:15px 40px 15px 16px;border:1px solid transparent;border-radius:11px;background:transparent;text-align:left;transition:background-color .15s,border-color .15s}
.language-option:hover{background:var(--surface-hover)}
.language-option:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.language-option[aria-checked="true"]{background:#a3e85f12;border-color:var(--accent)}
.language-name{font-size:16px;font-weight:500;line-height:1.4}
.language-name{display:flex;align-items:center;gap:9px;max-width:100%}
.language-flag{display:block;width:24px;height:24px;flex-shrink:0;object-fit:cover;border-radius:50%;box-shadow:0 0 0 1px #8882}
.language-option>small{font-size:12px;line-height:1.5;color:var(--muted)}
.language-check{position:absolute;right:14px;top:50%;width:18px;height:18px;transform:translateY(-50%);fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.language-option[aria-checked="true"] .language-check{opacity:1}
@keyframes language-appear{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:600px){.language-dialog{max-width:calc(100vw - 28px);padding:23px 20px;border-radius:18px}.language-dialog>header{margin-bottom:20px}.language-dialog h2{font-size:22px}.language-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.language-option{min-height:78px;padding:13px 28px 13px 12px}.language-name{font-size:14px}.language-option>small{font-size:11px}.language-check{right:9px;width:15px;height:15px}.header-actions .language-button{width:28px;height:32px}.language-button .icon{width:22px;height:22px}}
@media(max-width:380px){.home-header{gap:8px;padding-inline:11px}.home-header .home-brand{gap:4px}.home-header .home-brand>span{font-size:21px}.home-header .home-brand>svg{width:23px;height:23px}.header-actions{gap:3px}.header-actions .button-small{padding-inline:8px;font-size:10px}.header-actions .login-link{font-size:10px;padding-inline:4px}.header-actions .language-button{width:25px}.language-dialog{padding-inline:16px}.language-option{padding-left:10px;padding-right:25px}.language-name{font-size:13px}.language-option>small{font-size:10px}}
@media(prefers-reduced-motion:reduce){.home-page.theme-switching,.home-page.theme-switching *,.theme-icon .theme-moon,.theme-icon .theme-sun{transition:none!important}.language-dialog[open]{animation:none!important}}
@media(max-width:600px){.language-name{gap:7px}.language-flag{width:20px;height:20px}}
@media(max-width:380px){.language-name{gap:6px}.language-flag{width:18px;height:18px}}
