.auth-entry{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;padding:0;border:1px solid #493d50;border-radius:50%;background:#211b28;color:#eee8f3;cursor:pointer}.auth-entry svg{width:22px;height:22px}.auth-entry:hover{border-color:#ff397a;color:#ff76a4}.auth-entry.signed-in::after{content:'';position:absolute;bottom:0;right:0;width:9px;height:9px;border:2px solid #17121b;border-radius:50%;background:#62d49b}
.auth-dialog{position:fixed;inset:0;width:min(420px,calc(100vw - 28px));max-height:90dvh;overflow:auto;border:1px solid #38303f;border-radius:20px;background:#17121b;color:#fff;padding:32px;box-sizing:border-box}
.auth-dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}
.auth-dialog h2{font-size:25px;margin:12px 0}.auth-dialog p{color:#ada4b7;font-size:14px;line-height:1.5}.auth-providers{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:22px 0}.auth-providers button{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-height:48px;border:1px solid #4b4054;border-radius:10px;background:#211b28;color:#fff;padding:12px;font:inherit;font-size:14px;cursor:pointer}.auth-providers button span{font-size:20px}.auth-providers small{font-size:10px;width:100%;color:#a399ae}.auth-dialog button:disabled{opacity:.5;cursor:not-allowed}.auth-divider{display:flex;align-items:center;gap:12px;color:#9e92aa;font-size:12px;margin:18px 0}.auth-divider:before,.auth-divider:after{content:'';flex:1;height:1px;background:#3a3042}.auth-dialog form{display:grid;gap:12px}.auth-dialog label{display:grid;gap:8px;font-size:13px;color:#bdb1c8}.auth-dialog input{width:100%;box-sizing:border-box;border:1px solid #493d50;border-radius:9px;background:#211b28;color:#fff;padding:12px;font:inherit}.auth-dialog .close-button{top:12px;right:12px}.auth-dialog #auth-message{margin:0;min-height:22px}.auth-dialog button:focus-visible,.auth-entry:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(max-width:600px){.auth-entry{width:36px;height:36px;padding:0}.topbar .brand{font-size:20px}.auth-dialog{padding:24px}.header-tools select{max-width:84px}}

.account-control{position:relative;display:inline-flex;align-items:center;flex:none}
.auth-entry.signed-in{background:#ff2875;border-color:#ff4b8c;color:#fff;box-shadow:0 0 0 3px #ff28751a}
.auth-entry.signed-in:hover,.auth-entry.signed-in[aria-expanded="true"]{background:#dc1c61;color:#fff;border-color:#ff80ac}
.auth-entry.signed-in::after{display:none}
.account-menu{position:absolute;z-index:120;right:0;top:calc(100% + 12px);width:240px;max-width:calc(100vw - 32px);padding:8px;border:1px solid #3e3346;border-radius:14px;background:#1c1622;box-shadow:0 16px 48px #0008;text-align:left}
.account-menu[hidden]{display:none}
.account-identity{display:flex;align-items:center;gap:11px;padding:12px 10px 16px;border-bottom:1px solid #ffffff12;margin-bottom:6px;min-width:0}
.account-avatar{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:#ff287522;color:#ff80ac;font-size:15px;font-weight:700}
.account-identity strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f4eef9;font-size:14px;font-weight:600}
.account-logout{display:flex;align-items:center;gap:11px;width:100%;padding:11px 12px;border:0;border-radius:8px;background:transparent;color:#d9cde3;font:inherit;font-size:14px;text-align:left;cursor:pointer}
.account-logout svg{width:19px;height:19px}.account-logout:hover{background:#ff287514;color:#ff80ac}.account-logout:focus-visible{outline:2px solid #ff80ac;outline-offset:-2px}
/* Shared flat language control and localized modal. */
.language-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;background:transparent;color:#c8c2ce;font:inherit;font-size:14px;padding:9px 4px;cursor:pointer;white-space:nowrap}.language-trigger svg{width:20px;height:20px;flex:none}.language-trigger:hover{color:#fff}.language-dialog{position:fixed;inset:0;box-sizing:border-box;width:min(610px,calc(100vw - 28px));max-height:88dvh;overflow:auto;border:1px solid #3c3443;border-radius:22px;background:#1b181f;color:#f3eff7;padding:28px}.language-dialog::backdrop{background:#000b;backdrop-filter:blur(4px)}.language-dialog h2{margin:0 34px 10px 0;font-size:25px}.language-dialog>p{color:#aca5b5;font-size:14px;line-height:1.5;margin:0 0 22px}.language-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.language-grid button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:51px;padding:12px 15px;border:1px solid #423a49;border-radius:12px;background:#211d27;color:#e0dce6;font:inherit;font-size:15px;text-align:start;cursor:pointer}.language-grid button[aria-pressed=true]{border-color:#ff2875;background:#ff287526;color:white}.language-grid button>span:last-child{color:#ff4789;font-weight:800}.language-grid button:focus-visible{outline:2px solid #ff79aa;outline-offset:2px}.center-settings .settings-language-button{width:220px;max-width:63%;height:42px;border:1px solid #322b3e;border-radius:9px;background:#1b1722;justify-content:flex-start;padding:9px 12px;font-size:14px}.center-settings .settings-language-button span{overflow:hidden;text-overflow:ellipsis}.center-settings .settings-language-button svg{width:17px;height:17px}
/* Three-step authentication. */
#auth-dialog{width:min(490px,calc(100vw - 28px));padding:38px 30px 26px;background:#1b181f;border-color:#3c3443;border-radius:24px}#auth-dialog .close-button{top:14px;inset-inline-end:14px;inset-inline-start:auto;width:34px;height:34px;font-size:25px;background:#ffffff08;border:0}#auth-dialog .auth-back{position:absolute;top:12px;inset-inline-start:14px;border:0;background:none;color:#c9c2d1;width:34px;height:36px;font-size:35px;line-height:30px;cursor:pointer}.auth-brand{display:flex;align-items:center;justify-content:center;gap:10px;direction:ltr;font-size:25px;font-weight:800;margin:4px 0 22px}.auth-brand b{color:#ff2875}.auth-brand small{font-size:23px;color:#8c8595}.auth-brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#ff2875;color:white;font-size:26px;box-shadow:0 5px 24px #ff287530}#auth-dialog h2{text-align:center;font-size:26px;line-height:1.3;margin:0 0 12px}#auth-dialog .auth-subtitle{text-align:center;color:#aaa3b1;font-size:14px;margin:0 0 26px;overflow-wrap:anywhere}#auth-dialog .auth-providers{grid-template-columns:1fr;gap:10px;margin:0}#auth-dialog .auth-providers button{justify-content:center;flex-wrap:nowrap;gap:12px;min-height:51px;background:#29252f;border-color:#48404f;font-size:15px;font-weight:500;border-radius:12px;padding:12px 14px}#auth-dialog .auth-providers button:disabled{opacity:.55}.provider-symbol{font-size:23px;font-weight:700;width:23px;display:grid;place-items:center}.provider-symbol.google{color:#4285f4}.provider-symbol.facebook{color:#1877f2}.provider-symbol.telegram img{width:22px;height:22px}.auth-email-choice{display:flex;align-items:center;justify-content:center;gap:11px;width:100%;min-height:51px;border:1px solid #48404f;border-radius:12px;background:transparent;color:#d8d2df;font:inherit;font-size:14px;padding:12px;cursor:pointer}.auth-email-choice svg{width:22px;height:22px;flex:none}#auth-dialog form{gap:10px}#auth-dialog form>label{font-size:14px;margin-top:3px}#auth-dialog input:not([type=checkbox]){height:52px;border-radius:12px;background:#151219;border:1px solid #43394e;font-size:17px;padding:12px 15px}#auth-dialog input:focus{outline:none;border-color:#ff2875;box-shadow:0 0 0 1px #ff287520}#auth-dialog .button.primary{width:100%;height:51px;margin-top:12px;border-radius:26px;background:#ff2875;border-color:#ff2875;font-size:15px;padding:12px}#auth-dialog .verification-code{text-align:center;font-size:30px!important;font-weight:650;letter-spacing:12px;padding-inline-start:27px!important}#auth-dialog .verification-code::placeholder{color:#797180;opacity:.8}.auth-code-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:6px 0 12px}.auth-code-actions .text-button{font-size:13px;color:#bcb2c8;padding:3px 0}.auth-code-actions .text-button:disabled{color:#817888}.auth-agreement{display:flex!important;align-items:flex-start;gap:10px!important;line-height:1.5!important}#auth-dialog .auth-agreement input{width:17px;height:17px;flex:0 0 17px;accent-color:#ff2875;margin:3px 0 0;padding:0}.auth-agreement span{font-size:12px}.auth-policy-links{display:flex;flex-wrap:wrap;gap:7px;padding-inline-start:27px;color:#aaa2b5}.auth-policy-links a,.auth-policy-link{font-size:12px;color:#d4cbdc;text-decoration:underline;border:0;background:none;padding:0;font-family:inherit;cursor:pointer}#auth-dialog #auth-message{font-size:12px;line-height:1.5;margin:3px 0 0}.auth-dialog #auth-message:empty{min-height:0}html[dir=rtl] .center-nav{text-align:right}html[dir=rtl] .center-nav b{margin-left:0;margin-inline-start:auto}html[dir=rtl] .auth-back{transform:scaleX(-1)}html[dir=rtl] .auth-subtitle{unicode-bidi:plaintext}html[dir=rtl] .center-person{text-align:center}
@media(max-width:768px){.topbar #language.language-trigger{width:auto;max-width:180px;font-size:12px}.language-dialog{padding:24px 18px}.language-dialog h2{font-size:23px}.language-grid{gap:8px}.language-grid button{font-size:13px;padding:10px 12px;min-height:48px}#auth-dialog{padding:35px 22px 22px}#auth-dialog h2{font-size:24px}.center-settings .settings-language-button{width:170px;font-size:13px}.auth-brand{font-size:23px}.auth-brand small{font-size:21px}html[dir=rtl] .center-person{text-align:right}}

/* Mobile sign-in stays over the current page as a bottom sheet. */
@media(max-width:768px){
 body.auth-sheet-open{overflow:hidden}
 #auth-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;border-radius:24px 24px 0 0;border-bottom:0;padding:38px 22px calc(22px + env(safe-area-inset-bottom));transform:translateY(0)}
 #auth-dialog::before{content:'';position:absolute;top:10px;left:50%;transform:translateX(-50%);width:34px;height:4px;background:#5b555f;border-radius:4px}
 #auth-dialog::backdrop{background:#0009;backdrop-filter:none;-webkit-backdrop-filter:none}
}

.auth-code-field{position:relative;width:100%;direction:ltr}
#auth-dialog .auth-code-field #auth-code{width:100%;color:transparent;caret-color:transparent;-webkit-text-fill-color:transparent;letter-spacing:normal;padding:12px!important}
.auth-code-slots{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:12px;pointer-events:none;direction:ltr;font:650 30px/1 ui-monospace,SFMono-Regular,Consolas,monospace}
.auth-code-slots span{display:block;width:22px;text-align:center;color:#797180}
.auth-code-slots .filled{color:#f5f2f8}
.auth-code-hint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* The visible caret belongs to the next empty slot, matching the native input. */
.auth-code-slots span{position:relative}
.auth-code-field:focus-within .auth-code-slots .current{color:#ff2875}
.auth-code-field:focus-within .auth-code-slots .current::after{content:'';position:absolute;left:50%;top:0;width:2px;height:26px;background:#ff2875;transform:translateX(-50%);animation:auth-code-caret 1s step-end infinite}
@keyframes auth-code-caret{50%{opacity:0}}
@media(prefers-reduced-motion:reduce){.auth-code-field:focus-within .auth-code-slots .current::after{animation:none}}
