/* Run-through v3 (run.js): the deep check, its summary card and the three group views. Colours from the charte (ps-tokens.css) written
   as literals, like audit.css, so a theme swap can't make text dark-on-dark. Light by default; dark with html[data-theme="dark"]
   or on a dark panel (data-run-dark -> .ps-dark). Buttons are the site's one button (.nbtn, nbtn.css). Labels take chess-review
   colours: green (strong / good), amber (worth a look), orange (mistake), red (costly). */
.ps-run, .ps-grp {
  --pr-fg: #353536; --pr-muted: #5E5F61; --pr-faint: #737478; --pr-line: rgba(53,53,54,.14); --pr-card: #FBFCFC; --pr-field: #FBFCFC;
  --pr-accent: #5B3563; --pr-wash: #F3F4F5; --pr-bar: #E9EAEC;
  --pr-strong: #1F7A50; --pr-good: #2F7D6B; --pr-look: #8A5A00; --pr-mistake: #B4530F; --pr-costly: #A3264F;
  --pr-good-bg: #E3F3EB; --pr-look-bg: #FBF0DC; --pr-mistake-bg: #FCE8DA; --pr-costly-bg: #F9E1E9;
  color: var(--pr-fg); font: 400 16px/1.55 var(--font-text, "Inter", sans-serif);
}
html[data-theme="dark"] .ps-run, html[data-theme="dark"] .ps-grp, .ps-run.ps-dark, .ps-grp.ps-dark {
  --pr-fg: #F3F4F5; --pr-muted: #CCCDCF; --pr-faint: #9C9DA0; --pr-line: rgba(251,252,252,.14); --pr-card: #2C2C2D; --pr-field: rgba(251,252,252,.06);
  --pr-accent: #E9E1EA; --pr-wash: #353536; --pr-bar: rgba(251,252,252,.1);
  --pr-strong: #A8E6C8; --pr-good: #9AD9C9; --pr-look: #FFD49A; --pr-mistake: #FFB98A; --pr-costly: #FFB0C8;
  --pr-good-bg: rgba(168,230,200,.12); --pr-look-bg: rgba(255,212,154,.12); --pr-mistake-bg: rgba(255,185,138,.12); --pr-costly-bg: rgba(255,176,200,.12);
}
.ps-run { position: relative; max-width: 720px; }
.ps-run__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ps-run__eyebrow { display: block; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--pr-faint); }
.ps-run__intro { margin: 8px 0 16px; color: var(--pr-muted); max-width: 56ch; }
.ps-run__form { display: flex; gap: 12px; align-items: center; }
.ps-run__input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 22px; border: 1px solid var(--pr-line); border-radius: 999px; background: var(--pr-field);
  color: var(--pr-fg); font: 500 16px/1 var(--font-text, "Inter", sans-serif); }
.ps-run__input::placeholder { color: var(--pr-faint); opacity: 1; }
.ps-run__input:focus { outline: 2px solid var(--pr-accent); outline-offset: 3px; }
.ps-run__go:disabled { opacity: .55; cursor: progress; }
.ps-run__ts { margin-top: 12px; }
.ps-run__ts:empty { display: none; }
.ps-run__human { margin: 14px 0 0; font-size: 14px; color: var(--pr-muted); }
.ps-run__human[hidden], .ps-run__alert[hidden] { display: none; }

/* the button while a check runs: its own label (nbtn.js) gives way to a spinner + "Checking…" */
.ps-run__go.is-busy, .ps-run__go.is-busy:disabled { opacity: 1; cursor: progress; }
.ps-run__go.is-busy > :not(.ps-run__busy) { visibility: hidden; }
.ps-run__busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; }
.ps-run__spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: ps-run-spin .8s linear infinite; }
@keyframes ps-run-spin { to { transform: rotate(360deg); } }

/* problems: right under the button, never below the fold. Red only for real errors; "not switched on yet" and the daily limit
   are calm notices with a way forward (Book a call). */
.ps-run__alert { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding: 16px 18px; border-radius: 18px;
  background: var(--pr-card); border: 1px solid var(--pr-line); animation: ps-run-in .35s cubic-bezier(.2,.7,.1,1) both; }
.ps-run__alert.is-error { border-color: color-mix(in srgb, var(--pr-costly) 45%, transparent); background: var(--pr-costly-bg); }
.ps-run__alert.is-limit { background: var(--pr-look-bg); border-color: color-mix(in srgb, var(--pr-look) 35%, transparent); }
.ps-run__amark { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font: 800 16px/1 var(--font-display, "Big Shoulders Display", sans-serif); color: var(--pr-card); background: var(--pr-accent); }
.ps-run__alert.is-error .ps-run__amark { background: var(--pr-costly); }
.ps-run__alert.is-off .ps-run__amark, .ps-run__alert.is-limit .ps-run__amark { background: transparent; font-size: 0; }
.ps-run__alert.is-off .ps-run__amark::before, .ps-run__alert.is-limit .ps-run__amark::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--pr-look); box-shadow: 0 0 0 5px var(--pr-look-bg); }
.ps-run__alert.is-limit .ps-run__amark::before { box-shadow: 0 0 0 5px rgba(255,255,255,.5); }
.ps-run__abody { min-width: 0; flex: 1 1 auto; }
.ps-run__atitle { margin: 2px 0 4px; font: 800 22px/1.05 var(--font-display, "Big Shoulders Display", sans-serif); text-transform: uppercase; letter-spacing: .01em; }
.ps-run__amsg { margin: 3px 0 0; color: var(--pr-fg); overflow-wrap: anywhere; }
.ps-run__alert.is-error .ps-run__amsg { color: var(--pr-costly); font-weight: 500; }
.ps-run__abook { margin-top: 14px; }
.ps-run__privacy { margin: 16px 0 0; font-size: 12.5px; color: var(--pr-faint); max-width: 60ch; }
html[data-theme="dark"] .ps-run .nbtn, .ps-dark .nbtn { --nb-bg: #353536; --nb-sh: rgba(26,15,30,.75); --nb-hi: #49494B; --nb-deep: rgba(26,15,30,1); --nb-fg: #E9E1EA; }
html[data-theme="dark"] .ps-run .nbtn:focus-visible, .ps-dark .nbtn:focus-visible { outline-color: #E9E1EA; }

/* progress */
.ps-run__status:empty { display: none; }
.ps-run__status { margin-top: 24px; }
.ps-run__progrow { display: flex; gap: 18px; align-items: center; }
.ps-run__prog { flex: 1 1 auto; min-width: 0; }
.ps-run__step { margin: 0 0 10px; color: var(--pr-fg); font-weight: 500; overflow-wrap: anywhere; }
.ps-run__bar { height: 4px; border-radius: 4px; background: var(--pr-bar); overflow: hidden; }
.ps-run__bar i { display: block; height: 100%; width: 4%; border-radius: 4px; background: linear-gradient(90deg, #ff7ab6, #ffb36b, #e9f07a, #6fe3b4, #6aa8ff, #b07cff);
  transition: width .8s cubic-bezier(.2,.7,.1,1); }
.ps-run__meta { margin: 8px 0 0; font-size: 13px; color: var(--pr-faint); font-variant-numeric: tabular-nums; }

/* summary card */
.ps-run__out:focus { outline: none; }
.ps-run__out:empty { display: none; }
.ps-run__error { margin: 24px 0 0; padding: 14px 20px; border-radius: 14px; background: var(--pr-card); border: 1px solid var(--pr-line); }
.ps-run__card { margin-top: 24px; padding: clamp(20px, 3.4vw, 36px); border-radius: 22px; background: var(--pr-card); border: 1px solid var(--pr-line);
  animation: ps-run-in .5s cubic-bezier(.2,.7,.1,1) both; }
@keyframes ps-run-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ps-run__checked { margin: 0 0 18px; font-size: 13px; color: var(--pr-faint); overflow-wrap: anywhere; }
.ps-run__top { display: flex; gap: clamp(18px, 4vw, 32px); align-items: center; }
.ps-run__ring { position: relative; flex: 0 0 auto; width: clamp(118px, 28vw, 150px); aspect-ratio: 1; }
.ps-run__ring svg { width: 100%; height: 100%; display: block; }
.ps-run__ringbg { fill: none; stroke: var(--pr-bar); stroke-width: 9; }
.ps-run__ringfg { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(.2,.7,.1,1); }
.ps-run__ringnum { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ps-run__ringnum b { font: 800 clamp(44px, 9vw, 58px)/.9 var(--font-display, "Big Shoulders Display", sans-serif); font-variant-numeric: tabular-nums; }
.ps-run__ringnum span { font-size: 12px; color: var(--pr-faint); }
.ps-run__side { min-width: 0; }
.ps-run__band { margin: 0; font: 800 clamp(24px, 3vw, 32px)/1 var(--font-display, "Big Shoulders Display", sans-serif); text-transform: uppercase; letter-spacing: .01em; }
.ps-run__counts { margin: 8px 0 0; font-size: 14px; color: var(--pr-muted); }
.ps-run__areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 24px; margin: 26px 0 0; padding: 0; list-style: none; }
.ps-run__area { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 10px; font-size: 14px; color: var(--pr-muted); }
.ps-run__anum { font: 800 20px/1 var(--font-display, "Big Shoulders Display", sans-serif); color: var(--pr-fg); font-variant-numeric: tabular-nums; }
.ps-run__area.is-unknown .ps-run__anum { font: 500 12px/1 var(--font-text, "Inter", sans-serif); color: var(--pr-faint); }
.ps-run__abar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--pr-bar); overflow: hidden; }
.ps-run__abar i { display: block; height: 100%; border-radius: 4px; background: var(--pr-strong); }
.ps-run__area.is-look .ps-run__abar i { background: var(--pr-look); }
.ps-run__area.is-fix .ps-run__abar i { background: var(--pr-costly); }

.ps-run__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.ps-run__how { flex: 1 1 260px; font-size: 14px; color: var(--pr-muted); }
.ps-run__how summary { cursor: pointer; color: var(--pr-fg); font-weight: 500; width: max-content; max-width: 100%; }
.ps-run__how summary:focus-visible { outline: 2px solid var(--pr-accent); outline-offset: 3px; border-radius: 3px; }
.ps-run__how p { margin: 8px 0 0; }
.ps-run__sub { margin: 24px 0 8px; font-weight: 600; }
.ps-run__google { margin-top: 8px; }
.ps-run__gs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--pr-muted); }
.ps-run__gs .ps-run__gdev { min-width: 70px; color: var(--pr-faint); }
.ps-run__gs b { margin-right: 5px; font: 800 18px/1 var(--font-display, "Big Shoulders Display", sans-serif); font-variant-numeric: tabular-nums; }
.ps-run__gs .is-good b { color: var(--pr-strong); } .ps-run__gs .is-ok b { color: var(--pr-look); } .ps-run__gs .is-poor b { color: var(--pr-costly); }
.ps-run__notes { margin: 0; padding: 0 0 0 18px; font-size: 14px; color: var(--pr-muted); }
.ps-run__note { margin: 16px 0 0; padding-left: 14px; border-left: 2px solid var(--pr-line); font-size: 14px; color: var(--pr-faint); }
.ps-run__again { margin-top: 20px; padding: 0 0 2px; border: 0; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; color: var(--pr-muted);
  font: 500 14px/1.2 var(--font-text, "Inter", sans-serif); cursor: pointer; }
.ps-run__again:focus-visible { outline: 2px solid var(--pr-accent); outline-offset: 3px; }

/* the home page's panel (embed): results right under the panel's form, short; the review opens from the panel */
.ps-run.ps-run__embed { max-width: 600px; margin-top: 4px; }
.ps-run__embed .ps-run__status { margin-top: 18px; }
.ps-run__embed .ps-run__step { color: #F3F4F5; }
.ps-run__mini { margin-top: 20px; padding: 18px 20px 20px; border-radius: 22px; background: rgba(251,252,252,.06); border: 1px solid rgba(251,252,252,.14);
  animation: ps-run-in .5s cubic-bezier(.2,.7,.1,1) both; }
.ps-run__minitop { display: flex; gap: 20px; align-items: center; }
.ps-run__mini .ps-run__ring { width: 96px; }
.ps-run__mini .ps-run__ringnum b { font-size: 38px; }
.ps-run__mini .ps-run__checked { margin: 0 0 6px; }
.ps-run__mini .ps-run__band { font-size: 24px; }
.ps-run__mini .ps-run__lang { margin: 12px 0 0; font-size: 12.5px; color: var(--pr-faint); }
@media (max-width: 420px) {
  .ps-run__mini { padding: 16px 12px 14px; }
  .ps-run__minitop { gap: 12px; }
  .ps-run__mini .ps-run__ring { width: 76px; }
  .ps-run__mini .ps-run__ringnum b { font-size: 30px; }
  .ps-run__mini .ps-run__ringnum span { font-size: 10px; }
  .ps-run__mini .ps-run__band { font-size: 21px; }
}

/* the three result buttons (2026-11-16): one per group, each opens its own view (.ps-grp). Group colours = the chess-review
   colours above: orange (mistakes, costly ones tagged red inside), amber (worth a look), green (good). */
.ps-run__groups { margin-top: 20px; }
.ps-run__ghint { margin: 0 0 10px; font-size: 13px; color: var(--pr-faint); }
.ps-run__grow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ps-run__grp { --gc: var(--pr-mistake); --gbg: var(--pr-mistake-bg);
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; min-height: 120px; margin: 0;
  padding: 14px 14px 14px; border: 1px solid color-mix(in srgb, var(--gc) 26%, transparent); border-radius: 18px; background: var(--gbg);
  color: var(--pr-fg); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .3s cubic-bezier(.2,.7,.1,1), box-shadow .3s, border-color .3s;
  animation: ps-grp-tile .5s cubic-bezier(.2,.7,.1,1) both; animation-delay: calc(var(--k, 0) * 70ms + 120ms); }
.ps-run__grp.is-look { --gc: var(--pr-look); --gbg: var(--pr-look-bg); }
.ps-run__grp.is-good { --gc: var(--pr-strong); --gbg: var(--pr-good-bg); }
button.ps-run__grp:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gc) 60%, transparent); box-shadow: 0 14px 28px -16px color-mix(in srgb, var(--gc) 75%, transparent); }
button.ps-run__grp:active { transform: scale(.97); transition-duration: .1s; }
.ps-run__grp:focus-visible { outline: 2px solid var(--pr-accent); outline-offset: 3px; }
.ps-run__grp.is-zero { cursor: default; background: transparent; border-style: dashed; }
.ps-run__gmark { position: relative; display: grid; place-items: center; width: 26px; height: 26px; color: var(--gc); }
.ps-run__gmark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ps-run__gmark .ring { fill: none; stroke: currentColor; stroke-width: 3.4; }
.ps-run__gmark .tick { fill: none; stroke: currentColor; stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round; }
.ps-run__gmark b { position: relative; font: 800 12.5px/1 var(--font-text, "Inter", sans-serif); letter-spacing: -.05em; }
.ps-run__gnum { margin-top: 8px; font: 800 44px/.85 var(--font-display, "Big Shoulders Display", sans-serif); color: var(--gc); font-variant-numeric: tabular-nums; }
.ps-run__glab { max-width: 100%; font-size: 14px; font-weight: 600; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
.ps-run__gsub { font-size: 12px; font-weight: 600; color: var(--pr-costly); }
.ps-run__chev { position: absolute; top: 15px; right: 12px; width: 16px; height: 16px; color: var(--pr-faint); transition: transform .3s cubic-bezier(.2,.7,.1,1), color .3s; }
button.ps-run__grp:hover .ps-run__chev { transform: translateX(3px); color: var(--gc); }
@keyframes ps-grp-tile { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 420px) {
  .ps-run__grow { gap: 6px; }
  .ps-run__grp { min-height: 106px; padding: 12px 9px; border-radius: 16px; }
  .ps-run__gnum { font-size: 36px; }
  .ps-run__glab { font-size: 12.5px; }
  .ps-run__gsub { font-size: 11.5px; }
  .ps-run__chev { top: 13px; right: 7px; }
}

/* the group view: one dialog, three tabs; header draws the group's own mark (mistake: the ? wobbles; worth a look: a halo; good: the
   tick draws itself) and counts up; cards come in one after another; switching tabs slides the way you go; closing sinks and fades. */
.ps-grp { --gc: var(--pr-mistake); --gbg: var(--pr-mistake-bg); --ease: cubic-bezier(.2,.7,.1,1);
  width: min(680px, calc(100vw - 32px)); height: min(800px, calc(100dvh - 32px)); max-width: none; max-height: none; margin: auto; padding: 0;
  border: 1px solid var(--pr-line); border-radius: 26px; background: var(--pr-wash); color: var(--pr-fg); overflow: hidden;
  box-shadow: 0 30px 80px rgba(26,15,30,.32); }
html[data-theme="dark"] .ps-grp, .ps-grp.ps-dark { --pr-wash: #262627; --pr-card: #313132; }
.ps-grp.is-look { --gc: var(--pr-look); --gbg: var(--pr-look-bg); }
.ps-grp.is-good { --gc: var(--pr-strong); --gbg: var(--pr-good-bg); }
.ps-grp[open] { display: flex; flex-direction: column; }
.ps-grp::backdrop { background: rgba(26,15,30,.5); backdrop-filter: blur(4px); animation: ps-grp-fade .3s ease both; }
.ps-grp__head { flex: 0 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; padding: 12px 12px 14px 22px;
  border-bottom: 1px solid var(--pr-line); }
.ps-grp__site { margin: 0; min-width: 0; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--pr-faint);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-grp__x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--pr-muted); cursor: pointer; }
.ps-grp__x svg { width: 20px; height: 20px; }
.ps-grp__x:hover { background: var(--pr-bar); color: var(--pr-fg); }
.ps-grp__x:focus-visible, .ps-grp__tab:focus-visible, .ps-grp__back:focus-visible, .ps-grp__more:focus-visible { outline: 2px solid var(--pr-accent); outline-offset: 2px; }
.ps-grp__tabs { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; border-radius: 999px; background: var(--pr-bar); }
.ps-grp__ink { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--pr-card);
  box-shadow: 0 1px 2px rgba(26,15,30,.08), 0 4px 12px rgba(26,15,30,.10); transition: transform .45s var(--ease), width .45s var(--ease); }
html[data-theme="dark"] .ps-grp__ink, .ps-grp.ps-dark .ps-grp__ink { background: #444446; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.ps-grp__tab { --tc: var(--pr-mistake); position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: center; gap: 7px; min-width: 0; min-height: 42px;
  padding: 8px 10px; border: 0; border-radius: 999px; background: none; color: var(--pr-muted); font: 500 14px/1.15 var(--font-text, "Inter", sans-serif); cursor: pointer;
  transition: color .3s; -webkit-tap-highlight-color: transparent; }
.ps-grp__tab.is-look { --tc: var(--pr-look); } .ps-grp__tab.is-good { --tc: var(--pr-strong); }
.ps-grp__tab b { font: 800 19px/1 var(--font-display, "Big Shoulders Display", sans-serif); color: var(--tc); font-variant-numeric: tabular-nums; }
.ps-grp__tab span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-grp__tab:hover, .ps-grp__tab[aria-selected="true"] { color: var(--pr-fg); }
.ps-grp__tab[aria-selected="true"] { font-weight: 600; }
.ps-grp__panel { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px 26px; scrollbar-width: thin; }
.ps-grp__panel:focus-visible { outline: 2px solid var(--pr-accent); outline-offset: -3px; }
.ps-grp__body.is-from-right { animation: ps-grp-from-r .34s var(--ease) both; }
.ps-grp__body.is-from-left { animation: ps-grp-from-l .34s var(--ease) both; }
/* the header */
.ps-grp__hero { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 18px; margin: 0 -22px 6px; padding: 26px 22px 22px;
  background: linear-gradient(180deg, var(--gbg), transparent); }
.ps-grp__mark { position: relative; grid-row: 1 / span 2; display: grid; place-items: center; width: 64px; height: 64px; color: var(--gc); }
.ps-grp__mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ps-grp__mark .ring { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 24px 24px;
  animation: ps-grp-draw .7s .12s var(--ease) forwards; }
.ps-grp__mark .tick { fill: none; stroke: currentColor; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: ps-grp-draw .45s .6s var(--ease) forwards; }
.ps-grp__mark b { position: relative; font: 800 23px/1 var(--font-text, "Inter", sans-serif); letter-spacing: -.06em; animation: ps-grp-pop .45s .45s cubic-bezier(.3,1.6,.5,1) both; }
.ps-grp.is-mistake .ps-grp__mark b { animation: ps-grp-pop .45s .45s cubic-bezier(.3,1.6,.5,1) both, ps-grp-nudge .55s .95s ease-in-out; }
.ps-grp__mark::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; pointer-events: none; }
.ps-grp.is-look .ps-grp__mark::after { animation: ps-grp-halo 1.1s .8s ease-out 2; }
.ps-grp.is-good .ps-grp__mark::after { animation: ps-grp-halo 1s 1s ease-out; }
.ps-grp__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; margin: 0; }
.ps-grp__num { font: 800 72px/.82 var(--font-display, "Big Shoulders Display", sans-serif); color: var(--gc); font-variant-numeric: tabular-nums; }
.ps-grp__tname { min-width: 0; font: 800 34px/.95 var(--font-display, "Big Shoulders Display", sans-serif); letter-spacing: .01em; text-transform: uppercase; overflow-wrap: anywhere; }
.ps-grp__intro { grid-column: 2; margin: 8px 0 0; max-width: 48ch; font-size: 15px; line-height: 1.5; color: var(--pr-muted); }
/* the cards */
.ps-grp__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ps-grp__item { --ic: var(--pr-mistake); display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 16px 18px 14px 14px; border-radius: 18px;
  background: var(--pr-card); border: 1px solid var(--pr-line); animation: ps-grp-item .45s var(--ease) both; animation-delay: calc(var(--k, 0) * 45ms + 180ms); }
.ps-grp__item.is-costly { --ic: var(--pr-costly); border-color: color-mix(in srgb, var(--pr-costly) 32%, transparent); box-shadow: inset 3px 0 0 var(--pr-costly); }
.ps-grp__item.is-look { --ic: var(--pr-look); }
.ps-grp__item.is-strong, .ps-grp__item.is-good { --ic: var(--pr-strong); align-items: start; padding: 14px 18px 14px 14px; }
.ps-grp__n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--ic) 14%, transparent); color: var(--ic);
  font: 800 15px/1 var(--font-display, "Big Shoulders Display", sans-serif); font-variant-numeric: tabular-nums; }
.ps-grp__ibody { min-width: 0; }
.ps-grp__t { margin: 2px 0 0; font-size: 16.5px; font-weight: 600; line-height: 1.38; overflow-wrap: anywhere; }
.ps-grp__tag { display: inline-block; margin-right: 2px; padding: 3px 8px 2px; border-radius: 999px; vertical-align: 2px; background: color-mix(in srgb, var(--ic) 15%, transparent);
  color: var(--ic); font-size: 10.5px; font-weight: 700; line-height: 1.2; letter-spacing: .09em; text-transform: uppercase; }
.ps-grp__why { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--pr-muted); }
.ps-grp__where { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--pr-muted); overflow-wrap: anywhere; }
.ps-grp__where span:first-child { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pr-faint); }
.ps-grp__more { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin: 6px 0 -4px; padding: 4px 0; border: 0; background: none;
  color: var(--pr-accent); font: 600 14px/1.2 var(--font-text, "Inter", sans-serif); cursor: pointer; border-radius: 6px; }
.ps-grp__more:hover span { text-decoration: underline; text-underline-offset: 3px; }
.ps-grp__mchev { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .3s var(--ease); }
.ps-grp__more[aria-expanded="true"] .ps-grp__mchev { transform: rotate(-90deg); }
.ps-grp__fix { margin: 8px 0 2px; padding: 12px 14px; border-radius: 14px; background: var(--pr-wash); font-size: 15px; line-height: 1.5; }
.ps-grp__fix[hidden] { display: none; }
.ps-grp__fix p { margin: 0; }
.ps-grp__fix p + p { margin-top: 10px; }
.ps-grp__gain { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--pr-good-bg); color: var(--pr-strong); font-size: 13.5px; font-weight: 600; }
.ps-grp__tick { position: relative; display: block; width: 28px; height: 28px; color: var(--pr-strong); }
.ps-grp__tick svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ps-grp__tick .ring { fill: color-mix(in srgb, currentColor 14%, transparent); stroke: none; }
.ps-grp__tick .tick { fill: none; stroke: currentColor; stroke-width: 4.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: ps-grp-draw .4s var(--ease) forwards; animation-delay: calc(var(--k, 0) * 45ms + 420ms); }
.ps-grp__list.is-good .ps-grp__t { font-size: 16px; }
.ps-grp__list.is-good .ps-grp__why { font-size: 14.5px; margin-top: 3px; }
/* the call to action at the end of a problem group */
.ps-grp__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 18px; padding: 20px 22px; border-radius: 20px;
  background: #E9E1EA; color: #3A2340; animation: ps-grp-item .45s var(--ease) both; animation-delay: .35s; }
.ps-grp__cta p { margin: 0; max-width: 24ch; font: 800 23px/1.02 var(--font-display, "Big Shoulders Display", sans-serif); letter-spacing: .01em; text-transform: uppercase; }
.ps-grp__cta .nbtn { --nb-bg: #E9E1EA; --nb-sh: rgba(132,99,137,.42); --nb-hi: #FBFCFC; --nb-deep: rgba(91,53,99,.5); --nb-fg: #3A2340; }
html[data-theme="dark"] .ps-grp__cta, .ps-grp.ps-dark .ps-grp__cta { background: #3A2340; color: #F3F4F5; }
html[data-theme="dark"] .ps-grp__cta .nbtn, .ps-grp.ps-dark .ps-grp__cta .nbtn { --nb-bg: #3A2340; --nb-sh: rgba(16,8,19,.8); --nb-hi: #553560; --nb-deep: rgba(16,8,19,1); --nb-fg: #F3F4F5; }
html[data-theme="dark"] .ps-grp .nbtn:focus-visible, .ps-grp.ps-dark .nbtn:focus-visible { outline-color: #E9E1EA; }
/* back to the summary */
.ps-grp__foot { flex: 0 0 auto; display: flex; align-items: center; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--pr-line); }
.ps-grp__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 12px; border: 1px solid var(--pr-line); border-radius: 999px; background: var(--pr-card);
  color: var(--pr-fg); font: 600 14px/1 var(--font-text, "Inter", sans-serif); cursor: pointer; transition: background .25s, border-color .25s; }
.ps-grp__back:hover { border-color: var(--pr-accent); }
.ps-grp__bchev { width: 16px; height: 16px; transform: rotate(180deg); transition: transform .3s var(--ease); }
.ps-grp__back:hover .ps-grp__bchev { transform: rotate(180deg) translateX(3px); }

@keyframes ps-grp-fade { from { opacity: 0; } }
@keyframes ps-grp-item { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ps-grp-draw { to { stroke-dashoffset: 0; } }
@keyframes ps-grp-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes ps-grp-nudge { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 60% { transform: rotate(10deg); } }
@keyframes ps-grp-halo { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
@keyframes ps-grp-from-r { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes ps-grp-from-l { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

/* phones: the view fills the screen; the tabs stack their number over the word */
@media (max-width: 560px) {
  .ps-grp { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .ps-grp__head { padding: 8px 6px 12px 16px; }
  .ps-grp__tabs { border-radius: 18px; }
  .ps-grp__ink { border-radius: 14px; }
  .ps-grp__tab { flex-direction: column; align-items: center; gap: 3px; min-height: 52px; padding: 7px 4px; border-radius: 14px; font-size: 12.5px; }
  .ps-grp__tab b { font-size: 21px; }
  .ps-grp__tab span { max-width: 100%; }
  .ps-grp__panel { padding: 0 14px 22px; }
  .ps-grp__hero { gap: 2px 14px; margin: 0 -14px 4px; padding: 20px 16px 18px; }
  .ps-grp__mark { width: 50px; height: 50px; }
  .ps-grp__mark b { font-size: 19px; }
  .ps-grp__num { font-size: 58px; }
  .ps-grp__tname { font-size: 28px; }
  .ps-grp__intro { grid-column: 1 / -1; margin-top: 12px; font-size: 14.5px; }
  .ps-grp__item { gap: 12px; padding: 14px 14px 12px 12px; border-radius: 16px; }
  .ps-grp__t { font-size: 16px; }
  .ps-grp__why { font-size: 14.5px; }
  .ps-grp__cta { padding: 18px; }
  .ps-grp__cta .nbtn { width: 100%; }
  .ps-grp__foot { padding-left: 10px; }
}
/* short landscape phones: one slim bar (tabs + close), a compact header, so the cards keep most of the screen */
@media (max-height: 500px) and (min-width: 561px) {
  .ps-grp { width: min(760px, calc(100vw - 24px)); height: calc(100dvh - 16px); border-radius: 18px; }
  .ps-grp__head { grid-template-columns: minmax(0, 1fr) auto; padding: 6px 6px 6px 12px; }
  .ps-grp__site { display: none; }
  .ps-grp__tabs { grid-column: 1; grid-row: 1; }
  .ps-grp__tab { min-height: 36px; padding: 6px 8px; }
  .ps-grp__hero { padding: 14px 22px 12px; }
  .ps-grp__mark { width: 40px; height: 40px; }
  .ps-grp__mark b { font-size: 16px; }
  .ps-grp__num { font-size: 46px; }
  .ps-grp__tname { font-size: 26px; }
  .ps-grp__intro { margin-top: 4px; font-size: 14px; }
  .ps-grp__foot { padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .ps-grp__back { min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-run__grp, .ps-grp::backdrop, .ps-grp__item, .ps-grp__cta, .ps-grp__body.is-from-right, .ps-grp__body.is-from-left,
  .ps-grp__mark b, .ps-grp.is-mistake .ps-grp__mark b, .ps-grp__mark::after, .ps-grp.is-look .ps-grp__mark::after, .ps-grp.is-good .ps-grp__mark::after { animation: none; }
  .ps-grp__mark .ring, .ps-grp__mark .tick, .ps-grp__tick .tick { animation: none; stroke-dashoffset: 0; }
  .ps-run__grp, .ps-run__chev, .ps-grp__ink, .ps-grp__mchev, .ps-grp__bchev { transition: none; }
  button.ps-run__grp:hover { transform: none; }
}

@media (max-width: 560px) {
  .ps-run__form { flex-direction: column; align-items: stretch; }
  .ps-run__go { width: 100%; }
  .ps-run__top { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-run__alert { animation: none; }
  .ps-run__spin { animation-duration: 2.4s; }
  .ps-run__card, .ps-run__mini { animation: none; }
  .ps-run__bar i, .ps-run__ringfg { transition: none; }
}

/* the studio's real mark in the progress row (2026-11-17), same size as the old mascot tile */
.ps-run__mark { width: 56px; height: 56px; flex: 0 0 auto; display: block; color: currentColor; }
.ps-run__mark canvas { width: 100%; height: 100%; display: block; }
