/* CCPE Onboarding portal — styling. Neutral, clean, brand accent = the CCPE purple. */

:root {
    --ccpe-purple: #7a2ff7;
    --ccpe-purple-dark: #5f1fd0;
    --ink: #1a1d24;
    --ink-soft: #4a4f5a;
    --muted: #6b7280;
    --line: #e2e5ea;
    --bg: #f5f6f8;
    --panel: #ffffff;
    --ok-bg: #e8f6ec; --ok-fg: #1f7a3d; --ok-line: #b7e0c2;
    --warn-bg: #fdf6e3; --warn-fg: #8a6d1a; --warn-line: #efe0a8;
    --err-bg: #fdecec; --err-fg: #a11e1e; --err-line: #f2c2c2;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.5;
}

a { color: var(--ccpe-purple); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 1.7rem; margin: 0 0 .4rem; }
h2 { font-size: 1.15rem; margin: 0 0 .6rem; color: var(--ink); }
h3 { font-size: 1rem; margin: 0 0 .4rem; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* Top bar */
.topbar {
    display: flex; align-items: center; gap: 1rem;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .6rem 1.5rem; position: sticky; top: 0; z-index: 10;
}
.brand-logo { height: 50px; display: block; }  /* Steve 2026-09-07: bigger portal logo (was 34px) — plenty of room in the top bar */
.topbar-title { font-weight: 600; color: var(--ink-soft); }
.topbar-spacer { flex: 1; }
.topbar-user { color: var(--muted); font-size: .9rem; margin-right: .25rem; }

/* #833 review 12: on a phone the top bar wraps to a second line and leaves out its title and the signed-in name, so the page never scrolls sideways */
@media (max-width: 620px) {
    .topbar { flex-wrap: wrap; gap: .3rem .5rem; padding: .4rem 1rem; }
    .topbar-title, .topbar-user, .topbar-spacer { display: none; }
    .topbar .btn { padding: .3rem .6rem; font-size: .8rem; }
    .brand-logo { height: 36px; }
}

.content { flex: 1; width: 100%; max-width: 940px; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }
.footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 1rem; border-top: 1px solid var(--line); }

/* Hero (home) */
.hero { text-align: center; padding: 1.5rem 0 1rem; }
.hero .lead { max-width: 640px; margin: .5rem auto 1.25rem; color: var(--ink-soft); font-size: 1.05rem; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.home-note { text-align: center; margin-top: 1.25rem; font-size: .9rem; }
.info-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem; }
.info-card h3 { color: var(--ccpe-purple); }
.info-card p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* Panels / forms */
.form-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.75rem; }
.form-narrow { max-width: 460px; margin: 0 auto; }
.form-wide { max-width: 860px; margin: 0 auto; }

.form-section { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.25rem; }
.form-section:first-of-type { border-top: none; padding-top: 0; margin-top: .5rem; }
.section-head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.field { margin-bottom: .9rem; }
.field-narrow { max-width: 220px; }
.field label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .3rem; color: var(--ink-soft); }
.input {
    width: 100%; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 7px;
    font-size: .95rem; font-family: inherit; background: #fff; color: var(--ink);
}
.input:focus { outline: none; border-color: var(--ccpe-purple); box-shadow: 0 0 0 3px rgba(122,47,247,.12); }
textarea.input { resize: vertical; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .9rem; }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.hint { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.hint-warn { color: var(--warn-fg); }
.muted { color: var(--ink-soft); }
.stack > .field { margin-bottom: 1rem; }
.mt { margin-top: .75rem; }
.ml { margin-left: .5rem; }
.ok-inline { color: var(--ok-fg); font-size: .85rem; margin-left: .5rem; }
.err-inline { color: var(--err-fg); font-size: .85rem; margin-left: .5rem; }

/* Applications chooser (#229 — one person may own several applications) */
.app-list { margin: 1rem 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.app-list-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .9rem 1rem; border-top: 1px solid var(--line); }
.app-list-row:first-child { border-top: none; }
.app-list-main { display: flex; align-items: center; gap: .6rem; flex: 1 1 auto; }
.app-list-firm { font-weight: 600; }
.app-list-meta { font-size: .82rem; flex: 1 1 100%; }
.app-list-action { margin-left: auto; }

/* Roles */
.roles-fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 1rem; margin: 1rem 0; }
.roles-fieldset legend { font-weight: 600; padding: 0 .4rem; }
.role-row { border-top: 1px dashed var(--line); padding: .75rem 0; }
.role-row:first-of-type { border-top: none; }
.role-check { display: flex; align-items: center; gap: .5rem; }
.role-title { font-weight: 600; }
.role-desc { color: var(--ink-soft); font-size: .9rem; margin: .3rem 0 0 1.6rem; }
.check { display: inline-flex; align-items: center; gap: .45rem; margin-right: 1.25rem; font-size: .95rem; cursor: pointer; }

/* Contacts */
.contact-block { border: 1px solid var(--line); border-radius: 10px; padding: 1rem; margin-bottom: .9rem; }
.contact-block h3 { color: var(--ink-soft); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .5rem .95rem; border-radius: 8px; font-weight: 600; font-size: .92rem;
    border: 1px solid transparent; cursor: pointer; font-family: inherit; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-lg { padding: .65rem 1.3rem; font-size: 1rem; }
.btn-sm { padding: .3rem .6rem; font-size: .82rem; }
.btn-primary { background: var(--ccpe-purple); color: #fff; }
.btn-primary:hover { background: var(--ccpe-purple-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #f0f0f4; color: var(--ink); }

.form-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: 1.25rem; }

/* Alerts */
.alert { border-radius: 9px; padding: .8rem 1rem; margin: 1rem 0; font-size: .95rem; border: 1px solid transparent; }
.alert-success { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-line); }
.alert-warn { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn-line); }
.alert-error { background: var(--err-bg); color: var(--err-fg); border-color: var(--err-line); }

.field-error, .validation-message { color: var(--err-fg); font-size: .82rem; margin-top: .25rem; display: block; }

/* #833 retest (Steve 11-09: "When something must be entered twice (passwords, bank account numbers, ABA numbers, etc.), if they don't match, put your
   text that reports this in red so that it stands out."): the ONE class of every "the two ... do not match" message on the website - the error red
   (--err-fg, 7.5:1 on the white panel and 6:1 on the lavender of the fixed areas), bold. No page sets a colour for it of its own. */
.mismatch-msg { color: var(--err-fg); font-weight: 600; font-size: .85rem; }
div.mismatch-msg, p.mismatch-msg { margin-top: .25rem; }

/* Submitted confirmation page */
.submitted-card { text-align: center; margin-top: 3rem; padding: 2.5rem 2rem; }
.submitted-check {
    width: 84px; height: 84px; margin: 0 auto 1.25rem; border-radius: 50%;
    background: var(--ok-bg); border: 3px solid var(--ok-line); color: var(--ok-fg);
    font-size: 3rem; line-height: 84px; font-weight: 700;
}
.submitted-card h1 { font-size: 2rem; color: var(--ok-fg); margin-bottom: .6rem; }
.submitted-lead { font-size: 1.1rem; color: var(--ink); margin: 0 0 .5rem; }
.submitted-actions { justify-content: center; margin-top: 1.75rem; }

/* Status pill */
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.status-pill { font-size: .78rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.status-draft { background: #eef0f3; color: #55606e; }
.status-submitted { background: #e7effd; color: #1f5bd0; }
.status-in_review { background: var(--warn-bg); color: var(--warn-fg); }
.status-approved { background: var(--ok-bg); color: var(--ok-fg); }
.status-active { background: var(--ok-bg); color: var(--ok-fg); }
.status-rejected { background: var(--err-bg); color: var(--err-fg); }

/* ─────────────────────────────────────────────────────────────────────────
   Progress stepper (7 steps)
   ───────────────────────────────────────────────────────────────────────── */
.stepper { margin: 0 0 1.5rem; }
.stepper-list {
    list-style: none; margin: 0; padding: 0; display: flex; gap: 0;
    counter-reset: step;
}
.stepper-item { flex: 1 1 0; position: relative; text-align: center; min-width: 0; }
/* connector line between dots */
.stepper-item::before {
    content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px;
    background: var(--line); z-index: 0;
}
.stepper-item:first-child::before { display: none; }
.stepper-item.done::before, .stepper-item.current::before { background: var(--ccpe-purple); }
.stepper-dot {
    position: relative; z-index: 1; width: 32px; height: 32px; margin: 0 auto .35rem;
    border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--muted);
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem;
}
.stepper-item.done .stepper-dot { background: var(--ccpe-purple); border-color: var(--ccpe-purple); color: #fff; }
.stepper-item.current .stepper-dot { border-color: var(--ccpe-purple); color: var(--ccpe-purple); box-shadow: 0 0 0 3px rgba(122,47,247,.14); }
.stepper-label { font-size: .74rem; color: var(--muted); padding: 0 .15rem; }
.stepper-item.current .stepper-label { color: var(--ink); font-weight: 600; }
.stepper-item.done .stepper-label { color: var(--ink-soft); }
.stepper-caption { margin-top: .9rem; font-size: .88rem; display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.stepper-current { font-weight: 600; color: var(--ink); }
.stepper-next { color: var(--muted); }
@media (max-width: 620px) { .stepper-label { display: none; } .stepper-caption { flex-direction: column; align-items: center; gap: .2rem; } }

/* ─────────────────────────────────────────────────────────────────────────
   Documents (Step 2)
   ───────────────────────────────────────────────────────────────────────── */
.doc-list { display: flex; flex-direction: column; gap: .6rem; }
.doc-row {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
    border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem;
}
.doc-name { font-weight: 600; }
.doc-badge { font-size: .68rem; font-weight: 700; padding: .12rem .45rem; border-radius: 999px; margin-left: .5rem; text-transform: uppercase; letter-spacing: .03em; }
.doc-badge-ok { background: var(--ok-bg); color: var(--ok-fg); }
.doc-badge-need { background: var(--warn-bg); color: var(--warn-fg); }
.doc-files { list-style: none; margin: .5rem 0 0; padding: 0; }
.doc-files li { display: flex; align-items: center; gap: .6rem; font-size: .88rem; padding: .15rem 0; flex-wrap: wrap; }
.doc-meta { color: var(--muted); font-size: .78rem; }
.doc-upload-btn { cursor: pointer; }

/* ─────────────────────────────────────────────────────────────────────────
   Agreements (Step 3)
   ───────────────────────────────────────────────────────────────────────── */
.policy-list { list-style: none; margin: 0; padding: 0; }
.policy-list li { padding: .5rem 0; border-bottom: 1px dashed var(--line); font-weight: 600; }
.policy-list li:last-child { border-bottom: none; }
.consent-check { display: flex; align-items: flex-start; gap: .5rem; margin: .75rem 0; font-weight: 500; }
.consent-check input:disabled { cursor: default; }

/* Inline scrollable document viewer (read-and-confirm gating) */
.review-doc { border: 1px solid var(--line); border-radius: 11px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.review-doc-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.review-doc-viewer {
    max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px;
    background: #fbfbfd; padding: .75rem .9rem; font-family: "Consolas", "SF Mono", ui-monospace, monospace;
    font-size: .82rem; line-height: 1.5; white-space: pre-wrap; color: var(--ink-soft);
}
.review-doc-viewer:focus { outline: none; border-color: var(--ccpe-purple); box-shadow: 0 0 0 3px rgba(122,47,247,.12); }
.review-doc .consent-check { margin-bottom: 0; }
.sign-field { max-width: 360px; }
.review-line { display: flex; gap: .6rem; align-items: flex-start; }
.review-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warn-fg); margin-top: .35rem; flex: none; }

/* the small purple role tag (RoleTag.razor; #833 retest, Steve 11-09: "MARKET MAKER" beside the Quoting Obligation Agreement is "perfect") to the right of the
   name of every item asked for because of a role, on every step - and the signed/acknowledged confirmation line of Section B "Documents to submit or sign" */
.doc-badge-role { background: rgba(122,47,247,.12); color: var(--ccpe-purple); }
.doc-signed-line { font-size: .82rem; color: var(--muted); margin-top: .5rem; }

/* ─────────────────────────────────────────────────────────────────────────
   Banking (Step 4)
   ───────────────────────────────────────────────────────────────────────── */
.add-acct-row { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; }
.add-acct-row .field { margin-bottom: 0; }
.add-acct-name { flex: 1 1 240px; }

/* #293 item 1 — box the "Add a CCPE account" area in a muted brand tint so it stands out from the white sections below. */
.add-acct-panel { background: #f2ecfe; border: 1px solid #ddd0fb; border-radius: 11px; padding: 1.1rem 1.15rem 1.25rem; margin-top: 1.25rem; }
.add-acct-panel > h2 { margin-top: 0; }
/* #293 — inline Open / Download action buttons under a document name (Step 3 agreements + submit docs). */
.doc-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0 .25rem; }
/* #293 item 2 — inline account-name edit input on the account card. */
.acct-name-edit { display: inline-block; width: auto; min-width: 220px; margin: 0 .4rem; }
.acct-card { border: 1px solid var(--line); border-radius: 11px; padding: 1rem 1.1rem; margin-bottom: .9rem; }
.acct-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.acct-ident { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; min-width: 0; }
.acct-type { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ccpe-purple); background: #f2ecfe; padding: .12rem .5rem; border-radius: 999px; }
.acct-name { font-weight: 600; }
/* Change 1 — account-ID prefix template badge (monospace so the underscore placeholders read as digit slots) */
.acct-prefix { font-family: "Consolas", "SF Mono", ui-monospace, monospace; font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-soft); background: #eef0f3; border: 1px solid var(--line); padding: .1rem .45rem; border-radius: 6px; }
.acct-ccpe-id { font-size: .78rem; }
.acct-status { display: flex; align-items: center; gap: .6rem; }
.acct-bank-body { margin-top: .85rem; border-top: 1px dashed var(--line); padding-top: .85rem; }
.acct-bank-summary { margin-top: .6rem; font-size: .9rem; color: var(--ink-soft); }
.bank-choice { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .75rem; }
.micro-inputs { max-width: 360px; }
/* Change 4 — the bank-account entry fields (dropdown/ABA + account number + confirm) on a SINGLE row.
   Each field keeps its own label and below-input hint (ABA / bank name / mismatch); the row wraps only on a
   very narrow viewport so it never overflows its card. */
.bank-entry-row { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .75rem; flex-wrap: wrap; }
.bank-entry-row .field { margin-bottom: 0; }
.bank-entry-row .field-bank { flex: 1 1 200px; min-width: 170px; }
.bank-entry-row .field-aba { flex: 0 1 140px; min-width: 120px; }
.bank-entry-row .field-acct { flex: 1 1 190px; min-width: 160px; }

/* #331 (revised) — Settlement Bank Step 5: currency picker, per-currency accounts, and the per-currency fee schedule. */
.ccy-picker { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin: .5rem 0 .75rem; }
.ccy-picker .check { flex: 0 1 auto; }
.ccy-accts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .5rem .9rem; margin-bottom: .5rem; }
.ccy-acct-row { margin-bottom: 0; }
.fee-ccy-block { border: 1px solid var(--line); border-radius: 11px; padding: .85rem 1rem; margin-bottom: .9rem; }
.fee-ccy-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.fee-ccy-head > h3 { margin: 0; }
.fee-copy { display: flex; align-items: center; gap: .45rem; }
.fee-copy-src { display: inline-block; width: auto; min-width: 150px; }
.fee-table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.fee-table th, .fee-table td { text-align: left; padding: .3rem .5rem; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
.fee-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-soft); }
.fee-val { display: inline-block; width: 140px; }
.fee-unit { color: var(--ink-soft); font-size: .82rem; white-space: nowrap; }

/* ─────────────────────────────────────────────────────────────────────────
   Status view (Steps 5–7)
   ───────────────────────────────────────────────────────────────────────── */
.phase-track { list-style: none; margin: 0; padding: 0; }
.phase-item { display: flex; gap: .75rem; align-items: flex-start; padding: .1rem 0 1rem; position: relative; }
.phase-item::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: -2px; width: 2px; background: var(--line); }
.phase-item:last-child::before { display: none; }
.phase-item.done::before { background: var(--ccpe-purple); }
.phase-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: #fff; flex: none; z-index: 1; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .7rem; }
.phase-item.done .phase-dot { background: var(--ccpe-purple); border-color: var(--ccpe-purple); }
.phase-item.current .phase-dot { border-color: var(--ccpe-purple); box-shadow: 0 0 0 3px rgba(122,47,247,.14); }
.phase-title { font-weight: 600; }
.phase-now { display: inline-block; margin-top: .2rem; font-size: .72rem; font-weight: 700; color: var(--ccpe-purple); background: #f2ecfe; padding: .1rem .45rem; border-radius: 999px; }

.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.5rem; }
.summary-grid > div { display: flex; gap: .5rem; font-size: .92rem; padding: .2rem 0; border-bottom: 1px dashed var(--line); }
.summary-key { font-weight: 600; color: var(--ink-soft); min-width: 84px; }
@media (max-width: 620px) { .summary-grid { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────────────────────────────────────
   #37 / #332 — participant change-request current-vs-proposed table
   ───────────────────────────────────────────────────────────────────────── */
.cvp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cvp-table th, .cvp-table td { text-align: left; padding: .4rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.cvp-table th { font-weight: 600; color: var(--ink-soft); font-size: .8rem; }
.cvp-proposed { font-weight: 600; }

/* #641 — the documents page: a firm's version dropdown "(version, date)" beside Open / Download */
.doc-version-pick { display: inline-block; width: auto; min-width: 230px; padding: .3rem .5rem; font-size: .85rem; }

/* ─────────────────────────────────────────────────────────────────────────
   #833 step layout (Steve 2026-11-06) - StepLayout.razor, used by Application, KYC & Documents, Agreements, Banking, Settlement Bank and
   Status. FIXED at the top: the progress graphic, the "Step N" title, the step's explanation and every coloured band. SCROLLS: the rest.
   FIXED at the bottom: the Back and Submit / Continue buttons - BELOW the scrolling part, never over it (the old pinned buttons, the
   sticky-actions class, floated over the inputs and applicants missed them). The fixed top is capped at about 40% of the window's height,
   with its own scrollbar when taller (the explanation gives way first; the bands stay in view). The page fills the window (the top bar,
   the step page, the footer); a browser without :has() keeps the ordinary scrolling page. No horizontal scrolling on a phone.
   ───────────────────────────────────────────────────────────────────────── */
.page:has(.step-layout) { height: 100vh; height: 100dvh; }
.page:has(.step-layout) .content { min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: .5rem 1.25rem; }
.page:has(.step-layout) .step-layout { flex: 1 1 auto; min-height: 0; }
.step-layout { width: 100%; padding: 0; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.step-top { flex: 0 0 auto; display: flex; flex-direction: column; min-height: 0; max-height: 40vh; max-height: 40dvh; background: var(--fixed-bg); border-bottom: 2px solid var(--fixed-line); }
.step-head { flex: 0 1 auto; min-height: 0; overflow-y: auto; padding: .6rem 1.75rem .2rem; }
.step-bands { flex: 0 0 auto; max-height: 22vh; max-height: 22dvh; overflow-y: auto; padding: 0 1.75rem; }
.step-bands .alert { margin: .3rem 0; padding: .5rem .85rem; font-size: .88rem; line-height: 1.4; }
.step-bands:not(:empty) { padding-bottom: .25rem; }
.step-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .4rem 1.75rem 1rem; background: var(--panel); }
.step-actions { flex: 0 0 auto; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; padding: .45rem 1.75rem; border-top: 2px solid var(--fixed-line); background: var(--fixed-bg); }
.step-actions .btn-lg { padding: .4rem 1rem; font-size: .95rem; }
.step-head, .step-bands, .step-body, .step-actions { min-width: 0; overflow-wrap: anywhere; }
.step-head, .step-bands, .step-body { overflow-x: hidden; }
.step-body table { display: block; max-width: 100%; overflow-x: auto; }
.step-body img, .step-body input, .step-body select, .step-body textarea { max-width: 100%; }
/* compact chrome on a step page (review 12: at 1366x768 the scrolling part must get at least 45% of the window with one banner): the top bar one
   compact line, a small footer, a small progress graphic and tight spacing - the 40% cap of the fixed top stays */
.page:has(.step-layout) .topbar { padding: .3rem 1.5rem; gap: .75rem; }
.page:has(.step-layout) .brand-logo { height: 32px; }
.page:has(.step-layout) .footer { padding: .3rem 1rem; font-size: .75rem; line-height: 1.3; }
.step-layout .stepper { margin: 0 0 .35rem; }
.step-layout .stepper-item::before { top: 11px; }
.step-layout .stepper-dot { width: 24px; height: 24px; margin-bottom: .2rem; font-size: .75rem; }
.step-layout .stepper-label { font-size: .68rem; line-height: 1.2; }
.step-layout .stepper-caption { margin-top: .25rem; font-size: .8rem; line-height: 1.25; }
.step-head h1 { font-size: 1.3rem; margin: 0 0 .1rem; line-height: 1.25; }
.step-head p { margin: .25rem 0; font-size: .88rem; line-height: 1.4; }
@media (max-width: 620px) {
    .step-head, .step-bands, .step-body, .step-actions { padding-left: 1rem; padding-right: 1rem; }
    .step-actions .btn-lg { padding: .4rem .9rem; }
}

/* #833 retest (Steve 11-09: "the fixed sections should have a different backcolor so that they are clearly demarked"; "can you make the vertical
   scroll bar more prominent? ... switch to the purple used on the Submit button"):
   - the fixed top and the fixed bottom are a light lavender (the site's brand tint, a shade deeper than the "Add a CCPE account" panel), the scrolling
     part stays white, and a 2px line in a deeper lavender runs along the edge each fixed area shares with it;
   - the site's theme is light, so the text on the lavender is dark. Inside the two fixed areas the greys that were chosen for white (--muted for the hints
     and the stepper's labels, the stepper's connectors and dots, the amber hint) are replaced by darker ones, every text colour at least 4.5:1 on the
     lavender (a test computes it): no grey-on-lavender and no dark-on-dark. (Plain rules, not a second definition of --muted: one name, one colour.)
   - the scrolling part's vertical scroll bar is wide (16px), its thumb the Submit button's purple (--ccpe-purple; --ccpe-purple-dark on hover, as
     .btn-primary) on a lavender track. Chromium, Edge and Safari take the ::-webkit-scrollbar rules. Firefox takes scrollbar-color and
     scrollbar-width, set ONLY inside @supports (-moz-appearance: none): Chrome 121 and later ignore every ::-webkit-scrollbar rule on an element
     that has scrollbar-color or scrollbar-width. */
.step-layout { --fixed-bg: #e7dffa; --fixed-line: #a99bd6; --scroll-track: #ece6fb; }
.step-top .hint, .step-actions .hint, .step-top .stepper-label, .step-top .stepper-next { color: var(--ink-soft); }
.step-top .hint-warn, .step-actions .hint-warn { color: #6e5513; }
.step-top .stepper-dot, .step-actions .btn-ghost { border-color: var(--fixed-line); }
.step-top .stepper-item:not(.done):not(.current)::before { background: var(--fixed-line); }
.step-body::-webkit-scrollbar { width: 16px; }
.step-body::-webkit-scrollbar-track { background: var(--scroll-track); border-left: 1px solid var(--fixed-line); }
.step-body::-webkit-scrollbar-thumb { background-color: var(--ccpe-purple); background-clip: padding-box; border: 2px solid transparent; border-radius: 999px; min-height: 56px; }
.step-body::-webkit-scrollbar-thumb:hover { background-color: var(--ccpe-purple-dark); }
@supports (-moz-appearance: none) {
    .step-body { scrollbar-width: auto; scrollbar-color: var(--ccpe-purple) var(--scroll-track); }
}
