/* First visit only; existing profile layouts retain their current behavior. */
.guest-grade-picker{display:none}.new-guest .guest-grade-picker{display:block;background:#fff;border:1px solid #dce9e3;border-radius:16px;padding:14px;margin-top:14px;line-height:1.5}.guest-grade-picker strong{display:block;margin-bottom:10px;font-size:14px}.guest-grade-buttons,.new-guest #catalog-grade-buttons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.guest-grade-buttons button,.new-guest #catalog-grade-buttons button{min-width:0;border:1px solid #d3ded8;border-radius:12px;padding:10px 6px;font-size:13px;font-weight:800;white-space:nowrap;background:#fff;color:#334155;cursor:pointer}.guest-grade-buttons button[aria-pressed=true],.new-guest #catalog-grade-buttons button[aria-pressed=true]{background:#10b981;color:white;border-color:#10b981;transform:none}.trial-profile-cta{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:14px;border:1px solid #ccebdd;background:#eaf8f0;color:#075c45;text-align:left;cursor:pointer;max-width:100%}.trial-profile-cta strong{display:block;font-size:14px}.trial-profile-cta small{display:none;font-size:11px}.new-guest #header-star-count,.new-guest #header-streak-count{display:none}.new-guest #catalog-grade-buttons{min-width:360px}.new-guest .arena-grade-row{align-items:center}.trial-profile-cta:focus-visible,.guest-grade-buttons button:focus-visible{outline:3px solid #047857;outline-offset:2px}
@media(max-width:640px){.new-guest .trial-profile-cta{width:100%}.new-guest .trial-profile-cta small{display:block}.new-guest #catalog-grade-buttons{min-width:0;width:100%}.new-guest .arena-grade-row{align-items:stretch}.guest-grade-buttons,.new-guest #catalog-grade-buttons{gap:6px}.guest-grade-buttons button,.new-guest #catalog-grade-buttons button{padding:10px 2px;font-size:12px}.new-guest #hero-welcome-title{display:block!important}.new-guest .guest-grade-picker{padding:12px}.new-guest #header-profile-badge{width:100%}}

.new-guest header div:has(> #header-star-count),.new-guest header div:has(> #header-streak-count){display:none!important}

@media(max-width:767px){
.new-guest .map-header-profile-row>div:not(#header-profile-badge),.new-guest .header-learning-stats{display:none!important}
.new-guest .map-auth-header,.new-guest .page-auth-header.learning-page-header{height:132px!important;min-height:132px!important}
.new-guest .home-main{padding-top:146px!important}
.new-guest .page-auth-header~main{padding-top:146px!important}
.new-guest .trial-profile-cta{width:100%;height:68px;box-sizing:border-box}
.new-guest .trial-profile-cta small{display:block;line-height:1.4}
.new-guest #catalog-grade-buttons{min-width:0;width:100%}
}

/* A full-width second row on every guest tab, below brand and login. */
@media(max-width:767px){
.new-guest header.map-auth-header,.new-guest header.learning-page-header.page-auth-header{
 display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
 grid-template-areas:"brand auth" "profile profile"!important;
 height:142px!important;min-height:142px!important;padding:10px 14px!important;gap:8px!important;align-items:center!important;
}
.new-guest header .mobile-map-brand,.new-guest header .mobile-shared-brand{grid-area:brand!important;position:static!important;min-width:0!important}
.new-guest header .map-header-auth-row,.new-guest header>.page-login{grid-area:auth!important;position:static!important;justify-self:end!important;margin:0!important}
.new-guest header .map-header-profile-row,.new-guest header .header-learning-summary{grid-area:profile!important;position:static!important;width:100%!important;max-width:none!important;display:flex!important}
.new-guest header #header-profile-badge{width:100%!important;max-width:none!important;flex:1 1 100%!important;padding:0!important;margin:0!important;overflow:visible!important}
.new-guest header .trial-profile-cta{width:100%!important;max-width:none!important;height:76px!important;padding:12px 16px;gap:12px}
.new-guest .trial-profile-cta>span:first-child{flex:0 0 24px;font-size:22px;text-align:center}
.new-guest .trial-profile-cta>span:nth-child(2){flex:1;min-width:0}
.new-guest .trial-profile-cta>span:last-child{margin-left:auto;font-size:22px}
.new-guest .trial-profile-cta strong{font-size:15px;line-height:1.4}
.new-guest .trial-profile-cta small{font-size:12px;line-height:1.45;display:block}
.new-guest .home-main,.new-guest .page-auth-header~main{padding-top:156px!important}
}

@media(max-width:767px){.new-guest header.learning-page-header .header-learning-stats,.new-guest header.map-auth-header .map-header-profile-row>div:not(#header-profile-badge){display:none!important}}

@media(max-width:767px){
.new-guest header.learning-page-header .header-learning-summary #header-profile-badge,.new-guest header.map-auth-header .map-header-profile-row #header-profile-badge{width:100%!important;min-width:0!important;max-width:none!important;flex:1 1 100%!important;padding:0!important}
.new-guest header.learning-page-header .header-learning-summary>.header-learning-stats{display:none!important}
}

/* Equal-height controls that shrink within the desktop account region. */
@media(min-width:768px){
.new-guest header .trial-profile-cta,.new-guest header .page-login{height:40px!important;min-height:40px!important;box-sizing:border-box;align-items:center!important;padding:0 12px!important;border-radius:12px!important;font-size:12px!important;line-height:1.2!important}
.new-guest header .trial-profile-cta{min-width:0!important;max-width:100%!important;width:100%;gap:7px;overflow:hidden}
.new-guest header .trial-profile-cta>span:nth-child(2){min-width:0;flex:1;overflow:hidden}
.new-guest header .trial-profile-cta strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.new-guest header .trial-profile-cta small{display:none!important}
.new-guest header .trial-profile-cta>span:first-child,.new-guest header .trial-profile-cta>span:last-child{flex-shrink:0}
.new-guest header.learning-page-header .header-learning-summary #header-profile-badge,.new-guest header.map-auth-header .map-header-profile-row #header-profile-badge{min-width:0!important;max-width:190px!important;flex:0 1 190px!important}
.new-guest header.learning-page-header .header-learning-summary,.new-guest header.map-auth-header .map-header-profile-row{min-width:0!important;overflow:hidden!important}
.new-guest header.learning-page-header .header-learning-stats,.new-guest header.map-auth-header .map-header-profile-row>div:not(#header-profile-badge){display:none!important}
.new-guest header .map-header-auth-row,.new-guest header>.page-login{flex:0 0 auto!important}
}

.trial-note-compact{display:none}
@media(max-width:430px){.trial-note-full{display:none}.trial-note-compact{display:inline}.new-guest header .trial-profile-cta small{font-size:10px;white-space:nowrap}.new-guest header .trial-profile-cta{gap:8px;padding:10px 12px}}

@media(max-width:430px){.new-guest header .trial-profile-cta small{font-size:clamp(10px,3vw,12px)}}

@media(max-width:767px){
.new-guest header .trial-profile-cta{height:58px!important;padding-top:7px!important;padding-bottom:7px!important}
.new-guest header.map-auth-header,.new-guest header.learning-page-header.page-auth-header{height:120px!important;min-height:120px!important;gap:6px!important}
.new-guest .home-main,.new-guest .page-auth-header~main{padding-top:134px!important}
}

@media(min-width:768px) and (max-width:1920px){
.new-guest header.map-auth-header,.new-guest header.learning-page-header.page-auth-header{justify-content:flex-end!important;gap:8px!important}
.new-guest header.map-auth-header .map-header-profile-row,.new-guest header.learning-page-header .header-learning-summary{flex:0 1 auto!important;width:auto!important;max-width:190px!important;margin-left:auto!important;justify-content:flex-end!important}
.new-guest header.map-auth-header .map-header-auth-row{margin-left:0!important}
.new-guest header.learning-page-header .header-learning-summary #header-profile-badge,.new-guest header.map-auth-header .map-header-profile-row #header-profile-badge{flex:0 1 auto!important;width:auto!important}
}
