/* The same passport layout follows the account's learning theme. */
.passport-page {
 --passport-surface:#fffdf8; --passport-soft:#f6f2e9; --passport-subtle:#fffbf3;
 --passport-line:#d6cbb9; --passport-muted:#70634f; --passport-gold:#8b712a;
 --passport-gold-soft:#fff8de; --passport-gold-line:#bd9630; --passport-track:#eee7d8;
 --passport-fill:#e9cd6d; --passport-rare:#8450ab; --passport-focus:#b22d3a;
}
html[data-course-theme="dark"] .passport-page {
 --passport-surface:#30302e; --passport-soft:#292825; --passport-subtle:#35322d;
 --passport-line:#565046; --passport-muted:#c6bda9; --passport-gold:#d5ac45;
 --passport-gold-soft:#3e382c; --passport-gold-line:#8e7b4e; --passport-track:#48443d;
 --passport-fill:#9c7928; --passport-rare:#cfabed; --passport-focus:#e3868d;
}
/* Keep the public cream, charcoal, red and gold language in the private profile. */
.profile-heading{align-items:flex-start;margin:25px 0 20px}.profile-heading h1{font-size:clamp(2rem,4vw,3rem);line-height:1.15;letter-spacing:-.055em;margin:10px 0}.profile-heading .eyebrow{color:var(--passport-gold)}.profile-heading p{font-size:.9rem}.profile-nav{display:flex;flex-wrap:wrap;gap:8px 22px;border-bottom:1px solid var(--passport-line);padding:0 0 16px;margin-bottom:26px}.profile-nav a{min-height:44px;display:inline-flex;align-items:center;font-size:.9rem;text-decoration:underline;text-underline-offset:5px}.profile-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:20px}.profile-card{background:var(--passport-surface);border:1px solid var(--passport-line);border-radius:12px;padding:26px;min-width:0}.profile-card h2{font-size:1.4rem;letter-spacing:-.03em;margin:0 0 12px}.profile-card p{font-size:.9rem;line-height:1.7;color:var(--passport-muted)}.profile-card .eyebrow{font-size:.72rem;letter-spacing:.12em;margin-bottom:10px;display:block}.profile-course{border-top:4px solid #b02e38}.profile-plan .button{font-size:.9rem;min-height:44px;padding:11px 14px}.profile-plan h3{font-size:1.2rem;margin:18px 0 4px}.profile-plan .status-tag{font-size:.75rem}.profile-section{margin-top:28px;scroll-margin-top:100px}.profile-section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:14px;margin-bottom:20px}.profile-section-heading h2{margin:0}.profile-section-heading>span{font-size:.8rem;color:var(--passport-muted)}.profile-course .button{min-height:48px;font-size:1rem}.profile-course details{border-top:1px solid var(--passport-line);margin-top:24px;padding-top:12px}.profile-card summary{cursor:pointer;font-weight:700;font-size:.9rem;min-height:44px;align-content:center;list-style-position:inside}.profile-chapter{padding:14px 0}.profile-chapter-head{display:flex;justify-content:space-between;gap:15px;font-size:.85rem}.profile-chapter p{font-size:.8rem;margin:6px 0}.profile-lesson-links{display:flex;flex-wrap:wrap;gap:7px}.profile-lesson-links a{border:1px solid var(--passport-line);border-radius:50%;width:38px;height:38px;display:grid;place-items:center;font-size:.8rem;text-decoration:none}.profile-lesson-links a.done{background:var(--passport-gold-soft);border-color:var(--passport-gold-line)}.profile-lesson-links a.next{outline:2px solid var(--passport-focus);outline-offset:2px}.profile-lesson-links a:focus-visible{outline:3px solid var(--passport-focus);outline-offset:3px}.profile-badges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0;list-style:none;margin:0}.profile-badge{display:flex;align-items:flex-start;gap:12px;background:var(--passport-soft);border:1px solid var(--passport-line);border-radius:8px;padding:16px;min-width:0}.profile-badge.earned{background:var(--passport-gold-soft);border-color:var(--passport-gold-line)}.profile-badge.rare-badge .profile-badge-symbol{color:var(--passport-rare);box-shadow:0 0 12px #b976db35}.profile-badge-symbol{display:grid;place-items:center;flex-shrink:0;height:38px;width:38px;border-radius:50%;border:1px solid var(--passport-line);color:var(--passport-gold);font-size:1.15rem;background:var(--passport-surface)}.profile-badge strong{display:block;font-size:.85rem;line-height:1.4}.profile-badge small{display:block;font-size:.73rem;line-height:1.6;color:var(--passport-muted);margin-top:5px}.profile-badge em{display:block;font-size:.7rem;font-style:normal;color:var(--passport-gold);margin-top:6px}.profile-next-badges{margin-top:18px}.profile-next-badges summary{margin-bottom:12px}.profile-empty{padding:14px 0;font-size:.9rem;color:var(--passport-muted)}.profile-passports{display:grid;grid-template-columns:1fr 1fr;gap:18px}.profile-passport{padding:20px;background:var(--passport-soft);border:1px solid var(--passport-line);border-radius:9px;min-width:0}.profile-passport h3{font-size:1.15rem;margin:0 0 9px}.profile-passport .profile-passport-count{font-size:1.6rem;font-weight:800;color:var(--ink);line-height:1.2;margin:8px 0}.profile-passport-count small{font-weight:400;font-size:.8rem}.profile-passport progress{margin:14px 0;height:7px}.profile-mini-stats{display:flex;flex-wrap:wrap;gap:10px 20px;color:var(--passport-muted);font-size:.8rem;margin-bottom:12px}.profile-mini-stats strong{color:var(--ink)}.profile-passport>a{font-size:.8rem;text-underline-offset:4px;min-height:44px;display:inline-flex;align-items:center}.passport-filters{display:grid;grid-template-columns:1fr auto;gap:8px;padding:8px 0 15px}.passport-filters label span{display:block;font-size:.75rem;margin-bottom:6px}.passport-filters input,.passport-filters select{font:inherit;font-size:.8rem;background:var(--passport-surface);border:1px solid var(--passport-line);border-radius:5px;min-height:44px;width:100%;padding:10px}.profile-stamps{list-style:none;padding:0;margin:0;display:grid;gap:7px;max-height:430px;overflow:auto;overscroll-behavior:contain}.profile-stamp{border:1px solid var(--passport-line);background:var(--passport-subtle);padding:10px 12px;border-radius:6px;display:flex;justify-content:space-between;gap:10px;align-items:center}.profile-stamp strong{display:block;font-size:.85rem}.profile-stamp small{display:block;font-size:.75rem;color:var(--passport-muted);line-height:1.5}.profile-stamp .stamp-count{font-size:.72rem;white-space:nowrap;color:var(--passport-gold)}.profile-stamp.locked{background:transparent}.profile-rare-dot{display:inline-block;height:7px;width:7px;border-radius:50%;background:#9956c9;box-shadow:0 0 8px #ad6ad7;margin-left:6px}.profile-collection-details{border-top:1px solid var(--passport-line);margin-top:14px;padding-top:6px}.profile-world-stamps{font-size:.8rem;line-height:1.9;color:var(--passport-muted)}.profile-daily-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:16px 0 24px}.profile-stat{background:var(--passport-soft);border-radius:7px;padding:16px 10px;text-align:center}.profile-stat strong{display:block;font-size:1.65rem;font-weight:800}.profile-stat span{display:block;font-size:.74rem;color:var(--passport-muted);margin-top:4px}.profile-distribution{display:grid;gap:7px;max-width:500px}.profile-distribution-row{display:grid;grid-template-columns:16px 1fr;gap:9px;align-items:center;font-size:.8rem}.profile-distribution-bar{background:var(--passport-track);border-radius:3px;min-height:25px;position:relative;overflow:hidden}.profile-distribution-bar i{position:absolute;inset:0 auto 0 0;background:var(--passport-fill)}.profile-distribution-bar strong{position:relative;display:block;padding:4px 10px;font-size:.8rem}.profile-daily-layout{display:grid;grid-template-columns:1fr 1fr;gap:26px}.profile-daily-layout h3{font-size:.95rem;margin:0 0 14px}.profile-daily-layout>a{align-self:center;justify-self:end}.profile-sync{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:12px 0 0}.profile-sync p{font-size:.8rem;margin:0;line-height:1.6}.profile-sync button{font-size:.8rem;min-height:44px;text-underline-offset:3px}.profile-import{background:var(--passport-gold-soft);border-left:3px solid var(--passport-gold-line);padding:16px 18px;margin:20px 0 0}.profile-import p{font-size:.8rem;line-height:1.6;margin:0 0 10px}.profile-import button{min-height:44px;font-size:.85rem}.profile-settings{display:grid;grid-template-columns:1fr 1fr;gap:24px}.profile-name label{font-size:.9rem;display:block;font-weight:700;margin-bottom:7px}.profile-name input{font:inherit;min-height:48px;background:var(--passport-surface);border:1px solid var(--passport-line);padding:11px 13px;border-radius:5px;width:100%}.profile-name .button{font-size:.9rem;min-height:44px;margin-top:10px;padding:10px 16px}.profile-name p{font-size:.8rem;margin:8px 0 0}.profile-name fieldset{border:0;padding:0;margin:0;min-width:0}.profile-settings .course-appearance{margin:0;padding:0;background:none;border:0;display:block}.profile-settings .appearance-options{margin-top:18px}.profile-settings .appearance-copy h2{font-size:1.4rem}.profile-settings .appearance-copy .eyebrow{display:none}.profile-preview-note{background:var(--passport-gold-soft);border:1px solid var(--passport-gold-line);border-radius:8px;padding:14px 18px;font-size:.8rem;line-height:1.6;margin:0 0 20px}.profile-card button:focus-visible,.profile-card input:focus-visible,.profile-card select:focus-visible,.profile-card summary:focus-visible{outline:3px solid var(--passport-focus);outline-offset:3px}
@media(max-width:900px){.profile-badges{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}}
@media(max-width:760px){.profile-grid,.profile-passports,.profile-settings{grid-template-columns:1fr}.profile-card{padding:20px}.profile-section{margin-top:20px}.profile-heading h1{font-size:2rem}.profile-nav{gap:5px 18px}.profile-daily-stats{grid-template-columns:repeat(3,1fr)}.profile-daily-layout{grid-template-columns:1fr;gap:18px}.profile-daily-layout>a{justify-self:start}.profile-badges{grid-template-columns:1fr}.profile-badge{padding:13px}.profile-badge small{font-size:.8rem}.profile-passport{padding:16px}.profile-section-heading{flex-wrap:wrap;gap:4px}.profile-sync{align-items:flex-start}.passport-filters{grid-template-columns:minmax(0,1fr) 105px}.profile-settings .course-appearance{border-top:1px solid var(--passport-line);padding-top:24px}.profile-stat strong{font-size:1.4rem}.profile-stamps{max-height:340px}}
@media(prefers-reduced-motion:reduce){.profile-rare-dot{box-shadow:none}}

.profile-badge.earned{padding:12px}.profile-badge.earned details{width:100%}.profile-badge.earned summary{display:flex;align-items:center;gap:10px;font-size:.85rem;list-style:none;padding:0;min-height:38px}.profile-badge.earned summary::-webkit-details-marker{display:none}.profile-badge.earned summary:after{content:'›';margin-left:auto;color:#947934}.profile-badge.earned details[open] summary:after{transform:rotate(90deg)}.profile-badge.earned small{margin-top:12px}.profile-heading #signout-button{white-space:nowrap}
@media(max-width:760px){.profile-badges{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-next-badges .profile-badges{grid-template-columns:1fr}.profile-badge.earned summary{display:block;position:relative;padding-right:9px}.profile-badge.earned .profile-badge-symbol{margin-bottom:9px}.profile-badge.earned summary:after{position:absolute;right:0;top:8px}.profile-badge.earned{padding:12px}.profile-badge.earned strong{font-size:.8rem}.profile-badge.earned small{font-size:.73rem}}

.profile-heading>div,.profile-stamp>div{min-width:0}.profile-heading h1,.profile-stamp strong{overflow-wrap:anywhere}.profile-badge.earned summary{min-height:44px}

/* A growing badge book stays compact until the learner opens it. */
.profile-badge-intro{margin:-5px 0 18px}
.profile-badge-toggle{display:block;min-height:44px;margin:10px 0 0;font-size:.8rem;text-decoration:underline;text-underline-offset:4px}
.profile-badge-filters{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 10px}
.profile-badge-filters label{min-width:0}
.profile-badge-filters label>span{display:block;font-size:.75rem;font-weight:700;margin-bottom:6px}
.profile-badge-filters :is(input,select){width:100%;min-width:0;min-height:44px;border:1px solid var(--passport-line);background:var(--passport-surface);color:var(--ink);font:inherit;font-size:.8rem;border-radius:5px;padding:10px}
.profile-badge-book .profile-badge{display:flex;flex-direction:column;gap:0;position:relative;border-left-width:3px}
.profile-badge-title{display:flex;gap:11px;align-items:center;min-width:0;width:100%}
.profile-badge-title>div{min-width:0}
.profile-badge-title strong{overflow-wrap:anywhere}
.profile-badge-level{display:block;font-size:.65rem;font-weight:600;color:var(--passport-muted);margin-top:3px;line-height:1.4}
.profile-badge.badge-level-challenge{border-left-color:var(--passport-gold-line)}
.profile-badge.badge-level-longgame{border-left-color:var(--passport-gold)}
.profile-badge.badge-level-ultra{border-left-color:var(--passport-rare)}
.badge-level-ultra .profile-badge-symbol{color:var(--passport-rare);box-shadow:0 0 13px #b976db35;border-color:var(--passport-rare)}
.badge-level-ultra .profile-badge-level{color:var(--passport-rare)}
.profile-badge-book .profile-badge small{margin-top:12px}
.profile-badge-progress{margin-top:auto;padding-top:8px;width:100%}
.profile-badge-book .profile-badge em{color:var(--passport-muted);line-height:1.5}
.profile-badge-book .profile-badge.earned em{color:var(--passport-gold)}
.account-main .profile-badge progress{height:4px;margin:8px 0 0}
.profile-badge-more{min-height:44px;font-size:.8rem;padding:11px 16px;margin-top:16px}
.profile-badge-future{border-top:1px solid var(--passport-line);padding-top:16px;margin:18px 0 0}
.profile-earned-badges .profile-badge{padding:12px}
.profile-earned-badges .profile-badge details{width:100%;min-width:0}
.profile-earned-badges .profile-badge summary{display:flex;gap:10px;padding-right:14px;align-items:center;position:relative;list-style:none}
.profile-earned-badges .profile-badge summary::-webkit-details-marker{display:none}
.profile-earned-badges .profile-badge summary:after{content:'›';position:absolute;right:0;top:12px;font-size:1rem;color:var(--passport-muted);transform:rotate(90deg)}
.profile-earned-badges .profile-badge details[open] summary:after{transform:rotate(-90deg)}
.profile-earned-badges .profile-badge-symbol{margin:0}
.profile-earned-badges .profile-badge summary>span:last-child{min-width:0}
.profile-earned-badges .profile-badge strong{overflow-wrap:anywhere}
.profile-earned-badges .profile-badge small{margin-top:12px}
.passport-page .profile-card .small-note{font-size:.78rem}
.passport-page .profile-heading p{color:var(--passport-muted)}
.passport-page .account-main progress{background:var(--passport-track);color:var(--passport-fill);border:0;border-radius:4px;overflow:hidden}
.passport-page .account-main progress::-webkit-progress-bar{background:var(--passport-track)}
.passport-page .account-main progress::-webkit-progress-value{background:var(--passport-fill)}
.passport-page .account-main progress::-moz-progress-bar{background:var(--passport-fill)}
html[data-course-theme="dark"] .passport-page .status-tag{background:var(--passport-soft);color:var(--passport-muted);border-color:var(--passport-line)}
html[data-course-theme="dark"] .passport-page .form-message{color:var(--passport-muted)!important}
html[data-course-theme="dark"] .passport-page .form-message.error{color:var(--course-bad)!important}
html[data-course-theme="dark"] .passport-page :is(.profile-name input,.passport-filters input,.passport-filters select){color:var(--ink)}
html[data-course-theme="dark"] .passport-page .profile-preview-note{color:var(--ink)}
@media(max-width:760px){
 .profile-badge-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .profile-badge-filters :is(.badge-search,.badge-category){grid-column:1/-1}
 .profile-earned-badges .profile-badge summary{display:block;padding-right:10px}
 .profile-earned-badges .profile-badge-symbol{margin-bottom:9px}
 .profile-earned-badges .profile-badge summary:after{top:8px}
 .profile-section-heading{align-items:flex-start}
 .profile-section-heading>span{max-width:45%;text-align:right}
 .profile-badge-book .profile-badge.earned{padding:16px}
}

.profile-replay-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.profile-replay-grid .profile-stamps{grid-template-columns:1fr}.profile-replay-grid .profile-passport{min-width:0}.profile-replay-grid .profile-stamps strong{overflow-wrap:anywhere}@media(max-width:800px){.profile-replay-grid{grid-template-columns:1fr}}
