:root{--app-ink:#172332;--app-muted:#637287;--app-blue:#2455ff}
body:has(.app-shell){background:#f4f6fb}
[hidden]{display:none!important}
.app-shell{max-width:1100px;margin:0 auto;padding:150px 24px 80px;min-height:70vh;color:var(--app-ink)}
.app-shell h1{font-size:clamp(28px,4vw,42px);line-height:1.15;letter-spacing:-.04em;margin:15px 0 20px}.app-shell h2{font-size:24px;margin:0 0 16px}.app-shell p{line-height:1.7}.app-shell a{color:var(--app-blue)}
.auth-card{max-width:560px;margin:0 auto;background:#fff;border:1px solid #dfe5ee;border-radius:24px;padding:38px;box-shadow:0 20px 70px #2130590b}.auth-card>p{color:var(--app-muted);margin-bottom:24px}
.app-shell form{display:grid;gap:18px}.app-shell label{display:grid;gap:8px;font-size:14px;font-weight:600}.app-shell input:not([type=checkbox]),.app-shell select{width:100%;padding:13px 14px;border:1px solid #c8d2df;border-radius:10px;font:inherit;color:var(--app-ink);background:white}.app-shell input:focus,.app-shell select:focus{outline:2px solid #4268ff;outline-offset:2px}.app-shell .check-row{display:flex;align-items:flex-start;gap:10px;font-weight:400;line-height:1.55}.check-row input{margin-top:4px;accent-color:#2455ff;flex-shrink:0;width:16px;height:16px}.app-shell button:disabled{opacity:.5;cursor:not-allowed}.app-shell .btn{justify-content:center}.provider-list{display:flex;gap:8px;flex-wrap:wrap}.provider-button{border:1px solid #d7dfeb;background:#f5f7fc;border-radius:10px;padding:12px 16px;cursor:pointer}.form-message:empty{display:none}.form-message{padding:12px 14px;border-radius:10px;background:#edf3ff;color:#233960!important;overflow-wrap:anywhere}.form-message.is-error{background:#fff0f0;color:#a52435!important}.muted{color:var(--app-muted);font-size:13px}.account-heading{display:flex;gap:20px;justify-content:space-between;align-items:center}.account-nav{display:flex;gap:24px;margin:15px 0 30px}.panel{padding:30px;margin-bottom:24px;border:1px solid #dfe5ee;border-radius:20px;background:white}.panel form{max-width:560px}.panel fieldset{border:1px solid #dfe5ee;border-radius:10px;padding:16px;display:grid;gap:8px}.key-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid #e7ecf3}.key-row small{display:block;margin-top:6px;color:var(--app-muted)}.key-output{display:block;margin-top:20px;background:#f0f5ff;padding:16px;border-radius:10px;font-family:monospace;overflow-wrap:anywhere;user-select:all}.legal-article{max-width:820px;background:white;padding:36px;border-radius:20px;border:1px solid #dfe5ee}.legal-article h2{margin:32px 0 12px}.legal-article h2:first-child{margin-top:0}.legal-article p,.legal-article li{font-size:15px;line-height:1.8;margin-bottom:12px}.legal-article ul{padding-left:24px}.legal-article table{width:100%;border-collapse:collapse;font-size:13px}.legal-article th,.legal-article td{border:1px solid #dfe5ee;text-align:left;padding:10px;vertical-align:top}.legal-nav{display:flex;gap:16px;flex-wrap:wrap;margin:25px 0}.legal-meta{color:var(--app-muted);font-size:13px}
.cookie-notice{position:fixed;z-index:1000;bottom:18px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:20px;width:max-content;max-width:calc(100% - 32px);padding:13px 16px 13px 20px;background:#fff;border:1px solid #d6deeb;border-radius:12px;box-shadow:0 8px 32px #17294720;color:#526278}.cookie-notice p{margin:0;font-size:13px;line-height:1.5;max-width:570px}.cookie-notice a{color:#315ca8;text-decoration:underline;text-underline-offset:2px}.cookie-notice .btn{flex-shrink:0;padding:9px 16px;min-height:36px;font-size:12px;border-radius:8px}
@media(max-width:600px){.app-shell{padding:115px 16px 60px}.auth-card,.panel,.legal-article{padding:24px 20px;border-radius:16px}.account-heading{align-items:flex-start}.account-heading h1{overflow-wrap:anywhere}.cookie-notice{bottom:10px;max-width:calc(100% - 20px);gap:12px;padding:12px}.cookie-notice p{font-size:12px}.cookie-notice .btn{padding:9px 12px}.legal-article{overflow-x:auto}.account-nav{gap:16px}.key-row{flex-wrap:wrap}}
/* Shared page frame keeps the footer at the bottom on short pages. */
body{min-height:100svh;display:flex;flex-direction:column}.site-header{background:#070f20}.app-shell{flex:1;width:100%}.footer{margin-top:auto;flex-shrink:0;background:#050c18}.svg-library{position:absolute}
body.auth-open{overflow:hidden}body.auth-open .cookie-notice{display:none!important}
.auth-dialog{width:min(480px,calc(100% - 32px));max-height:calc(100svh - 40px);margin:auto;padding:32px;border:1px solid #33405d;border-radius:24px;background:radial-gradient(ellipse at 100% 0,#28204b 0,transparent 50%),#0c1628;color:#f4f7ff;box-shadow:0 40px 120px #0009;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#46536e #0c1628}.auth-dialog::backdrop{background:#020815b3;backdrop-filter:blur(7px)}.auth-dialog h2{font-size:32px;line-height:1.12;letter-spacing:-1.1px;margin:25px 0 12px;color:#fff}.auth-brand{display:flex;align-items:center;gap:9px}.auth-brand strong{font-size:27px;line-height:1}.auth-brand>span{font-size:11px;color:#b6c4dc;padding-left:12px;border-left:1px solid #4d5670;margin-left:4px}.auth-close{position:absolute;right:16px;top:14px;display:grid;place-items:center;width:32px;height:32px;font-size:25px;line-height:1;color:#bdc9e0;border:1px solid #3a4660;border-radius:10px;background:#17223a;cursor:pointer}.auth-close:hover{background:#283750;color:white}.auth-description{font-size:14px;color:#c2cde1;line-height:1.6;margin-bottom:25px}.auth-dialog form{display:grid;gap:12px}.auth-dialog .input-label{font-size:13px;font-weight:600;color:#edf2ff}.auth-dialog input:not([type=checkbox]){width:100%;min-height:48px;border:1px solid #485773;background:#111f35;border-radius:11px;padding:13px 14px;color:#fff;font:inherit;font-size:15px}.auth-dialog input::placeholder{color:#899cb9}.auth-dialog input:focus-visible{outline:2px solid #5a79ff;outline-offset:2px}.auth-consents{display:grid;gap:12px;margin:7px 0}.auth-dialog .check-row{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.65;font-weight:400;color:#c5d0e3}.auth-dialog .check-row input{flex-shrink:0;margin-top:3px;width:16px;height:16px;accent-color:#516bff}.auth-dialog a{color:#8fbcff;text-decoration:underline;text-underline-offset:3px}.auth-submit{width:100%;min-height:48px;justify-content:center;font-size:14px}.auth-dialog button:disabled{opacity:1;cursor:not-allowed}.auth-dialog .auth-submit:disabled{background:linear-gradient(105deg,#2057b7,#6b39b2);color:#e6edff;box-shadow:none}.auth-dialog .auth-availability,.auth-dialog .auth-hint{color:#b1c0da;font-size:11px;text-align:center;margin:0;line-height:1.5}.auth-availability:before{content:'•';color:#a89aff;margin-right:6px}.auth-divider{display:flex;align-items:center;gap:12px;font-size:11px;color:#96a8c5;margin:8px 0}.auth-divider:before,.auth-divider:after{content:'';flex:1;height:1px;background:#34415b}.auth-dialog .provider-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.auth-dialog .provider-button{display:flex;align-items:center;justify-content:center;gap:7px;padding:11px 7px;min-height:50px;border:1px solid #3a4a67;background:#14223a;color:#edf3ff;border-radius:11px;font-size:12px;line-height:1.3;text-align:left}.auth-dialog .provider-button:hover:not(:disabled){border-color:#8f9cff;background:#22304b}.provider-button small{display:block;font-size:9px;margin-top:2px;color:#a8b8d2}.provider-mark{width:25px;height:25px;display:grid;place-items:center;flex-shrink:0;border-radius:8px;font-size:16px;font-weight:700;background:#ec3036;color:white}.provider-vk .provider-mark{background:#087fff;font-size:13px}.provider-telegram .provider-mark{background:#24a5df}.provider-mark svg{width:17px;height:17px}.auth-support{text-align:center;font-size:11px;color:#a6b6ce;margin:25px 0 0}.auth-support a{color:#b7c7df}.auth-text-button{border:0;background:none;color:#9ec4ff;font:inherit;font-size:13px;padding:12px 0;cursor:pointer}.auth-dialog .form-message{background:#172e4b;color:#cde5ff!important}.auth-dialog .form-message.is-error{background:#4a2434;color:#ffe1e8!important}.auth-dialog #login-code{letter-spacing:8px;font-size:24px;text-align:center}.auth-close:focus-visible,.auth-dialog button:focus-visible{outline:2px solid #91b8ff;outline-offset:3px}
@media(max-width:520px){.auth-dialog{width:calc(100% - 20px);max-height:calc(100svh - 24px);padding:26px 22px;border-radius:20px}.auth-dialog h2{font-size:28px;margin-top:22px}.auth-brand>span{font-size:10px}.auth-dialog .provider-button{font-size:11px;gap:5px;padding:10px 5px}.auth-support{margin-top:20px}.auth-dialog .check-row{font-size:11px}.auth-description{font-size:13px;margin-bottom:20px}}

.auth-method-switch{display:flex;gap:5px;padding:5px;border:1px solid #354460;background:#091326;border-radius:12px;margin:0 0 22px}.auth-method-switch button{flex:1;min-height:38px;border:0;border-radius:8px;background:transparent;color:#b7c7e3;font:inherit;font-size:12px;padding:8px 10px;cursor:pointer}.auth-method-switch button[aria-pressed=true]{background:linear-gradient(115deg,#2867e9,#684be0);color:white;box-shadow:0 3px 10px #0003}.auth-method-switch button:hover:not([aria-pressed=true]){background:#1c2b44;color:white}
