/* ScaleLounge portals V2: client Online Presence (Brand Presence PDF pages 3 and 4, the phone on page 9).
 *
 * Every rule is scoped under html.pv-app and every colour is a token, so both themes and every panel read
 * correctly. Contrasting areas take panel classes from pv-tokens.css (.pv-tone-charcoal for the score card and
 * Done for you, .pv-tone-champagne for Your next step); nothing here re-declares a surface or text token. The
 * breakdown bars are the accent meter (champagne ink #7E663A on white, #B79A63 on dark). Layout follows the
 * main column's width (@container pvmain), so the page never scrolls sideways on a phone.
 */

/* ---- The page --------------------------------------------------------------------------------- */
html.pv-app .pv-cpres {
  display: grid;
  gap: var(--pv-gap);
  min-width: 0;
}

html.pv-app .pv-cpres-headaction {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

html.pv-app .pv-cpres-notice {
  align-items: flex-start;
  font-size: var(--pv-fs-support);
  line-height: 1.5;
}

/* ---- The URL row (page 3) ---------------------------------------------------------------------- */
html.pv-app .pv-cpres-url {
  display: grid;
  gap: 8px;
  min-width: 0;
}

html.pv-app .pv-cpres-url__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

html.pv-app .pv-cpres-url__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

html.pv-app .pv-cpres-url__icon {
  position: absolute;
  top: 12px;
  left: 14px;
  display: inline-flex;
  color: var(--pv-text-meta);
  pointer-events: none;
}

html.pv-app .pv-cpres-url__input {
  padding-left: 42px;
}

html.pv-app .pv-cpres-url__go {
  flex: none;
  min-height: 44px;
}

html.pv-app .pv-cpres-url__note {
  color: var(--pv-text-secondary);
  font-size: var(--pv-fs-meta);
}

html.pv-app .pv-cpres-url__note:empty {
  display: none;
}

/* ---- Rows of two ------------------------------------------------------------------------------- */
html.pv-app .pv-cpres-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  align-items: stretch;
  gap: var(--pv-gap);
  min-width: 0;
}

html.pv-app .pv-cpres-row--bottom {
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
}

/* ---- The score card (charcoal in both themes and on phones) ------------------------------------ */
html.pv-app .pv-cpres-score {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 224px;
  padding: 26px 28px;
  border-radius: var(--pv-radius-card);
}

/* On the dark page a charcoal card would meet the page with no edge: its own divider draws one. */
html.pv-app[data-pv-theme="dark"] .pv-cpres-score,
html.pv-app[data-pv-theme="dark"] .pv-cpres-done {
  border-color: var(--pv-divider);
}

html.pv-app .pv-cpres-score__eyebrow {
  font-size: 12px;
}

html.pv-app .pv-cpres-score__eyebrow:focus {
  outline: none;
}

html.pv-app .pv-cpres-score__eyebrow:focus-visible {
  outline: 2px solid var(--pv-focus-ring);
  outline-offset: 4px;
}

html.pv-app .pv-cpres-score__figure {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  color: var(--pv-text);
}

html.pv-app .pv-cpres-score__value {
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

html.pv-app .pv-cpres-score__of {
  color: var(--pv-text-secondary);
  font-size: 22px;
}

html.pv-app .pv-cpres-score__figure--none {
  font-family: var(--pv-font-heading);
  font-size: 28px;
  font-weight: 600;
}

html.pv-app .pv-cpres-score__words {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}

html.pv-app .pv-cpres-score__band {
  color: var(--pv-text);
  font-family: var(--pv-font-heading);
  font-size: 18px;
  font-weight: 600;
}

html.pv-app .pv-cpres-score__sentence,
html.pv-app .pv-cpres-score__opps {
  color: var(--pv-text-secondary);
  font-size: var(--pv-fs-meta);
  line-height: 1.5;
}

/* ---- The breakdown (label left, x/100 right, the accent meter below) ---------------------------- */
html.pv-app .pv-cpres-breakdown .pv-card__head {
  margin-bottom: 12px;
}

html.pv-app .pv-cpres-breakdown .pv-card__title {
  font-size: 17px;
}

html.pv-app .pv-cpres-bars {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

html.pv-app .pv-cpres-bar {
  display: grid;
  gap: 7px;
  min-width: 0;
}

html.pv-app .pv-cpres-bar__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--pv-fs-meta);
}

html.pv-app .pv-cpres-bar__label {
  min-width: 0;
  color: var(--pv-text);
}

html.pv-app .pv-cpres-bar__value {
  flex: none;
  color: var(--pv-text);
  font-weight: 600;
}

html.pv-app .pv-cpres-bar.is-empty .pv-cpres-bar__value {
  color: var(--pv-text-meta);
  font-weight: 500;
}

html.pv-app .pv-cpres-bar__meter {
  height: 6px;
}

html.pv-app .pv-cpres-bar__track {
  display: block;
  height: 6px;
  border-radius: 999px;
}

html.pv-app .pv-cpres-bar__track.is-empty {
  background: repeating-linear-gradient(135deg, var(--pv-surface-muted) 0 6px, transparent 6px 12px);
  box-shadow: inset 0 0 0 1px var(--pv-border-subtle);
}

html.pv-app .pv-cpres-bars__more {
  justify-content: flex-start;
  margin-top: 6px;
}

/* ---- Profiles we found (page 3) ---------------------------------------------------------------- */
html.pv-app .pv-cpres-profilescard .pv-card__title {
  font-size: 17px;
}

html.pv-app .pv-cpres-profiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

html.pv-app .pv-cpres-prof {
  min-width: 0;
}

html.pv-app .pv-cpres-prof__card {
  display: grid;
  align-content: start;
  gap: 4px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--pv-border);
  border-radius: 12px;
  background: var(--pv-surface);
}

html.pv-app .pv-cpres-prof__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

html.pv-app .pv-cpres-prof__mark {
  min-width: 28px;
  height: 28px;
  border: 1px solid var(--pv-border);
  background: var(--pv-surface);
}

html.pv-app .pv-cpres-prof__head .pv-pill {
  padding: 3px 8px;
  font-size: 12px;
}

html.pv-app .pv-cpres-prof__name {
  font-size: 15px;
  line-height: 1.3;
}

html.pv-app .pv-cpres-prof__detail {
  color: var(--pv-text-meta);
  font-size: 13px;
  overflow-wrap: anywhere;
}

html.pv-app .pv-cpres-prof__evidence {
  margin-top: 10px;
  border-top: 1px solid var(--pv-border-subtle);
}

html.pv-app .pv-cpres-prof__summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--pv-text);
  font-size: var(--pv-fs-meta);
  font-weight: 600;
  cursor: pointer;
}

html.pv-app .pv-cpres-prof__evbody {
  display: grid;
  gap: 10px;
  padding-bottom: 6px;
}

html.pv-app .pv-cpres-profiles__aside {
  font-size: 13px;
}

html.pv-app .pv-cpres-profiles__note {
  margin-top: 14px;
  font-size: 13px;
}

html.pv-app .pv-cpres-profiles__more {
  margin-top: 6px;
}

/* ---- Your next step (the champagne panel) ------------------------------------------------------ */
html.pv-app .pv-cpres-next {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-color: var(--pv-border);
  box-shadow: none;
}

html.pv-app .pv-cpres-next__eyebrow {
  font-size: 12px;
}

html.pv-app .pv-cpres-next__title {
  color: var(--pv-text);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

html.pv-app .pv-cpres-next__body {
  font-size: var(--pv-fs-meta);
  line-height: 1.5;
}

html.pv-app .pv-cpres-next__action {
  margin-top: 6px;
}

/* ---- Top opportunity (phones, page 9) ---------------------------------------------------------- */
html.pv-app .pv-cpres-top {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

html.pv-app .pv-cpres-top__title {
  font-size: 17px;
}

html.pv-app .pv-cpres-top__what {
  color: var(--pv-text-secondary);
}

html.pv-app .pv-cpres-top__action {
  margin-top: 8px;
}

/* ---- First run, running, failed ---------------------------------------------------------------- */
html.pv-app .pv-cpres-first {
  display: grid;
  justify-items: start;
  gap: 10px;
}

html.pv-app .pv-cpres-first__body {
  max-width: 62ch;
}

html.pv-app .pv-cpres-ticks {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--pv-text-secondary);
  font-size: var(--pv-fs-meta);
}

html.pv-app .pv-cpres-ticks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

html.pv-app .pv-cpres-ticks .pv-icon {
  flex: none;
  color: var(--pv-accent-text);
}

html.pv-app .pv-cpres-run {
  display: grid;
  gap: 10px;
}

html.pv-app .pv-cpres-run__title:focus {
  outline: none;
}

html.pv-app .pv-cpres-run__title:focus-visible {
  outline: 2px solid var(--pv-focus-ring);
  outline-offset: 4px;
}

html.pv-app .pv-cpres-run__site {
  overflow-wrap: anywhere;
}

html.pv-app .pv-cpres-run__status {
  color: var(--pv-text);
  font-weight: 600;
}

html.pv-app .pv-cpres-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

html.pv-app .pv-cpres-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 10px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--pv-border);
  border-radius: 10px;
  background: var(--pv-surface);
}

html.pv-app .pv-cpres-stage.is-current {
  border-color: var(--pv-control-border);
  background: var(--pv-surface-muted);
}

html.pv-app .pv-cpres-stage__mark {
  display: inline-grid;
  grid-row: span 2;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--pv-control-border);
  border-radius: 999px;
  color: var(--pv-text);
}

html.pv-app .pv-cpres-stage.is-done .pv-cpres-stage__mark {
  border-color: var(--pv-ring-value);
  background: var(--pv-ring-value);
  color: var(--pv-surface);
}

html.pv-app .pv-cpres-stage.is-current .pv-cpres-stage__mark {
  border-color: var(--pv-ring-value);
  box-shadow: inset 0 0 0 4px var(--pv-surface-muted);
  background: var(--pv-ring-value);
}

html.pv-app .pv-cpres-stage__label {
  min-width: 0;
  color: var(--pv-text);
  font-size: var(--pv-fs-meta);
  font-weight: 600;
}

html.pv-app .pv-cpres-stage__state {
  color: var(--pv-text-meta);
  font-size: 13px;
}

@media (prefers-reduced-motion: no-preference) {
  html.pv-app .pv-cpres-stage.is-current .pv-cpres-stage__mark {
    animation: pv-cpres-pulse 1.6s ease-in-out infinite;
  }
}

@keyframes pv-cpres-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

html.pv-app .pv-cpres-failed {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 18px;
}

html.pv-app .pv-cpres-failed__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--pv-status-attention-bg);
  color: var(--pv-status-attention-text);
}

html.pv-app .pv-cpres-failed__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

html.pv-app .pv-cpres-failed__when {
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* ---- Previous scans ---------------------------------------------------------------------------- */
html.pv-app .pv-cpres-history .pv-card__title {
  font-size: 17px;
}

html.pv-app .pv-cpres-history__latest {
  font-size: 13px;
}

/* ---- The improvement plan (page 4) ------------------------------------------------------------- */
html.pv-app .pv-cpres-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  align-items: start;
  gap: var(--pv-gap);
  min-width: 0;
}

html.pv-app .pv-cpres-plan__main,
html.pv-app .pv-cpres-plan__side {
  display: grid;
  gap: var(--pv-gap);
  min-width: 0;
}

html.pv-app .pv-cpres-rank {
  overflow: hidden;
  padding: 0;
}

html.pv-app .pv-cpres-rank .pv-table-wrap {
  margin: 0;
}

html.pv-app .pv-cpres-rank__table thead th {
  padding: 14px 16px;
  background: var(--pv-surface-muted);
  color: var(--pv-text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

html.pv-app .pv-cpres-rank__table td {
  padding: 14px 16px;
  border-top: 1px solid var(--pv-border-subtle);
  vertical-align: middle;
}

html.pv-app .pv-cpres-rank__table tr.is-selected td {
  background: var(--pv-surface-hover);
}

html.pv-app .pv-cpres-rank__rank {
  width: 72px;
}

html.pv-app .pv-cpres-rank__num {
  color: var(--pv-text-secondary);
  font-size: var(--pv-fs-meta);
}

html.pv-app .pv-cpres-rank__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

html.pv-app .pv-cpres-rank__title {
  color: var(--pv-text);
  font-size: var(--pv-fs-meta);
}

html.pv-app .pv-cpres-rank__detail {
  color: var(--pv-text-meta);
  font-size: 13px;
}

html.pv-app .pv-cpres-rank__priority,
html.pv-app .pv-cpres-rank__evidence {
  width: 1%;
  white-space: nowrap;
}

html.pv-app .pv-cpres-rank__more {
  padding: 14px 16px;
  border-top: 1px solid var(--pv-border-subtle);
}

html.pv-app .pv-cpres-plan__note {
  align-items: flex-start;
  padding: 14px 16px;
  color: var(--pv-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

/* Not checked in this scan: under the ranked table, never ranked, no priority pill. */
html.pv-app .pv-cpres-notchecked {
  display: grid;
  gap: 10px;
}

html.pv-app .pv-cpres-notchecked__title {
  color: var(--pv-text);
  font-size: 17px;
  line-height: 1.3;
}

html.pv-app .pv-cpres-notchecked__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

html.pv-app .pv-cpres-notchecked__item {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--pv-border-subtle);
  min-width: 0;
  overflow-wrap: anywhere;
}

html.pv-app .pv-cpres-notchecked__name {
  color: var(--pv-text);
  font-size: var(--pv-fs-meta);
}

html.pv-app .pv-cpres-notchecked__detail {
  color: var(--pv-text-meta);
  font-size: 13px;
}

html.pv-app .pv-cpres-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--pv-gap);
}

html.pv-app .pv-cpres-self,
html.pv-app .pv-cpres-done {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html.pv-app .pv-cpres-self {
  background: var(--pv-surface-muted);
  box-shadow: none;
}

html.pv-app .pv-cpres-self .pv-btn--secondary {
  background: var(--pv-surface);
}

html.pv-app .pv-cpres-path__title {
  color: var(--pv-text);
  font-size: 17px;
  line-height: 1.3;
}

html.pv-app .pv-cpres-path__body {
  font-size: var(--pv-fs-meta);
  line-height: 1.5;
}

html.pv-app .pv-cpres-path__action,
html.pv-app .pv-cpres-done__action {
  margin-top: auto;
  padding-top: 10px;
}

html.pv-app .pv-cpres-done__said {
  color: var(--pv-text);
  font-weight: 600;
}

html.pv-app .pv-cpres-done__said:focus {
  outline: none;
}

/* Brand Presence Phase 8: where the setup stands, above the button that opens the panel (waiting for the payment, payment
   confirmed, Brand Setup open). */
html.pv-app .pv-cpres-done__sentence {
  margin: 0 0 10px;
  color: var(--pv-text);
  font-weight: 600;
  line-height: 1.5;
  text-wrap: balance;
}

html.pv-app .pv-cpres-done__err {
  margin-top: 8px;
  color: var(--pv-invalid);
  font-size: var(--pv-fs-meta);
}

html.pv-app .pv-cpres-done__err:empty {
  display: none;
}

/* ---- Your visibility ---------------------------------------------------------------------------- */
html.pv-app .pv-cpres-vis {
  display: grid;
  gap: 10px;
}

html.pv-app .pv-cpres-vis__eyebrow {
  font-size: 12px;
}

html.pv-app .pv-cpres-vis__figure {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--pv-text);
}

html.pv-app .pv-cpres-vis__value {
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

html.pv-app .pv-cpres-vis__of {
  color: var(--pv-text-secondary);
  font-size: 20px;
}

html.pv-app .pv-cpres-vis__figure--none {
  font-family: var(--pv-font-heading);
  font-size: 22px;
  font-weight: 600;
}

html.pv-app .pv-cpres-vis__sentence {
  font-size: var(--pv-fs-meta);
  line-height: 1.5;
}

html.pv-app .pv-cpres-vis__part {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-top: 1px solid var(--pv-border-subtle);
  border-bottom: 1px solid var(--pv-border-subtle);
}

html.pv-app .pv-cpres-vis__h {
  font-size: 15px;
}

html.pv-app .pv-cpres-vis__note {
  font-size: 13px;
  line-height: 1.5;
}

/* ---- Evidence (beside the plan when wide, a sheet on a phone) ------------------------------------ */
html.pv-app .pv-cpres-evd {
  display: grid;
  gap: 12px;
}

html.pv-app .pv-cpres-evd__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

html.pv-app .pv-cpres-evd__heading {
  font-size: 17px;
}

html.pv-app .pv-cpres-ev__inner {
  display: grid;
  gap: 10px;
  min-width: 0;
}

html.pv-app .pv-cpres-ev__title {
  font-size: 16px;
}

html.pv-app .pv-cpres-ev__title:focus {
  outline: none;
}

html.pv-app .pv-cpres-ev__title:focus-visible {
  outline: 2px solid var(--pv-focus-ring);
  outline-offset: 4px;
}

html.pv-app .pv-cpres-ev__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

html.pv-app .pv-cpres-ev__detail {
  font-size: var(--pv-fs-meta);
}

html.pv-app .pv-cpres-dl .pv-dl__row {
  padding: 8px 0;
  border-bottom: 1px solid var(--pv-border-subtle);
  font-size: var(--pv-fs-meta);
}

html.pv-app .pv-cpres-ev__h {
  margin-top: 4px;
  font-size: var(--pv-fs-meta);
}

html.pv-app .pv-cpres-ev__items {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

html.pv-app .pv-cpres-ev__item {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: var(--pv-fs-meta);
}

html.pv-app .pv-cpres-ev__label {
  color: var(--pv-text-meta);
  font-size: 13px;
}

html.pv-app .pv-cpres-ev__value,
html.pv-app .pv-cpres-ev__link {
  overflow-wrap: anywhere;
}

/* ---- Your checklist ------------------------------------------------------------------------------ */
html.pv-app .pv-cpres-checklist {
  display: grid;
  gap: 14px;
}

html.pv-app .pv-cpres-checklist__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

html.pv-app .pv-cpres-checklist__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  font-size: var(--pv-fs-meta);
  line-height: 1.5;
}

html.pv-app .pv-cpres-checklist__item .pv-icon {
  margin-top: 2px;
  color: var(--pv-accent-text);
}

/* ---- Discovered profiles ------------------------------------------------------------------------- */
html.pv-app .pv-cpres-found__note {
  align-items: flex-start;
  font-size: var(--pv-fs-meta);
}

html.pv-app .pv-cpres-printframe {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* ---- Narrower columns ----------------------------------------------------------------------------- */
@container pvmain (max-width: 860px) {
  html.pv-app .pv-cpres-plan {
    grid-template-columns: minmax(0, 1fr);
  }
  html.pv-app .pv-cpres-plan__side {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@container pvmain (max-width: 999px) {
  html.pv-app .pv-cpres-plan__side > .pv-cpres-evd {
    display: none;
  }
}

@container pvmain (max-width: 900px) {
  html.pv-app .pv-cpres-row,
  html.pv-app .pv-cpres-row--bottom {
    grid-template-columns: minmax(0, 1fr);
  }
  html.pv-app .pv-cpres-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container pvmain (max-width: 720px) {
  html.pv-app .pv-cpres-paths {
    grid-template-columns: minmax(0, 1fr);
  }
  html.pv-app .pv-cpres-profiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html.pv-app .pv-cpres-failed {
    grid-template-columns: auto minmax(0, 1fr);
  }
  html.pv-app .pv-cpres-failed__action {
    grid-column: 1 / -1;
  }
}

/* The ranked table stacks with its labels (pv-components.css); here each stacked row keeps the rank first and
   the evidence button full width. */
@container pvmain (max-width: 640px) {
  html.pv-app .pv-cpres-rank__table td {
    padding: 6px 16px;
    border-top: 0;
  }
  html.pv-app .pv-cpres-rank__table tr {
    padding: 12px 0;
  }
  html.pv-app .pv-cpres-rank__rank,
  html.pv-app .pv-cpres-rank__priority,
  html.pv-app .pv-cpres-rank__evidence {
    width: auto;
    white-space: normal;
  }
  html.pv-app .pv-cpres-rank__table td.pv-cpres-rank__what {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  html.pv-app .pv-cpres-rank__text {
    justify-items: start;
    text-align: left;
  }
}

/* ---- Phones (page 9) -------------------------------------------------------------------------- */
@media (max-width: 599px) {
  html.pv-app .pv-cpres-url__row {
    flex-direction: column;
    align-items: stretch;
  }
  html.pv-app .pv-cpres-url__go {
    width: 100%;
  }
  /* Under a finished scan the URL row folds away until "Run a new scan" opens it. */
  html.pv-app .pv-cpres-url--collapsible:not(.is-open) {
    display: none;
  }
  html.pv-app .pv-cpres-score {
    min-height: 0;
    padding: 20px 22px;
  }
  html.pv-app .pv-cpres-score__value {
    font-size: 56px;
  }
  html.pv-app .pv-cpres-breakdown {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  html.pv-app .pv-cpres-breakdown .pv-card__head {
    display: none;
  }
  html.pv-app .pv-cpres-bar--more {
    display: none;
  }
  html.pv-app .pv-cpres-bars.is-expanded .pv-cpres-bar--more {
    display: grid;
  }
  html.pv-app .pv-cpres-profiles {
    grid-template-columns: minmax(0, 1fr);
  }
  html.pv-app .pv-cpres-stages {
    grid-template-columns: minmax(0, 1fr);
  }
  html.pv-app .pv-cpres-plan__side {
    grid-template-columns: minmax(0, 1fr);
  }
  html.pv-app .pv-cpres-rank__open {
    width: 100%;
  }
}
