.auth-panel{width:100%;min-width:0;margin:20px 0;padding:18px;border:1px solid #ffffff10;border-radius:20px;background:radial-gradient(ellipse at 100% 0,#229ed90b,transparent 80%),#ffffff06;color:#eee9e6;font-family:"Medeo Sans",Arial,sans-serif}
.auth-panel *{box-sizing:border-box}
.auth-panel .auth-panel-header{display:flex;align-items:center;gap:12px}
.auth-panel .auth-telegram-mark,.auth-panel .auth-avatar{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:50%;background:#229ed9;color:#fff}
.auth-panel .auth-telegram-mark svg{display:block;width:25px;height:25px}
.auth-panel img.auth-avatar{display:block;object-fit:cover;border:1px solid #ffffff20}
.auth-panel .auth-avatar-letter{background:linear-gradient(135deg,#41576b,#2c3e4d);font-size:18px;font-weight:700}
.auth-panel .auth-panel-copy{flex:1;min-width:0}
.auth-panel h2{font-size:17px;line-height:23px;font-weight:700;letter-spacing:-.2px;margin:0;overflow-wrap:anywhere}
.auth-panel .auth-panel-copy>p{font-size:12px;line-height:18px;color:#a39993;margin:3px 0 0}
.auth-panel .auth-setup-note{font-size:12px;line-height:18px;color:#a39993;margin:12px 0 0}
.auth-panel .auth-action{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;margin-top:16px;padding:12px 14px;border:1px solid #229ed93d;border-radius:14px;background:#229ed922;color:#bfe7fa;font:600 14px/22px "Medeo Sans",Arial,sans-serif;cursor:pointer;-webkit-tap-highlight-color:transparent}
.auth-panel .auth-logout{background:#ffffff06;border-color:#ffffff17;color:#bcb0a8}
.auth-panel .auth-action:focus-visible{outline:2px solid #229ed9;outline-offset:3px}
.auth-panel .auth-action:disabled{opacity:.6;cursor:wait}
.auth-panel .auth-error{font-size:12px;line-height:18px;color:#ff8fa5;margin:12px 0 0;overflow-wrap:anywhere}
.auth-panel .auth-loading{display:flex;align-items:center;gap:8px;font-size:12px;line-height:18px;color:#a39993;margin:12px 0 0}
.auth-panel .auth-loading-mark{width:14px;height:14px;flex:none;border:2px solid #ffffff17;border-top-color:#229ed9;border-radius:50%;animation:auth-panel-loading .8s linear infinite}
@keyframes auth-panel-loading{to{transform:rotate(360deg)}}
@media(max-width:359px){.auth-panel{padding:16px}.auth-panel h2{font-size:16px;line-height:22px}.auth-panel .auth-panel-header{gap:10px}}
@media(prefers-reduced-motion:reduce){.auth-panel .auth-loading-mark{animation:none}}
.account-actions{display:flex;flex-direction:column;align-items:center;gap:10px;margin:20px 0 8px}.account-logout{min-height:44px;padding:10px 24px;border:0;border-radius:12px;background:transparent;color:#aaa5a1;font:500 14px/22px "Medeo Sans",Arial,sans-serif;cursor:pointer}.account-logout:hover{color:#fff;background:#ffffff06}.account-logout:focus-visible{outline:2px solid #ff5900;outline-offset:3px}.account-logout:disabled{opacity:.5}.account-actions .auth-error{color:#ff8fa5;font-size:12px;line-height:18px;margin:0}.profile-sync-status{padding:14px 16px;border-radius:16px;background:#ffffff04;margin-top:18px;color:#aaa5a1}.profile-sync-status[hidden]{display:none}.profile-sync-status p{font-size:12px;line-height:18px;margin:0 0 6px}.profile-sync-status button{min-height:44px;padding:8px 0;border:0;background:none;color:#e9e2dc;font:600 12px/20px "Medeo Sans",Arial,sans-serif;cursor:pointer}.profile-sync-status button:focus-visible{outline:2px solid #ff5900;outline-offset:2px}

/* Provider choices stay compact and independent of the guest badge. */
.auth-login-choices{display:flex;flex-direction:column;gap:10px;min-width:0}
.auth-provider-button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;width:100%;padding:10px 16px;border:1px solid #ffffff24;border-radius:32px;background:#ffffff0a;color:#fff;font:600 16px/22px "Medeo Sans",Arial,sans-serif;cursor:pointer}
.auth-provider-button img{flex:none}
.auth-provider-google{background:#f5f5f5;color:#1f1f1f;border-color:transparent}
.auth-provider-telegram{background:#229ed922;color:#bfe7fa;border-color:#229ed940}
.auth-provider-button:disabled{opacity:.6;cursor:wait}
.auth-provider-button:focus-visible,.auth-retry:focus-visible,.auth-links summary:focus-visible{outline:2px solid #ff5900;outline-offset:3px}
.auth-account-hint,.auth-provider-note{margin:0;color:#aaa5a1;font:400 12px/18px "Medeo Sans",Arial,sans-serif;overflow-wrap:anywhere}
.auth-login-choices .auth-provider-note{text-align:center}
.auth-login-choices .auth-error{margin:0;color:#ff95aa;font:400 12px/19px "Medeo Sans",Arial,sans-serif;overflow-wrap:anywhere}
.auth-login-choices .auth-loading{margin:0;color:#aaa5a1;font:400 12px/18px "Medeo Sans",Arial,sans-serif}
.auth-retry{align-self:flex-start;min-height:44px;padding:8px 12px;border:0;border-radius:10px;background:#ffffff0a;color:#fff;font:600 14px/20px "Medeo Sans",Arial,sans-serif;cursor:pointer}
.account-actions .auth-links{width:100%;padding:14px 16px;border-radius:16px;background:#ffffff05}
.auth-links summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;color:#e9e2dc;font:600 14px/20px "Medeo Sans",Arial,sans-serif}
.auth-links summary::-webkit-details-marker{display:none}
.auth-links summary::after{content:'+';font-size:20px;font-weight:400;color:#aaa5a1}
.auth-links[open] summary::after{content:'−'}
.auth-links .auth-provider-button{margin-top:10px;font-size:14px;border-radius:14px}
.auth-links .auth-linked{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0;color:#bcb6b2;font:400 14px/22px "Medeo Sans",Arial,sans-serif}
.auth-links .auth-linked span{color:#a3c0a3}
.auth-links .auth-provider-note{margin-top:8px}
.auth-links .auth-error{margin-top:12px}
.auth-links .auth-retry{margin-top:8px}
.auth-panel>.auth-login-choices{margin-top:16px}
