.pp-card-progress{display:block;font-size:clamp(10px,1.25vw,12px);font-weight:800;line-height:1.25;color:#535d70}
.pp-card-progress[data-status="1"]{color:#17603a}
.pp-card-progress[data-status="2"]{color:#5932a6}
.pp-show-card-progress #tiles .pp-current-copy>small:not(.pp-card-progress){display:none}
#tiles .pp-current-copy .pp-card-progress{text-transform:none;letter-spacing:normal}
#my-toy-bag{scroll-margin-top:12rem}
.pp-quiz-next-dock{position:fixed;z-index:80;inset:auto 0 0;padding:8px 16px max(10px,env(safe-area-inset-bottom));background:#fffefb;border-top:1px solid #d9c9ef;box-shadow:0 -4px 18px #42216418;text-align:center}
.pp-quiz-next-dock[hidden]{display:none!important}
.pp-quiz-next-dock button{display:block;width:min(100%,640px);margin:0 auto;min-height:44px}
.pp-quiz-next-dock :is(#feedback,#qfeedback){margin:0 auto 6px;line-height:1.35}
.pp-quiz-next-docked{padding-bottom:calc(105px + env(safe-area-inset-bottom))!important}
.pp-card-progress[data-status="1"]{color:#17603a!important}
.pp-card-progress[data-status="2"]{color:#5932a6!important}

/* Preserve the progress badge when compact cards hide their descriptions. */
html body.pp-current-design.pp-show-card-progress .pp-extra-card .pp-card-progress {
  display: block !important;
  font-size: clamp(10px, 1.25vw, 12px) !important;
  font-weight: 800 !important;
  color: #535d70 !important;
}

html body.pp-current-design.pp-show-card-progress .pp-extra-card .pp-card-progress[data-status="1"] {
  color: #17603a !important;
}

html body.pp-current-design.pp-show-card-progress .pp-extra-card .pp-card-progress[data-status="2"] {
  color: #5932a6 !important;
}

/* Keep child progress visible when the compact mobile grid hides category text. */
html body.pp-show-card-progress #tiles .pp-current-copy small.pp-card-progress {
  display: block !important;
}

/* Keep the fallback menu out of the header grid as well as the enhanced menu. */
#pp-family-nav > #pp-parent-menu-panel {
  position: absolute;
  grid-area: auto;
  inset: 100% 10px auto auto;
  width: min(300px, calc(100% - 20px));
  z-index: 5;
}

#pp-family-nav:has(> details[open]) #pp-family-identity,
#pp-family-nav:has(> details[open]) #pp-mode-switch {
  grid-row: 2;
}

@media (min-width: 1024px) {
  html body.pp-current-design #pp-family-nav {
    grid-template-columns: auto auto minmax(0, 1fr) 90px auto auto !important;
    column-gap: clamp(8px, 1.2vw, 18px) !important;
  }

  #pp-family-nav > :is(.pp-home-button, #pp-brand-mark, #pp-family-identity, #pp-mode-switch, #pp-language-switch),
  #pp-family-nav > details > summary,
  #pp-family-nav:has(> details[open]) :is(#pp-family-identity, #pp-mode-switch) {
    grid-row: 1 !important;
    white-space: nowrap;
  }

  #pp-family-nav #pp-family-identity {
    grid-column: 3 !important;
    flex-wrap: nowrap !important;
    overflow: hidden;
  }

  #pp-family-nav #pp-active-child {
    overflow: hidden;
  }

  #pp-family-nav #pp-active-child > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pp-child-mode #pp-family-nav > .pp-desktop-links {
    display: none;
  }

  #pp-family-nav > .pp-desktop-links {
    gap: clamp(8px, 1.2vw, 18px);
  }

  #pp-family-nav > .pp-desktop-links > a {
    white-space: nowrap;
  }

  #pp-family-nav #pp-language-switch { grid-column: 4 !important; }
  #pp-family-nav #pp-mode-switch { grid-column: 5 !important; }
  #pp-family-nav > details > summary { grid-column: 6 !important; }
}

.pp-quiz-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  vertical-align: middle;
}

.pp-quiz-actions > button {
  margin: 0 !important;
  min-height: 44px;
  max-width: 100%;
}

#pp-round-options #lengths button[data-pp-round-progress]:not([data-pp-round-progress=""])::after {
  content: attr(data-pp-round-progress);
  display: block;
  margin-top: 5px;
  font-size: .82em;
  font-weight: 700;
}
.pp-round-info { font-size: .9rem; margin-block: 6px; }
@media (min-width: 1000px) {
  #setup:has(> #pp-round-options) > .pp-round-actions {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    min-width: 0;
  }
  .pp-round-actions > #start { margin: 0; }
}

button[data-pp-quiz-duplicate-guide] { display: none !important; }
