/* Signed-in avatar + dropdown built by account-menu.js. Linked by every page that loads the script (hand pages next to site-header.css; guides get it inside guide-base.css). */
.ss-avatar{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#1f6e46;color:#fff;font-weight:800;font-size:13px;font-family:inherit}
.ss-avatar-btn{display:flex;align-items:center;gap:8px;padding:4px 10px 4px 4px;border:1px solid var(--border,#d6dccf);border-radius:999px;background:var(--bg-card,#fff);color:var(--text,#1c2a24);font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.ss-avatar-btn:hover{border-color:var(--accent-bright,#268a58)}
.ss-acct-wrap{position:relative}
.ss-acct-float{position:fixed;top:40px;right:12px;z-index:70}
.ss-acct-float .ss-avatar-btn{padding:3px;gap:0;justify-content:center}
.ss-acct-float .ss-acct-name,.ss-acct-float .ss-acct-caret{display:none}
.ss-acct-float.ss-acct-inhero{position:absolute;top:0;right:0;z-index:20}
.ss-acct-inhero .ss-avatar-btn{background:transparent;border-color:rgba(238,242,234,.14)}
html:root body .hero-inner:has(.ss-acct-inhero) .ss-stats-pill{right:44px!important}
@media(max-width:640px){.ss-acct-name{display:none}}
.ss-acct-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:170px;background:var(--bg-card,#fff);border:1px solid var(--border,#d6dccf);border-radius:12px;box-shadow:0 12px 28px rgba(0,0,0,.2);padding:6px;z-index:80;flex-direction:column;display:flex}
.ss-acct-menu[hidden]{display:none}
.ss-acct-menu a,.ss-acct-menu button{display:block;text-align:left;padding:9px 12px;border:0;border-radius:8px;background:none;color:var(--text,#1c2a24);font:inherit;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer;width:100%}
.ss-acct-menu a:hover,.ss-acct-menu button:hover,.ss-acct-menu a:focus-visible,.ss-acct-menu button:focus-visible{background:var(--chip-bg,#e6efe8);color:var(--accent,#1f6e46)}

/* Sign-in panel: a title, provider logos, and a note that signing in is optional. The markup is a plain list of
   .ss-oauth-btn links (built by each page's ssLoginBoxHtml), so all of this is CSS keyed on the link targets. */
#ss-login-panel{width:300px;padding:20px 20px 16px;border-width:1px;border-radius:18px;box-shadow:0 18px 44px rgb(0 0 0 / .28)}
#ss-login-panel .ss-login-box::before{content:"Sign in to save your progress";display:block;margin:0 0 4px;font-family:'Fraunces',Georgia,serif;font-size:19px;font-weight:600;line-height:1.25;color:var(--text,var(--ink))}
#ss-login-panel .ss-login-box::after{content:"Optional. Every guide, quiz and test works without an account.";display:block;margin-top:6px;font-size:12.5px;line-height:1.45;color:var(--text-muted,var(--ink-muted))}
#ss-login-panel .ss-oauth-btn:first-child{margin-top:14px}
.ss-oauth-btn[href^="/auth/"]{justify-content:flex-start;gap:12px;padding-left:16px;border-width:1px}
.ss-oauth-btn[href^="/auth/"]::before{content:"";flex:none;width:20px;height:20px;background:center/contain no-repeat}
.ss-oauth-btn[href^="/auth/google"]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.5H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.4-.4-3.5z'/%3E%3Cpath fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.8 1.2 7.9 3.1l5.7-5.7C34 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35.1 26.7 36 24 36c-5.2 0-9.6-3.3-11.3-7.9l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.5H42V20H24v8h11.3c-.8 2.2-2.2 4.2-4.1 5.6l6.2 5.2C37 39.2 44 34 44 24c0-1.3-.1-2.4-.4-3.5z'/%3E%3C/svg%3E")}
.ss-oauth-btn[href^="/auth/github"]::before{background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .3a12 12 0 0 0-3.8 23.4c.6.1.8-.3.8-.6v-2.2c-3.3.7-4-1.6-4-1.6-.6-1.4-1.4-1.8-1.4-1.8-1-.7.1-.7.1-.7 1.2.1 1.8 1.2 1.8 1.2 1 1.8 2.8 1.3 3.5 1 .1-.8.4-1.3.7-1.6-2.7-.3-5.5-1.3-5.5-6 0-1.2.5-2.3 1.3-3.1-.2-.4-.6-1.6 0-3.2 0 0 1-.3 3.4 1.2a11.5 11.5 0 0 1 6 0c2.3-1.5 3.3-1.2 3.3-1.2.6 1.6.2 2.8.1 3.2.8.8 1.3 1.9 1.3 3.2 0 4.6-2.8 5.6-5.5 5.9.4.4.8 1.1.8 2.2v3.3c0 .3.2.7.8.6A12 12 0 0 0 12 .3'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .3a12 12 0 0 0-3.8 23.4c.6.1.8-.3.8-.6v-2.2c-3.3.7-4-1.6-4-1.6-.6-1.4-1.4-1.8-1.4-1.8-1-.7.1-.7.1-.7 1.2.1 1.8 1.2 1.8 1.2 1 1.8 2.8 1.3 3.5 1 .1-.8.4-1.3.7-1.6-2.7-.3-5.5-1.3-5.5-6 0-1.2.5-2.3 1.3-3.1-.2-.4-.6-1.6 0-3.2 0 0 1-.3 3.4 1.2a11.5 11.5 0 0 1 6 0c2.3-1.5 3.3-1.2 3.3-1.2.6 1.6.2 2.8.1 3.2.8.8 1.3 1.9 1.3 3.2 0 4.6-2.8 5.6-5.5 5.9.4.4.8 1.1.8 2.2v3.3c0 .3.2.7.8.6A12 12 0 0 0 12 .3'/%3E%3C/svg%3E") center/contain no-repeat}
.ss-status:empty{display:none}
