/* gisty SPA — design tokens (self-contained; 1:1 with design_handoff_gisty_spa/
 * README §10 + the prototype's :root). This bundle is independent of the legacy
 * `styles` cascade so the SPA owns its own visual system. Onest (display) is
 * self-hosted; the same .woff2 files the legacy head preloads. */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/onest-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2116, U+2122, U+0400-04FF, U+0490-0491;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/static/fonts/onest-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2116, U+2122, U+0400-04FF, U+0490-0491;
}

:root {
  /* Surfaces & text */
  --bg: #F6F7F8;
  --surface: #ffffff;
  --field: #f3f5f7;
  --ink: #1F2328;
  --muted: #5F6873;
  --faint: #6E7884;
  --line: #E6E9EC;
  --border-2: #DfE3E7;

  /* Accent (dark green) + brand green */
  --accent: #176946;
  --accent-2: #238055;
  --accent-hover: #1d4b41;
  --gisty-accent-green: #22C55E;
  --bg-soft: #E8F5EC;

  /* Danger / error surfaces */
  --danger: #B42318;
  --danger-bg: #FDECEA;
  --danger-border: #F2C4BE;

  /* 5 Big Five scale colors — fill / dark-ink */
  --scale-openness: #1F9D6B;            --scale-openness-ink: #15724E;
  --scale-conscientiousness: #C98A1E;   --scale-conscientiousness-ink: #8A5E10;
  --scale-extraversion: #3B7DD8;        --scale-extraversion-ink: #2B5FA8;
  --scale-agreeableness: #DE6052;       --scale-agreeableness-ink: #B23E33;
  --scale-neuroticism: #8A6BD1;         --scale-neuroticism-ink: #5E3FA6;

  /* Report callout palette */
  --callout-orange-ink: #8a5208;
  --callout-blue-ink: #2563c9;

  /* Radii */
  --radius-card: 24px;
  --radius-control: 14px;
  --radius-pill: 999px;
  --radius-lg: 21px;
  --radius-sm: 11px;
  --radius-xs: 8px;

  /* Shadows */
  --shadow-card-brand: 0 18px 45px rgba(31, 35, 40, .08);
  --shadow-soft-brand: 0 8px 24px rgba(31, 35, 40, .06);

  /* Typography */
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* 8px spacing scale */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
}
/* gisty SPA — base reset + boot placeholder (Phase 0). Component styles for the
 * funnel screens land in later partials of this bundle (see order-spa.txt). */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.spa-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#spa-root {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/* Per-screen wrapper: header + flex:1 main + footer fill the viewport height. */
.spa-page {
  display: flex;
  flex: 1;
  flex-direction: column;
}

::selection {
  background: var(--accent);
  color: #fff;
}

@keyframes spa-screen-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spa-enter-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Matches the prototype's .g-screens>* fade. Keep this opacity-only so sticky
   descendants (result TOC, paid buy-card, report toolbar) are not broken. */
.spa-page > main {
  animation: spa-screen-fade .42s ease both;
}

/* Internal quiz sub-screens are safe to translate: they do not host sticky UI. */
.spa-quiz > * {
  animation: spa-enter-up .32s cubic-bezier(.4, 0, .2, 1) both;
}

/* Phase-0 boot placeholder */
.spa-boot {
  margin: auto;
  display: flex;
  max-width: 520px;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.spa-boot__mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
}

.spa-boot__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.spa-boot__accent {
  color: var(--accent);
}

.spa-boot__text {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
/* gisty SPA — chrome: logo, headers, footers (design_handoff globalChrome). */

/* ── Logo ──────────────────────────────────────────────────────────────── */
.spa-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
}

.spa-logo__mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

.spa-logo__word {
  font-size: 18px;
  letter-spacing: -.01em;
}

.spa-logo__accent {
  color: var(--accent);
}

/* ── Header ────────────────────────────────────────────────────────────── */
.spa-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 248, .82);
  backdrop-filter: blur(10px);
}

.spa-header__inner {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
}

.spa-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.spa-header__link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
}

.spa-header .spa-btn {
  padding: 10px 20px;
  font-size: 14.5px;
  font-weight: 700;
}

.spa-header .spa-btn--primary {
  border: none;
}

.spa-header__link:hover {
  color: var(--ink);
}

.spa-header--minimal .spa-header__inner {
  max-width: 1080px;
}

.spa-header--quiz .spa-header__inner {
  max-width: 1140px;
}

.spa-header--paid .spa-header__inner {
  max-width: 1120px;
}

.spa-header--funnel .spa-header__nav {
  gap: 22px;
}

.spa-header__note {
  color: var(--faint);
  font-size: 13px;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.spa-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.spa-footer--full .spa-footer__inner {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xl);
  padding: var(--space-2xl) 28px var(--space-lg);
}

.spa-footer__brand {
  max-width: 320px;
}

.spa-footer__tagline {
  margin: var(--space-xs) 0 0;
  color: var(--muted);
  font-size: 14px;
}

.spa-footer__cols {
  display: flex;
  gap: var(--space-2xl);
}

.spa-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spa-footer__col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.spa-footer__col a:hover {
  color: var(--ink);
}

.spa-footer__title {
  margin: 0 0 2px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.spa-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md) 28px var(--space-xl);
  color: var(--faint);
  font-size: 13px;
}

.spa-footer--minimal .spa-footer__mini {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-lg) 28px;
}

.spa-footer--minimal a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.spa-footer--minimal a:hover {
  color: var(--ink);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .spa-hide-sm {
    display: none;
  }

  .spa-footer--full .spa-footer__inner {
    flex-direction: column;
    gap: var(--space-lg);
  }
}
/* gisty SPA — primitives: button, pill, eyebrow, card. */

.spa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  text-decoration: none;
  cursor: pointer;
  transition: filter .15s ease, transform .1s ease;
}

.spa-btn:hover {
  filter: brightness(.96);
}

.spa-btn:active {
  transform: translateY(1px);
}

.spa-btn--primary {
  background: var(--accent);
  color: #fff;
}

.spa-btn--secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.spa-btn:disabled,
.spa-btn[disabled] {
  background: #B7C2BC;
  border-color: transparent;
  color: #fff;
  cursor: not-allowed;
  filter: none;
}

.spa-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid #D6EBDF;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
}

.spa-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
}

.spa-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft-brand);
  padding: var(--space-lg);
}
/* gisty SPA — toast: fixed bottom-center pill, auto-dismissed (design_handoff). */
.spa-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-card-brand);
}
/* gisty SPA — ScoreBar. Starts with the "share" mini variant (label + colored
 * fill + bold colored score); result/report variants added with those screens. */

.spa-scorebar--share {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spa-scorebar--share + .spa-scorebar--share {
  margin-top: var(--space-md);
}

.spa-scorebar__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.spa-scorebar__label {
  font-size: 14px;
  color: var(--ink);
}

.spa-scorebar__score {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
}

.spa-scorebar__track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: #EEF0F2;
  overflow: hidden;
}

.spa-scorebar__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width .4s ease;
}

/* ── Result (biaxial) variant ──────────────────────────────────────────── */
.spa-scorebar--result + .spa-scorebar--result {
  margin-top: 24px;
}

.spa-result__scales .spa-scorebar--result {
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--line);
}

.spa-result__scales .spa-scorebar--result + .spa-scorebar--result {
  margin-top: 0;
}

.spa-result__scales .spa-scorebar--result:first-child {
  padding-top: 0;
}

.spa-result__scales .spa-scorebar--result:last-child {
  padding-bottom: 30px;
  border-bottom: none;
}

.spa-scorebar--result .spa-scorebar__dom {
  display: block;
  margin: 0 0 11px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

.spa-scorebar--result .spa-scorebar__head {
  display: block;
}

.spa-scorebar--result .spa-scorebar__label {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.spa-scorebar--result .spa-scorebar__track {
  position: relative;
  height: 10px;
  background: #EEF0F2;
  overflow: visible;
}

.spa-scorebar__knob {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-soft-brand);
}

.spa-scorebar__poles {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--faint);
  font-size: 12.5px;
}

/* ── Report variant ────────────────────────────────────────────────────── */
.spa-scorebar--report + .spa-scorebar--report {
  margin-top: var(--space-md);
}

.spa-scorebar--report .spa-scorebar__track {
  height: 9px;
}

.spa-scorebar__band {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.spa-scorebar__band-name {
  font-size: 12px;
  color: var(--muted);
}
/* gisty SPA — Share screen (/s/:token) public teaser. */

.spa-share {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  flex: 1;
  padding: var(--space-2xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.spa-share__status {
  margin: auto;
  color: var(--muted);
}

.spa-share__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.spa-share__kicker {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.spa-share__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.spa-share__summary {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 16px;
}

.spa-share__scales {
  padding: var(--space-lg);
}

.spa-share__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl);
  border-radius: var(--radius-card);
  background: var(--accent);
  color: #fff;
  text-align: center;
}

.spa-share__cta-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
}

.spa-share__cta .spa-btn--primary {
  background: #fff;
  color: var(--accent);
}

.spa-share__notfound {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.spa-share__glyph {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--faint);
}

@media (max-width: 560px) {
  .spa-share__title {
    font-size: 34px;
  }
}
/* gisty SPA — CalloutBox tones (design_handoff CalloutBox palettes). */
.spa-callout {
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
}

.spa-callout__eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.spa-callout__body {
  font-size: 15px;
  line-height: 1.5;
}

.spa-callout--green {
  background: #F2F9F5;
  border-color: #CDE7D6;
}
.spa-callout--green .spa-callout__eyebrow {
  color: var(--accent);
}

.spa-callout--orange {
  background: #FFF7EC;
  border-color: #F0DDBC;
}
.spa-callout--orange .spa-callout__eyebrow {
  color: var(--callout-orange-ink);
}

.spa-callout--blue {
  background: #EAF1FB;
  border-color: #CFE0F5;
}
.spa-callout--blue .spa-callout__eyebrow {
  color: var(--callout-blue-ink);
}
/* gisty SPA — RingGauge (compare match ring). */
.spa-ring {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 50%;
}

.spa-ring__inner {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 50%;
  background: var(--bg);
}

.spa-ring__value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
}

.spa-ring__label {
  font-size: 12px;
  color: var(--muted);
}
/* gisty SPA — Compare screen (/c/:token). */
.spa-compare {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  flex: 1;
  padding: var(--space-2xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.spa-compare__status {
  margin: auto;
  color: var(--muted);
}

.spa-compare__head {
  text-align: center;
}

.spa-compare__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.spa-compare__lead {
  margin: var(--space-sm) auto 0;
  max-width: 48ch;
  color: var(--muted);
}

.spa-compare__person {
  text-align: center;
}

.spa-compare__who {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
}

.spa-compare__person-title {
  margin: 6px 0 2px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.spa-compare__person-scale {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.spa-compare__people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.spa-compare__link {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.spa-compare__link-input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--field);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
}

.spa-compare__steps {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spa-compare__cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.spa-compare__cta-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.spa-compare__expired,
.spa-compare__cta {
  margin-top: var(--space-md);
}

.spa-compare__expired {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.spa-compare__expired-actions {
  display: flex;
  gap: var(--space-sm);
}

.spa-compare__glyph {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--faint);
}

@media (max-width: 560px) {
  .spa-compare__title {
    font-size: 30px;
  }
  .spa-compare__people {
    grid-template-columns: 1fr;
  }
}
/* gisty SPA — ArchetypeHero (dark-green result/report band). */
.spa-hero {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
}

.spa-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 28px 64px;
}

.spa-hero__badge {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: 12.5px;
  font-weight: 700;
}

.spa-hero__eyebrow {
  display: block;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .82;
}

.spa-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 84px;
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.03em;
}

.spa-hero__tagline {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .85);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
}

.spa-hero__summary {
  margin: 24px 0 0;
  max-width: 620px;
  font-size: 19px;
  line-height: 1.6;
  opacity: .94;
}

.spa-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}

.spa-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 13.5px;
  font-weight: 600;
}

.spa-hero__glyph {
  position: absolute;
  right: -10px;
  bottom: -70px;
  font-family: var(--font-display);
  font-size: 420px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, .07);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 820px) {
  .spa-hero__title {
    font-size: 48px;
  }
  .spa-hero__glyph {
    display: none;
  }
}

@media (max-width: 560px) {
  .spa-hero__title {
    font-size: 38px;
  }
  .spa-hero__glyph {
    font-size: 200px;
  }
}
/* gisty SPA — NumberedSection (result/report). */
.spa-section {
  scroll-margin-top: 90px; /* clears the sticky header for TOC anchor jumps */
  padding: 56px 0 0;
}

#strengths,
#growth,
#relationships {
  padding-top: 60px;
}

.spa-section__head {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: 24px;
}

.spa-section__num {
  display: grid;
  flex: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}

.spa-section__eyebrow {
  display: block;
  margin: 0 0 3px;
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--faint);
}

.spa-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.02em;
}

@media (max-width: 560px) {
  .spa-section__title {
    font-size: 24px;
  }
}
/* gisty SPA — Result / Example screen. */
.spa-header--funnel {
  background: rgba(246, 247, 248, .82);
}

.spa-result {
  flex: 1;
}

.spa-result__status {
  max-width: 720px;
  margin: var(--space-2xl) auto;
  padding: 0 var(--space-lg);
  color: var(--muted);
}

/* The hero is full-bleed; below it a 2-column grid holds the reading column and a
   sticky table-of-contents aside. */
.spa-result__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
}

.spa-result__main {
  min-width: 0;
  padding: 52px 0 0;
}

.spa-result__noresult {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.spa-result__intro {
  max-width: 660px;
  color: var(--ink);
}

.spa-result__intro p {
  margin: 0 0 6px;
  max-width: 660px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.spa-result__intro p:first-child {
  margin-bottom: 16px;
  font-size: 19px;
  line-height: 1.65;
}

.spa-result__intro ul {
  margin: 0 0 16px;
  padding: 0 0 0 20px;
  max-width: 660px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
}

.spa-result__intro li {
  margin: 0 0 8px;
}

.spa-result__intro li:last-child {
  margin-bottom: 0;
}

.spa-result__accent {
  color: var(--muted);
  font-weight: 400;
}

/* ── Sticky TOC aside ──────────────────────────────────────────────────── */
.spa-result__aside {
  position: sticky;
  top: 88px;
  padding: 52px 0 0;
}

.spa-toc {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft-brand);
  overflow: hidden;
}

.spa-toc__identity {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.spa-toc__eyebrow {
  display: block;
  margin: 0 0 4px;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.spa-toc__name {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.spa-toc__heading {
  padding: 6px 10px 8px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}

.spa-toc__nav {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 6px;
}

.spa-toc__link {
  text-align: left;
  border: none;
  background: none;
  border-radius: 0 8px 8px 0;
  padding: 9px 12px;
  color: var(--muted);
  font: inherit;
  font-size: 14.5px;
  font-weight: 650;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.spa-toc__link.is-active {
  background: var(--bg-soft);
  color: var(--accent);
  font-weight: 600;
  border-left-color: var(--accent);
}

.spa-toc__cta {
  margin: 8px 0 0;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--line);
}

.spa-toc__cta .spa-btn {
  display: flex;
  justify-content: center;
  width: 100%;
  border-radius: var(--radius-control);
  padding: 12px;
  font-size: 14.5px;
  font-weight: 700;
}

/* H2 (paywall-bridge): строка сброса страхов «цена · срок · возврат» под каждой
   платной CTA-кнопкой; в цветных блоках перекрашивается контекстным правилом. */
.spa-cta-meta {
  display: block;
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.45;
}

.spa-toc__cta .spa-cta-meta {
  margin-top: 9px;
  text-align: center;
}

@media (max-width: 900px) {
  .spa-result__wrap {
    grid-template-columns: 1fr;
    max-width: 720px;
  }
  .spa-result__aside {
    position: static;
    order: -1;
    padding-top: var(--space-xl);
  }
}

/* ── «Твой рабочий вывод» — v2 free Aha block (green callout tint) ───────── */
.spa-workout {
  margin-top: 36px;
  background: #F2F9F5;
  border: 1px solid #CDE7D6;
  border-radius: var(--radius-card);
  padding: 30px;
}

.spa-workout__eyebrow {
  margin: 0 0 16px;
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
}

.spa-workout__rows {
  display: grid;
  gap: 14px;
  max-width: 680px;
}

.spa-workout__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.spa-workout__icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.spa-workout__icon--good {
  background: var(--accent);
}

.spa-workout__icon--risk {
  background: var(--scale-conscientiousness);
}

.spa-workout__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}

.spa-workout__bridge {
  margin: 18px 0;
  max-width: 680px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.spa-workout__action {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.spa-result__scales {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft-brand);
  padding: 30px 30px 12px;
}

.spa-result__scale-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 28px;
  align-items: start;
}

/* Мобильный оверрайд обязан идти ПОСЛЕ базового правила: при равной
   специфичности побеждает поздний источник. Раньше он жил в общем @media-блоке
   выше базового определения и был мёртв — на телефонах grid оставался
   двухколоночным, шкалы сжимались в столбик слов, страница уезжала в
   горизонтальный скролл. */
@media (max-width: 900px) {
  .spa-result__scale-grid {
    grid-template-columns: 1fr;
  }
}

.spa-result__scale-note {
  margin: 4px 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.spa-result__scale-note b {
  color: var(--ink);
  font-weight: 650;
}

.spa-result__scale-disclaimer {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.spa-result__tone {
  border: 1px solid #D6EBDF;
  border-radius: var(--radius-card);
  background: #F2F9F5;
  padding: 24px;
}

.spa-result__tone span {
  display: block;
  margin: 0 0 12px;
  color: var(--scale-openness);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.spa-result__tone strong {
  display: block;
  margin: 0 0 12px;
  color: var(--scale-openness-ink);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
}

.spa-result__tone p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.spa-result__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.spa-result__insight {
  border-radius: 18px;
  box-shadow: none;
  padding: 22px;
}

.spa-result__insight-kicker {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.spa-result__insight--good .spa-result__insight-kicker {
  color: var(--scale-openness);
}

.spa-result__insight--risk .spa-result__insight-kicker {
  color: var(--scale-agreeableness-ink);
}

.spa-result__insight-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
}

.spa-result__insight-body {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.spa-result__full-list {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft-brand);
  padding: 24px 26px;
}

.spa-result__full-kicker {
  display: block;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Лид H3-триггера «Увидел свой риск?» между kicker'ом и списком состава. */
.spa-result__full-lead {
  margin: -6px 0 18px;
  max-width: 640px;
  font-size: 15.5px;
  line-height: 1.55;
}

.spa-result__full-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 22px;
  margin: 0 0 20px;
}

.spa-result__full-items span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.spa-result__full-items b {
  color: var(--accent);
  font-weight: 800;
}

.spa-result__full-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
}

.spa-result__full-footer strong,
.spa-result__full-footer span {
  display: block;
}

.spa-result__full-footer strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
}

.spa-result__full-footer span {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.spa-result__full-footer .spa-btn {
  padding: 11px 22px;
  font-size: 14.5px;
  white-space: nowrap;
}

.spa-result__full-action {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Перебивает более раннее .spa-result__full-footer span (описание слева). */
.spa-result__full-footer .spa-cta-meta {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}

#growth .spa-callout {
  display: flex;
  max-width: 680px;
  align-items: flex-start;
  gap: 16px;
  margin: 0 0 24px;
  border-color: #F0DDBC;
  border-radius: 18px;
  padding: 20px 22px;
}

#growth .spa-callout::before {
  content: "48";
  flex: 0 0 auto;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--scale-conscientiousness);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

#growth .spa-callout__eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .07em;
}

#growth .spa-callout__body {
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.6;
}

.spa-result__growth-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft-brand);
  padding: 24px 26px;
}

.spa-result__growth-items {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}

.spa-result__growth-item {
  display: flex;
  gap: 12px;
}

.spa-result__growth-item > b {
  color: var(--scale-conscientiousness);
}

.spa-result__growth-item span,
.spa-result__growth-item strong,
.spa-result__growth-item em {
  display: block;
}

.spa-result__growth-item strong {
  font-size: 15px;
}

.spa-result__growth-item em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.spa-result__life-link {
  margin-top: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 15.5px;
  font-weight: 700;
}

.spa-result__upsell {
  margin-top: 56px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-brand);
  background: var(--accent);
  color: #fff;
  padding: 40px 38px;
}

.spa-result__upsell-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.spa-result__upsell-kicker {
  display: block;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .72);
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.spa-result__upsell-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 33px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.02em;
}

.spa-result__upsell-text {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .9);
  font-size: 16.5px;
  line-height: 1.6;
}

.spa-result__upsell .spa-btn--primary {
  background: #fff;
  color: var(--accent);
  padding: 14px 28px;
  font-size: 15.5px;
  font-weight: 800;
}

.spa-result__upsell .spa-cta-meta {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 13.5px;
}

.spa-result__upsell-note {
  display: block;
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 13.5px;
}

.spa-result__upsell-glyph {
  position: absolute;
  right: -30px;
  bottom: -90px;
  color: rgba(255, 255, 255, .06);
  font-family: var(--font-display);
  font-size: 300px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.spa-result__purchased {
  margin-top: 56px;
  border: 1px solid #CDE7D6;
  border-radius: var(--radius-card);
  background: #F2F9F5;
  padding: 32px;
}

.spa-result__purchased > span {
  display: block;
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.spa-result__purchased h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
}

.spa-result__tags {
  padding: 48px 0 0;
}

.spa-result__tags-kicker {
  display: block;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.spa-result__tags > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spa-result__tags .spa-pill {
  padding: 9px 16px;
  font-weight: 650;
  font-size: 14.5px;
}

.spa-result__example-cta {
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 32px;
  text-align: center;
  margin: 24px 0 72px;
}

.spa-result__example-cta > span {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.spa-result__example-cta h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
}

.spa-result__example-cta p {
  max-width: 480px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 16px;
}

.spa-result__example-cta .spa-btn {
  padding: 15px 32px;
  font-size: 16px;
  font-weight: 800;
}

.spa-result__example-cta small {
  display: block;
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 13px;
}

.spa-result__noresult {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

  .spa-result__noresult-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
}

/* Locked paywall teasers (A1/A2): named paid blocks as locked chips — the names
   are real (computed per profile), the content stays behind the paywall. */
.spa-locked {
  margin-top: 22px;
}

.spa-locked__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}

.spa-locked__chip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 36px 12px 14px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
}

.spa-locked__chip b {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.35;
}

.spa-locked__chip em {
  color: var(--muted);
  font-size: 12.5px;
  font-style: normal;
  line-height: 1.4;
}

.spa-locked__lock {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: .55;
}

/* Row variant: a single-line chip for the workstyle teaser under «Твой рабочий
   вывод» (no colored top border — the archetype block is accent-neutral). */
.spa-locked__chip--row {
  flex-direction: row;
  align-items: center;
  border-top-width: 1px;
  border-top-color: var(--line);
  padding: 10px 36px 10px 14px;
}

.spa-workout__teaser {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}
/* gisty SPA — Quiz (/app): header/progress, chapter splash, Likert, consent. */

.spa-header--quiz {
  background: rgba(246, 247, 248, .9);
}

.spa-quiz__progress-label {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 650;
}

.spa-quiz__progress {
  height: 4px;
  background: var(--line);
}

.spa-quiz__progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width .3s ease;
}

.spa-quiz {
  flex: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Resume gate (returning user with a saved draft) ────────────────────── */
.spa-resume {
  max-width: 520px;
  margin: 0 auto;
  padding: var(--space-2xl) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.spa-resume__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--accent);
  font-size: 26px;
}

.spa-resume__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
}

.spa-resume__lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.spa-resume .spa-btn,
.spa-resume__restart {
  width: 100%;
  max-width: 380px;
}

.spa-resume__restart {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.spa-quiz__status {
  margin: var(--space-2xl) auto;
  color: var(--muted);
}

/* ── Chapter splash ────────────────────────────────────────────────────── */
.spa-chapter {
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  text-align: center;
}

.spa-chapter__card {
  width: 100%;
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card-brand);
  padding: 48px 32px;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: filter .15s ease, transform .1s ease;
}

.spa-chapter__card:hover {
  filter: brightness(.985);
}

.spa-chapter__card:active {
  transform: translateY(1px);
}

.spa-chapter__step {
  display: block;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
}

.spa-chapter__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--accent);
  font-size: 22px;
  margin: 0 0 18px;
}

.spa-chapter__title {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
}

.spa-chapter__subtitle {
  display: block;
  margin: 8px auto 22px;
  max-width: 44ch;
  color: var(--muted);
  font-size: 16px;
}

.spa-chapter__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 0 0 18px;
}

.spa-chapter__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--line);
}

.spa-chapter__dot.is-done {
  background: var(--accent);
}

.spa-chapter__start {
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
}

.spa-chapter__hint {
  display: block;
  margin: 6px 0 0;
  color: var(--faint);
  font-size: 13px;
}

/* ── Quiz block ────────────────────────────────────────────────────────── */
.spa-quiz__block {
  padding: 30px 0 0;
}

.spa-quiz__block-head {
  text-align: center;
  margin: 0 0 6px;
}

.spa-quiz__block-head span {
  display: inline-flex;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.spa-quiz__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.spa-quiz__q {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  scroll-margin-top: 104px;
  transition: opacity .35s ease, transform .35s ease;
}

.spa-quiz__q.is-pending {
  opacity: .4;
}

.spa-quiz__q-text {
  margin: 0 0 22px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.spa-quiz__q.is-pending .spa-quiz__q-text {
  color: var(--muted);
}

.spa-quiz__next {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--line);
  padding: 26px 0 70px;
}

/* ── Likert ────────────────────────────────────────────────────────────── */
.spa-likert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.spa-likert__dots {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.spa-likert__pole {
  width: 74px;
  font-size: 14px;
  font-weight: 700;
  color: var(--faint);
}

.spa-likert__pole--left {
  color: var(--scale-neuroticism-ink);
  text-align: right;
}

.spa-likert__pole--right {
  color: var(--scale-openness-ink);
  text-align: left;
}

.spa-likert__dot {
  --dot-size: 34px;
  display: grid;
  min-width: 50px;
  min-height: 50px;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.spa-likert__dot::before {
  content: "";
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  border: 2px solid currentColor;
  background: transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}

.spa-likert__dot:not(:disabled):hover::before {
  transform: scale(1.1);
}

.spa-likert__dot.is-selected::before {
  background: currentColor;
}

.spa-likert__dot:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.spa-likert__dot:disabled {
  cursor: default;
  pointer-events: none;
}

.spa-likert__dot--0 { --dot-size: 50px; color: var(--scale-neuroticism-ink); }
.spa-likert__dot--1 { --dot-size: 42px; color: var(--scale-neuroticism-ink); }
.spa-likert__dot--2 { --dot-size: 34px; color: var(--faint); }
.spa-likert__dot--3 { --dot-size: 42px; color: var(--scale-openness-ink); }
.spa-likert__dot--4 { --dot-size: 50px; color: var(--scale-openness-ink); }

@media (max-width: 820px) {
  .spa-likert {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px 12px;
    width: 100%;
  }

  .spa-likert__dots {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: center;
    gap: 4px;
    min-width: 0;
  }

  .spa-likert__pole {
    grid-row: 2;
    width: auto;
    font-size: 13px;
    line-height: 1.2;
  }

  .spa-likert__pole--left {
    grid-column: 1;
    text-align: left;
  }

  .spa-likert__pole--right {
    grid-column: 2;
    text-align: right;
  }
}

/* 320px devices leave ~264px inside the quiz shell. Keep WCAG-size 48px
   targets while shaving the decorative endpoint circles and gaps enough to
   avoid the 2px horizontal spill of the regular 266px row. */
@media (max-width: 340px) {
  .spa-likert__dots {
    gap: 3px;
  }

  .spa-likert__dot {
    min-width: 48px;
    min-height: 48px;
    width: 48px;
    height: 48px;
  }

  .spa-likert__dot--0,
  .spa-likert__dot--4 {
    --dot-size: 46px;
  }

  .spa-likert__dot--1,
  .spa-likert__dot--3 {
    --dot-size: 40px;
  }
}

/* ── Consent ───────────────────────────────────────────────────────────── */
.spa-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 60px 0 90px;
  text-align: center;
}

.spa-consent__step {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
}

.spa-consent__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 0 18px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--accent);
  font-size: 26px;
}

.spa-consent__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.025em;
}

.spa-consent__lead {
  margin: 16px auto 26px;
  max-width: 460px;
  color: var(--muted);
  font-size: 17px;
}

.spa-consent__card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft-brand);
  padding: 24px 26px;
  text-align: left;
}

.spa-consent__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spa-consent__field > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.spa-consent__field b {
  color: var(--ink);
  font-size: 13px;
}

.spa-consent__field em {
  border-radius: var(--radius-pill);
  background: var(--field);
  padding: 3px 10px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 650;
}

.spa-consent__field input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--field);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}

.spa-consent__field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.spa-consent__email-error {
  margin: 7px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 650;
}

.spa-consent__hint {
  margin: 9px 0 18px;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.5;
}

.spa-consent__agree {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
}

.spa-consent__agree input {
  position: absolute;
  opacity: 0;
}

.spa-consent__check {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--line);
  border-radius: 7px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.spa-consent__agree input:checked + .spa-consent__check {
  border-color: var(--accent);
  background: var(--accent);
}

.spa-consent__card .spa-btn {
  width: 100%;
  padding: 16px;
  font-size: 17px;
  font-weight: 800;
}

.spa-consent__back {
  border: none;
  margin: 18px 0 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ── Computing / error ─────────────────────────────────────────────────── */
.spa-computing {
  min-height: 64vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  text-align: center;
}

.spa-computing__spinner {
  width: 56px;
  height: 56px;
  margin: 0 0 26px;
  border-radius: 50%;
  border: 4px solid var(--line);
  border-top-color: var(--accent);
  animation: spa-spin 0.8s linear infinite;
}

@keyframes spa-spin {
  to { transform: rotate(360deg); }
}

.spa-computing__text {
  margin: 14px auto 22px;
  max-width: 460px;
  color: var(--muted);
  font-size: 16px;
}

.spa-computing__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
}

.spa-computing__steps {
  display: grid;
  gap: 8px;
  text-align: left;
  font-size: 14.5px;
}

.spa-computing__steps span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.spa-computing__steps b {
  color: var(--accent);
}

.spa-computing__steps i {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  animation: spa-spin .8s linear infinite;
}

.spa-computing__steps span:last-child {
  color: var(--ink);
  font-weight: 650;
}

.spa-quiz__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.spa-quiz__error h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
}

.spa-quiz__error-badge {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--danger-bg);
  color: var(--danger);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .spa-computing__spinner,
  .spa-computing__steps i { animation: none; }
}
/* gisty SPA — Paywall (/paid). */
.spa-header--paid {
  background: rgba(246, 247, 248, .82);
}

.spa-paid__back {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}

.spa-paid__back:hover {
  color: var(--ink);
}

.spa-paid__back-short {
  display: none;
}

.spa-paid {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg) var(--space-2xl);
}

.spa-paid__status {
  margin: var(--space-2xl) auto;
  color: var(--muted);
}

.spa-paid__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-2xl);
  align-items: start;
}

.spa-paid__offer {
  display: flex;
  flex-direction: column;
  gap: 48px;
  /* Grid-item min-width:auto наследует min-content детей: ряд превью (4 × 240px
     без переносов) распирал 1fr-колонку и всю страницу до ~1581px. min-width: 0
     позволяет колонке ужиматься — ряд скроллится внутри (overflow-x: auto). */
  min-width: 0;
}

.spa-paid__hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.spa-paid__eyebrow {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.4;
  text-transform: uppercase;
}

.spa-paid__title {
  margin: 0;
  max-width: 640px;
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.spa-paid__lede {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

/* Цена у hero: на мобилке buy-card далеко внизу — цена и гарантия видны сразу. */
.spa-paid__hero-price {
  margin: 0;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 650;
}

/* Честный количественный value-gap под lede (оффер-правка 10.07). */
.spa-paid__gap {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.spa-paid__gap b {
  color: var(--ink);
  font-weight: 700;
}

/* Дословный фрагмент образца в «Так выглядит инструкция» (оффер-правка 10.07):
   лист инструкции, как «раздел 0». */
.spa-paid__excerpt {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 var(--space-lg);
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
}

.spa-paid__excerpt-tag {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.4;
  text-transform: uppercase;
}

.spa-paid__excerpt-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.spa-paid__excerpt-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spa-paid__excerpt-block h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
}

.spa-paid__excerpt-block p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
}

.spa-paid__excerpt-evidence {
  color: var(--muted);
  font-size: 13px;
}

.spa-paid__excerpt-note {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

/* Агрегат живых оценок точности в buy-card (оффер-правка 10.07). */
.spa-paid__accuracy {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.spa-paid__accuracy b {
  color: var(--ink);
  font-weight: 750;
}

.spa-paid__h2 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
}

.spa-paid__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.spa-paid__bonus {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.spa-paid__bonus b {
  color: var(--ink);
  font-weight: 650;
}

/* «Раздел 0» — фрагмент платного слоя как proof; выглядит как лист инструкции. */
.spa-paid__zero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
}

.spa-paid__zero-tag {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.4;
  text-transform: uppercase;
}

.spa-paid__zero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.spa-paid__zero-snag {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
}

.spa-paid__zero-roles {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.spa-paid__zero-roles b {
  color: var(--ink);
  font-weight: 650;
}

.spa-paid__zero-note {
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.spa-paid__zero-note b {
  color: var(--ink);
  font-weight: 650;
}

.spa-paid__inside .spa-paid__h2 {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.4;
  text-transform: uppercase;
}

.spa-paid__card,
.spa-paid__toc,
.spa-paid__trust-card,
.spa-paid__faq-card,
.spa-paid__buy-card {
  border-radius: 18px;
  box-shadow: none;
}

.spa-paid__card {
  padding: 20px 24px;
}

.spa-paid__card-n {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}

.spa-paid__card-title {
  margin: 4px 0;
  font-size: 17px;
  font-weight: 700;
}

.spa-paid__card-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ── Превью реальных страниц PDF (fixture-рендер) ─────────────────────── */
.spa-paid__preview-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.spa-paid__preview-item {
  flex: 0 0 auto;
  width: min(240px, 62vw);
  margin: 0;
  scroll-snap-align: start;
}

.spa-paid__preview-item img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-soft-brand);
  background: #fff;
}

.spa-paid__preview-item figcaption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.spa-paid__preview-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ── Полное оглавление ─────────────────────────────────────────────────── */
.spa-paid__toc {
  padding: 22px 26px;
}

.spa-paid__toc-list {
  margin: 0;
  padding: 0 0 0 2px;
  columns: 2;
  column-gap: 34px;
  counter-reset: toc;
  list-style: none;
}

.spa-paid__toc-list li {
  counter-increment: toc;
  break-inside: avoid;
  margin: 0 0 9px;
  font-size: 14px;
  line-height: 1.45;
}

.spa-paid__toc-list li::before {
  content: counter(toc, decimal-leading-zero);
  margin-right: 9px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}

.spa-paid__toc-note {
  margin: 14px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 13.5px;
}

.spa-paid__toc-note b {
  color: var(--ink);
  font-weight: 700;
}

/* ── Как собирается инструкция ─────────────────────────────────────────── */
.spa-paid__trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.spa-paid__trust-card {
  padding: 16px 20px;
}

.spa-paid__trust-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 750;
}

.spa-paid__trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.spa-paid__faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.spa-paid__faq-q {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.spa-paid__faq-a {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ── Buy card ──────────────────────────────────────────────────────────── */
.spa-paid__buy-card {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px;
}

.spa-paid__buy-title {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.spa-paid__price {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}

.spa-paid__price-note {
  margin: 0 0 20px;
  color: var(--faint);
  font-size: 13px;
}

.spa-paid__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.spa-paid__field input {
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--field);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}

.spa-paid__agree {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

/* Клик «Оплатить» без галочки: подсвечиваем согласие, чтобы кнопка не молчала. */
.spa-paid__agree--attention {
  color: var(--ink);
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: var(--radius-control);
}

.spa-paid__agree input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.spa-paid__agree a {
  color: var(--accent);
  font-weight: 700;
}

.spa-paid__buy-card .spa-btn {
  width: 100%;
  margin-top: 0;
  justify-content: center;
  border-radius: var(--radius-control);
  padding: 15px;
  font-size: 16px;
  font-weight: 800;
}

.spa-paid__pay-status {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.spa-paid__checks {
  margin: 22px 0 0;
  padding-left: 1.1em;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spa-paid__legal {
  margin: 0;
  color: var(--faint);
  font-size: 12px;
}

.spa-paid__legal a {
  color: var(--muted);
}

/* Sticky-бар оплаты: только на одноколоночной вёрстке (≤980px), где buy-card
   уезжает под весь оффер. Скрывается из DOM, когда форма оплаты на экране.
   Пока cookie-баннер (.spa-cookie, тот же fixed bottom / z-40, рендерится
   ПОЗЖЕ в DOM) ждёт выбора — бар уступает ему место, иначе две плашки друг
   на друге и «К оплате» перекрыта (найдено на проде 04–05.07). */
.spa-paid__stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.spa-paid__stickybar-price {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.spa-paid__stickybar-price b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

.spa-paid__stickybar-price span {
  color: var(--muted);
  font-size: 12px;
}

.spa-paid__stickybar-btn {
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .spa-paid__grid {
    grid-template-columns: 1fr;
  }
  .spa-paid__buy-card {
    position: static;
  }
  .spa-paid__stickybar {
    display: flex;
  }
  body:has(.spa-cookie) .spa-paid__stickybar {
    display: none;
  }
  /* Хвост страницы (legal/FAQ) не должен прятаться под фикс-баром. */
  .spa-paid {
    padding-bottom: 96px;
  }
}

@media (max-width: 560px) {
  .spa-paid__back-full {
    display: none;
  }
  .spa-paid__back-short {
    display: inline;
  }
  .spa-paid__cards {
    grid-template-columns: 1fr;
  }
  .spa-paid__title {
    font-size: 32px;
  }
}
/* gisty SPA — StatusChip. */
.spa-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.spa-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.spa-chip__dot.is-pulse {
  animation: spa-pulse 1.2s ease-in-out infinite;
}

.spa-chip--ok .spa-chip__dot { background: var(--accent); }
.spa-chip--pending .spa-chip__dot { background: var(--callout-orange-ink); }
.spa-chip--warn .spa-chip__dot { background: var(--danger); }
.spa-chip--muted .spa-chip__dot { background: var(--faint); }

.spa-chip--saved .spa-chip__dot { background: var(--callout-blue-ink); }

@keyframes spa-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

@media (prefers-reduced-motion: reduce) {
  .spa-chip__dot.is-pulse { animation: none; }
}
/* gisty SPA — Thanks / status screen (/thanks). */
.spa-thanks {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.spa-thanks__badge {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--accent);
  font-size: 26px;
}

.spa-thanks__badge--refunded {
  width: auto;
  min-width: 56px;
  height: 40px;
  padding: 0 var(--space-md);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-pill);
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.spa-thanks__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.spa-thanks__lead {
  margin: 0;
  max-width: 44ch;
  color: var(--muted);
}

.spa-thanks__card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: left;
}

.spa-thanks__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.spa-thanks__row-label {
  color: var(--muted);
  font-size: 14px;
}

.spa-thanks__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.spa-thanks__cta,
.spa-thanks__cabinet {
  margin-top: var(--space-xs);
}

.spa-thanks__feedback {
  width: 100%;
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  text-align: left;
  scroll-margin-top: calc(var(--site-header-height) + var(--space-lg));
}

.spa-thanks__feedback-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.spa-thanks__feedback-note {
  margin: calc(-1 * var(--space-sm)) 0 0;
  color: var(--muted);
  font-size: 14px;
}

.spa-thanks__feedback-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: 13px;
  font-weight: 700;
}

.spa-thanks__feedback-field select,
.spa-thanks__feedback-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 11px 13px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
}

.spa-thanks__feedback-field textarea {
  resize: vertical;
}

.spa-thanks__feedback-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

.spa-thanks__feedback-status {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.spa-thanks__feedback-status.is-error {
  color: var(--danger);
}
/* gisty SPA — KeyValueTable (report). */
.spa-kv {
  margin: var(--space-sm) 0 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spa-kv__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-top: 1px solid var(--line);
}

.spa-kv__row:first-child {
  border-top: none;
}

.spa-kv__k {
  margin: 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--field);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.spa-kv__v {
  margin: 0;
  padding: var(--space-sm) var(--space-md);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .spa-kv__row {
    grid-template-columns: 1fr;
  }
  .spa-kv__k {
    border-bottom: 1px solid var(--line);
  }
}
/* gisty SPA — Report screen (/report): dark toolbar over the on-screen PDF. */
.spa-report {
  background: #ECEEF0;
}

.spa-report__toolbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
}

.spa-report__toolbar-title {
  font-size: 14px;
  opacity: .9;
}

.spa-report__toolbar .spa-btn--secondary {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
}

.spa-report__body {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg) var(--space-2xl);
}

.spa-report__status {
  margin: var(--space-2xl) auto;
  color: var(--muted);
  text-align: center;
}

.spa-report__gate {
  margin: var(--space-2xl) auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.spa-report__gate h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
}

.spa-report__cover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--accent);
  color: #fff;
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.spa-report__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .82;
}

.spa-report__cover-title {
  margin: 6px 0 var(--space-md);
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}

.spa-report__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 13px;
  opacity: .92;
}

.spa-report__glyph {
  position: absolute;
  right: -6px;
  bottom: -40px;
  font-family: var(--font-display);
  font-size: 200px;
  font-weight: 800;
  color: rgba(255, 255, 255, .07);
  pointer-events: none;
  user-select: none;
}

.spa-report__section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.spa-report__num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}

.spa-report__h2 {
  margin: 4px 0 var(--space-md);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
}

.spa-report__h3 {
  margin: var(--space-lg) 0 0;
  font-size: 16px;
  font-weight: 700;
}

.spa-report__lead {
  margin: 0 0 var(--space-sm);
  color: var(--muted);
}

/* ── Section 09 — 48h experiment + cheat sheet ──────────────────────────── */
.spa-report__num--warm {
  color: var(--scale-conscientiousness);
}

.spa-report__section .spa-callout {
  margin-top: var(--space-md);
}

.spa-report__steps {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.spa-report__step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--field);
  border-radius: var(--radius-control);
  padding: 14px 16px;
}

.spa-report__step-num {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
}

.spa-report__step-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
}

.spa-report__step-title {
  font-style: normal;
  font-weight: 700;
}

.spa-report__foot {
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}

@media (max-width: 560px) {
  .spa-report__cover {
    padding: var(--space-lg);
  }

  .spa-report__cover-title {
    font-size: clamp(22px, 7.2vw, 36px);
    overflow-wrap: anywhere;
  }
}
/* gisty SPA — Cabinet (/cabinet). */
.spa-cabinet {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.spa-cabinet__status {
  margin: var(--space-2xl) auto;
  color: var(--muted);
}

.spa-cabinet__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
}

/* ── Signed out ────────────────────────────────────────────────────────── */
.spa-cabinet__auth {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.spa-cabinet__glyph {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--accent);
}

.spa-cabinet__lead {
  margin: 0;
  color: var(--muted);
}

.spa-cabinet__notice {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-control);
  background: var(--bg-soft);
  color: var(--accent);
  font-size: 14px;
}

.spa-cabinet__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.spa-cabinet__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.spa-cabinet__form input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--field);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}

.spa-cabinet__agree {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.spa-cabinet__agree input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.spa-cabinet__agree a {
  color: var(--accent);
  font-weight: 700;
}

/* ── Signed in ─────────────────────────────────────────────────────────── */
.spa-cabinet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.spa-cabinet__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--muted);
}

.spa-cabinet__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.spa-cabinet__card--latest {
  border-color: var(--accent);
}

.spa-cabinet__card-top {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.spa-cabinet__badge {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.spa-cabinet__date {
  color: var(--faint);
  font-size: 13px;
}

.spa-cabinet__archetype {
  margin: var(--space-xs) 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.spa-cabinet__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-md);
}

.spa-cabinet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.spa-cabinet__account {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.spa-cabinet__email {
  color: var(--muted);
  font-size: 14px;
}

.spa-cabinet__link {
  align-self: flex-start;
  border: none;
  background: none;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.spa-cabinet__link--danger {
  color: var(--danger);
}

.spa-cabinet__account-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.spa-cabinet__confirm {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: 14px;
}

.spa-cabinet__confirm-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
/* gisty SPA — Landing (/), matched to design_handoff_gisty_spa. */
.spa-landing {
  flex: 1;
}

.spa-landing__hero {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 84px 28px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.spa-landing__title {
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-size: 68px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.spa-landing__sub {
  margin: 26px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.spa-landing__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 34px 0 0;
}

.spa-landing__cta .spa-btn {
  padding: 16px 34px;
  font-size: 17px;
  font-weight: 800;
}

.spa-landing__cta .spa-btn--primary {
  border: 0;
}

.spa-landing__cta .spa-btn--secondary {
  padding-right: 30px;
  padding-left: 30px;
  font-weight: 700;
}

.spa-landing__reassure {
  margin: 28px 0 0;
  color: var(--faint);
  font-size: 14px;
}

.spa-landing__glyph {
  position: absolute;
  left: 50%;
  top: 40px;
  z-index: -1;
  transform: translateX(-50%);
  color: rgba(23, 105, 70, .045);
  font-family: var(--font-display);
  font-size: 300px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.spa-landing__trust {
  max-width: 1000px;
  margin: 0 auto;
  padding: 6px 28px 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.spa-landing__trust-card {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 16px 18px;
}

.spa-landing__trust-card strong,
.spa-landing__trust-card span span {
  display: block;
}

.spa-landing__trust-card strong {
  font-size: 14.5px;
  line-height: 1.2;
}

.spa-landing__trust-card span span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
}

.spa-landing__trust-icon {
  flex: 0 0 auto;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
}

.spa-landing__how {
  max-width: 1140px;
  margin: 0 auto;
  padding: 30px 28px 20px;
}

.spa-landing__section-head {
  margin: 0 0 34px;
  text-align: center;
}

.spa-landing__section-head > span,
.spa-landing__bottom > span {
  display: block;
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.spa-landing__h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.02em;
}

.spa-landing__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.spa-landing__step {
  border-top: 4px solid var(--accent);
  padding: 30px 28px;
}

.spa-landing__step--0 { border-top-color: var(--scale-extraversion); }
.spa-landing__step--1 { border-top-color: var(--scale-openness); }
.spa-landing__step--2 { border-top-color: var(--scale-neuroticism); }

.spa-landing__step-n {
  display: inline-flex;
  border-radius: var(--radius-pill);
  margin: 0 0 18px;
  padding: 5px 13px;
  background: var(--bg-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .05em;
}

.spa-landing__step--0 .spa-landing__step-n {
  background: #EAF1FB;
  color: var(--scale-extraversion-ink);
}

.spa-landing__step--2 .spa-landing__step-n {
  background: #F1EBFA;
  color: var(--scale-neuroticism-ink);
}

.spa-landing__step-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
}

.spa-landing__step-text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.spa-landing__band {
  max-width: 1140px;
  margin: 0 auto;
  padding: 46px 28px;
}

.spa-landing__band-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 34px;
  align-items: center;
  padding: 42px 40px;
  border-radius: var(--radius-card);
  background: var(--accent);
  box-shadow: var(--shadow-card-brand);
  color: #fff;
}

.spa-landing__band-kicker {
  display: block;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .7);
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.spa-landing__band-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.spa-landing__band-text {
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 16px;
  line-height: 1.6;
}

.spa-landing__checks {
  display: grid;
  gap: 12px;
}

.spa-landing__checks span {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  padding: 14px 18px;
  font-size: 15.5px;
  font-weight: 650;
}

.spa-landing__stats {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 28px 20px;
}

.spa-landing__stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  text-align: center;
}

.spa-landing__stats-grid strong {
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
}

.spa-landing__stats-grid div > span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.spa-landing__standard-wrap {
  display: flex;
  justify-content: center;
  margin: 30px 0 0;
}

.spa-landing__standard {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-soft-brand);
  padding: 11px 22px;
  color: var(--ink);
}

.spa-landing__standard-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--accent);
  font-size: 15px;
}

.spa-landing__standard-text {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
}

.spa-landing__standard-text > span {
  color: var(--muted);
  font-weight: 600;
}

.spa-landing__bottom {
  max-width: 900px;
  margin: 0 auto;
  padding: 44px 28px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.spa-landing__bottom .spa-landing__h2 {
  font-size: 44px;
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.spa-landing__bottom > span {
  margin-bottom: 12px;
}

.spa-landing__bottom p {
  margin: 16px 0 28px;
  color: var(--muted);
  font-size: 18px;
}

.spa-landing__bottom .spa-btn {
  border: 0;
  padding: 17px 38px;
  font-size: 18px;
  font-weight: 800;
}

@media (max-width: 820px) {
  .spa-landing__title { font-size: 48px; }
  .spa-landing__glyph { display: none; }
  .spa-landing__band-card { padding: 34px 28px; }
}

@media (max-width: 560px) {
  .spa-landing__hero { padding-top: 56px; }
  .spa-landing__title { font-size: 38px; }
  .spa-landing__sub { font-size: 17px; }
  .spa-landing__h2,
  .spa-landing__bottom .spa-landing__h2 { font-size: 30px; }
  .spa-landing__cta .spa-btn { width: 100%; }
}
/* gisty SPA — legal / info pages (/privacy, /terms, /faq, /support). */
.spa-info {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.spa-info__head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: var(--space-xl);
}

.spa-info__glyph {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--accent);
}

.spa-info__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
}

.spa-info__title {
  margin: 0;
  font-family: var(--font-display);
  /* «Конфиденциальность» в одно слово шире 390px-вьюпорта при 38px — ужимаем
     на узких экранах и разрешаем перенос, чтобы страница не скроллилась вбок. */
  font-size: clamp(28px, 8.5vw, 38px);
  font-weight: 800;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.spa-info__updated {
  margin: 0;
  color: var(--faint);
  font-size: 13px;
}

.spa-info__home {
  position: absolute;
  top: 0;
  right: 0;
}

.spa-info__lede {
  margin: 0 0 var(--space-lg);
  font-size: 17px;
  color: var(--muted);
}

.spa-info__section {
  margin-bottom: var(--space-lg);
}

.spa-info__h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}

.spa-info__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.spa-info__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.spa-info__q {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
}

.spa-info__a {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.spa-info__mail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.spa-info__cta {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--muted);
}
/* gisty SPA — centered status pages (/deleted, /error, 404). */
.spa-status__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  max-width: 460px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.spa-status__glyph {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: var(--danger-bg);
  color: var(--danger);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.spa-status__glyph--accent {
  background: var(--bg-soft);
  color: var(--accent);
}

.spa-status__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
}

.spa-status__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.spa-status__code {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--faint);
}

.spa-status__text {
  margin: 0;
  color: var(--muted);
}

.spa-status__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
/* gisty SPA — owner-only blocks on /result (save / share / feedback / delete). */

#feedback {
  scroll-margin-top: calc(var(--site-header-height) + var(--space-lg));
}
.spa-owner {
  max-width: 720px;
  margin: var(--space-2xl) auto 0;
  padding: 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.spa-owner__block {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.spa-owner__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}

.spa-owner__note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.spa-owner__row {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.spa-owner__input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--field);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}

.spa-owner__agree {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.spa-owner__agree input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.spa-owner__agree a {
  color: var(--accent);
  font-weight: 700;
}

.spa-owner__share-active {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.spa-owner__link {
  align-self: flex-start;
  border: none;
  background: none;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.spa-owner__link--danger {
  color: var(--danger);
}

.spa-owner__scale {
  display: flex;
  gap: var(--space-sm);
}

.spa-owner__scale-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.spa-owner__scale-btn.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.spa-owner__delete {
  padding: var(--space-sm) 0 var(--space-2xl);
}

.spa-owner__confirm {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  font-size: 14px;
  color: var(--ink);
}
/* Cookie / analytics consent banner — полноширинный нижний бар (встык к краям). */
.spa-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding:
    16px
    max(20px, env(safe-area-inset-right))
    calc(16px + env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.spa-cookie p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.spa-cookie a {
  color: var(--accent);
  font-weight: 700;
}

.spa-cookie__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.spa-cookie__actions .spa-btn {
  min-height: 40px;
  padding: 10px 26px;
  border-radius: var(--radius-control);
  font-size: 14px;
  white-space: nowrap;
}

/* Мобайл: бар остаётся полноширинным, но контент центрируется в столбик. */
@media (max-width: 680px) {
  .spa-cookie {
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    text-align: center;
  }

  .spa-cookie__actions .spa-btn {
    padding: 12px 48px;
  }
}
