/* inline */
@scope (html[data-site-styles~="d335e31ce839cad9"]) {
/* Page-local top menu: "My progress" / "Badges" jump to the two sections
 * below; "How badges & progress work" links out to the separate explainer
 * at /how-it-works/badges-and-progress.html (kept as a link only, per the
 * founder directive -- that guide's content is NOT merged onto this page).
 * Built from the shared --flat-* design tokens (style/platform-base.css,
 * the stylesheet this root-project page actually loads -- NOT
 * style/platform.css/style/design-system.css, which are the module-book
 * stylesheets and are never linked from this page; see the render
 * investigation notes in the handoff report for why the pill/tab visual
 * language below is deliberately hand-matched to .badge-tab
 * (style/badges.css) and .iotclass-dashboard-pill (style/platform.css)
 * rather than sharing a rule with either). */
.iotclass-progress-menu:where(:scope, *) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-sm);
  margin: 0 0 var(--spacing-xl);
}
.iotclass-progress-menu a:where(:scope, *) {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target-min);
  padding: 0.55rem 1.05rem;
  color: var(--flat-text);
  background: var(--flat-surface);
  border: 1px solid var(--flat-border-strong);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.iotclass-progress-menu a:hover:where(:scope, *) {
  color: var(--flat-text);
  background: var(--flat-surface-muted);
  border-color: var(--flat-text);
}
.iotclass-progress-menu a:focus-visible:where(:scope, *) {
  outline: 3px solid color-mix(in srgb, var(--flat-accent) 28%, transparent);
  outline-offset: 2px;
}
.iotclass-progress-menu a.iotclass-progress-menu-current:where(:scope, *) {
  color: #fff;
  background: var(--flat-accent);
  border-color: var(--flat-accent);
}
.iotclass-progress-menu a.iotclass-progress-menu-external:where(:scope, *) {
  margin-inline-start: auto;
  color: var(--flat-accent);
  background: transparent;
  border-style: dashed;
}
.iotclass-progress-menu a.iotclass-progress-menu-external:hover:where(:scope, *) {
  background: var(--flat-surface-muted);
}
@media (max-width: 620px) {
  .iotclass-progress-menu:where(:scope, *) {
    flex-direction: column;
    align-items: stretch;
  }
  .iotclass-progress-menu a.iotclass-progress-menu-external:where(:scope, *) {
    margin-inline-start: 0;
  }
}
.iotclass-progress-section-heading:where(:scope, *) {
  margin: 0 0 var(--spacing-lg);
  color: var(--flat-text);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.01em;
  scroll-margin-top: 6rem;
}
#progress-badges:where(:scope, *) {
  margin-top: var(--spacing-3xl, 3rem);
  padding-top: var(--spacing-2xl, 1.5rem);
  border-top: 1px solid var(--flat-border);
}
.badge-collection-intro:where(:scope, *) {
  display: grid;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
}
.badge-collection-intro p:where(:scope, *) {
  max-width: 58rem;
  margin: 0;
}
.badge-collection-intro__lead:where(:scope, *) {
  color: var(--badge-text);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}
.badge-collection-stats:where(:scope, *) {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}
.badge-collection-stats li:where(:scope, *) {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.42rem 0.7rem;
  color: var(--badge-muted);
  background: var(--badge-surface-alt);
  border: 1px solid var(--badge-line);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  line-height: 1.2;
}
.badge-collection-stats strong:where(:scope, *) {
  color: var(--badge-text);
  font-variant-numeric: tabular-nums;
}
.badge-collection-intro__guide:where(:scope, *) {
  font-size: var(--font-size-sm);
}
.badge-collection-intro__guide a:where(:scope, *) {
  font-weight: var(--font-weight-semibold);
}
.badge-guide-actions:where(:scope, *) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-sm);
  max-width: 46rem;
  margin-top: var(--spacing-xs);
}
.badge-guide-action:where(:scope, *) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem var(--spacing-md);
  align-items: center;
  min-height: var(--touch-target-min);
  padding: 0.75rem 0.9rem;
  color: var(--badge-text);
  background: var(--badge-surface);
  border: 1px solid var(--badge-line-strong);
  border-radius: var(--badge-radius-sm);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.badge-guide-action:hover:where(:scope, *) {
  background: var(--badge-surface-alt);
  border-color: var(--badge-text);
}
.badge-guide-action:focus-visible:where(:scope, *) {
  outline: 3px solid color-mix(in srgb, var(--badge-accent) 28%, transparent);
  outline-offset: 2px;
}
.badge-guide-action strong:where(:scope, *) {
  font-size: var(--font-size-sm);
}
.badge-guide-action small:where(:scope, *) {
  grid-column: 1;
  color: var(--badge-muted);
  font-size: var(--font-size-xs);
}
.badge-guide-action__arrow:where(:scope, *) {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--badge-accent);
  font-size: var(--font-size-xl);
}
/* The two long explainers remain authored in their original document
 * positions, then move into the modal's tab panels before first interaction. */
#from-one-chapter-to-the-crown:where(:scope, *),
#the-crown-tier-mastery:where(:scope, *) {
  display: none;
}
.badge-guide-dialog #from-one-chapter-to-the-crown:where(:scope, *),
.badge-guide-dialog #the-crown-tier-mastery:where(:scope, *) {
  display: block;
}
.badge-guide-dialog:where(:scope, *) {
  width: min(72rem, calc(100vw - 2rem));
  max-width: none;
  max-height: min(88vh, 60rem);
  margin: auto;
  padding: 0;
  color: var(--badge-text);
  background: var(--badge-surface);
  border: 1px solid var(--badge-line-strong);
  border-radius: var(--badge-radius);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
}
.badge-guide-dialog:where(:scope, *)::backdrop {
  background: rgba(15, 23, 42, 0.58);
}
.badge-guide-dialog__surface:where(:scope, *) {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  max-height: min(88vh, 60rem);
}
.badge-guide-dialog__header:where(:scope, *) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) var(--spacing-xl);
  border-bottom: 1px solid var(--badge-line);
}
.badge-guide-dialog__header h2:where(:scope, *) {
  margin: 0;
  color: var(--badge-text);
  font-size: var(--font-size-xl);
}
.badge-guide-dialog__close:where(:scope, *) {
  display: inline-grid;
  place-items: center;
  width: var(--touch-target-min);
  height: var(--touch-target-min);
  flex: 0 0 auto;
  padding: 0;
  color: var(--badge-muted);
  background: var(--badge-surface-alt);
  border: 1px solid var(--badge-line);
  border-radius: var(--badge-radius-sm);
  font: inherit;
  font-size: var(--font-size-xl);
  cursor: pointer;
}
.badge-guide-dialog__close:hover:where(:scope, *) {
  color: var(--badge-text);
  border-color: var(--badge-text);
}
.badge-guide-dialog__close:focus-visible:where(:scope, *),
.badge-guide-tab:focus-visible:where(:scope, *) {
  outline: 3px solid color-mix(in srgb, var(--badge-accent) 28%, transparent);
  outline-offset: 2px;
}
.badge-guide-tabs:where(:scope, *) {
  display: flex;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-xl) 0;
  border-bottom: 1px solid var(--badge-line);
}
.badge-guide-tab:where(:scope, *) {
  min-height: var(--touch-target-min);
  padding: 0.65rem 1rem;
  color: var(--badge-muted);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
}
.badge-guide-tab[aria-selected="true"]:where(:scope, *) {
  color: var(--badge-accent);
  border-bottom-color: var(--badge-accent);
}
.badge-guide-dialog__body:where(:scope, *) {
  min-height: 0;
  padding: var(--spacing-xl);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.badge-guide-panel[hidden]:where(:scope, *) {
  display: none;
}
.badge-guide-panel > section > h2:where(:scope, *) {
  margin-top: 0;
}
@media (max-width: 680px) {
  .badge-guide-actions:where(:scope, *) {
    grid-template-columns: 1fr;
  }
  .badge-guide-dialog:where(:scope, *) {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
  }
  .badge-guide-dialog__surface:where(:scope, *) {
    max-height: calc(100vh - 1rem);
  }
  .badge-guide-dialog__header:where(:scope, *),
  .badge-guide-dialog__body:where(:scope, *) {
    padding: var(--spacing-md);
  }
  .badge-guide-tabs:where(:scope, *) {
    padding-inline: var(--spacing-md);
  }
  .badge-guide-tab:where(:scope, *) {
    flex: 1 1 0;
    padding-inline: var(--spacing-sm);
  }
}
/* ---- from the former /user/dashboard.html: mastery-panel styling ---- */
.dashboard-mastery-panel:where(:scope, *) {
  position: relative;
  overflow: hidden;
  color: #f8f4e8;
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 215, 103, 0.2), transparent 34%),
    linear-gradient(135deg, #101b27 0%, #172b39 58%, #0c1822 100%);
  border: 1px solid #b88a24;
  box-shadow:
    0 14px 36px rgba(11, 24, 34, 0.18),
    inset 0 0 0 1px rgba(255, 230, 148, 0.16);
}
.dashboard-mastery-panel:where(:scope, *)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffe58a 25%, #c28a1f 72%, transparent);
}
.dashboard-mastery-panel .dashboard-section-heading:where(:scope, *) {
  position: relative;
  z-index: 1;
}
.dashboard-mastery-panel .dashboard-eyebrow:where(:scope, *),
.dashboard-mastery-panel .dashboard-section-heading strong:where(:scope, *) {
  color: #ffe58a;
}
.dashboard-mastery-panel h3:where(:scope, *),
.dashboard-mastery-panel p:where(:scope, *) {
  color: #f8f4e8;
}
.dashboard-mastery-panel p:where(:scope, *) {
  max-width: 42rem;
  margin: 0.35rem 0 0;
  color: #d9e2e8;
}
.dashboard-mastery-list:where(:scope, *) {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.7rem;
  margin-top: 1.25rem;
}
.dashboard-mastery-row:where(:scope, *) {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: rgba(7, 15, 22, 0.58);
  border: 1px solid rgba(255, 226, 134, 0.33);
  border-radius: 10px;
}
.dashboard-mastery-art:where(:scope, *) {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  filter: drop-shadow(0 5px 11px rgba(0, 0, 0, 0.42));
}
.dashboard-mastery-copy:where(:scope, *) {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}
.dashboard-mastery-copy strong:where(:scope, *) {
  color: #fff8df;
  font-size: 1rem;
  line-height: 1.3;
}
.dashboard-mastery-copy span:where(:scope, *) {
  color: #d9e2e8;
  font-size: 0.83rem;
}
.dashboard-mastery-tier:where(:scope, *) {
  display: inline-flex;
  justify-self: start;
  padding: 0.2rem 0.55rem;
  color: #1d1505;
  background: #ffe58a;
  border: 1px solid #c28a1f;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.dashboard-mastery-detail:where(:scope, *) {
  color: #ffe58a;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.dashboard-mastery-detail:hover:where(:scope, *) {
  color: #fff8df;
}
.dashboard-mastery-detail:focus-visible:where(:scope, *) {
  outline: 3px solid #ffe58a;
  outline-offset: 4px;
}
@media (max-width: 520px) {
  .dashboard-mastery-row:where(:scope, *) {
    grid-template-columns: 3.8rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.8rem;
  }
  .dashboard-mastery-art:where(:scope, *) {
    width: 3.6rem;
    height: 3.6rem;
  }
  .dashboard-mastery-detail:where(:scope, *) {
    grid-column: 2;
    justify-self: start;
    white-space: normal;
  }
}
/* ---- from the former /badges/showcase.html: crown-wall styling ----
 * Everything else in the badges section reuses the shared badge classes in
 * style/badges.css (.badge-render-grid, .badge-card, .badge-emoji,
 * .badge-art-image, .badge-card-title/-description/-xp, .badge-empty-state). */
.badges-container .showcase-crown-wall:where(:scope, *) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.75rem, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
}
.badges-container .showcase-crown:where(:scope, *) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm);
  color: var(--badge-text);
  background: var(--badge-surface);
  border: 1px solid var(--badge-line);
  border-radius: var(--badge-radius-sm);
  text-align: center;
  scroll-margin-top: 6rem;
}
.badges-container .showcase-crown:target:where(:scope, *) {
  border-color: var(--badge-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--badge-accent) 25%, transparent);
}
.badges-container .showcase-crown img:where(:scope, *) {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.badges-container .showcase-crown span:where(:scope, *) {
  color: var(--badge-muted);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
}
}
