/* Funding setup uses the existing PayHr palette and Lucide icons. */
.organization-main:has(.funding-flow) { padding: 32px clamp(24px, 4vw, 64px) 48px; }
.organization-shell .workspace-page-container:has(.funding-flow) { width: 100%; max-width: 1440px; }
.funding-flow { --funding-accent: #2447e8; --funding-ink: #172033; --funding-muted: #5e6879; --funding-line: #e1e5ec; width: 100%; color: var(--funding-ink); }
.funding-flow *, .funding-flow *::before, .funding-flow *::after { box-sizing: border-box; }
.funding-flow-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--funding-line); }
.funding-flow a.funding-flow-back, .funding-flow a.funding-flow-exit, .funding-help-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--funding-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.funding-flow a:hover { color: var(--funding-accent); }
.funding-flow .lucide-icon { flex-shrink: 0; width: 20px; height: 20px; }
.funding-flow-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); padding-top: 48px; }
.funding-progress { align-self: start; position: sticky; top: 96px; }
.funding-progress ol { list-style: none; padding: 0; margin: 0; }
.funding-progress li { position: relative; min-height: 78px; }
.funding-progress li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 44px; width: 1px; height: 24px; background: var(--funding-line); }
.funding-progress a, .funding-progress-pending { display: flex; align-items: center; gap: 14px; min-height: 44px; color: var(--funding-muted); font-size: 14px; line-height: 1.4; text-decoration: none; }
.funding-progress-number { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #d6dce6; flex: 0 0 36px; font-size: 13px; font-weight: 600; background: white; }
.funding-progress .is-complete .funding-progress-number { color: #14714b; background: #ecf7f1; border-color: #c5e7d5; }
.funding-progress .is-current > a, .funding-progress .is-current > span { color: var(--funding-ink); font-weight: 650; }
.funding-progress .is-current .funding-progress-number { color: white; background: var(--funding-accent); border-color: var(--funding-accent); }
.funding-help-link { margin-top: 24px; }
.funding-flow-content { min-width: 0; animation: funding-enter 260ms ease-out both; }
.funding-flow-heading { margin: 0 0 36px; }
.funding-flow .funding-flow-heading h1 { font-size: clamp(28px, 2.3vw, 38px); line-height: 1.16; letter-spacing: -1.1px; margin: 0 0 12px; font-weight: 650; }
.funding-flow-heading > p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--funding-muted); max-width: 65ch; }
.funding-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.funding-method { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(22px, 2.1vw, 32px); border: 1px solid var(--funding-line); border-radius: 16px; background: #fff; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.funding-method:focus-within { border-color: #a0afe9; }
@media (hover: hover) and (pointer: fine) { .funding-method:hover { border-color: #a0afe9; box-shadow: 0 8px 24px #17203308; } }
.funding-method-automated { border-color: #a7b7f6; background: #fafbff; }
.funding-method-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--funding-line); background: white; color: var(--funding-accent); flex-shrink: 0; }
.funding-method-icon .lucide-icon { width: 24px; height: 24px; }
.funding-flow .funding-method h2 { font-size: 21px; line-height: 1.35; margin: 24px 0 8px; letter-spacing: -.4px; }
.funding-flow .funding-method > p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--funding-muted); }
.funding-flow .funding-method > .funding-method-price { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; margin-top: 28px; font-size: 38px; font-weight: 650; letter-spacing: -1px; color: var(--funding-ink); }
.funding-method-price span { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--funding-muted); }
.funding-method ul { list-style: none; display: grid; gap: 14px; margin: 24px 0 32px; padding: 0; font-size: 14px; line-height: 1.5; }
.funding-method li { display: flex; align-items: flex-start; gap: 10px; }
.funding-method li .lucide-icon { color: #14714b; width: 18px; height: 18px; margin-top: 2px; }
.funding-flow :is(button.primary, button.secondary, a.primary, a.secondary) { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; min-height: 48px; padding: 12px 20px; width: auto; line-height: 1.4; text-decoration: none; font-size: 14px; transition: background-color 160ms ease, transform 160ms ease; }
.funding-flow .primary:active, .funding-flow .secondary:active { transform: translateY(1px); }
.funding-method button { width: 100% !important; margin-top: auto; }
.funding-method-note { margin: 20px 0 0; font-size: 13px; color: var(--funding-muted); }
.funding-flow .pad-status { margin: 24px 0; font-size: 14px; line-height: 1.6; font-weight: 500; color: var(--funding-muted); }
.funding-flow .pad-status:empty { display: none; }
.funding-flow .pad-error { line-height: 1.6; }
.funding-flow .pad-consent { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; max-width: 640px; font-size: 14px; line-height: 1.55; margin: 24px 0; gap: 12px; }
.funding-flow .pad-consent > input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; max-height: 18px; min-width: 18px; padding: 0; margin: 2px 0 0; }
.funding-flow .pad-consent > span { display: block; margin: 0; min-width: 0; }
.funding-flow .funding-text-action { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; border: 0; background: transparent; box-shadow: none; color: var(--funding-muted); font-size: 14px; font-weight: 500; cursor: pointer; width: auto; }
.funding-flow .funding-text-action:hover { color: var(--funding-accent); text-decoration: underline; }
.funding-flow .funding-danger { color: #b42318; }
.funding-task-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--funding-line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.funding-bank-summary, .funding-debit-summary { display: flex; align-items: center; gap: 20px; padding: 28px; border: 1px solid var(--funding-line); border-radius: 14px; }
.funding-flow :is(.funding-bank-summary, .funding-debit-summary) h2 { font-size: 17px; margin: 0 0 6px; line-height: 1.4; }
.funding-flow :is(.funding-bank-summary, .funding-debit-summary) p { color: var(--funding-muted); font-size: 14px; margin: 0; line-height: 1.5; }
.funding-debit-summary > strong { margin-left: auto; white-space: nowrap; font-size: 32px; letter-spacing: -.7px; }
.funding-debit-summary > strong small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--funding-muted); }
.funding-bank-note { display: flex; align-items: center; gap: 8px; margin: 20px 0; color: var(--funding-muted); font-size: 13px; }
.funding-flow .funding-payment-status { background: #f5f7fb; border-radius: 10px; padding: 16px 20px; color: #34445b; }
.funding-flow .pad-payment-dates { background: transparent; border: 0; border-bottom: 1px solid var(--funding-line); border-radius: 0; padding: 0 0 28px; margin: 28px 0 16px; gap: 24px; }
.funding-flow .pad-payment-dates dt { font-size: 13px; color: var(--funding-muted); }
.funding-flow .pad-payment-dates dd { font-size: 16px; color: var(--funding-ink); font-weight: 600; }
.funding-flow .field-help, .funding-consent-summary { font-size: 13px; line-height: 1.6; color: var(--funding-muted); }
.funding-disclosure { border-top: 1px solid var(--funding-line); padding-top: 16px; margin-top: 28px; color: var(--funding-muted); font-size: 13px; line-height: 1.6; }
.funding-disclosure summary { cursor: pointer; min-height: 36px; padding-block: 8px; width: fit-content; color: #435067; }
.funding-disclosure p { max-width: 70ch; }
.funding-flow .verification-card { border: 0; padding: 0; margin: 0; border-radius: 0; }
.funding-flow .verification-preparation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 28px; padding-bottom: 28px; border-bottom: 1px solid var(--funding-line); }
.funding-flow .verification-preparation li { gap: 10px; }
.funding-flow .verification-preparation small { display: none; }
.funding-flow .verification-preparation strong { font-size: 13px; font-weight: 500; }
.funding-flow .verification-card form { max-width: 650px; }
.funding-flow .verification-card input[type=text] { height: 48px; border-radius: 10px; }
.funding-flow .verification-actions { justify-content: space-between; border-top: 1px solid var(--funding-line); padding-top: 24px; }
.funding-flow :is(a, button, summary, input):focus-visible { outline: 3px solid #8ea6ff; outline-offset: 4px; }
.funding-flow [hidden] { display: none !important; }
@keyframes funding-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1150px) { .funding-flow-layout { grid-template-columns: 172px minmax(0, 1fr); gap: 28px; } .funding-methods { gap: 16px; } .funding-method { padding: 22px; } }
@media (max-width: 960px) {
  .funding-flow-layout { grid-template-columns: 1fr; padding-top: 28px; gap: 32px; }
  .funding-progress { position: static; }
  .funding-progress ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .funding-progress li { min-height: 0; }
  .funding-progress li::after { display: none; }
  .funding-progress a, .funding-progress-pending { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 12px; }
  .funding-flow .funding-help-link { display: none; }
}
@media (max-width: 640px) {
  .organization-main:has(.funding-flow) { padding: 16px 20px 32px; }
  .funding-flow-topbar { padding-bottom: 16px; gap: 16px; }
  .funding-flow-heading { margin-bottom: 24px; }
  .funding-flow .funding-flow-heading h1 { font-size: 28px; letter-spacing: -.7px; }
  .funding-methods { grid-template-columns: 1fr; }
  .funding-flow .verification-preparation { grid-template-columns: 1fr; gap: 16px; }
  .funding-debit-summary, .funding-bank-summary { gap: 12px; padding: 20px 16px; flex-wrap: wrap; }
  .funding-debit-summary > strong { font-size: 26px; }
  .funding-flow .pad-payment-dates { grid-template-columns: 1fr; gap: 20px; }
  .funding-flow .pad-payment-dates > div { display: flex; justify-content: space-between; gap: 20px; }
  .funding-flow .pad-payment-dates dt { margin: 0; }
  .funding-flow .pad-payment-dates dd { text-align: right; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .funding-flow-content { animation: none; } .funding-flow * { transition: none !important; } .funding-method:hover, .funding-method:focus-within, .funding-flow .primary:active, .funding-flow .secondary:active { transform: none; } }
.funding-flow .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.funding-identity-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.funding-identity-heading > div:first-child { flex: 1; min-width: 0; }
.funding-identity-heading p { margin: 0; color: var(--funding-muted); font-size: 14px; line-height: 1.6; }
.identity-tips { position: relative; width: 260px; flex: 0 0 260px; min-height: 64px; color: var(--funding-muted); font-size: 13px; }
.identity-tips > span { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; opacity: 0; animation: identity-tip 12s infinite; }
.identity-tips > span:nth-child(2) { animation-delay: 4s; }
.identity-tips > span:nth-child(3) { animation-delay: 8s; }
.identity-tips .lucide-icon { color: var(--funding-accent); }
@keyframes identity-tip { 0%, 29% { opacity: 1; transform: translateY(0); } 32%, 100% { opacity: 0; transform: translateY(-5px); } }
.verification-card button[aria-busy=true]::before { content: ""; width: 18px; height: 18px; flex: 0 0 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: identity-loading .75s linear infinite; }
.verification-card button[aria-busy=true] > .lucide-icon { display: none; }
@keyframes identity-loading { to { transform: rotate(360deg); } }
.funding-method button:disabled { cursor: default; }
@media (max-width: 1150px) { .funding-identity-heading { flex-wrap: wrap; } .identity-tips { flex-basis: 100%; min-height: 36px; } }
@media (prefers-reduced-motion: reduce) {
  .identity-tips > span { animation: none; transform: none; }
  .identity-tips > span:first-child { opacity: 1; }
  .verification-card button[aria-busy=true]::before { animation: none; }
}
.funding-payment-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 32px 0 20px; gap: 0; }
.funding-payment-flow li { position: relative; min-width: 0; padding-right: 24px; }
.funding-payment-flow li:not(:last-child)::before { content: ""; position: absolute; left: 44px; right: 10px; top: 17px; height: 2px; background: #e1e5ec; }
.funding-payment-marker { position: relative; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #facc15; color: #713f12; margin-bottom: 16px; }
.funding-payment-marker .flow-check, .funding-payment-marker .flow-stopped { display: none; }
.flow-dots { display: flex; align-items: center; gap: 3px; }
.flow-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.funding-payment-flow [data-state=complete] .funding-payment-marker { background: #15803d; color: white; }
.funding-payment-flow [data-state=complete] .flow-check { display: flex; }
.funding-payment-flow [data-state=complete] .flow-dots, .funding-payment-flow [data-state=stopped] .flow-dots { display: none; }
.funding-payment-flow [data-state=stopped] .funding-payment-marker { background: #fee2e2; color: #b91c1c; }
.funding-payment-flow [data-state=stopped] .flow-stopped { display: block; font-weight: 700; }
.funding-payment-flow .funding-payment-label { font-size: 13px; color: var(--funding-muted); margin: 0 0 6px; }
.funding-payment-flow .funding-payment-date { font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--funding-ink); margin: 0 0 4px; }
.funding-payment-state { font-size: 12px; color: #854d0e; }
.funding-payment-flow [data-state=complete] .funding-payment-state { color: #15803d; }
.funding-payment-flow [data-state=stopped] .funding-payment-state { color: #b91c1c; }
@media (max-width: 640px) {
  .funding-payment-flow { grid-template-columns: 1fr; }
  .funding-payment-flow li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding: 0 0 28px; }
  .funding-payment-flow li:last-child { padding-bottom: 0; }
  .funding-payment-flow li:not(:last-child)::before { left: 17px; top: 44px; bottom: 8px; height: auto; width: 2px; }
  .funding-payment-marker { margin: 0; }
}
.funding-activity { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin: 0 0 24px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; color: #172033; }
.funding-activity[hidden] { display: none; }
.funding-activity > div { flex: 1; }
.funding-activity strong { font-size: 14px; }
.funding-activity p { margin: 5px 0 0; font-size: 13px; line-height: 1.5; color: #5e6879; }
.funding-activity a { font-size: 13px; font-weight: 600; color: #2447e8; text-decoration: none; white-space: nowrap; padding: 10px 0; }
.funding-activity-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: #d97706; box-shadow: 0 0 0 5px #fef3c7; animation: funding-activity-pulse 2s ease-in-out infinite; }
.funding-activity[data-state=ready] { background: #f0fdf4; border-color: #bbf7d0; }
.funding-activity[data-state=ready] .funding-activity-dot { background: #15803d; box-shadow: 0 0 0 5px #dcfce7; animation: none; }
.funding-activity[data-state=attention] .funding-activity-dot { background: #b91c1c; animation: none; }
@keyframes funding-activity-pulse { 50% { box-shadow: 0 0 0 8px #fef3c700; } }
@media (max-width: 760px) { .funding-activity { flex-wrap: wrap; gap: 12px; } .funding-activity > div { flex-basis: calc(100% - 28px); } .funding-activity a { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .funding-activity-dot { animation: none; } }
.payroll-payment-type { margin: 7px 0 0; color: #7b8492; font-size: 12px; font-weight: 400; line-height: 1.5; }
.ui-page-header > .ui-page-header-action { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; }
.ui-page-header-action > a.primary { width: auto; flex-shrink: 0; gap: var(--space-lg); min-height: 48px; }
.organization-navigation .sidebar-payment-type { margin: -2px 0 12px; text-align: center; font-size: 11px; color: #7b8492; }
.organization-sidebar .organization-navigation > a.sidebar-run-payroll:has(+ .sidebar-payment-type) { margin-bottom: 0; }
.payroll-roster-person-line { display: flex; align-items: center; gap: 12px; }
.payroll-roster-person-line .payroll-roster-person { flex: 1; }
.payroll-workflow button.payroll-timesheet-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; min-height: 36px; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: #5e6879; cursor: pointer; }
.payroll-timesheet-toggle:hover { background: #f1f5f9; }
.payroll-timesheet-toggle .workspace-icon { width: 18px; height: 18px; transition: transform 160ms ease; }
.payroll-timesheet-toggle[aria-expanded=true] .workspace-icon { transform: rotate(180deg); }
.payroll-employee-timesheet[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .payroll-timesheet-toggle .workspace-icon { transition: none; } }

.payroll-timesheet-expansion:not(:has([data-daily-timesheet]:not([hidden]))) { display: none; }
.payroll-roster .payroll-timesheet-toggle-column { width: 52px; min-width: 52px; padding-left: 8px; padding-right: 8px; text-align: center; }
.payroll-record-actions { flex-wrap: wrap; gap: 12px; }
.payroll-record-actions > form { margin: 0; }
.payroll-record-actions :is(button, summary) { min-height: 44px; }
.payroll-approval-dialog { width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; padding: 28px; border: 1px solid #e1e5ec; border-radius: 18px; color: #172033; background: #fff; text-align: left; }
.payroll-approval-dialog::backdrop { background: #17203366; }
.payroll-approval-dialog h2 { font-size: 22px; margin: 0 0 12px; }
.payroll-approval-amounts { margin: 24px 0; display: grid; gap: 16px; }
.payroll-approval-amounts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.payroll-approval-amounts dt { font-size: 13px; color: #5e6879; }
.payroll-approval-amounts dd { margin: 0; font-size: 16px; font-weight: 600; white-space: nowrap; }
.payroll-approval-dialog select { width: 100%; min-height: 44px; margin: 8px 0 12px; }
.payroll-approval-dialog .pad-consent { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0 0; text-align: left; font-size: 14px; line-height: 1.5; }
.payroll-approval-dialog .pad-consent > input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; min-width: 18px; min-height: 18px; max-height: 18px; margin: 2px 0 0; padding: 0; accent-color: #1769d2; }
.payroll-approval-dialog .pad-consent > span { display: block; min-width: 0; margin: 0; }
.payroll-approval-dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }

.identity-signatory-dialog { width: min(520px, calc(100vw - 32px)); box-sizing: border-box; max-height: calc(100dvh - 48px); overflow: auto; padding: 28px; border: 1px solid #e1e5ec; border-radius: 18px; color: #172033; background: #fff; text-align: left; }
.identity-signatory-dialog::backdrop { background: #17203366; }
.identity-signatory-dialog h2 { margin: 0 0 20px; font-size: 22px; }
.identity-signatory-dialog p { line-height: 1.6; }
.identity-signatory-dialog .identity-signatory-name { margin: 0 0 16px; padding: 14px 16px; background: #f4f6f9; border-radius: 10px; font-size: 18px; font-weight: 600; }
.identity-signatory-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 24px; }

/* Embedded Stripe Connect registration and setup debit. */
.connect-funding-option { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.connect-funding-option > a { flex-shrink: 0; white-space: nowrap; }
.connect-test-badge { display: inline-flex; padding: 5px 10px; border-radius: 20px; color: #604600; background: #fff3cb; font-size: 12px; font-weight: 650; }
.connect-pay { max-width: 1080px; margin-inline: auto; }
.connect-pay-steps { display: flex; list-style: none; padding: 0; margin: 30px 0; gap: 32px; }
.connect-pay-steps li { display: flex; align-items: center; gap: 10px; color: #696969; }
.connect-pay-steps li[aria-current] { color: #0040ff; font-weight: 650; }
.connect-pay-steps span { display: grid; place-items: center; height: 32px; width: 32px; border-radius: 50%; background: #eef2ff; }
.connect-pay-intro { display: flex; gap: 28px; align-items: center; justify-content: space-between; padding: 24px 0; }
.connect-pay-intro h2, .connect-pay-fee h2 { font-size: 20px; margin: 0 0 12px; }
.connect-pay-intro p { max-width: 620px; color: #696969; line-height: 1.6; margin: 0; }
.connect-pay-intro button { flex-shrink: 0; }
.connect-pay-embed:not(:empty) { min-height: 360px; padding-block: 24px; }
.connect-pay-fee { border: 1px solid #dddcd9; border-radius: 26px; padding: 28px; margin: 24px 0; }
.connect-pay-fee .pad-consent { margin: 24px 0; }
.connect-microdeposit-fields { display: flex; gap: 20px; margin: 24px 0; }
.connect-microdeposit-fields label { display: grid; gap: 8px; }
.connect-microdeposit-fields input { width: 120px; padding: 10px; border: 1px solid #dddcd9; border-radius: 8px; }
.connect-pay button[aria-busy="true"]::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: connect-pay-spin .8s linear infinite; }
@keyframes connect-pay-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .connect-pay button[aria-busy="true"]::before { animation: none; } }
@media (max-width: 700px) { .connect-funding-option, .connect-pay-intro { flex-direction: column; align-items: stretch; } .connect-pay-steps { gap: 18px; font-size: 13px; } .connect-pay-fee { padding: 20px; } }

/* Use the same page header and task rail as Automated Pay. */
.connect-pay { max-width: none; margin-inline: 0; }
.connect-pay-progress .connect-step-check { display: none; }
.connect-pay-progress .is-complete .connect-step-check { display: flex; }
.connect-pay-progress .is-complete .connect-step-number { display: none; }
.connect-pay .connect-pay-embed:not(:empty) { padding-top: 0; }
.connect-pay .pad-error:empty { display: none; }
.connect-pay-outcome { max-width: 680px; padding: 32px; border: 1px solid var(--funding-line); border-radius: 20px; }
.connect-outcome-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #fffbeb; color: #854d0e; margin-bottom: 24px; }
.connect-outcome-icon > span { display: flex; }
.connect-pay-outcome[data-state=complete] .connect-outcome-icon { background: #ecf7f1; color: #008238; }
.connect-pay-outcome[data-state=canceled] .connect-outcome-icon { background: #f1f3f5; color: #5e6879; }
.connect-pay-outcome h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.35; }
.connect-pay-outcome > p { margin: 0; color: var(--funding-muted); line-height: 1.6; }
.connect-pay-receipt { margin: 24px 0; border-block: 1px solid var(--funding-line); }
.connect-pay-receipt > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; }
.connect-pay-receipt > div + div { border-top: 1px solid var(--funding-line); }
.connect-pay-receipt dt { color: var(--funding-muted); font-size: 14px; }
.connect-pay-receipt dd { margin: 0; font-size: 14px; font-weight: 600; text-align: right; }
@media (max-width: 960px) { .connect-pay-progress ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .connect-pay-outcome { padding: 24px 20px; } }

.connect-verification-timeline { list-style: none; margin: 28px 0; padding: 0; }
.connect-verification-timeline li { position: relative; display: flex; align-items: center; gap: 14px; min-height: 56px; font-size: 14px; }
.connect-verification-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 43px; width: 2px; height: 26px; background: var(--funding-line); }
.connect-verification-marker { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: #edf0f4; color: #697386; }
.connect-verification-marker svg { display: none; width: 16px; height: 16px; }
.connect-verification-timeline [data-state=complete] .connect-verification-marker { background: #008238; color: white; }
.connect-verification-timeline [data-state=complete] svg { display: block; }
.connect-verification-timeline [data-state=pending] .connect-verification-marker { background: #fff0b3; color: #765900; }
.connect-verification-dots { display: none; font-size: 24px; font-weight: 700; line-height: 1; }
.connect-verification-timeline [data-state=pending] .connect-verification-dots { display: block; }
.connect-verification-timing { font-size: 14px; }

.payroll-status-pill.is-completed { color: #166534; background: #dcfce7; border-color: #bbf7d0; }
.employee-payment-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin: 24px 0; }
.employee-payment-details dt { color: #64748b; font-size: 13px; margin-bottom: 6px; }
.employee-payment-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.employee-payment-details button.employee-copy-value { display: inline-block; width: auto; min-height: 0; margin: -4px -6px; padding: 4px 6px; border: 0; border-radius: 5px; background: transparent; color: inherit; font: inherit; line-height: inherit; text-align: left; white-space: normal; overflow-wrap: anywhere; cursor: copy; box-shadow: none; }
.employee-payment-details button.employee-copy-value:hover { background: #eff6ff; color: #1d4ed8; }
.employee-payment-details button.employee-copy-value:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.employee-copy-notice:not(:empty) { position: fixed; bottom: 24px; right: 24px; z-index: 100; max-width: min(360px, calc(100vw - 48px)); padding: 12px 18px; border-radius: 8px; background: #172033; color: #fff; box-shadow: 0 4px 16px #0002; }

.cra-payment-guide { margin: 20px 0; }
.cra-payment-guide > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.cra-payment-guide-body { max-width: 880px; padding-top: 12px; line-height: 1.6; }
.cra-payment-guide-body h3 { margin: 22px 0 8px; font-size: 16px; }
.cra-payment-guide-body ul, .cra-payment-guide-body ol { padding-left: 24px; }
.cra-payment-guide-body li { margin: 10px 0; }
.cra-payment-guide-body a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
