:root {
    --rps-navy: #12335f;
    --rps-blue: #2563eb;
    --rps-cyan: #0ea5e9;
    --rps-green: #138a5b;
    --rps-amber: #b86b0c;
    --rps-border: #d9e4f1;
    --rps-muted: #687a94;
}

.rps-flow {
    margin: 22px 0 28px;
    overflow: hidden;
    border: 1px solid var(--rps-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(29, 55, 91, .09);
}

.rps-flow__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 22px 24px;
    background: linear-gradient(115deg, #f8fbff 0%, #fff 58%, #f2f7ff 100%);
    border-bottom: 1px solid #e5ecf5;
}

.rps-flow__identity { display: flex; align-items: center; gap: 15px; min-width: 0; }
.rps-flow__mark {
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(145deg, #174aa3, #2d76e8);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .04em;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
}
.rps-flow__overline { color: var(--rps-blue); font-size: 11px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.rps-flow__identity h2 { margin: 5px 0 4px; overflow: hidden; color: #162c4b; font-size: 17px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.rps-flow__identity h2 span { color: #8aa0bc; font-weight: 500; }
.rps-flow__identity p { margin: 0; color: var(--rps-muted); font-size: 12px; }
.rps-flow__identity p b { padding: 0 5px; color: #b2c0d2; }

.rps-flow__completion { flex: 0 0 270px; }
.rps-flow__completion > div:first-child { display: flex; align-items: baseline; justify-content: space-between; color: #526782; font-size: 12px; font-weight: 750; }
.rps-flow__completion strong { color: var(--rps-blue); font-size: 21px; }
.rps-flow__bar { height: 9px; margin: 7px 0; overflow: hidden; border-radius: 99px; background: #dfe8f4; }
.rps-flow__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rps-blue), var(--rps-cyan)); box-shadow: 0 0 12px rgba(14, 165, 233, .3); }
.rps-flow__completion small { display: block; color: #72839a; font-size: 11px; text-align: right; }

.rps-flow__steps { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px !important; margin: 0 !important; padding: 12px !important; }
.rps-flow__steps a {
    position: relative;
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 74px;
    padding: 12px 13px !important;
    border: 1px solid transparent !important;
    border-radius: 14px !important;
    background: #f7f9fc !important;
    color: #52647e !important;
    text-decoration: none !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.rps-flow__steps a:hover { transform: translateY(-2px); border-color: #bfd3ee !important; box-shadow: 0 7px 17px rgba(34, 63, 101, .09); }
.rps-flow__number { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #d7e1ed; border-radius: 12px; background: #fff; color: #64758b; font-size: 14px; font-weight: 900; }
.rps-flow__step-copy { display: grid; gap: 4px; min-width: 0; }
.rps-flow__step-copy strong { color: #263b58; font-size: 13px; line-height: 1.2; }
.rps-flow__step-copy small { overflow: hidden; color: #77879d; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.rps-flow__arrow { color: #9aacbf; font-size: 23px; line-height: 1; }
.rps-flow__steps a.is-complete .rps-flow__number { border-color: #b9e2cf; background: #e5f7ed; color: var(--rps-green); }
.rps-flow__steps a.is-active { border-color: #8db7ef !important; background: linear-gradient(145deg, #edf5ff, #f9fcff) !important; box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .06), 0 7px 18px rgba(37, 99, 235, .10); }
.rps-flow__steps a.is-active .rps-flow__number { border-color: var(--rps-blue); background: var(--rps-blue); color: #fff; box-shadow: 0 5px 12px rgba(37, 99, 235, .25); }
.rps-flow__steps a.is-active .rps-flow__step-copy strong { color: #174f9e; }

.rps-review-page { padding-bottom: 72px; }
.rps-review-page > .filter-bar { max-width: 620px; margin: 18px 0 0; }
.rps-review-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.rps-review-heading__copy { display: flex; align-items: center; gap: 16px; }
.rps-review-heading__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #e9f2ff; color: #2363c9; font-size: 25px; }
.rps-review-heading h1 { margin: 2px 0 5px; font-size: 30px; }
.rps-review-heading p { margin: 0; color: #6d7d94; font-size: 13px; }

.rps-review-hero {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    align-items: center;
    gap: 25px;
    padding: 25px;
    border: 1px solid #efd6a9;
    border-radius: 19px;
    background: linear-gradient(130deg, #fff8ec, #fff 60%);
    box-shadow: 0 9px 26px rgba(45, 62, 87, .07);
}
.rps-review-hero.is-ready { border-color: #b7dfca; background: linear-gradient(130deg, #effaf4, #fff 60%); }
.rps-review-score { display: grid; place-items: center; align-content: center; width: 102px; height: 102px; border: 8px solid #fff0d5; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(109, 73, 20, .09); }
.is-ready .rps-review-score { border-color: #d9f2e4; }
.rps-review-score strong { color: var(--rps-amber); font-size: 27px; line-height: 1; }
.is-ready .rps-review-score strong { color: var(--rps-green); }
.rps-review-score span { margin-top: 5px; color: #748299; font-size: 10px; }
.rps-review-hero h2 { margin: 4px 0 7px; color: #203451; font-size: 22px; }
.rps-review-hero p { max-width: 720px; margin: 0; color: #687992; font-size: 12px; line-height: 1.6; }
.rps-review-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rps-review-stats span { padding: 6px 9px; border: 1px solid #dfe6ef; border-radius: 8px; background: #fff; color: #50617a; font-size: 10px; font-weight: 800; }
.rps-print-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 190px; padding: 13px 17px; border-radius: 11px; background: linear-gradient(135deg, #1c5dc7, #2f78e8); color: #fff !important; text-decoration: none; font-size: 12px; font-weight: 900; box-shadow: 0 8px 18px rgba(31, 96, 220, .23); }
.rps-print-button:hover { transform: translateY(-1px); box-shadow: 0 11px 23px rgba(31, 96, 220, .28); }

.rps-panel { margin-top: 20px; padding: 23px; border: 1px solid var(--rps-border); border-radius: 18px; background: #fff; box-shadow: 0 7px 22px rgba(33, 57, 89, .05); }
.rps-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid #e7edf4; }
.rps-panel__header h2 { margin: 4px 0 0; color: #203451; font-size: 20px; }
.rps-panel__header p { margin: 5px 0 0; color: #77869b; font-size: 11px; }
.rps-panel__badge { padding: 7px 11px; border-radius: 99px; background: #eaf2ff; color: #205db7; font-size: 11px; font-weight: 900; }
.rps-checklist__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.rps-checklist__grid article { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px; border: 1px solid #e0e7f0; border-radius: 13px; background: #fafbfd; }
.rps-checklist__grid article.is-complete { border-color: #c8e8d6; background: #f4fbf7; }
.rps-check-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #fff0d7; color: #a2600b; font-size: 14px; font-weight: 900; }
.is-complete .rps-check-icon { background: #dcf4e6; color: #147b49; }
.rps-checklist__grid strong { color: #2c405d; font-size: 12px; }
.rps-checklist__grid p { margin: 4px 0 0; color: #75849a; font-size: 10px; line-height: 1.45; }
.rps-checklist__grid a { padding: 7px 10px; border: 1px solid #cadbf1; border-radius: 8px; background: #fff; color: #195bb6; text-decoration: none; font-size: 10px; font-weight: 900; }
.rps-checklist__grid .is-pending a { border-color: #edc989; background: #fff8eb; color: #94600f; }

.rps-reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 17px; }
.rps-reference-grid label { color: #40536f; font-size: 12px; font-weight: 850; }
.rps-reference-grid label span { display: block; margin-top: 4px; color: #7d8b9f; font-size: 10px; font-weight: 500; }
.rps-reference-grid textarea { box-sizing: border-box; width: 100%; min-height: 150px; margin-top: 8px; padding: 13px; border: 1px solid #d2deec; border-radius: 11px; background: #fbfcfe; color: #263a57; font: inherit; font-size: 12px; line-height: 1.55; resize: vertical; }
.rps-reference-grid textarea:focus { border-color: #6da0e5; outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .10); }
.rps-reference-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 15px; padding-top: 15px; border-top: 1px solid #e9eef5; }
.rps-reference-actions p { margin: 0; color: #718198; font-size: 10px; }
.rps-reference-actions button { padding: 11px 16px; border: 0; border-radius: 10px; background: #1f63d5; color: #fff; font-size: 11px; font-weight: 900; cursor: pointer; }
.rps-document-contents { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rps-document-contents span { padding: 7px 10px; border-radius: 8px; background: #f0f5fb; color: #526780; font-size: 10px; font-weight: 800; }

.offering-readiness { display: grid !important; grid-template-columns: 1fr auto !important; align-items: center; gap: 6px !important; margin-top: 16px; padding: 11px; border-radius: 10px; background: #f5f8fc; }
.offering-readiness > span, .offering-readiness > small { color: #6f7f95; font-size: 10px; }
.offering-readiness > strong { color: #1b5fc3; font-size: 12px; }
.offering-readiness > i { grid-column: 1 / -1; display: block; height: 7px; overflow: hidden; border-radius: 8px; background: #dfe7f1; }
.offering-readiness > i > b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2867df, #2aa3d7); }
.offering-readiness > small { grid-column: 1 / -1; }

@media (max-width: 1050px) {
    .rps-flow__header { align-items: flex-start; flex-direction: column; }
    .rps-flow__completion { width: 100%; flex-basis: auto; }
    .rps-flow__completion small { text-align: left; }
    .rps-flow__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rps-review-hero { grid-template-columns: 100px 1fr; }
    .rps-print-button { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    .rps-flow__header { padding: 18px; }
    .rps-flow__steps, .rps-checklist__grid, .rps-reference-grid { grid-template-columns: 1fr; }
    .rps-review-heading, .rps-reference-actions { align-items: flex-start; flex-direction: column; }
    .rps-review-hero { grid-template-columns: 1fr; }
    .rps-review-score { width: 88px; height: 88px; }
    .rps-checklist__grid article { grid-template-columns: 38px minmax(0, 1fr); }
    .rps-checklist__grid article a { grid-column: 2; justify-self: start; }
    .rps-reference-actions button, .rps-print-button { width: 100%; }
}
