/* Bambu's shared public interface. Simulation canvases retain their product styling. */
:root {
  --experience-ink: #253126;
  --experience-muted: #606d5d;
  --experience-green: #366b30;
  --experience-lime: #e4f5cc;
  --experience-line: #e1e7dc;
  --experience-canvas: #fafbf7;
  --experience-font: Inter, system-ui, sans-serif;
  --experience-heading: 'Bricolage Grotesque', Inter, system-ui, sans-serif;
}
body.app-shell, body.demo-shell, body.classroom-student-shell {
  --color-bg: var(--experience-canvas);
  --color-text: var(--experience-ink);
  --text-primary: var(--experience-ink);
  --color-muted: var(--experience-muted);
  --text-muted: var(--experience-muted);
  --color-border: var(--experience-line);
  --border-soft: var(--experience-line);
  --color-accent: var(--experience-green);
  --color-accent-start: var(--experience-green);
  --color-accent-end: #295323;
  --ui-primary: var(--experience-green);
  --ui-primary-hover: #295323;
  --accent: var(--experience-green);
  --accent-dark: #295323;
  --panel-alt: #f1f5eb;
  --shadow-soft: 0 5px 18px rgb(37 49 38 / 4%);
  background: var(--experience-canvas);
  color: var(--experience-ink);
  font-family: var(--experience-font);
  line-height: 1.6;
}
body.app-shell:not(.bambu-dash):not(:has(> aside.bambu-nav)), body.app-shell .bambu-ui { font-family: var(--experience-font); }
body.app-shell :is(h1, h2, h3), body.demo-shell :is(h1, h2), body.classroom-student-shell :is(h1, h2) {
  font-family: var(--experience-heading);
  letter-spacing: -.035em;
  line-height: 1.15;
  text-wrap: balance;
}
:where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid #608a43;
  outline-offset: 4px;
}
:where(button, input, select, textarea) { font-family: inherit; }
:where(button:disabled, [aria-disabled='true']) { cursor: not-allowed; }
.experience-skip {
  position: fixed; top: 12px; left: 12px; z-index: 10000;
  padding: 12px 20px; background: #253126; color: #fff;
  border-radius: 12px; transform: translateY(-180%);
}
.experience-skip:focus { transform: translateY(0); }
.experience-eyebrow, .experience-nav-label {
  color: var(--experience-green); font: 700 11px/1.5 var(--experience-font);
  letter-spacing: .13em; margin: 0 0 14px;
}
.experience-brandmark {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 13px; background: var(--experience-green);
  color: #fff; font: 800 29px/1 var(--experience-heading); letter-spacing: -.08em;
}
.experience-wordmark { display: inline-flex; gap: 10px; align-items: center; font: 700 20px var(--experience-heading); }
body.app-shell .bambu-nav { width: 242px; padding: 30px 18px 20px; gap: 12px; border-color: var(--experience-line); box-shadow: none; }
body.app-shell .bambu-brand { display: flex; gap: 11px; align-items: center; margin: 0 10px 28px; }
body.app-shell .bambu-brand__title { display: block; font: 800 25px/.95 var(--experience-heading); color: var(--experience-ink); letter-spacing: -.045em; }
body.app-shell .bambu-brand__sub { display: block; font: 500 12px/1.8 var(--experience-font); color: var(--experience-muted); }
.experience-nav-label { margin: 0 12px 4px; font-size: 9px; color: #71806b; }
body.app-shell .bambu-menu { gap: 6px; }
body.app-shell .bambu-tab { border: 1px solid transparent; border-radius: 12px; min-height: 52px; padding: 9px 12px; gap: 10px; font: 600 13px var(--experience-font); color: var(--experience-muted); }
body.app-shell .bambu-tab:hover { background: #f4f7ef; color: var(--experience-green); }
body.app-shell .bambu-tab.active { background: #edf5e4; color: #315f2b; border-color: #d4e4c7; box-shadow: 0 2px 0 #e0e9d7; }
body.app-shell .bambu-tab__icon { width: 30px; height: 30px; border: 0; background: transparent; box-shadow: none; }
body.app-shell .bambu-tab__icon img { width: 28px; height: 28px; object-fit: contain; }
.experience-soon { font-size: 9px; margin-left: auto; padding: 2px 5px; background: #f1f3ed; color: #65715e; border-radius: 5px; font-weight: 500; }
body.app-shell .bambu-shell { width: calc(100% - 242px); margin-left: 242px; max-width: 1450px; padding: 48px clamp(24px, 4vw, 64px); background: none; }
body.app-shell .bambu-signout { color: var(--experience-muted); border-color: var(--experience-line); font-size: 12px; }
body.app-shell .bambu-avatar { background: #edf5e4; color: #315f2b; border: 1px solid #d4e4c7; font-size: 12px; }
body.app-shell .bambu-upgrade { background: #f4efdf; color: #71602c; border-color: #e6dcc0; box-shadow: none; }
body.app-shell .bambu-nav-toggle { background: #fff; color: var(--experience-ink); border: 1px solid var(--experience-line); }
.experience-chip { display: inline-flex; padding: 6px 11px; border: 1px solid #d7e5c9; background: #f1f7e9; color: #486537; border-radius: 8px; font-size: 11px; font-weight: 600; }
body.app-shell :is(.course-catalogue, .leaderboard-panel, .profile-card, .wip-card, .academy-panel) { border: 1px solid var(--experience-line); border-radius: 22px; box-shadow: 0 4px 0 #eef1e9; }
body.app-shell .explore-catalogue { padding: 0; background: transparent; border: 0; box-shadow: none; }
body.app-shell .course-catalogue__head { display: block; margin-bottom: 32px; }
body.app-shell .course-catalogue__title { font: 700 clamp(30px, 3.4vw, 46px)/1.12 var(--experience-heading); color: var(--experience-ink); letter-spacing: -.045em; text-transform: none; margin: 0 0 16px; }
body.app-shell .course-catalogue__hint { color: var(--experience-muted); max-width: 560px; font-size: 15px; line-height: 1.7; }
body.app-shell .explore-catalogue .course-catalogue__track { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 245px), 1fr)); gap: 22px; overflow: visible; padding: 4px 0 20px; }
body.app-shell .course-catalogue-card { width: 100%; min-width: 0; background: #fff; border: 1px solid var(--experience-line); border-radius: 18px; box-shadow: 0 4px 0 #e9eee3; overflow: hidden; transition: transform .18s, box-shadow .18s; text-align: left; }
body.app-shell .course-catalogue-card:hover { transform: translateY(-4px); box-shadow: 0 8px 0 #e4eddc; }
body.app-shell .course-catalogue-card--active { border-color: #a7c18c; background: #fcfff8; }
body.app-shell .course-catalogue-card__thumb { background: #edf4e3; aspect-ratio: 16 / 10; }
body.app-shell .course-catalogue-card__title { font: 700 21px/1.2 var(--experience-heading); color: var(--experience-ink); }
body.app-shell .course-catalogue-card__body { padding: 20px; }
body.app-shell .course-catalogue-card__cta { color: var(--experience-green); font-size: 13px; margin-top: 16px; }
body.app-shell .course-catalogue-card__progress-fill { background: var(--experience-green); }
body.app-shell .leaderboard-panel { padding: clamp(24px, 4vw, 46px); }
body.app-shell .leaderboard-panel__title { font-size: clamp(30px, 3.4vw, 44px); color: var(--experience-ink); margin-bottom: 18px; }
body.app-shell .leaderboard-panel__kicker { color: var(--experience-green); font: 700 11px var(--experience-font); letter-spacing: .12em; }
body.app-shell .leaderboard-panel__lede { color: var(--experience-muted); margin-top: 18px; max-width: 520px; }
body.app-shell .leaderboard-row { border-color: var(--experience-line); border-radius: 14px; padding: 16px; background: #fafbf8; }
body.app-shell .leaderboard-row--self { background: #edf5e4; border-color: #c5dbb4; }
body.app-shell .leaderboard-row__xp { color: var(--experience-green); }
body.app-shell.bambu-profile .profile-hero { background: #edf5e4; border-color: #d9e7ce; box-shadow: none; padding: clamp(24px, 4vw, 42px); }
body.app-shell.bambu-profile .profile-title { font-size: clamp(32px, 4vw, 44px); }
body.app-shell.bambu-profile .profile-hero__glow { display: none; }
body.app-shell.bambu-profile .profile-stat { background: #ffffffb3; border-color: #dbe7d1; padding: 16px 20px; border-radius: 14px; }
body.app-shell.bambu-profile .profile-card { border-color: var(--experience-line); padding: 26px; box-shadow: 0 4px 0 #eef1e9; }
body.app-shell.bambu-profile .profile-card__title { color: var(--experience-ink); font: 700 23px/1.2 var(--experience-heading); text-transform: none; letter-spacing: -.025em; }
body.app-shell.bambu-profile .profile-card a:not(.profile-cta) { color: var(--experience-green); text-decoration: underline; text-underline-offset: 4px; }
body.app-shell :is(.profile-cta, .settings-btn--primary), .experience-primary {
  display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 46px;
  padding: 12px 22px; background: var(--experience-green); color: #fff; border: 1px solid #2a5825;
  border-radius: 12px; box-shadow: 0 3px 0 #21491d; font: 600 13px/1.5 var(--experience-font);
  text-decoration: none; transition: transform .15s, box-shadow .15s;
}
body.app-shell :is(.profile-cta, .settings-btn--primary):hover, .experience-primary:hover { background: #295323; }
body.app-shell :is(.profile-cta, .settings-btn--primary):active, .experience-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 #21491d; }
body.app-shell .settings-modal__panel { border-radius: 22px; border-color: var(--experience-line); }
body.app-shell .wip-card { max-width: 620px; padding: clamp(28px, 5vw, 56px); }
body.app-shell .wip-title { font: 700 clamp(36px, 5vw, 52px)/1.1 var(--experience-heading); letter-spacing: -.045em; }
body.app-shell .wip-kicker { color: var(--experience-green); }
body.app-shell .wip-copy { color: var(--experience-muted); line-height: 1.8; margin-bottom: 28px; }
/* Sign-in: a welcoming illustrated introduction alongside a quiet, readable form. */
body.app-shell.login-view:not(:has(> aside.bambu-nav)) .app-header { display: flex; background: transparent; border: 0; padding: 24px 5vw; }
body.app-shell.login-view:not(:has(> aside.bambu-nav)) .app-user { font-size: 12px; color: var(--experience-muted); }
body.app-shell.login-view:not(:has(> aside.bambu-nav)) .app-main { display: grid; min-height: calc(100vh - 90px); position: relative; max-width: 1180px; width: 100%; margin: 0 auto; padding: 30px 32px 64px; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px 70px; }
.login-story { grid-column: 1; grid-row: 1 / span 2; align-self: stretch; padding: 42px; border-radius: 28px; background: #eaf5d9; position: relative; overflow: hidden; }
.login-story h2 { font: 700 clamp(36px, 4vw, 55px)/1.08 var(--experience-heading); letter-spacing: -.05em; margin: 22px 0; }
.login-story h2 span { color: var(--experience-green); }
.login-story > p:not(.experience-eyebrow) { color: #52674a; font-size: 14px; line-height: 1.8; }
.login-story img { display: block; width: 220px; height: 220px; object-fit: contain; margin: 12px auto; }
.login-story__note { display: block; text-align: center; color: #52674a; font-size: 11px; }
body.app-shell.login-view:not(:has(> aside.bambu-nav)) .login-info-pill { grid-column: 2; align-self: end; background: #f6f1e3; color: #78602c; border-color: #e5dbc2; box-shadow: none; font-size: 11px; }
body.app-shell.login-view:not(:has(> aside.bambu-nav)) .login-panel { grid-column: 2; width: 100%; max-width: 450px; padding: 32px; border: 1px solid var(--experience-line); border-radius: 24px; background: #fff; box-shadow: 0 5px 0 #edf0e7; align-self: start; }
body.app-shell.login-view:not(:has(> aside.bambu-nav)) .login-hero { text-align: left; gap: 12px; }
body.app-shell.login-view:not(:has(> aside.bambu-nav)) .login-title { font: 700 36px/1.15 var(--experience-heading); color: var(--experience-ink); letter-spacing: -.045em; margin: 0; }
body.app-shell.login-view:not(:has(> aside.bambu-nav)) .login-intro { color: var(--experience-muted); font-size: 13px; margin: 0 0 16px; }
body.app-shell.login-view:not(:has(> aside.bambu-nav)) .login-label { display: block; font-size: 12px; font-weight: 600; margin: 3px 0 6px; }
body.app-shell.login-view:not(:has(> aside.bambu-nav)) .login-form { gap: 8px; }
body.app-shell.login-view:not(:has(> aside.bambu-nav)) .login-input { border: 1px solid #d8e0d1; border-radius: 11px; background: #fafcf8; color: var(--experience-ink); text-align: left; min-height: 48px; font: 14px var(--experience-font); }
body.app-shell.login-view:not(:has(> aside.bambu-nav)) .login-input:focus { outline: 2px solid #73915a; outline-offset: 2px; }
body.app-shell.login-view:not(:has(> aside.bambu-nav)) .login-button { min-height: 48px; border-radius: 11px; background: var(--experience-green); color: #fff; font-weight: 600; box-shadow: 0 3px 0 #244d20; margin-top: 10px; }
body.app-shell.login-view:not(:has(> aside.bambu-nav)) .login-button:hover { background: #295323; }
body.app-shell.login-view:not(:has(> aside.bambu-nav)) :is(.login-button--passkey, .login-button--ghost) { background: #fff; color: var(--experience-ink); border: 1px solid #d8e0d1; box-shadow: 0 2px 0 #edf0e7; margin: 0; }
body.app-shell.login-view:not(:has(> aside.bambu-nav)) :is(.login-button--passkey, .login-button--ghost):hover { background: #f3f7ed; }
body.app-shell.login-view:not(:has(> aside.bambu-nav)) .login-hint { font-size: 11px; line-height: 1.7; color: var(--experience-muted); text-align: center; }
body.app-shell.login-view:not(:has(> aside.bambu-nav)):not(:has(.login-story)) .app-main { display: grid; grid-template-columns: 1fr; min-height: 90vh; }
body.app-shell.login-view:not(:has(> aside.bambu-nav)):not(:has(.login-story)) .login-panel { grid-column: 1; align-self: center; }
.experience-text-link { color: var(--experience-green); text-decoration: underline; text-underline-offset: 4px; }
/* Learner classroom and demo chrome. */
body.classroom-student-shell .classroom-student-header { background: #fff; border-color: var(--experience-line); padding: 24px max(24px, calc((100vw - 1080px) / 2)); gap: 20px; }
body.classroom-student-shell .classroom-student-header__brand { color: var(--experience-green); font: 700 22px var(--experience-heading); }
body.classroom-student-shell .classroom-student-waiting { background: #fff; border: 1px solid var(--experience-line); border-radius: 26px; padding: clamp(32px, 7vw, 72px) 24px; box-shadow: 0 5px 0 #edf0e7; }
body.classroom-student-shell .classroom-student-waiting h1 { font-size: clamp(28px, 4vw, 40px); }
body.classroom-student-shell .classroom-student-waiting__pulse { background: var(--experience-green); }
body.classroom-student-shell .classroom-student-lesson { border-color: var(--experience-line); border-radius: 16px; padding: 22px; }
body.classroom-student-shell .classroom-student-lesson--done { background: #f0f7e9; }
body.demo-shell .demo-panel { background: #fff; border: 1px solid var(--experience-line); border-radius: 24px; box-shadow: 0 5px 0 #edf0e7; }
body.demo-shell .demo-progress__fill { background: var(--experience-green); }
body.demo-shell .demo-close { border: 1px solid var(--experience-line); border-radius: 12px; color: var(--experience-ink); background: #fff; }
body.app-shell.teacher-portal .teacher-hero { background: #edf5e4; border-color: #d9e7ce; border-radius: 22px; box-shadow: none; padding: 30px; }
body.app-shell.teacher-portal .teacher-hero__title { font-family: var(--experience-heading); font-size: 30px; }
body.app-shell.teacher-portal .teacher-subnav { border-radius: 14px; box-shadow: none; }
/* Existing dashboard/player already define light and dark tokens. */
body.bambu-dashboard { --muted: #63705f; }
body.bambu-dashboard.dark { --muted: #a3af9e; }
body.bambu-dashboard :is(.course-card, .level-card, .daily-card) { transition: border-color .18s, box-shadow .18s, transform .18s; }
body.bambu-dashboard .course-card:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--line); }
body.bambu-dashboard :is(.primary, .filters button, .nav-item), body.lesson-player :is(.icon-button, .exit-link) { transition: background .15s, transform .15s; }
body.bambu-dashboard dialog { border-radius: 24px; }
body.bambu-dashboard dialog::backdrop { background: rgb(19 32 18 / 45%); backdrop-filter: blur(5px); }
body.lesson-player .lesson-header { box-shadow: 0 2px 12px rgb(20 35 17 / 3%); }
body.lesson-player .exit-link { border-radius: 10px; }
body.lesson-player .exit-link:hover { background: var(--soft); }
body.lesson-player .header-course .bambu-mark { border-radius: 12px; }
body.lesson-player .lesson-outline { border-right: 1px solid var(--line); }
body.lesson-player .header-progress .progress-track { border-radius: 20px; overflow: hidden; }
@media (max-width: 980px) {
  body.app-shell .bambu-nav { width: min(288px, 86vw); }
  body.app-shell .bambu-shell { width: 100%; margin-left: 0; padding: 22px 24px 40px; }
  body.app-shell.login-view:not(:has(> aside.bambu-nav)) .app-main { gap: 24px; }
  .login-story { padding: 28px; }
}
@media (max-width: 640px) {
  body.app-shell .bambu-shell { padding: 16px 16px 32px; }
  body.app-shell.login-view:not(:has(> aside.bambu-nav)) .app-main { grid-template-columns: 1fr; padding: 12px 20px 40px; gap: 20px; }
  body.app-shell.login-view:not(:has(> aside.bambu-nav)) .app-header { padding: 20px; }
  body.app-shell.login-view:not(:has(> aside.bambu-nav)) .app-user { display: none; }
  .login-story { grid-column: 1; grid-row: auto; width: 100%; padding: 22px; }
  .login-story h2 { font-size: 32px; margin: 12px 0; max-width: 70%; }
  .login-story h2 br { display: none; }
  .login-story img { position: absolute; right: 6px; bottom: 12px; width: 100px; height: 100px; }
  .login-story > p:not(.experience-eyebrow) { max-width: 70%; font-size: 12px; }
  .login-story__note { display: none; }
  body.app-shell.login-view:not(:has(> aside.bambu-nav)) .login-info-pill, body.app-shell.login-view:not(:has(> aside.bambu-nav)) .login-panel { grid-column: 1; }
  body.app-shell.login-view:not(:has(> aside.bambu-nav)) .login-panel { padding: 24px; max-width: none; }
  body.app-shell.login-view:not(:has(> aside.bambu-nav)) .login-title { font-size: 30px; }
  body.app-shell .course-catalogue__title { font-size: 32px; }
  body.app-shell.bambu-profile .profile-stat { padding: 12px; }
  body.app-shell .settings-passkeys__head { flex-wrap: wrap; gap: 12px; }
  body.app-shell .settings-modal__actions { flex-wrap: wrap; }
  body.classroom-student-shell .classroom-student-header { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Preserve native hidden states when legacy component display rules are present. */
[hidden] { display: none !important; }
body.app-shell.login-view:not(:has(> aside.bambu-nav)) .login-panel::before,
body.app-shell.login-view:not(:has(> aside.bambu-nav)) .login-panel::after { content: none; }
.login-story { width: 100%; }
body.app-shell .bambu-nav__footer-actions { gap: 8px; }
body.app-shell .bambu-nav__footer-actions .bambu-tab--compact { padding: 8px; min-width: 36px; }
body.app-shell .bambu-nav__footer-actions .bambu-upgrade { min-width: 0; padding: 9px; font-size: 10px; gap: 5px; }
body.app-shell .bambu-nav__footer .bambu-avatar { width: 38px; height: 38px; flex-shrink: 0; }
body.app-shell .bambu-tab.active .bambu-tab__icon { background: transparent; box-shadow: none; }
@media (max-width: 640px) {
  body.app-shell.bambu-profile .profile-stats .profile-stat:last-child { grid-column: 1 / -1; }
}
/* Unified workspace: clear landmarks, consistent navigation, and generous content rhythm. */
body.app-shell:has(> .bambu-nav) { background: #f8faf6; }
body.app-shell .bambu-shell {
  --workspace-gutter: clamp(24px, 4vw, 56px);
  display: block; max-width: none; padding: 0 var(--workspace-gutter) 48px;
}
body.app-shell .bambu-nav { height: 100dvh; padding: 28px 16px 16px; gap: 8px; }
.experience-nav-brand-row { display: flex; align-items: center; justify-content: space-between; }
body.app-shell .bambu-brand { margin: 0 12px 24px; }
.experience-drawer-close { display: none; }
.experience-space-card { display: flex; align-items: center; gap: 10px; background: #f7f9f3; border: 1px solid #e5eadd; border-radius: 12px; padding: 12px 10px; margin-bottom: 22px; }
.experience-space-card > span:nth-child(2) { flex: 1; min-width: 0; }
.experience-space-card strong { display: block; font-size: 11px; font-weight: 650; line-height: 1.4; }
.experience-space-card small { display: block; color: #6d7866; font-size: 9px; margin-top: 4px; }
.experience-space-icon { display: grid; place-items: center; width: 30px; height: 34px; color: #648c3c; flex-shrink: 0; }
body.app-shell .experience-nav-label { margin: 6px 12px; font-size: 9px; letter-spacing: .12em; }
body.app-shell .bambu-menu { display: grid; gap: 3px; margin: 0 0 15px; }
body.app-shell .bambu-tab { display: flex; min-height: 44px; padding: 10px 12px; border-radius: 9px; font-size: 12px; font-weight: 550; letter-spacing: 0; text-transform: none; }
body.app-shell .bambu-tab__icon { width: 22px; height: 22px; color: #77836f; }
body.app-shell .bambu-tab__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; }
body.app-shell .bambu-tab.active { background: #edf5e4; box-shadow: none; border-color: #d9e6ce; color: #365f2b; }
body.app-shell .bambu-tab.active .bambu-tab__icon { color: #477435; }
body.app-shell .bambu-tab:hover { border-color: #e2e9d9; }
body.app-shell .bambu-nav__footer { margin-top: auto; display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--experience-line); }
.experience-nav-note { display: flex; gap: 10px; align-items: center; padding: 0 12px 18px; color: #728165; font-size: 10px; line-height: 1.7; }
.experience-nav-note svg { color: #88a971; }
.experience-account-link { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--experience-line); border-radius: 12px; background: #fff; font-size: 11px; font-weight: 650; }
.experience-account-link > span:nth-child(2) { flex: 1; }
.experience-account-link small { display: block; margin-top: 3px; color: #7b8574; font-size: 9px; font-weight: 400; }
.experience-account-link > svg { width: 15px; color: #7b8574; }
body.app-shell .experience-account-link .bambu-avatar { border-radius: 10px; width: 34px; height: 34px; display: grid; place-items: center; background: #eef3e7; border: 0; box-shadow: none; }
body.app-shell .bambu-signout { display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; min-height: 38px; padding: 6px; font-size: 10px; background: transparent; }
body.app-shell .bambu-signout svg { width: 15px; height: 15px; }
.experience-topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 calc(-1 * var(--workspace-gutter)) 38px; padding: 16px var(--workspace-gutter); border-bottom: 1px solid #e5eadf; background: #ffffffd9; backdrop-filter: blur(16px); }
.experience-topbar__location { display: flex; align-items: center; gap: 15px; min-width: 0; font-size: 11px; }
.experience-topbar__location strong { font-weight: 550; color: #3d4b37; }
.experience-topbar__parent { color: #85907e; }
.experience-topbar__separator { color: #b4bdad; }
.experience-topbar__action { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: #4e713b; white-space: nowrap; }
.experience-topbar__action svg { width: 16px; height: 16px; }
body.app-shell .experience-topbar .bambu-nav-toggle { display: none; }
body.app-shell .academy-shell { width: 100%; margin-top: 0; padding-top: 0; }
body.app-shell .profile-shell { max-width: 1080px; }
.experience-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 14px 20px; border-radius: 12px; color: #fff; background: #253126; box-shadow: 0 8px 30px #14230e26; font: 500 13px/1.6 var(--experience-font); z-index: 9999; }
.experience-toast[data-error='true'] { background: #713828; }
/* Account surfaces share a proper page header, local navigation, and grouped details. */
.account-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 26px; }
.account-page-head h1 { font-size: clamp(32px, 3.5vw, 44px); margin: 0 0 12px; }
.account-page-head p:not(.experience-eyebrow) { color: var(--experience-muted); font-size: 14px; max-width: 540px; margin: 0; }
.account-page-head .experience-eyebrow { margin-bottom: 12px; }
.account-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--experience-line); margin: 0 0 28px; }
.account-tabs a { padding: 10px 2px 14px; font-size: 12px; font-weight: 600; color: #798371; border-bottom: 2px solid transparent; }
.account-tabs a[aria-current='page'] { color: #366b30; border-color: #366b30; }
body.app-shell.bambu-profile .profile-hero { border-radius: 22px; background: linear-gradient(110deg, #edf5e4, #f7faef); }
body.app-shell.bambu-profile .profile-hero__content { width: 100%; }
body.app-shell.bambu-profile .profile-card { box-shadow: 0 3px 0 #edf0e7; }
body.app-shell.bambu-profile .profile-card__text { font-size: 13px; line-height: 1.8; }
.profile-rank-progress { height: 8px; width: 100%; background: #dae6ce; border-radius: 99px; overflow: hidden; margin-top: 24px; }
.profile-rank-progress > span { display: block; height: 100%; background: #5c883d; border-radius: inherit; }
.profile-rank-detail { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 11px; color: #65775b; margin-top: 9px; }
.settings-section-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.settings-section-icon { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border: 1px solid #e0e7d7; background: #f1f6ea; border-radius: 12px; color: #5b7b41; font-size: 20px; }
.settings-section-heading h2 { margin-top: 0; }
.settings-account-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: #eef5e5; border: 1px solid #dfe9d2; border-radius: 14px; padding: 20px 24px; margin-bottom: 24px; font-size: 13px; color: #4e6341; overflow-wrap: anywhere; }
body.app-shell .settings-passkeys { border-top: 1px solid #e8ece3; padding-top: 20px; }
body.app-shell .settings-banner { border-radius: 10px; font-size: 12px; line-height: 1.7; }
body.app-shell .settings-modal__panel { box-shadow: 0 24px 90px #152a1433; }
body.app-shell .settings-btn { min-height: 44px; font-family: var(--experience-font); font-size: 12px; border-radius: 10px; }
body.app-shell .settings-modal__input { font-size: 16px; }
.login-password-field { position: relative; }
body.app-shell.login-view:not(:has(> aside.bambu-nav)) .login-password-field .login-input { padding-right: 68px; }
.login-password-toggle { position: absolute; right: 7px; top: 5px; bottom: 5px; min-width: 48px; border-radius: 7px; color: #4b6939; font-size: 11px; font-weight: 600; }
.login-password-toggle:hover { background: #edf4e5; }
.auth-state-icon { display: grid; place-items: center; width: 58px; height: 58px; background: #edf5e4; color: #4c7635; border: 1px solid #dbe8cf; border-radius: 18px; font-size: 24px; margin-bottom: 20px; }
.auth-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
body.app-shell.login-view:not(:has(> aside.bambu-nav)) .login-input { font-size: 16px; }
/* Classroom tools: the same surfaces and buttons as the learning experience. */
body.app-shell.teacher-portal :is(.teacher-form-panel, .teacher-share-panel, .teacher-class-card, .teacher-insights, .teacher-roster-wrap) { border: 1px solid var(--experience-line); border-radius: 18px; background: #fff; box-shadow: 0 3px 0 #edf0e7; }
body.app-shell.teacher-portal .academy-panel { background: transparent; box-shadow: none; border: 0; padding: 0 0 24px; }
body.app-shell.teacher-portal .academy-panel__header { justify-content: flex-start; gap: 18px; }
body.app-shell.teacher-portal .academy-panel__header-info { text-align: left !important; }
body.app-shell.teacher-portal .academy-panel__title { font-family: var(--experience-heading); font-size: clamp(30px, 3.5vw, 42px); color: var(--experience-ink); }
body.app-shell.teacher-portal .teacher-hero { display: grid; gap: 4px; padding: 32px; background: #edf5e4; border: 1px solid #d9e7ce; }
body.app-shell.teacher-portal .teacher-hero .bambu-btn { justify-self: start; }
body.app-shell.teacher-portal .teacher-hero__lede { font-size: 14px; max-width: 660px; }
body.app-shell.teacher-portal .teacher-class-card { padding: 24px; }
body.app-shell.teacher-portal .teacher-class-card__name { font: 700 23px/1.2 var(--experience-heading); color: #2d3c25; }
body.app-shell.teacher-portal .teacher-class-card__actions { gap: 8px; padding-top: 18px; border-top: 1px solid #e8ede1; margin-top: 20px; }
body.app-shell.teacher-portal .bambu-btn { min-height: 42px; padding: 10px 16px; border-radius: 10px; font: 600 12px/1.5 var(--experience-font); }
body.app-shell.teacher-portal .bambu-btn--primary { background: #366b30; border: 1px solid #2a5825; box-shadow: 0 2px 0 #234b1f; color: #fff; }
body.app-shell.teacher-portal .bambu-btn--secondary { color: #49663a; border: 1px solid #dae4d1; background: #fff; box-shadow: 0 2px 0 #edf0e7; }
body.app-shell.teacher-portal .teacher-form-panel { padding: 30px; max-width: 780px; }
body.app-shell.teacher-portal .teacher-form-panel :is(input, select), body.app-shell.teacher-portal .teacher-share-panel input[type='text'] { border: 1px solid #dce3d5; background: #fcfdfb; border-radius: 10px; font: 15px var(--experience-font); min-height: 48px; }
body.app-shell.teacher-portal .teacher-form-panel label { font-size: 12px; color: #4b5e40; font-weight: 600; }
body.app-shell.teacher-portal .teacher-roster th { background: #f6f8f1; color: #78836e; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 16px; }
body.app-shell.teacher-portal .teacher-roster td { padding: 16px; border-color: #edf0e7; }
body.app-shell.teacher-portal .teacher-subnav__link.is-active { background: #edf5e4; color: #366b30; box-shadow: none; border-color: #dbe7cf; }
body.app-shell.teacher-portal .teacher-danger-zone { border: 1px solid #ebdcd6; border-radius: 16px; padding: 22px; margin-top: 32px; background: #fffdfb; }
.experience-error-page { display: grid; place-items: center; min-height: 100dvh; padding: 32px 20px; }
.experience-error-card { width: min(100%, 560px); background: #fff; border: 1px solid #e0e7d7; border-radius: 28px; padding: clamp(28px, 6vw, 56px); text-align: center; box-shadow: 0 5px 0 #edf0e7; }
.experience-error-card .experience-wordmark { justify-content: center; }
.experience-error-card img { width: 150px; height: 150px; object-fit: contain; display: block; margin: 28px auto; }
.experience-error-card h1 { font-size: 36px; margin: 12px 0 18px; }
.experience-error-card p { color: var(--experience-muted); font-size: 14px; }
.experience-error-card .auth-actions { justify-content: center; }
@media (max-width: 980px) {
  body.app-shell .bambu-shell { --workspace-gutter: 24px; padding: 0 var(--workspace-gutter) 36px; }
  .experience-topbar { min-height: 72px; margin-bottom: 28px; }
  body.app-shell .experience-topbar .bambu-nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; }
  .experience-drawer-close { display: grid; place-items: center; width: 36px; height: 36px; font-size: 26px; border-radius: 8px; background: #f3f6ee; color: #526348; margin: -16px 0 8px; }
  .experience-nav-note { padding-bottom: 8px; }
}
@media (max-width: 640px) {
  body.app-shell .bambu-shell { --workspace-gutter: 18px; }
  .experience-topbar { gap: 10px; margin-bottom: 26px; padding-top: 12px; padding-bottom: 12px; }
  .experience-topbar__location { gap: 12px; }
  .experience-topbar__parent, .experience-topbar__separator { display: none; }
  .experience-topbar__action { font-size: 0; gap: 0; width: 36px; height: 36px; justify-content: center; background: #eef5e6; border-radius: 10px; }
  .experience-topbar__action svg { width: 18px; height: 18px; }
  .account-page-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .account-page-head h1 { font-size: 32px; }
  .account-tabs { gap: 22px; }
  .settings-section-heading { gap: 12px; }
  .settings-section-icon { width: 36px; height: 36px; }
  body.app-shell.bambu-profile .profile-card { padding: 22px; }
  body.app-shell.teacher-portal .teacher-form-panel { padding: 22px; }
  body.app-shell.teacher-portal .teacher-form-panel :is(input, select) { font-size: 16px; }
  body.app-shell.teacher-portal .teacher-hero { padding: 24px; }
}
body.app-shell.bambu-profile .profile-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.app-shell.bambu-profile .profile-stat { min-width: 0; }
body.app-shell.bambu-profile .profile-stat__label { font-size: 10px; letter-spacing: .055em; }
body.app-shell.bambu-profile .profile-stat__value { overflow-wrap: anywhere; }
.experience-state { grid-column: 1 / -1; display: grid; justify-items: center; gap: 12px; text-align: center; padding: 44px 24px; border: 1px solid #e0e7d7; border-radius: 18px; background: #fff; color: #637258; }
.experience-state h3 { color: #2d3b25; margin: 0; font-size: 24px; }
.experience-state p { margin: 0; max-width: 460px; font-size: 13px; }
.experience-state__loader { display: block; width: 28px; height: 28px; border: 3px solid #e3ecd8; border-top-color: #64943f; border-radius: 50%; animation: experience-spin 1s linear infinite; }
@keyframes experience-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  body.app-shell.bambu-profile .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.app-shell.bambu-profile .profile-stats .profile-stat:last-child { grid-column: auto; }
}
/* Discovery, community and feature availability. */
body.app-shell :is(.explore-shell, .leaderboard-shell) { max-width: 1160px; margin: 0 auto; width: 100%; }
body.app-shell .discovery-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 4vw, 46px); margin-bottom: 32px; border: 1px solid #dce9d5; border-radius: 26px; background: linear-gradient(115deg, #eff7e8 0%, #f5f8ec 58%, #e6f1d8 100%); overflow: hidden; }
.discovery-hero__copy { min-width: 0; position: relative; z-index: 1; }
body.app-shell .discovery-hero :is(.course-catalogue__title, .leaderboard-panel__title) { font: 700 clamp(34px, 4vw, 54px)/1.06 var(--experience-heading); letter-spacing: -.045em; margin: 0 0 18px; color: var(--experience-ink); }
body.app-shell .discovery-hero :is(.course-catalogue__hint, .leaderboard-panel__lede) { font: 400 14px/1.8 var(--experience-font); color: var(--experience-muted); max-width: 440px; margin: 0; }
.discovery-hero__art { position: relative; display: flex; flex: 0 0 220px; min-height: 228px; align-items: center; justify-content: center; flex-direction: column; }
.discovery-hero__art img { display: block; width: 172px; height: 172px; position: relative; object-fit: contain; filter: drop-shadow(0 14px 13px #53783b1a); transform: rotate(-7deg); }
.discovery-hero__orbit { position: absolute; inset: 9px -12px; border: 1px solid #c5d8b475; border-radius: 50%; transform: rotate(-25deg); }
.discovery-hero__orbit::after { content: ''; position: absolute; inset: 17px; border: 1px dashed #bfd2ad; border-radius: 50%; }
.discovery-hero__art-label { position: relative; margin-top: 12px; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #5e7650; }
.discovery-stats { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 26px; font-size: 12px; color: #617057; }
.discovery-stats strong { color: var(--experience-green); font-weight: 750; margin-right: 4px; }
.discovery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 14px; }
.discovery-filters { display: flex; gap: 3px; flex-shrink: 0; padding: 4px; border-radius: 12px; background: #edf0e8; }
.discovery-filter { border: 1px solid transparent; background: transparent; color: #68725f; padding: 11px 15px; min-height: 42px; border-radius: 9px; font: 600 12px/1.3 var(--experience-font); cursor: pointer; white-space: nowrap; }
.discovery-filter.is-active { border-color: #dfe5d7; background: #fff; color: #2e4f27; box-shadow: 0 2px 3px #25312608; }
.discovery-filter:hover:not(:disabled) { color: var(--experience-green); }
.discovery-filter:disabled { opacity: .55; }
.discovery-search { display: flex; align-items: center; gap: 10px; min-width: 160px; width: 280px; padding: 0 14px; background: #fff; border: 1px solid var(--experience-line); border-radius: 12px; }
.discovery-search:focus-within { outline: 2px solid #608a43; outline-offset: 2px; }
.discovery-search svg { width: 18px; height: 18px; flex-shrink: 0; color: #7a8771; }
.discovery-search input { width: 100%; min-width: 0; min-height: 46px; border: 0; padding: 10px 0; color: var(--experience-ink); background: transparent; font: 400 13px var(--experience-font); outline: 0; box-shadow: none; }
.discovery-search input:focus-visible { outline: 0; }
.discovery-search input::placeholder { color: #7a8274; }
.discovery-results { font-size: 12px; color: var(--experience-muted); margin: 18px 0; }
body.app-shell .explore-catalogue .course-catalogue__track { grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); list-style: none; margin: 0; padding: 0 0 20px; gap: 22px; }
.discovery-course-item { min-width: 0; list-style: none; display: flex; }
body.app-shell .explore-catalogue .course-catalogue-card { display: flex; flex-direction: column; align-items: stretch; padding: 0; gap: 0; height: 100%; border-radius: 19px; box-shadow: 0 3px 0 #edf0e8; }
body.app-shell .explore-catalogue .course-catalogue-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px #354c2510; }
body.app-shell .explore-catalogue .course-catalogue-card:disabled { opacity: .68; cursor: wait; transform: none; }
body.app-shell .explore-catalogue .course-catalogue-card__thumb { display: block; position: relative; width: 100%; height: 178px; border-radius: 0; background: linear-gradient(145deg, #eaf0de, #dce8cb); }
body.app-shell .explore-catalogue .course-catalogue-card__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.app-shell .explore-catalogue .course-catalogue-card__thumb--fallback img { object-fit: contain; padding: 30px 50px 42px; box-sizing: border-box; opacity: .85; }
.discovery-course-badge { position: absolute; bottom: 12px; left: 14px; max-width: calc(100% - 28px); padding: 4px 9px; border: 1px solid #ffffff9c; border-radius: 7px; background: #ffffffeb; color: #46583c; font: 650 10px/1.5 var(--experience-font); box-sizing: border-box; }
body.app-shell .explore-catalogue .course-catalogue-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
body.app-shell .explore-catalogue .course-catalogue-card__title { display: block; font-size: 21px; line-height: 1.22; overflow-wrap: anywhere; margin: 0 0 10px; }
.discovery-course-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 400 12px/1.7 var(--experience-font); color: var(--experience-muted); margin: 0 0 18px; }
body.app-shell .explore-catalogue .course-catalogue-card__meta { display: block; font: 500 11px/1.5 var(--experience-font); text-transform: none; letter-spacing: 0; color: #69765f; margin-top: auto; }
body.app-shell .explore-catalogue .course-catalogue-card__progress { display: block; height: 5px; margin-top: 10px; background: #eaf0e3; }
body.app-shell .explore-catalogue .course-catalogue-card__progress-fill { display: block; }
body.app-shell .explore-catalogue .course-catalogue-card__cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; margin-top: 16px; border-top: 1px solid #edf0e8; font-size: 12px; }
.discovery-notice { padding: 14px 18px; margin: 12px 0 20px; color: #755b23; background: #fbf5e5; border: 1px solid #eadfbd; border-radius: 12px; font-size: 13px; line-height: 1.7; }
.discovery-notice--error { color: #914233; background: #fff4ef; border-color: #ebd5cb; }
.discovery-notice a { color: inherit; text-decoration: underline; font-weight: 650; }
.discovery-state { padding: 44px 24px; border: 1px dashed #dce4d5; border-radius: 18px; background: #fafcf7; text-align: center; margin-bottom: 20px; }
.discovery-state__icon { display: inline-grid; place-items: center; width: 50px; height: 50px; margin-bottom: 16px; background: #edf4e4; color: #547746; font-size: 25px; border-radius: 15px; }
.discovery-state :is(h2, h3) { margin: 0 0 12px; font-size: 23px; color: var(--experience-ink); }
.discovery-state p { max-width: 410px; margin: 0 auto 22px; color: var(--experience-muted); font-size: 13px; line-height: 1.8; }
.discovery-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; min-height: 46px; border: 1px solid #dbe3d3; background: #fff; border-radius: 11px; color: #426034; font: 650 12px/1.5 var(--experience-font); text-decoration: none; cursor: pointer; }
.discovery-secondary:hover { background: #f3f7ed; border-color: #b4c5a3; }
.discovery-text-link { display: inline; border: 0; padding: 0; background: none; color: var(--experience-green); font: 600 12px/1.6 var(--experience-font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.discovery-skeleton { padding: 0 0 26px; border: 1px solid var(--experience-line); border-radius: 19px; overflow: hidden; background: #fff; min-height: 295px; list-style: none; }
.discovery-skeleton span { display: block; border-radius: 5px; background: #ecf0e6; height: 13px; margin: 18px 22px 0; width: 62%; }
.discovery-skeleton span:first-child { height: 178px; border-radius: 0; width: 100%; margin: 0; background: #e6eddc; }
.discovery-skeleton span:last-child { width: 42%; }
.discovery-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.leaderboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 264px; align-items: start; gap: 24px; }
body.app-shell .leaderboard-panel { min-width: 0; background: #fff; border-radius: 21px; padding: 26px; box-shadow: 0 3px 0 #eef1e8; }
.leaderboard-table-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.leaderboard-table-heading h2 { font-size: 23px; margin: 0; color: var(--experience-ink); }
.leaderboard-table-heading .experience-chip { white-space: nowrap; }
body.app-shell .leaderboard-panel__status { color: var(--experience-muted); font-size: 12px; line-height: 1.8; margin: 0 0 24px; }
.leaderboard-columns { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; padding: 0 12px 12px; color: #7a8571; font-size: 10px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
body.app-shell .leaderboard-list { gap: 6px; }
body.app-shell .leaderboard-row { grid-template-columns: 28px 38px minmax(0, 1fr) auto; gap: 12px; padding: 14px 10px; border: 1px solid transparent; background: #fff; border-radius: 11px; scroll-margin: 24px; }
body.app-shell .leaderboard-row:nth-child(even) { background: #fafbf8; }
body.app-shell .leaderboard-row--self { background: #eff7e6; border-color: #d5e5c6; }
body.app-shell .leaderboard-row--self:nth-child(even) { background: #eff7e6; }
body.app-shell .leaderboard-row__rank { color: #7a8572; font-size: 12px; font-weight: 650; }
.leaderboard-row__avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #edf1e7; color: #61734f; font-size: 11px; font-weight: 700; }
.leaderboard-row--top-1 .leaderboard-row__avatar { background: #f9edc6; color: #977321; }
.leaderboard-row--top-2 .leaderboard-row__avatar { background: #eaf0f3; color: #5c7180; }
.leaderboard-row--top-3 .leaderboard-row__avatar { background: #f5e4d6; color: #996e47; }
body.app-shell .leaderboard-row__name { color: var(--experience-ink); font-size: 12px; overflow-wrap: anywhere; line-height: 1.5; }
body.app-shell .leaderboard-row__tier { color: #77816e; font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; }
body.app-shell .leaderboard-row__you { display: inline-block; color: #567443; font-size: 9px; font-weight: 700; padding: 1px 5px; margin-left: 3px; border-radius: 4px; background: #e0edcf; }
body.app-shell .leaderboard-row__xp { font-size: 12px; color: #3c5c31; }
.leaderboard-row__xp > span { font-size: 9px; font-weight: 500; color: #7d8973; }
.leaderboard-sidebar { display: grid; gap: 18px; }
.leaderboard-personal, .leaderboard-encouragement { border: 1px solid var(--experience-line); background: #fff; padding: 25px; border-radius: 20px; }
.leaderboard-personal h2 { font-size: 19px; margin: 0; }
.leaderboard-personal__rank { font: 700 38px/1.1 var(--experience-heading); letter-spacing: -.045em; color: var(--experience-green); margin: 22px 0 14px; }
.leaderboard-personal__detail, .leaderboard-encouragement p { font-size: 12px; line-height: 1.8; color: var(--experience-muted); margin: 0 0 18px; }
.leaderboard-encouragement { background: #f2f5e9; border-color: #e2e8d7; }
.leaderboard-encouragement__icon { color: #719347; font-size: 31px; display: block; margin-bottom: 14px; }
.leaderboard-encouragement h2 { font-size: 23px; margin: 0 0 14px; }
.leaderboard-encouragement .experience-primary { padding: 10px 15px; font-size: 12px; width: 100%; box-sizing: border-box; }
.leaderboard-skeleton { display: grid; grid-template-columns: 36px 1fr 58px; align-items: center; gap: 18px; padding: 17px 12px; }
.leaderboard-skeleton span { height: 12px; background: #edf1e7; border-radius: 6px; }
.leaderboard-skeleton span:first-child { width: 36px; height: 36px; border-radius: 12px; }
.leaderboard-skeleton span:nth-child(2) { max-width: 180px; }
body.app-shell.coming-soon-page .wip-shell { min-height: calc(100svh - 210px); padding: 20px 0; }
body.app-shell.coming-soon-page .wip-card { width: 100%; max-width: 680px; box-sizing: border-box; background: #fff; padding: clamp(28px, 5vw, 52px); }
body.app-shell.coming-soon-page .wip-robot { margin: 28px 0 20px; }
body.app-shell.coming-soon-page .wip-robot img { width: 160px; height: 160px; object-fit: contain; }
body.app-shell.coming-soon-page .wip-title { font-size: clamp(30px, 4vw, 43px); margin-bottom: 18px; }
body.app-shell.coming-soon-page .wip-copy { max-width: 450px; margin: 0 auto 28px; font-size: 14px; }
.wip-actions { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.wip-footnote { color: #819075; font-size: 11px; margin: 30px 0 0; }
@media (max-width: 1100px) {
  .leaderboard-layout { grid-template-columns: minmax(0, 1fr); }
  .leaderboard-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discovery-toolbar { align-items: stretch; flex-wrap: wrap; }
  .discovery-search { width: 100%; }
}
@media (max-width: 600px) {
  body.app-shell .discovery-hero { padding: 26px; margin-bottom: 25px; border-radius: 21px; gap: 0; }
  .discovery-hero__art { display: none; }
  body.app-shell .discovery-hero :is(.course-catalogue__title, .leaderboard-panel__title) { font-size: 37px; }
  .discovery-stats { gap: 10px 20px; margin-top: 20px; font-size: 11px; }
  .discovery-filters { width: 100%; box-sizing: border-box; }
  .discovery-filter { flex: 1; padding: 10px 8px; font-size: 11px; }
  .discovery-search { box-sizing: border-box; }
  body.app-shell .leaderboard-panel { padding: 21px 14px; }
  .leaderboard-table-heading h2 { font-size: 21px; }
  .leaderboard-sidebar { grid-template-columns: 1fr; }
  body.app-shell .leaderboard-row { grid-template-columns: 22px 32px minmax(0, 1fr) auto; padding: 12px 5px; gap: 8px; }
  .leaderboard-row__avatar { width: 32px; height: 32px; border-radius: 9px; }
  .leaderboard-columns { padding-left: 6px; padding-right: 5px; grid-template-columns: 22px 1fr auto; }
  body.app-shell .leaderboard-row__xp { font-size: 11px; }
  .wip-actions { flex-direction: column; align-items: stretch; }
}
/* The Bambu mark and sidebar rhythm stay familiar between the dashboard and account pages. */
body.bambu-dashboard .brandmark { width: 40px; height: 40px; border-radius: 13px; background: #366b30; color: #fff; font-size: 29px; letter-spacing: -.08em; }
body.bambu-dashboard .brand { font-size: 25px; letter-spacing: -.045em; gap: 11px; }
body.bambu-dashboard .brand .academy { font: 500 12px/1.8 var(--experience-font); letter-spacing: 0; margin-top: 0; }
body.lesson-player .header-course .bambu-mark { background: #366b30; color: #fff; }
@media (min-width: 721px) {
  body.bambu-dashboard .sidebar .nav-item { font-size: 12px; }
  body.bambu-dashboard .sidebar .nav-label { font-size: 9px; letter-spacing: .12em; }
}
/* Neutralise legacy component sizing and duplicated grid spacing. */
body.app-shell .bambu-tab__icon { min-height: 22px; }
body.app-shell .bambu-tab.active .bambu-tab__icon svg { fill: none; stroke: currentColor; }
body.app-shell .bambu-tab:focus-visible { outline: 2px solid #608a43; outline-offset: 3px; box-shadow: none; }
body.app-shell .profile-shell, body.app-shell .leaderboard-shell { display: block; }
body.app-shell.bambu-profile .profile-hero { margin-bottom: 24px; }
body.app-shell .settings-grid { max-width: none; }
body.app-shell .settings-status:empty { display: none; }
.profile-shell > .auth-actions:has(#profileStatus:empty):has(#profileRetryBtn[hidden]) { display: none; }
body.app-shell .explore-catalogue .course-catalogue-card { flex: 1 1 auto; }
body.app-shell button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
