/* Zalaris Payroll Transformation Scorecard. Every rule is scoped under .psc so the
   tool can render inside the site Layout (header/footer) without leaking styles.
   Brand: Zalaris V4 2025. Figtree is a stand-in for Proxima Nova (Typekit); swap --font when the Typekit kit is available. */
.psc img {
  max-width: 100%;
}
.psc [hidden] {
  display: none !important;
}
.psc {
  --navy: #17245f;
  --blue: #004f9e;
  --sky: #18b2e8;
  --orange: #e9580c;
  --peach: #fdd2b9;
  --signal: #0063db;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eceff4;
  --line: #dde2eb;
  --line-2: #c1c7d3;
  --ink: #0f1a33;
  --text: #333a4d;
  --muted: #6b7689;
  --heading: #17245f;
  --accent: #004f9e;
  --accent-ink: #ffffff;
  --focus: #18b2e8;
  --hero-bg: #17245f;
  --hero-ink: #ffffff;
  --hero-muted: #b9c6e6;
  --logo-word: #575756;
  --shadow: 0 1px 2px rgba(23, 36, 95, 0.06), 0 8px 24px rgba(23, 36, 95, 0.07);
  --good: #1f8a5b;
  --warn: #b7791f;
  --crit: #c2410c;
  --sel-bg: #eaf4fd;
  --sel-line: #004f9e;
  --font: var(--font-proxima-nova), Arial, 'Helvetica Neue', sans-serif;
}
.psc,
.psc * {
  box-sizing: border-box;
}
.psc {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.psc h1,
.psc h2,
.psc h3,
.psc h4 {
  color: var(--heading);
  margin: 0;
  text-wrap: balance;
  line-height: 1.15;
}
.psc p {
  margin: 0;
}
.psc button,
.psc input,
.psc select,
.psc textarea {
  font: inherit;
  color: inherit;
}
.psc :focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
.psc .wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* buttons */
.psc .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.1s;
  text-decoration: none;
}
.psc .btn:active {
  transform: translateY(1px);
}
.psc .btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.psc .btn-primary:hover {
  filter: brightness(1.08);
}
.psc .btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: none;
}
.psc .btn-orange {
  background: #e9580c;
  color: #fff;
}
.psc .btn-orange:hover {
  background: #d24e09;
}
.psc .btn-orange:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #e9580c;
}
.psc .btn-outline {
  background: transparent;
  border-color: #e9580c;
  color: #e9580c;
}
.psc .btn-outline:hover {
  background: #fdeee7;
}
.psc .btn-outline:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: transparent;
}
.psc .btn-ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--heading);
}
.psc .btn-ghost:hover {
  background: var(--surface-2);
}
.psc .btn-link {
  background: none;
  border: 0;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.psc .btn-sm {
  padding: 8px 14px;
  font-size: 14px;
}

/* intro */
.psc .eyebrow {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #18b2e8;
}

/* quiz: embedded panel on the landing view (light-blue section rail + question) */
.psc #scorecard-panel {
  scroll-margin-top: 120px;
}
.psc.psc-landing {
  background: linear-gradient(to bottom, #17245f 100px, #fff 60px);
  /* padding-block: clamp(32px, 5vw, 64px) 0; */
}
.psc .qpanel {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-margin-top: 120px;
}
.psc .rail {
  background: #dcebf8;
  padding: 28px 18px;
}
.psc .rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.psc .rail li button {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--muted);
}
.psc .rail li button:hover {
  background: rgba(255, 255, 255, 0.5);
}
.psc .rail li button:disabled {
  cursor: default;
}
.psc .rail .num {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #9fb6cf;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.psc .rail .lbl {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.psc .rail .lbl b {
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.3;
}
.psc .rail .lbl small {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.psc .rail li.active button {
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 36, 95, 0.08);
}
.psc .rail li.active .num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.psc .rail li.active .lbl b {
  font-weight: 700;
}
.psc .rail li.done .num {
  background: var(--good);
  border-color: var(--good);
  color: #fff;
}
.psc .rail .timeleft {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  padding-left: 12px;
}
.psc .qmain {
  padding: clamp(22px, 3.5vw, 40px);
  min-width: 0;
}
.psc .qprog .t {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.psc .qprog .track {
  height: 4px;
  border-radius: 4px;
  background: var(--surface-2);
  overflow: hidden;
}
.psc .qprog .track i {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.25s;
}
.psc .qcard {
  margin-top: clamp(24px, 3vw, 36px);
}
.psc .qtitle:focus {
  outline: none;
}
.psc .opts.opts-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.psc .opts.opts-2 .opt {
  padding: 12px 16px;
  border-radius: 10px;
}
.psc .qsection {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.psc .qtitle {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  margin-top: 12px;
  letter-spacing: -0.01em;
  max-width: 34ch;
}
.psc .qhelp {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  max-width: 64ch;
}
.psc .answers {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0 14px;
}
.psc .spectrum {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-block: 4px;
}
.psc .spectrum .bar {
  flex: 1;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #e9580c, #fdd2b9 30%, #18b2e8 70%, #004f9e);
}
.psc .spectrum .lab {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.psc .opts {
  display: grid;
  gap: 10px;
  grid-row: 1;
  grid-column: 2;
}
.psc .opt {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition:
    border-color 0.12s,
    background 0.12s;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
}
.psc .opt:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}
.psc .opt .dot {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  margin-top: 2px;
  display: grid;
  place-items: center;
}
.psc .opt.check .dot {
  border-radius: 6px;
}
.psc .opt[aria-checked='true'] {
  border-color: var(--sel-line);
  background: var(--sel-bg);
  color: var(--ink);
}
.psc .opt[aria-checked='true'] .dot {
  border-color: var(--sel-line);
  background: var(--sel-line);
}
.psc .opt[aria-checked='true'] .dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface);
}
.psc .opt.check[aria-checked='true'] .dot::after {
  width: 10px;
  height: 6px;
  border-radius: 0;
  background: none;
  border-left: 2px solid var(--surface);
  border-bottom: 2px solid var(--surface);
  transform: rotate(-45deg) translate(1px, -1px);
}
.psc .opt:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.psc .opt.na {
  grid-column: 2;
  margin-top: 6px;
  border-style: dashed;
  font-size: 15px;
  color: var(--muted);
}
.psc .chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.psc .chips .opt {
  font-size: 15px;
  padding: 12px 14px;
}
.psc .qnav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.psc .hint {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* gate */
/* Same white card as the quiz panel: summary left, light-blue form box right. */
.psc .gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 3.5vw, 40px);
  scroll-margin-top: 120px;
}
.psc .gate .eyebrow {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: #18b2e8;
}
.psc .gate h2 {
  margin-top: 10px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--heading);
}
.psc .gate .lead {
  margin-top: 24px;
  color: var(--text);
  font-size: 15px;
  max-width: 52ch;
}
.psc .teaser {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.psc .teaser div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}
.psc .teaser div::before {
  content: '';
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid #18b2e8;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M1 4l2.5 2.5L9 1' stroke='%2318b2e8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center;
}
.psc .gate-review {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: #e9580c;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.psc .gate-review:hover {
  color: #d24e09;
}
.psc .form {
  background: #dcebf8;
  border-radius: 16px;
  padding: clamp(22px, 3vw, 32px);
}
.psc .form h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
}
.psc .field {
  display: grid;
  gap: 6px;
}
.psc .field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
}
.psc .field input,
.psc .field textarea,
.psc .field select {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 16px;
  width: 100%;
}
.psc .field input:focus,
.psc .field textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.psc .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.psc .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
}
.psc .consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.psc .err {
  color: var(--crit);
  font-size: 14px;
  min-height: 1em;
}

/* results */
.psc .res-hero {
  background: var(--hero-bg);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.psc .res-hero::before {
  content: '';
  position: absolute;
  left: -260px;
  bottom: -360px;
  width: 720px;
  height: 740px;
  background: url('/payroll-transformation-scorecard/img/swirl-fineline.svg') no-repeat
    center/contain;
  opacity: 0.4;
  pointer-events: none;
}
.psc .res-hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-block: clamp(36px, 5vw, 60px);
}
.psc .example-flag {
  display: inline-block;
  background: #e9580c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 14px;
}
.psc .res-hero .eyebrow {
  color: #8fd3f4;
}
.psc .profile-name {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-top: 10px;
}
.psc .profile-desc {
  color: var(--hero-muted);
  font-size: 18px;
  font-weight: 300;
  margin-top: 14px;
  max-width: 52ch;
}
.psc .headline-scores {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.psc .hs {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 14px 20px;
  min-width: 170px;
}
.psc .hs .v {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(45deg, #18b2e8, #9ed8f5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.psc .hs .v small {
  font-size: 16px;
  font-weight: 600;
  -webkit-text-fill-color: var(--hero-muted);
}
.psc .hs .l {
  font-size: 13px;
  color: var(--hero-muted);
  margin-top: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.psc .quad-wrap {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 16px;
}
.psc .quad-wrap svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 440px;
  margin: 0 auto;
}
.psc .section {
  padding-block: clamp(32px, 4vw, 52px);
}
.psc .section + .section {
  border-top: 1px solid var(--line);
}
.psc .sec-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.psc .sec-head h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.01em;
}
.psc .sec-head p {
  color: var(--muted);
  font-size: 15px;
  max-width: 60ch;
  margin-top: 6px;
}
.psc .pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.psc .pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.psc .pcard.pri {
  border-color: #e9580c;
  box-shadow: 0 0 0 1px #e9580c inset;
}
.psc .pcard .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 26px;
}
.psc .pcard h3 {
  font-size: 16px;
  font-weight: 700;
}
.psc .chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.psc .chip-pri {
  background: #e9580c;
  color: #fff;
}
.psc .chip-ok {
  background: color-mix(in srgb, var(--good) 16%, transparent);
  color: var(--good);
}
.psc .pcard .num {
  font-size: 40px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.psc .pcard .num small {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}
.psc .meter {
  height: 8px;
  border-radius: 8px;
  background: var(--surface-2);
  overflow: hidden;
}
.psc .meter i {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #18b2e8, #004f9e);
}
.psc .pcard.pri .meter i {
  background: linear-gradient(90deg, #fdd2b9, #e9580c);
}
.psc .subs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.psc .subs b {
  display: block;
  color: var(--heading);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.psc .pcard .band {
  font-size: 14px;
  color: var(--text);
}
.psc .opp {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.psc .oppcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.psc .oppcard .oh {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.psc .oppcard .rank {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(45deg, #e9580c, #fdd2b9);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  display: grid;
  place-items: center;
}
.psc .oppcard .oh h3 {
  font-size: 22px;
}
.psc .oppcard .oh p {
  margin-top: 6px;
  font-size: 17px;
  color: var(--text);
}
.psc .ogrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.psc .ogrid > div {
  padding: 22px 28px;
}
.psc .ogrid > div + div {
  border-left: 1px solid var(--line);
}
.psc .ogrid h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.psc .ogrid p,
.psc .ogrid li {
  font-size: 15px;
  color: #333;
}
.psc .ogrid ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.psc .ogrid .q li {
  color: var(--heading);
  font-weight: 600;
}
.psc .signals {
  padding: 0 28px 24px;
}
.psc .signals h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px 0 10px;
}
.psc .gap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
}
.psc .gap > div {
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
}
.psc .gap .now {
  background: var(--surface-2);
  color: #333;
}
.psc .gap .lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.psc .gap .now .lbl {
  color: var(--crit);
}
.psc .gap .good .lbl {
  color: var(--good);
}
.psc .gap .qt {
  grid-column: 1/-1;
  padding: 10px 16px;
  font-weight: 600;
  color: var(--heading);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.psc .triggers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.psc .trig {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}
.psc .trig h3 {
  font-size: 16px;
}
.psc .trig p {
  font-size: 14px;
  margin-top: 6px;
  color: var(--text);
}
.psc .prefs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.psc .pref {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}
.psc .pref h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.psc .pref p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--heading);
  font-weight: 600;
}
.psc .cta {
  background: linear-gradient(45deg, #18b2e8, #004f9e);
  color: #fff;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.psc .cta h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
}
.psc .cta p {
  color: #e3f3fc;
  margin-top: 10px;
  font-size: 16px;
  max-width: 52ch;
}
.psc .cta .field label {
  color: #fff;
}
.psc .cta textarea {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  min-height: 84px;
  resize: vertical;
}
.psc .cta textarea::placeholder {
  color: #cfe7f7;
}
.psc .cta .btn-orange {
  margin-top: 12px;
}
.psc .cta .done {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px 18px;
  font-weight: 600;
}
.psc .res-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.psc .disclaimer {
  font-size: 13px;
  color: var(--muted);
  max-width: 90ch;
}
.psc .toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 50;
  box-shadow: var(--shadow);
}

.psc .gate-scores {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.psc .gate-scores div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 110px;
}
.psc .gate-scores b {
  display: block;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  color: #e9580c;
  font-variant-numeric: tabular-nums;
}
.psc .gate-scores span {
  font-size: 12px;
  color: var(--muted);
}
.psc .gate-scores .locked b {
  color: #e9580c;
}
.psc .capacity {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(22px, 3vw, 36px);
}
.psc .capacity h2 {
  font-size: clamp(20px, 2.2vw, 26px);
}
.psc .capacity #cap-fte {
  color: #e9580c;
}
.psc .cap-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  max-width: 62ch;
}
.psc .cap-box {
  background: var(--surface-2);
  border-radius: 16px;
  padding: 20px;
}
.psc .cap-val {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(45deg, #e9580c, #f29a6b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.psc .cap-lbl {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.psc .cap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.psc .cap-row select {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 14px;
}
.psc .cap-box input[type='range'] {
  width: 100%;
  accent-color: var(--accent);
  margin-top: 8px;
}
.psc .cta-opts {
  display: grid;
  gap: 8px;
}
.psc .cta-opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}
.psc .cta-opt input {
  margin-top: 4px;
  accent-color: #e9580c;
}
.psc .cta input[type='tel'] {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.psc .tier {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.psc .tier-Hot {
  background: #e9580c;
  color: #fff;
}
.psc .tier-Warm {
  background: color-mix(in srgb, var(--warn) 20%, transparent);
  color: var(--warn);
}
.psc .tier-Nurture {
  background: var(--surface-2);
  color: var(--muted);
}

/* admin */
.psc .admin {
  padding-block: 36px 60px;
}
.psc .kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
}
.psc .kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.psc .kpi b {
  display: block;
  font-size: 28px;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.psc .kpi span {
  font-size: 13px;
  color: var(--muted);
}
.psc .tablewrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.psc table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  min-width: 980px;
}
.psc th,
.psc td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.psc th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  background: var(--surface-2);
  position: sticky;
  top: 0;
}
.psc td.n {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.psc tr.lead-row {
  cursor: pointer;
}
.psc tr.lead-row:hover td {
  background: var(--surface-2);
}
.psc .flag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 7px;
  margin: 1px 2px 1px 0;
  background: color-mix(in srgb, #e9580c 16%, transparent);
  color: var(--crit);
}
.psc .prof {
  font-weight: 600;
  color: var(--heading);
}
.psc .detail td {
  background: var(--bg);
}
.psc .detail pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 13px;
  margin: 0;
}
.psc .empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 900px) {
  .psc .qpanel {
    grid-template-columns: minmax(0, 1fr);
  }
  .psc .rail {
    display: none;
  }
  .psc .res-hero .wrap,
  .psc .gate,
  .psc .cta {
    grid-template-columns: minmax(0, 1fr);
  }
  .psc .prefs,
  .psc .capacity {
    grid-template-columns: minmax(0, 1fr);
  }
  .psc .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .psc .ogrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .psc .ogrid > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .psc .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .psc .opts.opts-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .psc .pillars,
  .psc .chips,
  .psc .row2,
  .psc .gap {
    grid-template-columns: minmax(0, 1fr);
  }
  .psc .answers {
    grid-template-columns: minmax(0, 1fr);
  }
  .psc .spectrum {
    display: none;
  }
  .psc .opts,
  .psc .opt.na {
    grid-column: 1;
  }
  .psc .oppcard .oh,
  .psc .ogrid > div,
  .psc .signals {
    padding-inline: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .psc,
  .psc * {
    transition: none !important;
    animation: none !important;
  }
}
.psc .fade {
  animation: fade 0.25s ease-out;
}
@keyframes fade {
  from {
    transform: translateY(6px);
  }
  to {
    transform: none;
  }
}
