.payroll-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
  padding-block: 88px 74px;
}

.payroll-hero-copy h1 {
  max-width: 790px;
  margin: 20px 0 24px;
  color: var(--ink-deep);
  font-size: clamp(46px, 5.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.payroll-hero-copy h1 em {
  color: var(--brand);
  font-style: normal;
}

.payroll-hero-copy > p {
  max-width: 770px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.payroll-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 26px 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.payroll-assurances li::before {
  margin-right: 7px;
  color: var(--brand);
  content: "✓";
}

.payroll-decision-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(var(--brand-rgb), .28);
  border-radius: 28px;
  background: linear-gradient(155deg, #fff 25%, var(--brand-pale));
  box-shadow: 0 30px 80px rgba(23, 47, 67, .12);
}

.payroll-decision-card::after {
  position: absolute;
  top: -90px;
  right: -80px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(var(--brand-rgb), .09);
  content: "";
}

.payroll-decision-card h2 {
  position: relative;
  z-index: 1;
  margin: 24px 0 10px;
  color: var(--ink-deep);
  font-size: 32px;
  line-height: 1.12;
}

.payroll-decision-card > p {
  position: relative;
  z-index: 1;
  margin: 0 0 25px;
  color: var(--muted);
  line-height: 1.65;
}

.payroll-model-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.payroll-model-list > div {
  display: grid;
  grid-template-columns: 38px minmax(86px, .7fr) minmax(0, 1.3fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(34, 55, 80, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .84);
}

.model-code {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 10px;
  font-weight: 900;
}

.payroll-model-list strong { color: var(--ink-deep); }
.payroll-model-list small { color: var(--muted); font-size: 11px; line-height: 1.35; text-align: right; }

.payroll-axes { padding-block: 82px 96px; }
.payroll-section-heading h2 { max-width: 690px; }

.payroll-axis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.payroll-axis-grid article {
  min-height: 235px;
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(31, 46, 68, .06);
}

.payroll-axis-grid article > span,
.payroll-result-list article > span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 900;
}

.payroll-axis-grid h3 { margin: 22px 0 11px; color: var(--ink-deep); font-size: 21px; }
.payroll-axis-grid p { margin: 0; color: var(--muted); line-height: 1.65; }

.payroll-models {
  padding-block: 82px 92px;
  background: var(--ink-deep);
  color: #fff;
}

.payroll-models-heading {
  max-width: 870px;
}

.payroll-models-heading h2 {
  margin: 15px 0 17px;
  color: #fff;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.payroll-models-heading > p {
  max-width: 760px;
  margin: 0;
  color: #bec9d6;
  font-size: 17px;
  line-height: 1.7;
}

.payroll-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.payroll-model-grid article {
  min-height: 365px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: rgba(255, 255, 255, .07);
}

.payroll-model-index {
  display: block;
  color: #83d9e7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.payroll-model-grid h3 { margin: 25px 0 12px; color: #fff; font-size: 27px; }
.payroll-model-grid p { min-height: 76px; margin: 0; color: #c5cfda; line-height: 1.6; }
.payroll-model-grid ul { display: grid; gap: 11px; margin: 25px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); list-style: none; }
.payroll-model-grid li { color: #fff; font-size: 13px; font-weight: 700; }
.payroll-model-grid li::before { margin-right: 9px; color: #83d9e7; content: "—"; }

.payroll-results {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
  padding-block: 92px;
}

.payroll-results-copy {
  position: sticky;
  top: 105px;
}

.payroll-results-copy h2 {
  margin: 15px 0 20px;
  color: var(--ink-deep);
  font-size: clamp(35px, 4vw, 49px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.payroll-results-copy > p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.payroll-results-copy > small { display: block; margin-top: 25px; padding: 16px; border-left: 3px solid var(--brand); background: #fff; color: var(--muted); font-size: 12px; line-height: 1.55; }

.payroll-result-list { display: grid; gap: 14px; }

.payroll-result-list article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 17px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.payroll-result-list strong { display: block; margin: 1px 0 6px; color: var(--ink-deep); font-size: 17px; }
.payroll-result-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.payroll-how { background: #eef8fa; border-block: 1px solid #d7ebef; }

.payroll-how-inner {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 80px;
  padding-block: 78px;
}

.payroll-how .kicker-light { color: var(--brand-dark); }
.payroll-how h2 { margin: 16px 0 0; color: var(--ink-deep); font-size: 42px; line-height: 1.1; }
.payroll-how ol { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.payroll-how li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.payroll-how li > span { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(var(--brand-rgb), .24); border-radius: 50%; background: #fff; color: var(--brand-deep); font-weight: 900; }
.payroll-how strong { display: block; margin-bottom: 6px; color: var(--ink-deep); font-size: 19px; }
.payroll-how p { margin: 0; color: var(--muted); line-height: 1.65; }

.payroll-account {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
  padding-block: 90px;
}

.payroll-account h2 {
  margin: 15px 0 20px;
  color: var(--ink-deep);
  font-size: clamp(36px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.payroll-account-copy > p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

.identity-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0 18px;
}

.identity-providers span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-deep);
  font-size: 12px;
  font-weight: 800;
}

.identity-providers img {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  object-fit: contain;
  flex-shrink: 0;
}

.identity-providers .provider-microsoft { background: #eef4fb; color: #315f98; }
.identity-providers .provider-apple { background: #eef0f3; color: var(--ink-deep); }
.payroll-account-copy .payroll-account-note { color: var(--muted-light); font-size: 12px; line-height: 1.55; }

.payroll-ai-card {
  padding: 34px;
  border: 1px solid rgba(var(--brand-rgb), .25);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, var(--brand-pale));
  box-shadow: var(--shadow-md);
}

.payroll-ai-card h3 { margin: 23px 0 13px; color: var(--ink-deep); font-size: 28px; line-height: 1.15; }
.payroll-ai-card > p { margin: 0; color: var(--muted); line-height: 1.65; }
.payroll-ai-card ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.payroll-ai-card li { padding: 11px 12px; border-radius: 11px; background: #fff; color: var(--ink-deep); font-size: 12px; font-weight: 800; }
.payroll-ai-card li::before { margin-right: 7px; color: var(--brand); content: "✓"; }
.payroll-ai-card small { display: block; margin-top: 20px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.payroll-final-cta h2 { max-width: 720px; }
.payroll-final-actions { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.payroll-all-analyses-link { color: #fff; }
.payroll-all-analyses-link:hover { color: #fff; }
.payroll-all-analyses-link::after { background: #fff; }

.report-next-steps { padding: clamp(26px, 4vw, 48px); border-bottom: 1px solid var(--line); background: #f7fafc; }
.report-meeting-callout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr); gap: 28px; align-items: center; padding: clamp(22px, 3vw, 32px); border: 1px solid #b6dce4; border-radius: 18px; background: #e7f5f8; }
.report-meeting-callout h3 { margin: 12px 0; color: var(--ink-deep); font-size: clamp(23px, 3vw, 32px); line-height: 1.22; letter-spacing: -.025em; }
.report-meeting-callout p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.report-meeting-callout .kicker { font-size: 10px; }
.report-meeting-actions { display: grid; gap: 17px; justify-items: center; min-width: 0; text-align: center; }
.report-meeting-actions .button { width: 100%; min-width: 0; white-space: normal; }
.report-meeting-actions .quiet-link { font-size: 12px; line-height: 1.5; }
.report-navigation-note { margin: 13px 0 32px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.payroll-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 24px; }
.payroll-service-card { display: flex; flex-direction: column; min-width: 0; padding: 23px; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 16px; background: #fff; }
.payroll-service-category { color: var(--brand-deep); font-size: 9px; font-weight: 850; letter-spacing: .11em; }
.payroll-service-card h4 { margin: 12px 0 15px; color: var(--ink-deep); font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
.payroll-service-reason { margin: 0 0 16px; padding: 12px; border-radius: 9px; background: #edf7f9; color: var(--brand-deep); font-size: 11px; line-height: 1.55; }
.payroll-service-reason strong { display: block; margin-bottom: 4px; }
.payroll-service-benefit { margin: 0 0 24px; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.payroll-service-link { display: block; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); color: var(--brand-deep); font-size: 12px; font-weight: 850; line-height: 1.5; overflow-wrap: anywhere; text-decoration: none; }
.payroll-service-link:hover { text-decoration: underline; }
.payroll-service-link:focus-visible,
.payroll-other-services summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 5px; border-radius: 4px; }
.payroll-other-services { margin-top: 23px; }
.payroll-other-services summary { width: fit-content; color: var(--brand-deep); font-size: 13px; font-weight: 800; cursor: pointer; line-height: 1.6; }
.payroll-other-services .payroll-service-card { border-top-width: 1px; }

@media (max-width: 1080px) {
  .payroll-hero { grid-template-columns: 1fr; }
  .payroll-decision-card { max-width: 720px; }
  .payroll-axis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payroll-results { grid-template-columns: 1fr; }
  .payroll-results-copy { position: static; }
}

@media (max-width: 820px) {
  .payroll-model-grid { grid-template-columns: 1fr; }
  .payroll-model-grid article { min-height: auto; }
  .payroll-model-grid p { min-height: 0; }
  .payroll-how-inner,
  .payroll-account { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 760px) {
  .payroll-hero { padding-block: 52px; }
  .payroll-hero-copy h1 { font-size: 42px; }
  .payroll-hero-copy > p { font-size: 16px; }
  .payroll-axis-grid { grid-template-columns: 1fr; }
  .payroll-axis-grid article { min-height: auto; }
  .payroll-model-list > div { grid-template-columns: 38px 1fr; }
  .payroll-model-list small { grid-column: 2; text-align: left; }
  .payroll-models-heading h2,
  .payroll-how h2 { font-size: 35px; }
  .payroll-results,
  .payroll-account { padding-block: 64px; }
  .payroll-ai-card ul { grid-template-columns: 1fr; }
  .payroll-final-actions { align-items: flex-start; }
}

/* Staging questionnaire flow preview */
.payroll-questionnaire-page {
  background: #f5f7fa;
}

.payroll-efficiency-page > .deployment-preview-notice,
.payroll-questionnaire-page > .deployment-preview-notice {
  display: none;
}

.payroll-questionnaire-page [hidden] {
  display: none !important;
}

.payroll-flow-notice {
  margin-bottom: 0;
}

.payroll-flow-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 48px;
  align-items: end;
  padding-block: 58px 38px;
}

.payroll-flow-hero h1 {
  margin: 13px 0 14px;
  color: var(--ink-deep);
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.payroll-flow-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.payroll-flow-status {
  display: grid;
  gap: 5px;
  padding: 22px;
  border: 1px solid rgba(var(--brand-rgb), .24);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(28, 45, 68, .06);
}

.payroll-flow-status span {
  color: var(--brand-deep);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.payroll-flow-status strong { color: var(--ink-deep); font-size: 18px; }
.payroll-flow-status small { color: var(--muted); line-height: 1.45; }

.payroll-flow-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding-bottom: 88px;
}

.payroll-flow-nav {
  position: sticky;
  top: 90px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(28, 45, 68, .05);
}

.flow-progress-copy { display: grid; gap: 4px; }
.flow-progress-copy span { color: var(--brand-deep); font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.flow-progress-copy strong { color: var(--ink-deep); font-size: 15px; line-height: 1.35; }

.flow-progress-track {
  overflow: hidden;
  height: 5px;
  margin: 17px 0 20px;
  border-radius: 99px;
  background: #e8edf1;
}

.flow-progress-track span {
  display: block;
  width: 8.33%;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width .24s ease;
}

.payroll-flow-nav ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: payroll-flow;
}

.payroll-flow-nav li {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 8px 9px;
  border-radius: 9px;
  color: #7a8798;
  font-size: 12px;
  font-weight: 700;
  counter-increment: payroll-flow;
}

.payroll-flow-nav li::before {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 7px;
  background: #f0f3f6;
  color: #738093;
  font-size: 9px;
  content: counter(payroll-flow, decimal-leading-zero);
}

.payroll-flow-nav li.is-current {
  background: var(--brand-pale);
  color: var(--ink-deep);
}

.payroll-flow-nav li.is-current::before { background: var(--brand); color: #fff; }

.payroll-flow-nav > p {
  margin: 19px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.payroll-flow-nav > p span { color: var(--brand); }
.payroll-flow-main { min-width: 0; }

.payroll-flow-main form,
.payroll-preview-complete {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(28, 45, 68, .07);
}

.payroll-step {
  padding: clamp(25px, 4vw, 44px);
}

.step-heading {
  margin-bottom: 32px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}

.step-heading > span {
  color: var(--brand-deep);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.step-heading h2 {
  max-width: 780px;
  margin: 10px 0 12px;
  color: var(--ink-deep);
  font-size: clamp(28px, 3.2vw, 41px);
  line-height: 1.1;
  letter-spacing: -.035em;
  outline: none;
}

.step-heading p {
  max-width: 810px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.payroll-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.payroll-fieldset + .payroll-fieldset,
.payroll-fieldset + .payroll-number-grid,
.payroll-number-grid + .payroll-fieldset,
.payroll-number-grid + .payroll-select-field,
.payroll-select-field + .payroll-fieldset,
.payroll-toggle-card + .team-card-panel,
.team-card-panel + [data-team-fallback],
[data-team-fallback] + .payroll-fieldset,
.external-cost-panel,
.payroll-detail-panel,
.payroll-result-matrix + .payroll-fieldset {
  margin-top: 30px;
}

.payroll-fieldset legend {
  max-width: 850px;
  margin: 0 0 8px;
  padding: 0;
  color: var(--ink-deep);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.4;
}

.field-help {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.payroll-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payroll-choice-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.payroll-choice {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 58px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.payroll-choice:hover { border-color: rgba(var(--brand-rgb), .45); transform: translateY(-1px); }
.payroll-choice:focus-within { outline: 3px solid rgba(var(--brand-rgb), .18); outline-offset: 2px; }
.payroll-choice:has(input:checked) { border-color: var(--brand); background: var(--brand-pale); color: var(--ink-deep); }

.payroll-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-mark {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  margin-top: 1px;
  border: 2px solid #bac4d0;
  border-radius: 50%;
  background: #fff;
}

.checkbox-mark { border-radius: 6px; }
.payroll-choice input:checked + .choice-mark { border-color: var(--brand); box-shadow: inset 0 0 0 4px #fff; background: var(--brand); }
.payroll-choice input:checked + .checkbox-mark::after { color: #fff; font-size: 11px; font-weight: 900; content: "✓"; }

.payroll-number-grid,
.payroll-result-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.payroll-number-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Labels share the row height; long labels must not push only one input down. */
.payroll-number-grid > .payroll-number-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.payroll-number-grid > .payroll-number-field > input { margin-top: auto; }

.payroll-number-field,
.payroll-select-field,
.team-card-grid label,
.external-cost-card label {
  display: grid;
  gap: 7px;
  align-content: start;
}

.payroll-number-field > span,
.payroll-select-field > span,
.team-card-grid label > span,
.external-cost-card label > span {
  color: var(--ink-deep);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.payroll-number-field small,
.payroll-select-field small { color: var(--muted); font-size: 10px; line-height: 1.4; }

.payroll-number-field input,
.payroll-select-field select,
.team-card-grid input,
.team-card-grid select,
.external-cost-card input,
.external-cost-card select,
.ownership-matrix select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfd7df;
  border-radius: 10px;
  background: #fff;
  color: var(--ink-deep);
  font: inherit;
}

.payroll-number-field input:focus,
.payroll-select-field select:focus,
.team-card-grid input:focus,
.team-card-grid select:focus,
.external-cost-card input:focus,
.external-cost-card select:focus,
.ownership-matrix select:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(var(--brand-rgb), .16);
}

.payroll-toggle-card {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 17px;
  border: 1px solid rgba(var(--brand-rgb), .25);
  border-radius: 14px;
  background: var(--brand-pale);
  cursor: pointer;
}

.payroll-toggle-card input { width: 19px; height: 19px; accent-color: var(--brand); }
.payroll-toggle-card span { display: grid; gap: 3px; }
.payroll-toggle-card strong { color: var(--ink-deep); font-size: 14px; }
.payroll-toggle-card small { color: var(--muted); line-height: 1.45; }

.inline-alert {
  margin-bottom: 15px;
  padding: 13px 15px;
  border: 1px solid #ecd39e;
  border-radius: 11px;
  background: #fff9eb;
  color: #72551d;
  font-size: 12px;
  line-height: 1.5;
}

.team-card-panel[data-empty="true"]::after {
  display: block;
  padding: 22px;
  border: 1px dashed #c9d2dc;
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  content: "Önce kurum içi kişi sayısını girin.";
}

[data-team-cards] { display: grid; gap: 16px; }

.team-person-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fbfcfd;
}

.team-card-heading,
.external-cost-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.team-card-heading span { color: var(--brand-deep); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.team-card-heading h3 { margin: 4px 0 0; color: var(--ink-deep); font-size: 20px; }
.team-card-heading > strong { padding: 8px 10px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-deep); font-size: 14px; }
.team-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }

.allocation-control { margin-top: 20px; }
.allocation-control > span { display: block; margin-bottom: 8px; color: var(--ink-deep); font-size: 12px; font-weight: 800; }
.allocation-control output { display: inline-block; min-width: 58px; margin-left: 10px; padding: 6px 10px; border-radius: 8px; background: var(--brand-deep); color: #fff; font-size: 16px; font-variant-numeric: tabular-nums; text-align: center; }
.team-scope-note, .team-retained-share small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.team-retained-share:not([hidden]) { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.team-retained-share > span { color: var(--ink-deep); font-size: 13px; font-weight: 750; }
.team-retained-share input { max-width: 140px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.allocation-control > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.allocation-control button { min-width: 48px; min-height: 36px; border: 1px solid #cfd7df; border-radius: 9px; background: #fff; color: var(--brand-deep); font-weight: 900; cursor: pointer; }
.allocation-control input { width: 100%; accent-color: var(--brand); }
.team-person-card details { margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }
.team-person-card summary { color: var(--brand-deep); font-size: 12px; font-weight: 850; cursor: pointer; }
.team-task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.team-task-grid label { color: var(--muted); font-size: 11px; line-height: 1.35; }
.team-task-grid input { accent-color: var(--brand); }
.team-cost-placeholder { display: grid; gap: 5px; margin: 16px 0 0; padding: 13px 14px; border: 1px solid #c8e5ea; border-radius: 10px; background: #eef7f9; color: var(--brand-deep); font-size: 11px; line-height: 1.45; }
.team-cost-placeholder strong { color: var(--ink-deep); }
.team-cost-placeholder small { color: var(--muted); font-size: 9px; }
.team-cost-placeholder[data-state="calculated_test_only"] { border-color: #92ced7; background: #e8f7f9; }

.external-cost-panel { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #f8fafb; }
[data-external-costs] { display: grid; gap: 12px; margin-bottom: 14px; }
.external-cost-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.external-cost-card > div:first-child { grid-column: 1 / -1; }
.external-cost-card > div button { border: 0; background: transparent; color: #a04b4b; font-size: 11px; font-weight: 800; cursor: pointer; }

.ownership-matrix { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; }
.ownership-matrix label { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(240px, .9fr); gap: 18px; align-items: center; padding: 13px 15px; border-top: 1px solid var(--line); }
.ownership-matrix label:first-child { border-top: 0; }
.ownership-matrix label:nth-child(odd) { background: #fafbfd; }
.ownership-matrix label > span { color: var(--ink-deep); font-size: 12px; font-weight: 800; }
.ownership-matrix select { min-height: 40px; font-size: 12px; }

[data-conditional-field] { margin-top: 27px; padding: 20px; border-left: 3px solid var(--brand); border-radius: 0 14px 14px 0; background: #f7fafb; }
[data-conditional-field="employee-resolution"] { margin: 0; padding: 0; border: 0; background: transparent; }

.payroll-detail-panel { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfd; }
.payroll-detail-panel summary { color: var(--brand-deep); font-size: 13px; font-weight: 850; cursor: pointer; }
.payroll-detail-panel[open] summary { margin-bottom: 17px; }

.payroll-flow-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 17px clamp(25px, 4vw, 44px);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.payroll-flow-actions > span { color: var(--muted); font-size: 10px; text-align: center; }
.payroll-flow-actions button:disabled { opacity: .45; cursor: not-allowed; }

.payroll-preview-complete { padding: clamp(32px, 6vw, 72px); text-align: center; }
.payroll-preview-complete .completion-icon { display: grid; width: 54px; height: 54px; place-items: center; margin: 0 auto 20px; border-radius: 18px; background: var(--brand); color: #fff; font-size: 25px; font-weight: 900; }
.payroll-preview-complete h2 { max-width: 720px; margin: 13px auto; color: var(--ink-deep); font-size: clamp(32px, 4vw, 48px); line-height: 1.08; outline: none; }
.payroll-preview-complete > p { max-width: 650px; margin: 0 auto; color: var(--muted); line-height: 1.65; }
.preview-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 650px; margin: 30px auto; }
.preview-summary-grid article { display: grid; gap: 3px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfd; }
.preview-summary-grid strong { color: var(--brand-deep); font-size: 25px; }
.preview-summary-grid span { color: var(--muted); font-size: 10px; }
.payroll-preview-complete .hero-actions { justify-content: center; }

/* Client-only explainable scoring report */
.payroll-result-report {
  --report-tone: #657487;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(28, 45, 68, .07);
}

.payroll-result-report[data-tone="positive"] { --report-tone: #18845e; }
.payroll-result-report[data-tone="watch"] { --report-tone: #aa7710; }
.payroll-result-report[data-tone="develop"] { --report-tone: #c36718; }
.payroll-result-report[data-tone="priority"] { --report-tone: #be493f; }
.payroll-result-report[data-tone="critical"] { --report-tone: #972f43; }

.payroll-report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(34px, 6vw, 70px);
  background:
    radial-gradient(circle at 95% 5%, rgba(109, 214, 230, .2), transparent 34%),
    linear-gradient(135deg, #10223e, #173750);
  color: #fff;
}

.payroll-report-heading .kicker { color: #83d9e7; }

.report-level {
  display: table;
  margin-top: 20px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--report-tone), #fff 35%);
  border-radius: 99px;
  background: color-mix(in srgb, var(--report-tone), transparent 72%);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.payroll-report-heading h2 {
  max-width: 770px;
  margin: 15px 0;
  color: #fff;
  font-size: clamp(34px, 4.5vw, 57px);
  line-height: 1.03;
  letter-spacing: -.045em;
  outline: none;
}

.payroll-report-heading > p {
  max-width: 720px;
  margin: 0;
  color: #c7d2dd;
  line-height: 1.65;
}

.report-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.report-meta-pills span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  color: #d6e0e8;
  font-size: 9px;
  font-weight: 800;
}

.score-gauge {
  --score: 0;
  --gauge-tone: #657487;
  position: relative;
  display: grid;
  width: 190px;
  height: 190px;
  place-items: center;
  justify-self: end;
  border-radius: 50%;
  background: conic-gradient(var(--gauge-tone) calc(var(--score) * 1%), rgba(255, 255, 255, .12) 0);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}

.score-gauge[data-tone="positive"] { --gauge-tone: #45cf99; }
.score-gauge[data-tone="watch"] { --gauge-tone: #f0ba42; }
.score-gauge[data-tone="develop"] { --gauge-tone: #f18a36; }
.score-gauge[data-tone="priority"] { --gauge-tone: #ee6b60; }
.score-gauge[data-tone="critical"] { --gauge-tone: #eb5572; }

.score-gauge::before {
  position: absolute;
  width: 146px;
  height: 146px;
  border-radius: 50%;
  background: #142b45;
  content: "";
}

.score-gauge > div,
.score-gauge > span { position: absolute; right: 0; left: 0; z-index: 1; }
.score-gauge > div { top: 50%; display: flex; align-items: baseline; justify-content: center; transform: translateY(-24px); }
.score-gauge strong { color: #fff; font-size: 55px; line-height: 1; letter-spacing: -.06em; }
.score-gauge small { margin-left: 5px; color: #aab9c8; font-size: 11px; font-weight: 800; }
.score-gauge > span { top: 50%; margin-top: 29px; color: #b9c8d5; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-align: center; text-transform: uppercase; }

.report-coverage,
.report-dimensions,
.report-capacity-cost,
.report-commercial-comparison,
.report-service-comparison,
.report-price-estimate,
.report-visibility {
  padding: clamp(30px, 5vw, 55px);
  border-bottom: 1px solid var(--line);
}

.report-section-heading > span,
.report-direction > div > span {
  color: var(--brand-deep);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.report-section-heading h3,
.report-direction h3 {
  margin: 8px 0 0;
  color: var(--ink-deep);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.report-section-heading > p {
  max-width: 760px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.report-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 27px;
}

.report-stat-grid article {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafbfd;
}

.report-stat-grid strong { color: var(--ink-deep); font-size: 25px; letter-spacing: -.03em; }
.report-stat-grid span { color: var(--muted); font-size: 10px; line-height: 1.4; }

.report-integrity-note {
  margin: 17px 0 0;
  padding: 13px 15px;
  border-left: 3px solid var(--brand);
  border-radius: 0 11px 11px 0;
  background: #eef7f9;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.report-dimension-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.report-dimension-card {
  --dimension-tone: #8793a2;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.report-dimension-card[data-tone="positive"] { --dimension-tone: #18845e; }
.report-dimension-card[data-tone="watch"] { --dimension-tone: #aa7710; }
.report-dimension-card[data-tone="develop"] { --dimension-tone: #c36718; }
.report-dimension-card[data-tone="priority"] { --dimension-tone: #be493f; }
.report-dimension-card[data-tone="critical"] { --dimension-tone: #972f43; }

.dimension-heading { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.dimension-heading span { color: var(--ink-deep); font-size: 13px; font-weight: 850; }
.dimension-heading strong { color: var(--dimension-tone); font-size: 28px; letter-spacing: -.04em; }
.dimension-track { overflow: hidden; height: 6px; margin: 14px 0 10px; border-radius: 99px; background: #edf0f3; }
.dimension-track span { display: block; height: 100%; border-radius: inherit; background: var(--dimension-tone); }
.dimension-level { color: var(--dimension-tone); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.dimension-coverage { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.report-dimension-card p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.report-operational-profile {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #c9e4ea;
  border-radius: 14px;
  background: #f2fafb;
}
.report-operational-profile > span,
.report-cost-lineage span { color: var(--brand-deep); font-size: 9px; font-weight: 900; letter-spacing: .09em; }
.report-operational-profile h4 { margin: 8px 0 0; color: var(--ink-deep); font-size: 17px; }
.report-operational-profile ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 0; padding: 0; list-style: none; }
.report-operational-profile li { padding: 6px 9px; border-radius: 999px; background: #fff; color: var(--ink-deep); font-size: 10px; font-weight: 750; }
.report-operational-profile p { margin: 13px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

.report-cost-lineage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.report-cost-lineage > div { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.report-cost-lineage ul { display: grid; gap: 7px; margin: 11px 0 0; padding-left: 18px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.report-estimate-breakdown { margin: 15px 0 0; padding: 12px 14px; border-radius: 10px; background: #eef7f9; color: var(--ink-deep); font-size: 11px; font-weight: 750; line-height: 1.5; }

.report-two-column {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  border-bottom: 1px solid var(--line);
}

.report-panel { min-width: 0; padding: clamp(30px, 5vw, 55px); }
.report-panel + .report-panel { border-left: 1px solid var(--line); background: #fafcfd; }
.report-finding-list,
.report-strength-list { display: grid; gap: 12px; margin-top: 25px; }

.report-finding {
  --finding-tone: #c36718;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--finding-tone);
  border-radius: 13px;
  background: #fff;
}

.report-finding[data-tone="watch"] { --finding-tone: #aa7710; }
.report-finding[data-tone="develop"] { --finding-tone: #c36718; }
.report-finding[data-tone="priority"] { --finding-tone: #be493f; }
.report-finding[data-tone="critical"] { --finding-tone: #972f43; }
.finding-index { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--finding-tone), #fff 88%); color: var(--finding-tone); font-size: 10px; font-weight: 900; }
.finding-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.finding-heading h4 { margin: 0; color: var(--ink-deep); font-size: 15px; line-height: 1.35; }
.finding-heading strong { flex: 0 0 auto; color: var(--finding-tone); font-size: 9px; text-transform: uppercase; }
.report-finding p { margin: 8px 0 0; font-size: 11px; line-height: 1.5; }
.finding-evidence { color: var(--muted); }
.finding-action { padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink-deep); font-weight: 700; }

.report-strength {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 11px;
  padding: 14px;
  border: 1px solid #d9ebe4;
  border-radius: 12px;
  background: #f5fbf8;
}

.report-strength > span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: #dff3e9; color: #18845e; font-size: 11px; font-weight: 900; }
.report-strength h4 { margin: 2px 0 6px; color: var(--ink-deep); font-size: 13px; }
.report-strength p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.report-empty-state { margin: 22px 0 0; padding: 16px; border: 1px dashed #cbd4dd; border-radius: 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.report-capacity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 27px;
}

.report-capacity-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfd; }
.report-commercial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.report-capacity-grid.provider-view { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.report-capacity-grid article > span { color: var(--brand-deep); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.report-number-pair { display: flex; gap: 9px; align-items: baseline; margin-top: 14px; }
.report-number-pair strong { color: var(--ink-deep); font-size: 24px; letter-spacing: -.035em; }
.report-number-pair small { color: var(--muted); font-size: 9px; }
.report-capacity-grid p { margin: 13px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.provider-scope-fields { display: grid; gap: 18px; margin-bottom: 32px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #f7fafb; }
.service-comparison-table-wrap { margin-top: 26px; }
.service-comparison-table { width: 100%; border-collapse: collapse; table-layout: fixed; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.service-comparison-table caption { margin-bottom: 12px; color: var(--muted); font-size: 11px; text-align: left; }
.service-comparison-table th,
.service-comparison-table td { padding: 18px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.service-comparison-table thead th { background: #edf6f8; color: var(--brand-deep); font-size: 11px; }
.service-comparison-table thead th:first-child { width: 21%; }
.service-comparison-table tbody th { color: var(--ink-deep); background: #fafbfd; font-size: 12px; }
.service-comparison-table td strong { display: block; color: var(--ink-deep); font-size: 12px; }
.service-comparison-table td small { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; }
.service-comparison-table td[data-status="unknown"] strong { color: #85671d; }
.service-prozon-cell { background: #f1faf8; }
.report-software-benefit { margin-top: 25px; padding: 25px; border: 1px solid #abd5dd; border-radius: 16px; background: #edf9fb; }
.report-software-benefit > span { color: var(--brand-deep); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.report-software-benefit h4 { margin: 9px 0 12px; color: var(--ink-deep); font-size: 23px; line-height: 1.2; }
.report-software-benefit p,
.report-comparison-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.report-estimate-amount { display: grid; gap: 10px; margin-top: 26px; padding: 26px; border: 1px solid #badce3; border-radius: 16px; background: #eef8fa; }
.report-estimate-amount > span { color: var(--brand-deep); font-size: 12px; font-weight: 800; }
.report-estimate-amount strong { color: var(--ink-deep); font-size: clamp(26px, 3.8vw, 42px); letter-spacing: -.035em; }
.report-estimate-amount small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.estimate-assumptions { margin-top: 20px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.estimate-assumptions summary { color: var(--brand-deep); font-weight: 800; cursor: pointer; }
.report-prozon-offer { padding: clamp(30px, 5vw, 55px); border-bottom: 1px solid var(--line); background: #123149; color: #fff; }
.report-prozon-offer > span { color: #89dbe5; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.report-prozon-offer h3 { margin: 15px 0; max-width: 780px; color: #fff; font-size: clamp(25px, 3.2vw, 36px); line-height: 1.2; letter-spacing: -.025em; }
.report-prozon-offer p { color: #d6e4eb; font-size: 14px; line-height: 1.65; }
.report-prozon-offer small { display: block; color: #b7cbd7; font-size: 11px; line-height: 1.6; }
.report-prozon-offer .report-offer-next-step { margin-top: 25px; padding-top: 20px; border-top: 1px solid #3a576b; font-weight: 750; }

.report-direction {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 45px;
  align-items: center;
  padding: clamp(30px, 5vw, 55px);
  border-bottom: 1px solid #b9e1e8;
  background: #e9f7f9;
}

.report-direction p { max-width: 690px; margin: 12px 0 0; color: var(--ink-soft); line-height: 1.6; }
.report-direction dl { display: grid; gap: 11px; margin: 0; }
.report-direction dl > div { padding: 13px 15px; border: 1px solid rgba(var(--brand-rgb), .2); border-radius: 11px; background: rgba(255, 255, 255, .68); }
.report-direction dt { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.report-direction dd { margin: 5px 0 0; color: var(--ink-deep); font-size: 12px; font-weight: 800; line-height: 1.45; }

.report-visibility ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 22px 0 0; padding: 0; list-style: none; }
.report-visibility li { padding: 12px 14px; border: 1px solid #eadfbf; border-radius: 10px; background: #fffaf0; color: #6e5c34; font-size: 11px; line-height: 1.45; }
.report-visibility li::before { margin-right: 7px; color: #aa7710; font-weight: 900; content: "?"; }

.report-methodology { margin: clamp(25px, 4vw, 42px); padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfd; }
.report-methodology summary { color: var(--brand-deep); font-size: 13px; font-weight: 850; cursor: pointer; }
.report-methodology[open] summary { margin-bottom: 17px; }
.report-methodology p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.report-methodology p strong { color: var(--ink-deep); }
.report-methodology code { display: inline-block; margin-top: 15px; padding: 7px 9px; border-radius: 7px; background: #edf1f4; color: var(--ink-soft); font-size: 9px; }

.report-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 0 clamp(25px, 4vw, 42px) clamp(30px, 5vw, 48px); }
.report-actions .quiet-link { margin-left: auto; }

.payroll-ai-shell { margin: clamp(25px, 4vw, 42px); padding: clamp(22px, 4vw, 36px); border: 1px solid #b8dce5; border-radius: 22px; background: #f3fafc; }
.payroll-ai-account { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.payroll-ai-account p { flex: 1 1 420px; margin: 0; color: var(--muted); line-height: 1.6; }
.payroll-ai-provider-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.payroll-ai-shell > .auth-live-status { margin: 12px 0 0; }
.payroll-ai-shell > .form-alert { margin-top: 12px; }
.payroll-ai-shell .ai-analysis-panel { margin-top: 18px; }

@media (max-width: 1080px) {
  .payroll-flow-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 20px; }
  .payroll-number-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payroll-choice-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .payroll-flow-hero { grid-template-columns: 1fr; gap: 22px; }
  .report-meeting-callout { grid-template-columns: 1fr; }
  .report-meeting-actions { justify-items: start; text-align: left; }
  .report-meeting-actions .button { width: auto; }
  .payroll-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payroll-flow-status { max-width: 420px; }
  .payroll-flow-layout { grid-template-columns: 1fr; }
  .payroll-flow-nav { position: static; }
  .payroll-flow-nav ol { display: none; }
  .payroll-flow-nav > p { display: none; }
  .team-task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .payroll-report-hero,
  .report-direction { grid-template-columns: 1fr; }
  .score-gauge { justify-self: start; }
  .report-dimension-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-two-column { grid-template-columns: 1fr; }
  .report-panel + .report-panel { border-top: 1px solid var(--line); border-left: 0; }
  .report-stat-grid,
  .report-capacity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .payroll-flow-notice { flex-direction: column; align-items: stretch; gap: 8px; }
  .report-next-steps { padding: 26px 20px; }
  .payroll-service-grid { grid-template-columns: 1fr; }
  .report-meeting-actions .button { width: 100%; }
  .payroll-flow-notice strong,
  .payroll-flow-notice span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .payroll-flow-hero { padding-block: 38px 25px; }
  .payroll-flow-hero h1 { font-size: 38px; }
  .payroll-step { padding: 22px 17px; }
  .payroll-number-grid,
  .payroll-number-grid-four,
  .payroll-result-matrix,
  .team-card-grid,
  .external-cost-card,
  .preview-summary-grid { grid-template-columns: 1fr; }
  .ownership-matrix label { grid-template-columns: 1fr; gap: 8px; }
  .team-task-grid { grid-template-columns: 1fr; }
  .payroll-flow-actions { position: static; grid-template-columns: 1fr 1fr; padding: 15px 17px; }
  .payroll-flow-actions > span { grid-column: 1 / -1; grid-row: 1; }
  .payroll-flow-actions button { width: 100%; }
  .payroll-report-hero { padding: 30px 20px; }
  .score-gauge { width: 160px; height: 160px; }
  .score-gauge::before { width: 122px; height: 122px; }
  .score-gauge strong { font-size: 45px; }
  .report-stat-grid,
  .report-dimension-grid,
  .report-capacity-grid,
  .report-cost-lineage,
  .report-capacity-grid.provider-view,
  .report-visibility ul { grid-template-columns: 1fr; }
  .service-comparison-table,
  .service-comparison-table tbody,
  .service-comparison-table tr,
  .service-comparison-table th,
  .service-comparison-table td { display: block; width: 100%; }
  .service-comparison-table thead { display: none; }
  .service-comparison-table caption { display: block; width: 100%; }
  .service-comparison-table tr { margin-top: 18px; }
  .service-comparison-table td { border-top: 0; }
  .service-comparison-table td::before { display: block; margin-bottom: 8px; color: var(--brand-deep); font-size: 10px; font-weight: 900; content: attr(data-label); }
  .provider-scope-fields { padding: 16px; }
  .finding-heading { display: grid; }
  .report-actions { align-items: stretch; }
  .report-actions .button { width: 100%; }
  .report-actions .quiet-link { margin: 4px auto 0; }
  .payroll-ai-shell { margin: 20px 16px; padding: 20px 16px; }
  .payroll-ai-provider-actions,
  .payroll-ai-provider-actions .button { width: 100%; }
}

@media print {
  .site-header,
  .site-footer,
  .payroll-flow-notice,
  .payroll-flow-hero,
  .payroll-flow-nav,
  .report-meeting-actions,
  .report-navigation-note,
  .payroll-other-services,
  .report-actions { display: none !important; }
  .payroll-ai-shell { display: none !important; }
  .payroll-questionnaire-page { background: #fff; }
  .payroll-flow-layout { display: block; padding: 0; }
  .payroll-result-report { border: 0; box-shadow: none; }
  .payroll-report-hero { color-adjust: exact; print-color-adjust: exact; }
  .report-dimension-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-two-column { grid-template-columns: 1.12fr .88fr; }
  .report-methodology { break-inside: avoid; }
  .report-finding,
  .report-strength,
  .report-dimension-card,
  .service-comparison-table tr,
  .report-estimate-amount,
  .report-software-benefit,
  .report-capacity-grid article { break-inside: avoid; }
  .payroll-service-card,
  .report-meeting-callout { break-inside: avoid; }
  .payroll-service-grid { grid-template-columns: 1fr; }
  .report-prozon-offer { color-adjust: exact; print-color-adjust: exact; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-progress-track span,
  .payroll-choice { transition: none; }
}
