.workflow-overview {
    width: min(1280px, calc(100% - 40px));
    margin: 14px auto 20px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: minmax(180px, .72fr) minmax(0, 3fr);
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    box-shadow: 0 5px 16px rgb(15 23 42 / 5%);
}
.workflow-overview > p { margin: 0; color: #065f46; font-size: 12px; font-weight: 800; line-height: 1.35; }
.workflow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.workflow-steps li {
    min-width: 0;
    min-height: 54px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: #f8fafc;
}
.workflow-number {
    grid-row: 1 / 3;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    color: #475569;
    background: #e2e8f0;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}
.workflow-steps .workflow-number { display: grid; place-items: center; }
.workflow-steps strong { overflow: hidden; color: #334155; font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.workflow-steps span:last-child { overflow: hidden; margin-top: 2px; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.workflow-steps li.is-current { border-color: #34d399; color: #065f46; background: #ecfdf5; box-shadow: inset 3px 0 0 #047857; }
.workflow-steps li.is-current strong { color: #064e3b; }
.workflow-steps li.is-current .workflow-number { color: white; background: #047857; box-shadow: 0 4px 10px rgb(4 120 87 / 28%); }
.workflow-steps li.is-complete .workflow-number { color: #065f46; background: #a7f3d0; }

.report-step {
    margin-top: 30px;
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: var(--shadow);
}
.report-step[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.report-step-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.report-step-heading p:last-child { max-width: 740px; margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.panel-heading .step, .results-heading .step, .report-step-heading .step { color: #047857; font-size: 13px; font-weight: 900; }
.step-navigation { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.step-navigation .primary-button { width: auto; min-width: 210px; margin-top: 0; }
.secondary-button { min-height: 47px; padding: 11px 15px; border: 1px solid var(--line-dark); border-radius: 8px; color: #334155; background: white; font-weight: 800; cursor: pointer; }
.secondary-button:hover { border-color: #94a3b8; background: #f8fafc; }
.step-navigation-back { justify-content: flex-start; }
.step-three-upsell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 310px); gap: 24px; align-items: center; margin: 22px 0 2px; padding: 20px 22px; border: 2px solid #10b981; border-radius: 12px; color: #064e3b; background: linear-gradient(135deg, #ecfdf5, #d1fae5); box-shadow: 0 10px 26px rgb(4 120 87 / 14%); }
.step-three-upsell strong { display: block; margin-top: 3px; color: #052e2b; font-size: 18px; line-height: 1.3; }
.step-three-upsell p { margin: 6px 0 0; color: #335e50; font-size: 12px; }
.upsell-kicker { color: #047857; font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.step-three-cta { width: 100%; min-height: 58px; padding: 13px 18px; border: 0; border-radius: 9px; color: white; background: #047857; box-shadow: 0 5px 14px rgb(4 120 87 / 30%); font-size: 15px; font-weight: 900; line-height: 1.25; cursor: pointer; animation: report-cta-pulse 1.8s ease-in-out infinite; }
.step-three-cta:hover { background: #065f46; transform: translateY(-1px); }
@keyframes report-cta-pulse {
    0%, 100% { box-shadow: 0 5px 14px rgb(4 120 87 / 30%), 0 0 0 0 rgb(16 185 129 / 35%); }
    50% { box-shadow: 0 7px 18px rgb(4 120 87 / 34%), 0 0 0 9px rgb(16 185 129 / 0%); }
}
@media (prefers-reduced-motion: reduce) {
    .step-three-cta { animation: none; }
}
.paid-chip { padding: 5px 9px; border: 1px solid #bfdbfe; border-radius: 999px; color: #1e40af; background: #eff6ff; font-size: 11px; font-weight: 800; }
.report-value-pitch { display: flex; gap: 15px; align-items: flex-start; margin-top: 22px; padding: 18px; border: 1px solid #6ee7b7; border-radius: 10px; color: #064e3b; background: linear-gradient(135deg, #ecfdf5, #f0fdf4); }
.report-value-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: white; background: #047857; font-size: 18px; font-weight: 900; }
.report-value-pitch strong { display: block; font-size: 17px; }
.report-value-pitch p { margin: 5px 0 0; color: #335e50; font-size: 13px; line-height: 1.6; }
.report-example-link { display: inline-block; margin-left: 4px; color: #047857; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.report-example-link:hover { color: #064e3b; }
.report-boundary-note { margin: 20px 0; padding: 13px 15px; border-left: 4px solid var(--forest); color: #334155; background: #f0fdf4; font-size: 12px; }
.report-deliverables { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.report-deliverables div { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.report-deliverables strong, .report-deliverables span { display: block; }
.report-deliverables strong { font-size: 12px; }
.report-deliverables span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.report-order-row { display: grid; grid-template-columns: 1fr minmax(230px, 320px); gap: 20px; align-items: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.report-price { margin: 0; font-size: 23px; font-weight: 850; letter-spacing: -.025em; }
.report-price-note { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.report-order-row .primary-button { margin-top: 0; }
.checkout-note { margin: 7px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.checkout-actions { min-width: min(100%, 340px); }
.checkout-actions .primary-button { width: 100%; }
.checkout-actions .report-example-link { display: inline-flex; margin-top: 10px; }
.checkout-status { min-height: 18px; margin: 7px 0 0; color: #52645e; font-size: 11px; }
.checkout-status.error { color: #991b1b; }
.developer-test {
    margin-top: 22px;
    padding: 17px;
    border: 1px dashed #94a3b8;
    border-radius: 9px;
    background: #f8fafc;
}
.developer-test h3 { margin: 0; font-size: 14px; }
.developer-test > p { margin: 5px 0 13px; color: var(--muted); font-size: 11px; }
.developer-test-controls { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.developer-test-controls button { min-width: 210px; margin: 0; }
.developer-test-status { min-height: 18px; margin: 9px 0 0; color: #475569; font-size: 11px; }
.developer-test-status.error { color: var(--danger); }

.report-progress-dialog {
    width: min(760px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 16px;
    color: #10251f;
    background: white;
    box-shadow: 0 28px 80px rgb(2 44 34 / 32%);
}
.report-progress-dialog::backdrop { background: rgb(8 31 25 / 58%); backdrop-filter: blur(3px); }
.report-progress-modal { position: relative; padding: clamp(22px, 5vw, 38px); }
.progress-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: #52645e; background: #edf3f0; font-size: 22px; line-height: 1; cursor: pointer; }
.progress-close:hover { color: #10251f; background: #dfe9e4; }
.progress-heading { padding-right: 40px; }
.progress-kicker { color: #047857; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.progress-heading h2 { margin: 5px 0 0; font-size: clamp(24px, 4vw, 32px); letter-spacing: -.025em; }
.progress-heading p { margin: 7px 0 0; color: #52645e; font-size: 13px; }
.progress-summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 24px; }
.progress-summary div { display: flex; gap: 9px; align-items: baseline; }
.progress-summary strong { color: #047857; font-size: 24px; }
.progress-summary span { color: #52645e; font-size: 12px; }
.progress-badge { padding: 6px 10px; border-radius: 999px; color: #065f46 !important; background: #d1fae5; font-size: 10px !important; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
#report-progress-bar { width: 100%; height: 14px; margin-top: 10px; overflow: hidden; border: 0; border-radius: 999px; background: #dfe9e4; accent-color: #047857; }
#report-progress-bar::-webkit-progress-bar { border-radius: 999px; background: #dfe9e4; }
#report-progress-bar::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, #10b981, #047857); transition: width .45s ease; }
#report-progress-bar::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, #10b981, #047857); }
.progress-message { min-height: 20px; margin: 7px 0 0; color: #3e554d; font-size: 12px; }
.progress-message.error { color: #991b1b; }
.progress-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 21px 0 0; padding: 0; list-style: none; }
.progress-steps li { min-width: 0; padding: 9px 7px; border: 1px solid #dbe6e1; border-radius: 9px; color: #71827c; background: #f8faf9; text-align: center; }
.progress-steps li > span { width: 24px; height: 24px; display: grid; place-items: center; margin: 0 auto 6px; border-radius: 50%; color: #52645e; background: #e2e8e5; font-size: 10px; font-weight: 900; }
.progress-steps strong, .progress-steps small { display: block; }
.progress-steps strong { font-size: 10px; }
.progress-steps small { margin-top: 2px; font-size: 8px; line-height: 1.25; }
.progress-steps li.is-current { border-color: #10b981; color: #065f46; background: #ecfdf5; box-shadow: 0 4px 12px rgb(4 120 87 / 10%); }
.progress-steps li.is-current > span { color: white; background: #047857; }
.progress-steps li.is-complete { color: #285246; background: #f0fdf4; }
.progress-steps li.is-complete > span { color: #065f46; background: #a7f3d0; }
.report-email-panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(300px, 1.15fr); gap: 20px; align-items: center; margin-top: 22px; padding: 18px; border: 1px solid #a7f3d0; border-radius: 11px; background: linear-gradient(135deg, #ecfdf5, #f8fffb); }
.report-email-panel h3 { margin: 0; color: #064e3b; font-size: 17px; }
.report-email-panel p { margin: 5px 0 0; color: #45635a; font-size: 11px; line-height: 1.5; }
.report-email-form label { display: block; margin-bottom: 5px; color: #334155; font-size: 10px; font-weight: 800; }
.report-email-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.report-email-form input { min-width: 0; height: 43px; padding: 9px 11px; border: 1px solid #9cb8ae; border-right: 0; border-radius: 7px 0 0 7px; font: inherit; }
.report-email-form button { min-height: 43px; padding: 9px 13px; border: 0; border-radius: 0 7px 7px 0; color: white; background: #047857; font-size: 11px; font-weight: 900; cursor: pointer; }
.report-email-form button:disabled { cursor: wait; opacity: .65; }
.report-turnstile { min-height: 65px; margin-top: 10px; }
.turnstile-status { min-height: 15px; margin-top: 3px !important; color: #52645e !important; font-size: 9px !important; }
.turnstile-status.success { color: #047857 !important; }
.turnstile-status.error { color: #991b1b !important; }
.notification-status { min-height: 16px; font-size: 9.5px !important; }
.notification-status.success { color: #047857; font-weight: 800; }
.notification-status.error { color: #991b1b; }
.job-reference { margin: 12px 0 0; color: #71827c; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; overflow-wrap: anywhere; }
.progress-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.progress-actions .primary-button { width: auto; min-width: 180px; margin: 0; }
.report-progress-dialog.is-complete .progress-badge { color: white !important; background: #047857; }

@media (max-width: 800px) {
    .workflow-overview { width: min(100% - 24px, 1280px); grid-template-columns: 1fr; margin-block: 10px 16px; }
    .workflow-overview > p { margin-bottom: 2px; }
    .workflow-steps, .report-deliverables { grid-template-columns: 1fr; }
    .workflow-steps li { display: none; min-height: 52px; }
    .workflow-steps li.is-current { display: grid; }
    .report-order-row { grid-template-columns: 1fr; }
    .developer-test-controls { grid-template-columns: 1fr; }
    .step-navigation { align-items: stretch; flex-direction: column-reverse; }
    .step-navigation .primary-button, .step-navigation .secondary-button { width: 100%; }
    .step-three-upsell { grid-template-columns: 1fr; gap: 15px; padding: 18px; }
    .progress-steps { grid-template-columns: 1fr; }
    .progress-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: center; text-align: left; }
    .progress-steps li > span { margin: 0; }
    .report-email-panel { grid-template-columns: 1fr; }
    .report-email-form > div { grid-template-columns: 1fr; gap: 7px; }
    .report-email-form input, .report-email-form button { border: 1px solid #9cb8ae; border-radius: 7px; }
    .progress-actions { align-items: stretch; flex-direction: column-reverse; }
    .progress-actions button { width: 100% !important; }
}

/* Square Checkout Modal */
.square-checkout-dialog {
    width: min(520px, calc(100% - 32px));
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 14px;
    color: var(--ink);
    background: white;
    box-shadow: 0 24px 80px rgb(15 23 42 / 30%);
}
.square-checkout-dialog::backdrop {
    background: rgb(8 31 25 / 65%);
    backdrop-filter: blur(4px);
}
.square-checkout-modal {
    position: relative;
    padding: 28px 26px 24px;
}
.square-checkout-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #64748b;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease, color .15s ease;
}
.square-checkout-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}
.square-checkout-kicker {
    display: inline-block;
    color: #047857;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.square-checkout-header h2 {
    margin: 4px 0 0;
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -.02em;
    color: #0f172a;
}
.square-checkout-subtitle {
    margin: 3px 0 0;
    color: #64748b;
    font-size: 12px;
}
.square-checkout-summary {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}
.square-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 12.5px;
    color: #334155;
}
.square-summary-label {
    color: #64748b;
}
.square-summary-total {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed #cbd5e1;
    font-size: 14px;
}
.square-summary-total strong.square-price {
    font-size: 17px;
    font-weight: 900;
    color: #047857;
}
.square-payment-form {
    margin-top: 18px;
}
.square-form-group {
    margin-bottom: 15px;
}
.square-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 11.5px;
    font-weight: 750;
    color: #1e293b;
}
.square-form-group label small {
    font-weight: normal;
    color: #64748b;
}
.required-indicator {
    color: #dc2626;
}
.square-form-group input {
    width: 100%;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    color: #0f172a;
    background: white;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.square-form-group input:focus {
    outline: none;
    border-color: #047857;
    box-shadow: 0 0 0 3px rgb(4 120 87 / 15%);
}
.square-input-hint {
    display: block;
    margin-top: 4px;
    font-size: 10.5px;
    color: #64748b;
}
.square-form-group input[aria-invalid="true"] {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgb(220 38 38 / 12%);
}
.square-card-container {
    min-height: 44px;
    padding: 2px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: white;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.square-card-container.is-focused {
    border-color: #047857;
    box-shadow: 0 0 0 3px rgb(4 120 87 / 15%);
}
.square-payment-status {
    min-height: 18px;
    margin: 10px 0 14px;
    font-size: 12px;
    line-height: 1.4;
    color: #334155;
}
.square-payment-status.error {
    color: #b91c1c;
    font-weight: 600;
}
.square-payment-status.success {
    color: #047857;
    font-weight: 700;
}
.square-pay-button {
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    border: 0;
    border-radius: 9px;
    color: white;
    background: #047857;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .15s ease, transform .05s ease;
}
.square-pay-button:hover:not(:disabled) {
    background: #065f46;
}
.square-pay-button:disabled {
    opacity: .65;
    cursor: not-allowed;
}
.square-pay-lock {
    font-size: 14px;
}
.square-security-footer {
    margin-top: 14px;
    text-align: center;
    font-size: 10.5px;
    color: #64748b;
}
