.pay-run-page { background:var(--lf-ivory,#f6f1e9); color:var(--lf-navy,#142638); }
#pay-run-root { max-width:1180px; margin:100px auto 60px; padding:0 24px; font-size:16px; line-height:1.5; }
#pay-run-root * { box-sizing:border-box; }
#pay-run-root h1 { font-size:2.25rem; margin:5px 0 8px; }
#pay-run-root h2 { font-size:1.35rem; margin:4px 0 12px; }
#pay-run-root p { margin:8px 0 16px; }
.pr-title,.pr-toolbar,.pr-section-heading,.pr-calculate,.pr-complete { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.pr-title { margin-bottom:22px; }
.pr-title>div { flex:1; min-width:220px; }
.pr-title p { max-width:760px; }
.pr-toolbar { justify-content:flex-start; margin:0 0 14px; }
.pr-toolbar select { flex:1; min-width:160px; max-width:440px; }
.pr-panel { background:#fff; border:1px solid var(--lf-line,#ddd6c9); border-radius:16px; padding:26px; margin:22px 0; box-shadow:0 6px 20px rgba(14,30,51,.04); }
.pr-panel>details>summary { display:flex; flex-wrap:wrap; gap:15px; justify-content:space-between; }
.pr-step { color:var(--lf-gold-deep,#7b6035); text-transform:uppercase; letter-spacing:.055em; font-size:.85rem; font-weight:700; }
.pr-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:19px; margin:18px 0; }
.pr-field { display:flex; flex-direction:column; gap:6px; min-width:0; }
.pr-field label { font-size:.9rem; font-weight:650; min-height:22px; }
#pay-run-root input:not([type=checkbox]),#pay-run-root select { width:100%; min-height:44px; padding:10px 12px; border:1px solid #a5adb4; border-radius:8px; background:#fff; color:#142638; font:inherit; font-size:1rem; min-width:0; }
#pay-run-root input::placeholder { color:#858b92; opacity:1; }
#pay-run-root .pr-required { color:#b42318; }
.pr-field small,.pr-note { font-size:.85rem; color:#58636f; }
.pr-checkbox { flex-direction:row-reverse; justify-content:flex-end; align-items:center; }
.pr-checkbox label { margin:0; }
#pay-run-root input[type=checkbox] { width:18px; height:18px; flex-shrink:0; accent-color:var(--lf-navy,#142638); }
#pay-run-root fieldset { border:0; min-width:0; padding:0; margin:0; }
#pay-run-root fieldset:disabled { opacity:.8; }
#pay-run-root .pr-subsection { border-top:1px solid #d8dde1; padding:20px 0 8px; margin-top:20px; }
#pay-run-root legend { font-size:1.05rem; font-weight:700; padding-top:10px; }
#pay-run-root summary { cursor:pointer; font-weight:700; padding:10px 0; }
#pay-run-root button { font:inherit; cursor:pointer; }
#pay-run-root .pr-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:11px 19px; border:1px solid var(--lf-navy,#142638); background:var(--lf-navy,#142638); color:#fff; border-radius:9px; font-weight:700; font-size:.9rem; }
#pay-run-root .pr-secondary { background:#fff; color:var(--lf-navy,#142638); border-color:#a5adb4; }
#pay-run-root button:disabled { opacity:.45; cursor:not-allowed; }
#pay-run-root :is(button,a,input,select,summary,[tabindex]):focus-visible { outline:3px solid var(--lf-gold,#c8a568); outline-offset:3px; }
#pay-run-root .pr-link { border:0; padding:8px; background:none; color:var(--lf-navy,#142638); font-size:.9rem; text-decoration:underline; }
.pr-employee { border:1px solid #d4dbe0; border-radius:11px; margin:14px 0; overflow:hidden; min-width:0; }
.pr-employee-head { display:flex; align-items:center; padding:10px; gap:7px; background:#fafbfc; }
#pay-run-root .pr-expand { display:flex; align-items:center; gap:15px; flex:1; background:none; border:0; text-align:left; padding:7px; min-width:0; }
.pr-expand>span:nth-child(2) { flex:1; min-width:0; overflow-wrap:anywhere; }
.pr-expand strong { font-size:1rem; }
.pr-expand small { display:block; font-size:.85rem; color:#58636f; }
.pr-number { border:1px solid #d4dbe0; border-radius:50%; width:30px; height:30px; flex-shrink:0; display:grid; place-items:center; font-size:.85rem; }
.pr-status { font-size:.85rem; padding:5px 10px; border-radius:6px; background:#e9edf1; font-weight:700; white-space:nowrap; }
.pr-status-ready { background:var(--lf-navy,#142638); color:#fff; }
.pr-status-needs_review,.pr-status-dirty { background:var(--lf-gold-soft,#f3ead8); color:var(--lf-navy,#142638); }
.pr-card-result { padding:0 24px; font-size:.9rem; }
.pr-card-result:not(:empty) { padding-top:8px; padding-bottom:10px; }
.pr-change { display:block; color:#58636f; font-size:.85rem; }
.pr-employee-body { padding:6px 24px 24px; }
.pr-warning { border-left:4px solid var(--lf-gold,#c8a568); background:#fff6e8; padding:14px 18px; margin:14px 0; border-radius:6px; overflow-wrap:anywhere; }
.pr-warning p:last-child { margin-bottom:0!important; }
.pr-info { border-color:#657e90; background:#f0f4f7; }
.pr-employee>.pr-warning { margin:10px 20px; }
.pr-recurring { font-size:.85rem; display:flex; align-items:center; gap:8px; margin-top:9px; }
.pr-calculate { border-top:1px solid #d4dbe0; padding-top:20px; margin-top:24px; }
.pr-totals { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:20px 0; }
.pr-totals>div { background:#f1f4f6; padding:18px; border-radius:9px; }
.pr-totals span { display:block; font-size:.85rem; }
.pr-totals strong { display:block; font-size:1.5rem; margin-top:6px; overflow-wrap:anywhere; }
.pr-totals>div:last-child { background:var(--lf-navy,#142638); color:white; }
.pr-ledger { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px 20px; max-width:720px; padding:15px 0; }
.pr-ledger dd { margin:0; text-align:right; font-variant-numeric:tabular-nums; }
.pr-table-wrap { max-width:100%; overflow-x:auto; margin-top:16px; }
#pay-run-root table { width:100%; border-collapse:collapse; font-size:.9rem; min-width:640px; }
#pay-run-root caption { text-align:left; font-weight:700; font-size:1rem; padding:10px 0; }
#pay-run-root th,#pay-run-root td { text-align:right; padding:13px 11px; border-bottom:1px solid #d4dbe0; white-space:nowrap; font-variant-numeric:tabular-nums; }
#pay-run-root th:first-child { text-align:left; white-space:normal; min-width:180px; overflow-wrap:anywhere; }
#pay-run-root th small { display:block; color:#58636f; font-weight:400; }
#pay-run-root thead,#pay-run-root tfoot { background:#f1f4f6; }
.pr-exports { display:flex; flex-wrap:wrap; gap:12px; margin:20px 0 0; }
.pr-complete>div { flex:1; min-width:220px; }
.pr-privacy { color:#58636f; font-size:.9rem; }
#pr-message:empty { display:none; }
#pr-message { font-weight:650; padding:10px 0; }
[hidden] { display:none!important; }
@media(max-width:900px) { .pr-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .pr-totals { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { #pay-run-root { padding:0 12px; margin-top:90px; } .pr-panel { padding:18px 14px; } .pr-grid { grid-template-columns:1fr; } .pr-employee-body { padding:6px 13px 20px; } .pr-title h1 { font-size:1.9rem; } .pr-expand { flex-wrap:wrap; gap:8px!important; } .pr-status { white-space:normal; } .pr-number { display:none; } .pr-expand>span:nth-child(2) { flex-basis:80%; } .pr-employee-head { align-items:flex-start; } .pr-totals>div { padding:12px; } .pr-totals strong { font-size:1.2rem; } .pr-toolbar { gap:10px; } .pr-toolbar label { width:100%; } .pr-exports .pr-button { width:100%; } .pr-complete>.pr-button { width:100%; } }

/* v1.6.2: keep the saved-run chooser readable on narrow mobile viewports. */
@media(max-width:560px) {
  .pr-toolbar select { flex:1 0 100%; max-width:none; }
}

/* v1.8.0: stable first paint for Pay Run applications.
   The static shell occupies the content region while the module graph loads,
   preventing the application body from popping into view after navigation. */
#pay-run-root.pr-preload { min-height:980px; }
.pr-preload-title { min-height:118px; }
.pr-preload-toolbar { display:flex; gap:12px; align-items:center; margin:0 0 14px; }
.pr-preload-toolbar span { display:block; height:44px; border-radius:9px; background:#ECE7DE; border:1px solid #DDD6C9; }
.pr-preload-toolbar span:first-child { width:118px; height:18px; border:0; background:#DED7CB; }
.pr-preload-toolbar span:nth-child(2) { width:min(440px,42vw); }
.pr-preload-toolbar span:nth-child(3) { width:128px; }
.pr-preload-panel { min-height:260px; overflow:hidden; }
.pr-preload-panel-short { min-height:190px; }
.pr-preload-line { display:block; border-radius:999px; background:#E8E2D8; }
.pr-preload-kicker { width:180px; height:14px; margin-bottom:18px; }
.pr-preload-heading { width:min(410px,72%); height:25px; margin-bottom:26px; }
.pr-preload-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:19px; }
.pr-preload-grid span { min-height:68px; border:1px solid #E2DBD0; border-radius:9px; background:#F7F4EF; }
@media(max-width:900px){ .pr-preload-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:560px){
  #pay-run-root.pr-preload { min-height:900px; }
  .pr-preload-toolbar { flex-wrap:wrap; }
  .pr-preload-toolbar span:first-child { width:100px; }
  .pr-preload-toolbar span:nth-child(2) { flex:1 0 100%; width:100%; }
  .pr-preload-grid { grid-template-columns:1fr; }
  .pr-preload-panel { min-height:340px; }
}


/* v1.9.0: payroll UI polish, privacy banner, sidebar guidance, and country-aware step accents. */
.pay-run-page {
  --pr-surface:#fff;
  --pr-surface-alt:#fcfaf7;
  --pr-line:#ded7cb;
  --pr-muted:#58636f;
  --pr-shadow:0 14px 34px rgba(20,38,56,.06);
  --pr-accent:var(--lf-gold,#c8a568);
  --pr-accent-soft:#f5ecdd;
  --pr-accent-contrast:var(--lf-navy,#142638);
  --pr-icon-navy:var(--lf-navy,#142638);
}
.pay-run-page[data-country="CA"] {
  --pr-accent:#b42318;
  --pr-accent-soft:#fcf0ef;
  --pr-accent-contrast:#fff8f5;
}
#pay-run-root { max-width:1280px; margin:98px auto 72px; padding:0 28px; }
.pr-title { margin-bottom:18px; }
.pr-title a { display:inline-flex; align-items:center; gap:8px; font-weight:700; color:var(--lf-navy,#142638); text-decoration:none; }
.pr-title a:hover { text-decoration:underline; }
.pr-title p { color:var(--pr-muted); max-width:780px; }

.pr-privacy-banner { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:18px; margin:0 0 20px; padding:20px 22px; background:linear-gradient(180deg,#fff 0%,#f9f7f2 100%); border:1px solid var(--pr-line); border-radius:18px; box-shadow:var(--pr-shadow); }
.pr-privacy-banner__icon,.pr-privacy-banner__cta,.pr-help-icon,.pr-link-download svg,.pr-step-icon { color:var(--pr-icon-navy); }
.pr-privacy-banner__icon { width:48px; height:48px; display:grid; place-items:center; border-radius:14px; border:1px solid rgba(20,38,56,.12); background:#fff; }
.pr-privacy-banner__icon svg,.pr-step-icon svg,.pr-help-icon svg,.pr-link-download svg,.pr-inline-circle svg,.pr-privacy-banner__cta svg { width:20px; height:20px; }
.pr-privacy-banner__body h2 { margin:0 0 6px; font-size:1.15rem; }
.pr-privacy-banner__body p { margin:0; color:var(--pr-muted); }
.pr-privacy-banner__cta { display:inline-flex; align-items:center; gap:8px; justify-self:end; text-decoration:none; font-weight:700; color:var(--lf-navy,#142638); white-space:nowrap; }
.pr-privacy-banner__cta:hover { text-decoration:underline; }

.pr-layout { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:26px; align-items:start; }
.pr-main { min-width:0; }
.pr-sidebar { position:sticky; top:108px; display:flex; flex-direction:column; gap:18px; }
.pr-sidebar-card { background:var(--pr-surface); border:1px solid var(--pr-line); border-radius:18px; padding:18px; box-shadow:var(--pr-shadow); }
.pr-sidebar-card h2 { font-size:1.05rem!important; margin:0 0 14px!important; }
.pr-progress-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.pr-progress-item { display:grid; grid-template-columns:32px 1fr; gap:12px; align-items:center; padding:10px 12px; border-radius:14px; color:var(--pr-muted); }
.pr-progress-item.is-active { background:var(--pr-accent-soft); color:var(--lf-navy,#142638); font-weight:700; }
.pr-progress-item.is-done { color:var(--lf-navy,#142638); }
.pr-progress-circle,.pr-inline-circle { width:32px; height:32px; border-radius:999px; display:grid; place-items:center; background:var(--pr-accent); color:var(--pr-accent-contrast); font-size:.9rem; font-weight:700; box-shadow:inset 0 0 0 1px rgba(0,0,0,.03); }
.pr-progress-item.is-done .pr-progress-circle { background:var(--lf-navy,#142638); color:#fff; }
.pr-help-list { display:flex; flex-direction:column; gap:10px; }
.pr-help-link { display:grid; grid-template-columns:40px minmax(0,1fr) 20px; gap:12px; align-items:center; padding:12px; border:1px solid #edf0f3; border-radius:14px; background:#fbfcfd; color:var(--lf-navy,#142638); text-decoration:none; }
.pr-help-link:hover { border-color:#cfd6dc; transform:translateY(-1px); }
.pr-help-icon { width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:#fff; border:1px solid rgba(20,38,56,.08); }
.pr-help-link strong,.pr-help-link small { display:block; }
.pr-help-link small { color:var(--pr-muted); }

.pr-toolbar { display:grid; grid-template-columns:auto minmax(240px,1fr) auto auto; align-items:center; gap:14px; margin:0 0 16px; }
.pr-toolbar label { font-size:.9rem; font-weight:700; color:var(--lf-navy,#142638); }
.pr-toolbar .pr-link-download { display:inline-flex; align-items:center; gap:8px; justify-content:center; padding:11px 14px; border-radius:12px; border:1px dashed #cfd6dc; text-decoration:none; }
.pr-toolbar .pr-link-download:hover { background:#fff; border-color:#9eadba; text-decoration:none; }
.pr-new-run { display:inline-flex; align-items:center; gap:10px; background:#fffaf2!important; }
.pay-run-page[data-country="CA"] .pr-new-run { background:#fff6f5!important; }
.pr-inline-circle { width:28px; height:28px; }
.pr-inline-circle svg { width:15px; height:15px; stroke:currentColor; }

.pr-panel { background:var(--pr-surface); border:1px solid var(--pr-line); border-radius:18px; padding:24px 26px; margin:20px 0; box-shadow:var(--pr-shadow); transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.pr-panel:hover { transform:translateY(-1px); box-shadow:0 18px 38px rgba(20,38,56,.08); border-color:#d3cec5; }
.pr-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:18px; }
.pr-panel-kicker { margin-bottom:8px; }
.pr-panel-note,.pr-panel-stat { color:var(--pr-muted); }
.pr-panel-stat { font-weight:700; color:var(--lf-navy,#142638); }
.pr-stage-panel h2,.pr-panel h2 { margin:0; }
.pr-step { display:inline-flex; align-items:center; gap:10px; color:var(--lf-navy,#142638); }
.pr-step-badge { width:32px; height:32px; display:grid; place-items:center; border-radius:999px; background:var(--pr-accent); color:var(--pr-accent-contrast); font-size:.9rem; font-weight:700; }
.pr-step-icon { width:34px; height:34px; display:grid; place-items:center; border-radius:12px; border:1px solid rgba(20,38,56,.12); background:#fff; }
.pr-step-text { font-size:.82rem; letter-spacing:.06em; text-transform:uppercase; font-weight:700; }

#pay-run-root input:not([type=checkbox]),#pay-run-root select { min-height:46px; padding:11px 13px; border:1px solid #c4ced7; border-radius:12px; box-shadow:inset 0 1px 2px rgba(20,38,56,.02); transition:border-color .16s ease, box-shadow .16s ease, background-color .16s ease; }
#pay-run-root input:not([type=checkbox]):hover,#pay-run-root select:hover { border-color:#95a3b1; }
#pay-run-root input:not([type=checkbox]):focus,#pay-run-root select:focus { border-color:#607487; box-shadow:0 0 0 3px rgba(96,116,135,.16); outline:0; }
#pay-run-root :is(button,a,input,select,summary,[tabindex]):focus-visible { outline:3px solid rgba(96,116,135,.4); outline-offset:3px; }
.pr-field label { color:var(--lf-navy,#142638); }

#pay-run-root .pr-button { min-height:46px; border-radius:12px; padding:12px 18px; box-shadow:0 2px 0 rgba(20,38,56,.12); transition:transform .16s ease, box-shadow .16s ease, filter .16s ease; }
#pay-run-root .pr-button:hover:not(:disabled) { transform:translateY(-1px); box-shadow:0 8px 16px rgba(20,38,56,.12); }
#pay-run-root .pr-secondary { background:#fff; border-color:#cfd6dc; color:var(--lf-navy,#142638); }
#pay-run-root .pr-link { display:inline-flex; align-items:center; gap:8px; text-underline-offset:3px; }
.pr-employee { border-color:#e2e6ea; border-radius:16px; box-shadow:0 3px 12px rgba(20,38,56,.03); }
.pr-employee-head { padding:12px 14px; gap:10px; background:linear-gradient(180deg,#fcfdfd 0%,#f8fafb 100%); }
.pr-expand { gap:14px; }
.pr-number { width:34px; height:34px; border:0; background:var(--pr-accent); color:var(--pr-accent-contrast); font-weight:700; }
.pr-expand-glyph { width:28px; height:28px; display:grid; place-items:center; border-radius:999px; background:#eef2f5; color:var(--lf-navy,#142638); font-size:1.1rem; }
.pr-card-result { color:var(--pr-muted); }
.pr-card-result:not(:empty) { padding:8px 24px 12px; }
.pr-warning { border-left:4px solid var(--pr-accent); background:#fff8f0; border-radius:10px; }
.pay-run-page[data-country="CA"] .pr-warning { background:#fff8f7; }
.pr-info { border-left-color:#6f8599; background:#f3f6f9!important; }
.pr-status { border-radius:999px; padding:6px 10px; }
.pr-status-ready { background:var(--lf-navy,#142638); color:#fff; }
.pr-status-needs_review,.pr-status-dirty { background:var(--pr-accent-soft); color:var(--lf-navy,#142638); }
.pr-calculate { align-items:flex-end; gap:16px; }
.pr-totals { margin-top:10px; }
.pr-totals>div { border:1px solid #edf0f3; border-radius:14px; background:#fbfcfd; }
.pr-totals>div:last-child { border-color:var(--lf-navy,#142638); }
.pr-exports { margin-top:18px; }
.pr-complete { align-items:flex-end; }
.pr-privacy { margin-top:12px; color:var(--pr-muted); }

@media(max-width:1100px) {
  .pr-layout { grid-template-columns:1fr; }
  .pr-sidebar { position:static; order:2; }
}
@media(max-width:780px) {
  .pr-privacy-banner { grid-template-columns:1fr; }
  .pr-privacy-banner__cta { justify-self:start; }
  .pr-toolbar { grid-template-columns:1fr; }
  .pr-panel-head,.pr-complete { flex-direction:column; align-items:flex-start; }
}
@media(max-width:560px) {
  #pay-run-root { padding:0 14px; margin-top:92px; }
  .pr-panel { padding:18px 16px; border-radius:16px; }
  .pr-title h1 { font-size:1.9rem; }
  .pr-step { flex-wrap:wrap; }
  .pr-number { display:grid; }
  .pr-expand { align-items:flex-start; }
}

/* v1.9.1: staged Pay Run workflow — collapsible sections, automatic progression, and completion-only sidebar markers. */
.pr-stage-details {
  margin:16px 0;
  border:1px solid var(--pr-line,#ded7cb);
  border-radius:16px;
  background:#fff;
  box-shadow:0 6px 18px rgba(20,38,56,.045);
  overflow:hidden;
  scroll-margin-top:112px;
}
.pr-stage-details[open] {
  box-shadow:0 14px 34px rgba(20,38,56,.065);
}
.pr-stage-summary {
  list-style:none;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 26px;
  align-items:center;
  gap:16px;
  min-height:64px;
  padding:10px 16px;
  cursor:pointer;
  background:linear-gradient(180deg,#fff 0%,#fdfcf9 100%);
  user-select:none;
}
.pr-stage-summary::-webkit-details-marker { display:none; }
.pr-stage-summary:hover { background:#fbfaf7; }
.pr-stage-details[open] > .pr-stage-summary {
  border-bottom:1px solid #e8e3da;
  background:#fff;
}
.pr-stage-lead {
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  color:var(--lf-navy,#142638);
}
.pr-stage-lead strong {
  font-size:1.1rem;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.pr-stage-note {
  color:var(--pr-muted,#58636f);
  font-size:.88rem;
  text-align:right;
  max-width:320px;
}
.pr-stage-chevron {
  display:grid;
  place-items:center;
  color:#657789;
  transition:transform .18s ease;
}
.pr-stage-chevron svg { width:18px; height:18px; }
.pr-stage-details[open] .pr-stage-chevron { transform:rotate(180deg); }
.pr-stage-body { padding:22px 22px 24px; }
.pr-stage-body > h2:first-child { margin-top:0; }
.pr-stage-topline,.pr-stage-callout,.pr-review-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.pr-stage-topline { align-items:center; margin-bottom:12px; }
.pr-stage-topline h2,.pr-stage-callout h2,.pr-review-head h2 { margin:0 0 5px!important; }
.pr-stage-callout { align-items:center; }
.pr-stage-callout p,.pr-review-head p { margin:0; color:var(--pr-muted,#58636f); }
.pr-stage-actions {
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid #e8edf1;
}

/* Sidebar circles are intentionally neutral until a section is complete. */
.pr-progress-list li { margin:0; padding:0; }
#pay-run-root .pr-progress-item {
  width:100%;
  appearance:none;
  border:0;
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  gap:12px;
  align-items:center;
  padding:10px 12px;
  border-radius:14px;
  background:transparent;
  color:var(--pr-muted,#58636f);
  text-align:left;
  font:inherit;
  cursor:pointer;
}
#pay-run-root .pr-progress-item:hover { background:#f8f6f1; color:var(--lf-navy,#142638); }
#pay-run-root .pr-progress-item.is-current { background:var(--pr-accent-soft,#f5ecdd); color:var(--lf-navy,#142638); font-weight:700; }
.pr-progress-circle {
  width:32px;
  height:32px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#f1eee8;
  color:var(--lf-navy,#142638);
  border:1px solid #e3ddd3;
  font-size:.9rem;
  font-weight:700;
  box-shadow:none;
}
#pay-run-root .pr-progress-item.is-complete .pr-progress-circle {
  background:var(--pr-accent);
  border-color:var(--pr-accent);
  color:var(--pr-accent-contrast);
}
#pay-run-root .pr-progress-item.is-complete { color:var(--lf-navy,#142638); }

/* Main section numbers retain their country accent; icons remain navy. */
.pr-step-badge {
  flex:0 0 34px;
  width:34px;
  height:34px;
  background:var(--pr-accent);
  color:var(--pr-accent-contrast);
}
.pr-step-icon {
  flex:0 0 34px;
  color:var(--pr-icon-navy,var(--lf-navy,#142638));
  border-color:transparent;
  background:transparent;
}
.pr-step-icon svg { width:21px; height:21px; }
.pay-run-page[data-country="CA"] .pr-inline-circle {
  background:var(--pr-accent);
  color:#fff8f5;
}

/* The staged cards replace the older always-open panel framing. */
.pr-main > .pr-panel { display:none; }
.pr-employee { margin:12px 0; }
.pr-employee:first-child { margin-top:0; }
.pr-employee:last-child { margin-bottom:0; }
.pr-stage-details[open] .pr-employee { box-shadow:0 3px 12px rgba(20,38,56,.035); }

@media(max-width:780px) {
  .pr-stage-summary { grid-template-columns:minmax(0,1fr) 24px; gap:10px; }
  .pr-stage-note { grid-column:1 / -1; grid-row:2; text-align:left; padding-left:80px; max-width:none; }
  .pr-stage-chevron { grid-column:2; grid-row:1; }
  .pr-stage-body { padding:18px 16px 20px; }
  .pr-stage-actions { justify-content:stretch; }
  .pr-stage-actions .pr-button { width:100%; }
}
@media(max-width:560px) {
  .pr-stage-summary { padding:10px 12px; }
  .pr-stage-lead { gap:9px; }
  .pr-stage-lead strong { font-size:1rem; }
  .pr-stage-note { padding-left:0; }
  .pr-step-badge,.pr-step-icon { width:30px; height:30px; flex-basis:30px; }
  .pr-step-icon svg { width:19px; height:19px; }
}

/* v1.9.1 visual alignment with the approved mockup. */
.pr-privacy-banner {
  background:linear-gradient(180deg,#f8fbff 0%,#edf5fc 100%);
  border-color:#c8d9e9;
}
.pr-privacy-banner__icon { background:#f4f9ff; border-color:#d5e4f0; }
.pr-privacy-banner__cta {
  padding:10px 16px;
  border:1px solid var(--lf-gold,#c8a568);
  border-radius:999px;
  background:#fff;
  text-decoration:none;
}
.pr-privacy-banner__cta:hover { background:#fffaf1; text-decoration:none; }
.pr-control-wrap { position:relative; display:block; width:100%; }
.pr-control-icon {
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  color:var(--lf-navy,#142638);
  pointer-events:none;
  z-index:1;
}
.pr-control-icon svg { width:17px; height:17px; }
#pay-run-root .pr-control-wrap > input:not([type=checkbox]),
#pay-run-root .pr-control-wrap > select { padding-left:39px; }

/* v1.9.2: keep staged section markers fully inside the card edge and match the New Pay Run control scale. */
.pr-stage-summary {
  padding-left:18px;
}
.pr-stage-lead {
  gap:10px;
  padding-left:0;
  margin-left:0;
}
.pr-step-badge {
  flex:0 0 28px;
  width:28px;
  height:28px;
  min-width:28px;
  margin:0;
  font-size:.78rem;
  line-height:1;
  box-sizing:border-box;
}
.pr-step-icon {
  flex:0 0 28px;
  width:28px;
  height:28px;
  min-width:28px;
  margin:0;
  box-sizing:border-box;
}
.pr-step-icon svg { width:18px; height:18px; }
@media(max-width:560px) {
  .pr-stage-summary { padding-left:14px; }
  .pr-step-badge,.pr-step-icon { width:26px; height:26px; min-width:26px; flex-basis:26px; }
  .pr-step-icon svg { width:17px; height:17px; }
}


/* v1.9.4: specificity correction — the legacy #pay-run-root summary rule was overriding staged-section inset padding. */
#pay-run-root .pr-stage-summary {
  padding-left:30px;
  padding-inline-start:30px;
}
@media(max-width:560px) {
  #pay-run-root .pr-stage-summary {
    padding-left:22px;
    padding-inline-start:22px;
  }
}

