/*
 * Reference-informed Progress / MindArc growth layer.
 * Presentation only. The existing progress engine, adaptive model, goals,
 * milestones, challenges, calibration and Premium gates remain authoritative.
 */

body[data-view="progress"] main {
  width: min(1220px, calc(100% - 56px));
}

.progress-dashboard-v2 {
  --progress-rule: #2d363b;
  --progress-rule-soft: rgba(255,255,255,.055);
  padding: 46px 0 12px;
}

.progress-loading-shell {
  min-height: 420px;
  padding: 8px 0 36px;
}

.progress-loading-shell h1 {
  max-width: 10ch;
  margin: 10px 0 16px;
  font-size: clamp(3.1rem, 6vw, 5.8rem);
  line-height: .92;
  letter-spacing: -.078em;
}

.progress-loading-shell h1 span {
  color: var(--accent);
}

.progress-loading-shell p {
  color: var(--muted);
}

/* -------------------------------------------------------------------------
   HEADER: progress as a personal story, not an analytics dashboard
   ------------------------------------------------------------------------- */

.progress-story-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 52px;
  align-items: end;
  padding: 8px 0 36px;
  border-bottom: 1px solid var(--progress-rule);
}

.progress-story-heading > div:first-child {
  max-width: 780px;
}

.progress-story-heading h1 {
  max-width: 10ch;
  margin: 10px 0 16px;
  font-size: clamp(3.1rem, 6vw, 5.8rem);
  line-height: .92;
  letter-spacing: -.078em;
}

.progress-story-heading h1 span {
  color: var(--accent);
}

.progress-story-heading > div:first-child > p {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.progress-story-heading .progress-sync {
  margin-top: 15px;
  color: #7f8d88;
}

.progress-mastered-count {
  min-width: 0;
  padding: 0 0 5px 24px;
  border: 0;
  border-left: 1px solid var(--progress-rule);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.progress-mastered-count strong {
  justify-content: flex-start;
  font-size: 3.5rem;
  line-height: .9;
}

.progress-mastered-count strong small {
  font-size: .82rem;
}

.progress-mastered-count span {
  margin-top: 10px;
  color: #7f8d88;
  letter-spacing: .03em;
}

.progress-tabs {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 32px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--progress-rule);
  border-radius: 0;
  background: color-mix(in srgb, #101418 92%, transparent);
  backdrop-filter: blur(18px);
}

.progress-tabs button {
  position: relative;
  min-height: 58px;
  border-radius: 0;
  background: transparent;
  color: #7e8b87;
  font-size: .82rem;
  letter-spacing: .01em;
}

.progress-tabs button::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 2px;
  background: transparent;
}

.progress-tabs button:hover {
  color: var(--text);
}

.progress-tabs button.active {
  background: transparent;
  color: var(--text);
}

.progress-tabs button.active::after {
  background: var(--accent);
}

/* -------------------------------------------------------------------------
   MINDARC HERO: the object owns the page
   ------------------------------------------------------------------------- */

.progress-growth-story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, .9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: center;
  min-height: 520px;
  padding: 38px 8px 46px;
  border: 0;
  border-bottom: 1px solid var(--progress-rule);
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.progress-growth-story::before {
  display: none;
}

.progress-growth-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 0;
}

.progress-growth-story .mindarc-object {
  max-width: 430px;
}

.progress-growth-story .mindarc-object svg {
  filter: drop-shadow(0 18px 35px rgba(0,0,0,.22));
}

.progress-growth-story .arc-caption {
  margin-top: 14px;
  color: #81908a;
  font-size: .78rem;
  letter-spacing: .02em;
}

.progress-growth-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.progress-growth-copy h2 {
  max-width: 12ch;
  margin: 8px 0 14px;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: .98;
  letter-spacing: -.065em;
}

.progress-growth-copy > p {
  max-width: 55ch;
  color: var(--muted);
  line-height: 1.65;
}


.progress-growth-story .arc-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
  margin: 28px 0 0;
  padding: 0;
  border-top: 1px solid var(--progress-rule);
}

.progress-growth-story .arc-legend li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  flex-wrap: nowrap;
  min-height: 52px;
  padding: 12px 0;
  border-bottom: 1px solid var(--progress-rule-soft);
  background: transparent;
}

.progress-growth-story .arc-legend li > span:nth-child(2) {
  min-width: 0;
  flex: none;
  flex-basis: auto;
}

.progress-growth-story .arc-legend li > span:nth-child(2) b,
.progress-growth-story .arc-legend li > span:nth-child(2) small {
  display: block;
}

.progress-growth-story .arc-legend li > span:nth-child(2) b {
  color: #c7cfcb;
  font: 600 .74rem/1.25 var(--heading);
}

.progress-growth-story .arc-legend li > span:nth-child(2) small {
  margin-top: 2px;
  color: #72807b;
  font-size: .62rem;
  line-height: 1.25;
}

.progress-growth-story .arc-legend-glyph {
  width: 24px;
  height: 24px;
  border-color: color-mix(in srgb, var(--game-color) 45%, #344047);
  color: var(--game-color);
}

.progress-growth-story .arc-legend-glyph svg { width: 15px; height: 15px; }

.progress-growth-story .arc-legend strong {
  padding-left: 0;
  color: #b8c1bd;
  font-size: .7rem;
}

/* -------------------------------------------------------------------------
   THIS WEEK: signal first, numbers second
   ------------------------------------------------------------------------- */

.progress-panel-v2 {
  gap: 30px;
}

.progress-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 0;
  border-bottom: 1px solid var(--progress-rule);
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.progress-summary-grid article {
  min-height: 150px;
  padding: 28px 24px 28px 0;
  background: transparent;
}

.progress-summary-grid article + article {
  padding-left: 24px;
  border-left: 1px solid var(--progress-rule);
}

.progress-summary-grid span {
  color: #7e8b87;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.progress-summary-grid strong {
  margin: 18px 0 10px;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
}

.progress-summary-grid small {
  max-width: 24ch;
  color: #81908a;
  line-height: 1.45;
}

.progress-two-col {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 0;
  border-bottom: 1px solid var(--progress-rule);
}

.progress-focus-card,
.progress-signal-card {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.progress-focus-card {
  position: relative;
  max-width: 760px;
  padding: 36px 0 40px;
}

.progress-focus-card::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

.progress-focus-head {
  gap: 18px;
}

.progress-focus-head h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -.06em;
}

.progress-game-icon svg {
  width: 22px;
  height: 22px;
}

.progress-focus-card > p {
  max-width: 52ch;
  margin: 24px 0 26px;
  line-height: 1.65;
}

.progress-focus-card .primary {
  min-width: 200px;
}

.progress-signal-card {
  padding: 36px 0 40px 34px;
  border-left: 1px solid var(--progress-rule);
}

.signal-line {
  padding: 16px 0;
}

.signal-line strong {
  font-size: 1.3rem;
}

.retention-phase2 {
  gap: 0;
  margin: 4px 0 10px;
  border-top: 1px solid var(--progress-rule);
}

.progress-detail-drawer {
  border: 0 !important;
  border-bottom: 1px solid var(--progress-rule) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.progress-detail-drawer > summary {
  min-height: 74px;
  padding: 0 4px !important;
}

.progress-detail-drawer[open] > summary {
  border-bottom: 1px solid var(--progress-rule-soft);
}

.progress-detail-drawer .retention-goals,
.progress-detail-drawer .retention-weekly {
  margin: 0;
  padding: 30px 0 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.challenge-heading,
.progress-section-heading {
  align-items: end;
  margin-top: 16px;
  padding-top: 8px;
}

.progress-section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -.05em;
}

.challenge-progress-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.challenge-progress-card {
  border-radius: 12px;
  background: #151b20;
}

.recent-progress-list,
.family-signal-list {
  border: 0;
  border-top: 1px solid var(--progress-rule);
  border-bottom: 1px solid var(--progress-rule);
  border-radius: 0;
  background: transparent;
}

.recent-progress-row {
  grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(110px, .8fr));
  min-height: 76px;
  padding: 17px 4px;
}

.recent-progress-row + .recent-progress-row,
.family-signal-row + .family-signal-row {
  border-top-color: var(--progress-rule-soft);
}

/* -------------------------------------------------------------------------
   GAMES: eight individual paths, less card chrome
   ------------------------------------------------------------------------- */

.progress-panel-v2[data-progress-panel="games"] > .progress-section-heading,
.progress-panel-v2[data-progress-panel="skills"] > .progress-section-heading,
.progress-panel-v2[data-progress-panel="milestones"] > .milestone-hero {
  margin-top: 6px;
}

.journey-grid {
  counter-reset: progress-game;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
}

.journey-card {
  counter-increment: progress-game;
  position: relative;
  min-height: 0;
  padding: 28px 4px 34px;
  border: 0;
  border-top: 2px solid var(--journey);
  border-radius: 0;
  background: transparent;
}

.journey-card::after {
  content: counter(progress-game, decimal-leading-zero);
  position: absolute;
  top: 29px;
  right: 4px;
  color: #52605b;
  font: 500 .72rem var(--heading);
  letter-spacing: .12em;
}

.journey-head {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding-right: 42px;
}

.journey-head h3 {
  font-size: 1.35rem;
}

.journey-level {
  margin: 28px 0 14px;
}

.journey-level strong {
  font-size: 2.35rem;
}

.journey-track {
  gap: 4px;
}

.journey-track span i {
  height: 3px;
}

.journey-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 0;
  border-top: 1px solid var(--progress-rule);
  border-bottom: 1px solid var(--progress-rule);
}

.journey-metrics > div {
  padding: 14px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.journey-metrics > div + div {
  border-left: 1px solid var(--progress-rule-soft);
}

.journey-next {
  min-height: 118px;
  margin: 0 0 18px;
  padding-top: 20px;
  border-top: 0;
}

.journey-card > .secondary {
  border-color: color-mix(in srgb, var(--journey) 38%, #354048);
  background: color-mix(in srgb, var(--journey) 10%, #171d22);
}

.compact-journeys .journey-card {
  padding: 18px 2px 24px;
}

.compact-journeys .journey-level {
  margin: 18px 0 10px;
}

.journey-compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 15px 0 18px;
  color: #7f8d88;
  font-size: .72rem;
}

.journey-compact-meta strong {
  color: var(--text);
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   SKILLS + MILESTONES: evidence and memory as editorial collections
   ------------------------------------------------------------------------- */

.skill-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.question-types-drawer {
  margin-top: 14px;
  border-top: 1px solid var(--progress-rule);
  border-bottom: 1px solid var(--progress-rule);
}

.question-types-drawer > summary {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  cursor: pointer;
}

.question-types-drawer > summary::-webkit-details-marker { display: none; }
.question-types-drawer > summary > span { display: grid; gap: 3px; }
.question-types-drawer > summary strong { font: 600 1rem var(--heading); }
.question-types-drawer > summary small { color: #7f8d88; font-size: .76rem; }
.question-types-drawer > summary b { color: #7f8d88; font: 400 1.1rem var(--body); transition: transform .15s ease; }
.question-types-drawer[open] > summary b { transform: rotate(45deg); }
.question-types-drawer .family-signal-list { margin-bottom: 20px; }
.question-types-drawer .family-signal-row { grid-template-columns: minmax(0,1.5fr) repeat(2,minmax(110px,.7fr)); }

.progress-skill-card {
  padding: 20px 2px;
  border: 0;
  border-top: 1px solid var(--progress-rule);
  border-radius: 0;
  background: transparent;
}

.family-signal-row {
  padding: 16px 4px;
}

.milestone-hero {
  padding: 34px 0 30px;
  border: 0;
  border-bottom: 1px solid var(--progress-rule);
  border-radius: 0;
  background: transparent;
}

.milestone-arc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, .9fr);
  gap: 48px;
  align-items: center;
  min-height: 390px;
}

.milestone-hero h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -.06em;
}

.milestone-hero p {
  max-width: 64ch;
  line-height: 1.55;
}

.milestone-hero > strong {
  font-size: clamp(3rem, 6vw, 5rem);
}

.milestone-hero-count {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 24px;
}

.milestone-hero-count strong {
  color: var(--accent);
  font: 500 clamp(2.8rem, 6vw, 4.6rem)/.8 var(--heading);
  letter-spacing: -.07em;
}

.milestone-hero-count span {
  max-width: 130px;
  padding-bottom: 3px;
  color: #8f9a96;
  font-size: .73rem;
  line-height: 1.25;
}

.milestone-arc-object {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 0;
}

.milestone-arc-object::before {
  display: none;
}

.milestone-arc-object .mindarc-object {
  z-index: 1;
  max-width: 275px;
  margin: 0 auto;
}

.milestone-arc-object .arc-caption {
  display: none;
}

.milestone-arc-object > small {
  z-index: 1;
  margin-top: 8px;
  color: #7f8b87;
  font-size: .68rem;
  letter-spacing: .04em;
}

.milestone-v2-grid {
  counter-reset: milestone;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
}

.milestone-v2 {
  counter-increment: milestone;
  position: relative;
  min-height: 178px;
  padding: 24px 2px 26px;
  border: 0;
  border-top: 1px solid var(--progress-rule);
  border-radius: 0;
  background: transparent;
}

.milestone-v2::after {
  content: counter(milestone, decimal-leading-zero);
  position: absolute;
  right: 2px;
  top: 26px;
  color: #53615c;
  font: 500 .68rem var(--heading);
  letter-spacing: .12em;
}

.milestone-v2.done {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--progress-rule));
  background: linear-gradient(180deg, rgba(199,247,107,.035), transparent 70%);
}

.milestone-v2-top {
  grid-template-columns: auto minmax(0, 1fr);
  padding-right: 35px;
}

.milestone-v2-top > small {
  grid-column: 2;
  margin-top: 12px;
  text-align: left;
}

.milestone-v2-track {
  height: 3px;
  margin-top: 18px;
}

/* Achievement collection: lots of small, permanent targets rather than a
   handful of oversized cards. The stored milestone ids remain authoritative. */
.achievement-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--progress-rule);
}

.achievement-hero h2 {
  margin-top: 8px;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: .96;
  letter-spacing: -.065em;
}

.achievement-hero p {
  max-width: 62ch;
  margin-top: 14px;
  color: #9aa6a1;
  line-height: 1.6;
}

.achievement-count {
  display: grid;
  justify-items: end;
  min-width: 150px;
  padding-bottom: 2px;
}

.achievement-count strong {
  color: var(--accent);
  font: 500 clamp(2.8rem, 5vw, 4.3rem)/.82 var(--heading);
  letter-spacing: -.075em;
  font-variant-numeric: tabular-nums;
}

.achievement-count span {
  margin-top: 8px;
  color: #87938e;
  font-size: .72rem;
  letter-spacing: .04em;
}

.achievement-groups {
  display: grid;
  gap: 8px;
  padding-top: 28px;
}

.achievement-group > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  align-items: end;
  gap: 18px;
  min-height: 68px;
  padding: 12px 0;
  border-bottom: 1px solid var(--progress-rule-soft);
  list-style: none;
  cursor: pointer;
}

.achievement-group > summary::-webkit-details-marker { display: none; }

.achievement-group > summary span,
.achievement-group > summary small {
  color: #73807b;
  font: 700 .62rem var(--heading);
  letter-spacing: .13em;
}

.achievement-group > summary h3 {
  margin-top: 3px;
  font-size: 1.2rem;
  letter-spacing: -.025em;
}

.achievement-group > summary b {
  color: #73807b;
  font: 400 1.1rem var(--body);
  transition: transform .15s ease;
}

.achievement-group[open] > summary b {
  transform: rotate(45deg);
}

.achievement-group[open] > .achievement-shelf {
  margin: 12px 0 28px;
}

.achievement-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 18px 12px;
}

.achievement-token {
  --achievement-tone: #8fa49c;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.achievement-token.difficulty-skilled { --achievement-tone: #83c9d2; }
.achievement-token.difficulty-elite { --achievement-tone: #c7f76b; }
.achievement-token.difficulty-legendary { --achievement-tone: #d6b6ff; }

.achievement-token summary {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  padding: 4px 2px;
  list-style: none;
  cursor: pointer;
  text-align: center;
}

.achievement-token summary::-webkit-details-marker {
  display: none;
}

.achievement-token summary:focus-visible {
  outline: 2px solid var(--achievement-tone);
  outline-offset: 5px;
  border-radius: 10px;
}

.achievement-badge {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--achievement-tone) 56%, #46514c);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 32%, color-mix(in srgb, var(--achievement-tone) 14%, transparent), rgba(255,255,255,.012));
  color: var(--achievement-tone);
  transition: transform 160ms ease-out, border-color 160ms ease-out;
}

.achievement-badge > svg {
  width: 31px;
  height: 31px;
}

.achievement-badge .icon-fill {
  fill: currentColor;
  stroke: currentColor;
}

.achievement-game-glyph.arc-game-glyph {
  width: 39px;
  height: 39px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.achievement-game-glyph.arc-game-glyph svg {
  width: 78%;
  height: 78%;
}

.achievement-check {
  position: absolute;
  right: -2px;
  bottom: 2px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 2px solid #101517;
  border-radius: 50%;
  background: var(--achievement-tone);
  color: #101517;
  font: 800 .66rem/1 var(--heading);
}

.achievement-token summary > strong {
  display: block;
  width: 100%;
  color: #f1f4f2;
  font: 600 .76rem/1.2 var(--heading);
  overflow-wrap: anywhere;
}

.achievement-token summary > small {
  color: var(--achievement-tone);
  font: 700 .55rem/1 var(--heading);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.achievement-token.locked summary > strong {
  color: #7d8884;
}

.achievement-token.locked .achievement-badge {
  opacity: .46;
  filter: grayscale(.7);
}

.achievement-token:is(:hover, :focus-within) .achievement-badge {
  transform: translateY(-2px);
  border-color: var(--achievement-tone);
}

.achievement-detail {
  margin-top: 8px;
  padding: 10px 8px 2px;
  border-top: 1px solid var(--progress-rule-soft);
  text-align: center;
}

.achievement-detail p {
  margin: 0;
  color: #9ba7a2;
  font-size: .7rem;
  line-height: 1.4;
}

.achievement-detail span {
  display: block;
  margin-top: 7px;
  color: #6f7b76;
  font-size: .62rem;
}

@media (max-width: 700px) {
  .achievement-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .achievement-count {
    justify-items: start;
    min-width: 0;
  }

  .achievement-groups { gap: 6px; }

  .achievement-shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 8px;
  }

  .achievement-badge {
    width: 60px;
    height: 60px;
  }
}

/* -------------------------------------------------------------------------
   FRESH PROGRESS: same object language before data exists
   ------------------------------------------------------------------------- */

.progress-fresh-story {
  padding-top: 44px;
}

.progress-fresh-story .progress-fresh-heading {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--progress-rule);
}

.progress-fresh-story .progress-fresh-hero {
  min-height: 520px;
  padding: 42px 8px;
  border: 0;
  border-bottom: 1px solid var(--progress-rule);
  border-radius: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(199,247,107,.075), transparent 32%),
    transparent;
}

/* -------------------------------------------------------------------------
   TABLET + MOBILE
   ------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .progress-growth-story {
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
    gap: 30px;
  }

  .progress-growth-story .mindarc-object {
    max-width: 330px;
  }

  .progress-growth-story .arc-legend {
    grid-template-columns: 1fr;
  }

  .progress-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .progress-summary-grid article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--progress-rule);
  }

  .progress-summary-grid article:nth-child(4) {
    border-top: 1px solid var(--progress-rule);
  }

  .progress-two-col {
    grid-template-columns: 1fr;
  }

  .progress-focus-card {
    padding-right: 0;
  }

  .progress-signal-card {
    padding: 28px 0 34px;
    border-top: 1px solid var(--progress-rule);
    border-left: 0;
  }

  .milestone-v2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .milestone-arc-hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr);
    gap: 28px;
  }

  .milestone-arc-object .mindarc-object {
    max-width: 235px;
  }
}

@media (max-width: 700px) {
  body[data-view="progress"] main {
    width: min(100% - 22px, 1220px);
  }

  .progress-dashboard-v2 {
    padding-top: 26px;
  }

  .achievement-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .achievement-count {
    min-width: 0;
    padding-top: 12px;
    border-top: 1px solid var(--progress-rule);
  }

  .progress-story-heading {
    display: block;
    padding: 4px 0 24px;
  }

  .progress-story-heading h1 {
    max-width: 11ch;
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .progress-story-heading > div:first-child > p {
    font-size: .92rem;
  }

  .progress-mastered-count {
    display: flex;
    align-items: end;
    justify-content: space-between;
    width: 100%;
    margin-top: 24px;
    padding: 18px 0 0;
    border-top: 1px solid var(--progress-rule);
    border-left: 0;
  }

  .progress-mastered-count strong {
    font-size: 2.7rem;
  }

  .progress-mastered-count span {
    margin: 0 0 3px;
  }

  .progress-tabs {
    top: 0;
    margin-bottom: 20px;
  }

  .progress-tabs button {
    min-height: 52px;
    padding: 0 4px;
    font-size: .7rem;
    line-height: 1.15;
  }

  .progress-tabs button::after {
    left: 8px;
    right: 8px;
  }

  .progress-growth-story {
    grid-template-columns: 1fr;
    gap: 4px;
    min-height: 0;
    padding: 12px 0 30px;
  }

  .progress-growth-visual {
    min-height: 285px;
  }

  .progress-growth-story .mindarc-object {
    max-width: 280px;
  }

  .progress-growth-copy {
    max-width: none;
  }

  .progress-growth-copy h2 {
    max-width: 13ch;
    font-size: 2.2rem;
  }

  .progress-growth-story .arc-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
    margin-top: 22px;
    padding-top: 0;
  }

  .progress-growth-story .arc-legend li {
    grid-template-columns: 24px minmax(0, 1fr);
    min-height: 60px;
    align-content: center;
  }

  .progress-growth-story .arc-legend strong {
    grid-column: 2;
    justify-self: start;
  }

  .milestone-arc-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
    padding-top: 26px;
  }

  .milestone-arc-object {
    order: -1;
    min-height: 265px;
  }

  .milestone-arc-object .mindarc-object {
    max-width: 245px;
  }

  .progress-summary-grid article {
    min-height: 132px;
    padding: 22px 16px 22px 0;
  }

  .progress-summary-grid article + article {
    padding-left: 16px;
  }

  .progress-summary-grid strong {
    font-size: 2.05rem;
  }

  .progress-focus-card {
    padding: 30px 0 34px 16px;
  }

  .progress-focus-card::before {
    left: 0;
  }

  .progress-focus-head h2 {
    font-size: 2rem;
  }

  .challenge-progress-list,
  .journey-grid,
  .skill-card-grid,
  .milestone-v2-grid {
    grid-template-columns: 1fr;
  }

  .journey-grid {
    gap: 0;
  }

  .journey-card {
    padding: 24px 2px 30px;
  }

  .journey-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .journey-status {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .journey-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-metrics > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--progress-rule-soft);
  }

  .journey-metrics > div:nth-child(4) {
    border-top: 1px solid var(--progress-rule-soft);
  }

  .milestone-hero {
    align-items: flex-start;
    padding-top: 18px;
  }

  .milestone-hero > strong {
    font-size: 2.8rem;
  }

  .progress-section-heading {
    display: block;
  }

  .progress-section-heading > span {
    display: block;
    max-width: none;
    margin-top: 8px;
    text-align: left;
  }

  .recent-progress-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 17px 2px;
  }

  .recent-progress-row > div:first-child {
    grid-column: 1 / -1;
  }

  .recent-progress-row > div:not(:first-child) {
    text-align: left;
  }

  .progress-fresh-story {
    padding-top: 26px;
  }

  .progress-fresh-story .progress-fresh-heading {
    padding-bottom: 20px;
  }

  .progress-fresh-story .progress-fresh-hero {
    min-height: 0;
    padding: 22px 0 26px;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .progress-summary-grid article {
    padding-right: 12px;
  }

  .progress-summary-grid article + article {
    padding-left: 12px;
  }

  .progress-summary-grid small {
    font-size: .68rem;
  }

  .milestone-hero {
    display: block;
  }

  .milestone-hero > strong {
    display: block;
    margin-top: 18px;
  }
}

@media (max-width: 340px) {
  .progress-growth-story .arc-legend {
    grid-template-columns: 1fr;
  }

  .progress-growth-story .arc-legend li {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-growth-story::before {
    box-shadow: none;
  }
}

/* -------------------------------------------------------------------------
   DE-BOXING PASS: passive information should read as a page, not a grid of
   containers. Keep interaction and achievement tokens distinct; use spacing
   and type for everything else.
   ------------------------------------------------------------------------- */

.progress-story-heading,
.progress-growth-story,
.progress-two-col,
.progress-summary-grid,
.progress-fresh-story .progress-fresh-heading,
.progress-fresh-story .progress-fresh-hero,
.achievement-hero {
  border: 0;
}

.progress-story-heading {
  padding-bottom: 26px;
}

.progress-mastered-count {
  padding-left: 0;
  border: 0 !important;
}

.progress-growth-story {
  padding-bottom: 34px;
}

.progress-growth-story .arc-legend {
  gap: 8px 30px;
  border: 0;
}

.progress-growth-story .arc-legend li {
  min-height: 46px;
  padding: 8px 0;
  border: 0;
}

.progress-summary-grid {
  gap: clamp(22px, 4vw, 58px);
  margin: 2px 0 12px;
}

.progress-summary-grid article,
.progress-summary-grid article + article,
.progress-summary-grid article:nth-child(3),
.progress-summary-grid article:nth-child(4) {
  min-height: 126px;
  padding: 24px 0 !important;
  border: 0 !important;
}

.progress-two-col {
  gap: clamp(34px, 5vw, 72px);
}

.progress-focus-card {
  padding-right: 0;
}

.progress-signal-card {
  padding-left: 0;
  border: 0 !important;
}

.retention-phase2,
.progress-detail-drawer,
.progress-detail-drawer[open] > summary,
.recent-progress-list,
.family-signal-list {
  border: 0 !important;
}

.retention-phase2 {
  gap: 10px;
}

.progress-detail-drawer {
  margin-block: 4px;
}

.progress-detail-drawer > summary {
  min-height: 62px;
}

.recent-progress-list,
.family-signal-list {
  background: transparent;
}

.recent-progress-row,
.family-signal-row {
  padding-inline: 0;
}

.recent-progress-row + .recent-progress-row,
.family-signal-row + .family-signal-row {
  border: 0;
  margin-top: 6px;
}

.journey-grid {
  gap: 30px 52px;
}

.journey-card {
  padding-top: 18px;
  border: 0;
}

.journey-card::after {
  top: 19px;
}

.journey-head {
  padding-top: 0;
}

.journey-metrics {
  gap: 14px;
  border: 0;
}

.journey-metrics > div,
.journey-metrics > div + div,
.journey-metrics > div:nth-child(3),
.journey-metrics > div:nth-child(4) {
  padding: 10px 0;
  border: 0 !important;
}

.skill-card-grid {
  gap: 18px 40px;
}

.progress-skill-card {
  padding: 16px 0;
  border: 0;
}

.achievement-hero {
  padding-bottom: 22px;
}

.achievement-group > summary,
.achievement-detail {
  border: 0;
}

.achievement-group > summary {
  border-bottom: 1px solid var(--progress-rule-soft);
}

.achievement-detail {
  padding-top: 6px;
}

@media (max-width: 900px) {
  .progress-two-col {
    gap: 14px;
  }
  .progress-signal-card {
    padding-top: 20px;
  }
}

@media (max-width: 700px) {
  body[data-view="progress"] {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  body[data-view="progress"] .progress-panel-v2 {
    padding-bottom: 18px;
  }

  .progress-mastered-count,
  .achievement-count,
  .progress-signal-card {
    border: 0 !important;
  }
  .progress-summary-grid {
    gap: 8px 24px;
  }

  .progress-summary-grid article,
  .progress-summary-grid article + article,
  .progress-summary-grid article:nth-child(3),
  .progress-summary-grid article:nth-child(4) {
    min-height: 82px;
    padding: 8px 0 !important;
  }

  .progress-summary-grid strong {
    margin: 5px 0 3px;
    font-size: 1.65rem;
  }

  .progress-summary-grid small {
    line-height: 1.3;
  }
  .progress-growth-story .arc-legend {
    gap: 4px 14px;
  }

  .question-types-drawer .family-signal-row {
    grid-template-columns: 1fr 1fr;
  }

  .question-types-drawer .family-signal-row > div:first-child {
    grid-column: 1 / -1;
  }
}
