/* R1044: Minimal account connection; Supergram only while TDLib is unauthorised. */
html.sg-connecting,html.sg-connecting body{background:#070e1c!important;color-scheme:dark!important;overflow:auto!important}
html.sg-connecting .client-product-wrap{display:block!important;width:100%!important;min-height:100dvh!important;height:auto!important;overflow:visible!important;background:#070e1c!important}
html.sg-connecting .client-product-wrap>.client-site-menu{display:none!important}
html.sg-connecting .client-product-wrap>.client-product-stage{display:block!important;width:100%!important;min-height:100dvh!important;height:auto!important;max-height:none!important;margin:0!important;overflow:visible!important}
html.sg-connecting .client-product-wrap #app{width:100%!important;height:auto!important;min-height:100dvh!important;overflow:visible!important;background:transparent!important}
html.sg-connecting .setup.sg-login-view{box-sizing:border-box!important;display:block!important;min-height:100dvh!important;height:auto!important;width:100%;padding:0 24px!important;background:radial-gradient(ellipse 660px 400px at 50% 18%,rgba(21,88,240,.13),transparent 75%),#070e1c!important;color:#f2f6ff!important;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.sg-login-view *{box-sizing:border-box}
.sg-login-view button,.sg-login-view input{font:inherit}
.sg-login-wrap{max-width:1100px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column}
.sg-login-header{height:82px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.sg-brand{display:inline-flex;align-items:center;gap:9px;text-decoration:none!important;color:#eef5ff!important;font-weight:690;font-size:17px;letter-spacing:-.45px}
.sg-brand strong{font-weight:690}
.sg-brand-mark{display:inline-grid;place-items:center;width:32px;height:32px;padding-right:3px;border-radius:10px;background:linear-gradient(130deg,#388bff,#1455df);box-shadow:0 5px 18px #1266ff44;color:white;font-size:19px;font-weight:780;letter-spacing:-2.5px}
.sg-brand-mark span{color:#a8d1ff}
.sg-header-client{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#7186a9}
.sg-center{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px 0 52px}
.sg-auth-card{width:min(100%,440px);min-width:0;padding:38px 38px 30px;border:1px solid #273652;border-radius:24px;background:linear-gradient(166deg,#111e35,#0c1629);box-shadow:0 30px 85px #0006,0 0 70px #186bff13;text-align:center}
.sg-telegram-symbol{width:68px;height:68px;display:grid;place-items:center;margin:0 auto 22px;background:linear-gradient(135deg,#3a9bff,#145ce9);color:#fff;border-radius:22px;box-shadow:0 12px 38px #166dff49}
.sg-telegram-symbol svg{height:36px;width:36px}
.sg-auth-card h1{margin:0!important;color:#f7faff!important;font-size:clamp(25px,4vw,30px)!important;font-weight:730!important;letter-spacing:-1px!important;line-height:1.25!important}
.sg-auth-intro{color:#98aac9!important;font-size:13px!important;line-height:1.6!important;margin:9px 0 18px!important}
.sg-connection{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:25px;padding:4px 11px;color:#94b7f7;background:#11294a;border:1px solid #244c83;border-radius:100px;font-size:11px;line-height:1.2;margin:0 auto 25px}
.sg-status-dot{width:6px;height:6px;background:#57a7ff;box-shadow:0 0 9px #2f87ff;border-radius:50%;flex:none}
.sg-auth-methods{display:grid;grid-template-columns:1fr 1fr;background:#081425;padding:4px;border:1px solid #233754;border-radius:12px;gap:4px;margin-bottom:24px}
.sg-auth-methods button{border:0!important;min-height:42px;background:transparent;color:#879ec4;border-radius:8px;font-size:12px;font-weight:690;padding:9px;cursor:pointer}
.sg-auth-methods button.active{color:#fff;background:linear-gradient(105deg,#1763e9,#358bff);box-shadow:0 5px 16px #1e68eb3d}
.sg-panel{text-align:left;display:flex;flex-direction:column;gap:0;min-width:0}
.sg-panel h2{color:#f1f6ff!important;font-size:17px!important;font-weight:700!important;letter-spacing:-.45px!important;line-height:1.3!important;margin:0 0 10px!important}
.sg-qr-panel{align-items:center;text-align:center}
.sg-qr-frame{width:190px;height:190px;margin:0 auto 19px;padding:11px;display:grid;place-items:center;border-radius:15px;background:#fff;box-shadow:0 12px 35px #0005}
.sg-qr-frame img{display:block;max-width:100%;max-height:100%}
.sg-qr-placeholder{background:linear-gradient(135deg,#112647,#142a4b)!important;border:1px dashed #4973af;color:#5da6ff}
.sg-qr-placeholder>span{font-size:66px;line-height:1}
.sg-panel p{font-size:12.5px!important;line-height:1.7!important;color:#92a5c6!important;margin:0 0 20px!important}
.sg-panel p strong{color:#cddfff;font-weight:650}
.sg-primary{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:47px;border:0!important;border-radius:11px!important;background:linear-gradient(105deg,#1664f0,#338bff)!important;box-shadow:0 8px 24px #1767fb35;color:white!important;font-size:13px!important;font-weight:720!important;padding:12px 15px!important;cursor:pointer}
.sg-primary span{font-size:17px}
.sg-primary:hover:not(:disabled){filter:brightness(1.09)}
.sg-qr-panel .sg-primary{margin-top:4px}
.sg-qr-link{color:#8bbcff!important;font-size:12px;margin:0 0 12px;text-decoration:underline!important}
.sg-auth-form{display:grid;gap:9px}
.sg-auth-form label{color:#b3c7e7;font-size:12px;font-weight:650}
.sg-auth-form input{display:block;width:100%;height:52px!important;background:#08162b!important;border:1px solid #385176!important;border-radius:11px!important;color:#f1f6ff!important;font-size:15px!important;padding:0 13px!important;box-shadow:none!important;min-width:0}
.sg-auth-form input:focus{border-color:#438fff!important;box-shadow:0 0 0 3px #3b85ff25!important}
.sg-auth-form input::placeholder{color:#607899}
.sg-auth-form .sg-field-help{font-size:11.5px!important;line-height:1.6!important;color:#879bb9!important;margin:0 0 9px!important}
.sg-status-refresh{display:block;margin:16px auto 0;padding:6px 8px;background:none;border:0!important;color:#82b5ff!important;font-size:11.5px!important;font-weight:640;cursor:pointer}
.sg-security-note{width:min(100%,420px);max-width:420px;text-align:center;color:#62799b!important;font-size:11px!important;line-height:1.65!important;margin:22px 0 0!important}
.sg-login-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0 24px;color:#5f769b;font-size:11px;border-top:1px solid #18253c}
.sg-login-bottom a{color:#829cc3!important;text-decoration:none!important}
.sg-login-error{border:1px solid #aa4a5f;color:#ffc8d3;background:#45202c;border-radius:10px;padding:12px;margin-top:14px;text-align:left;font-size:12px;overflow-wrap:anywhere}
.sg-unavailable{gap:10px}.sg-unavailable p{text-align:center}
.sg-login-view :is(button,a,input):focus-visible{outline:2px solid #6eb3ff!important;outline-offset:3px!important}
@media(max-width:520px){html.sg-connecting .setup.sg-login-view{padding:0 15px!important}.sg-login-header{height:66px}.sg-header-client{letter-spacing:.8px;font-size:9px}.sg-center{padding:8px 0 35px}.sg-auth-card{padding:30px 23px 25px;border-radius:20px}.sg-telegram-symbol{width:60px;height:60px;border-radius:18px;margin-bottom:18px}.sg-telegram-symbol svg{width:32px;height:32px}.sg-auth-card h1{font-size:25px!important}.sg-qr-frame{width:176px;height:176px}.sg-login-bottom{font-size:10px}}
@media(max-width:355px){html.sg-connecting .setup.sg-login-view{padding:0 10px!important}.sg-auth-card{padding:25px 16px}.sg-brand{font-size:15px}.sg-header-client{font-size:8px}.sg-auth-methods button{font-size:11px}}
@media(prefers-reduced-motion:reduce){.sg-login-view *{animation:none!important;transition:none!important}}
