/* 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;
    --resp-bg: #e8f0fd; --resp-fg: #1a4f9c; --resp-line: #b9cff5;   /* #973: the blue of a message that answers what the user just did (.alert-response) */
}

* { 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); }

/* #985 (Steve 2026-11-22: "Somewhere, add a line showing:  Logged in as <username>     Authority: ...  I suggest we start at the bottom of the web page but always displayed (so everything above does
   not push this line down)."): the bar of a participant's sign-in (SignedInBar.razor), after the footer on every page a participant is signed in to - MainLayout puts the two in .page-foot.
   .page-foot is no box of its own here (display: contents): the bar is a part of the page's column, sticky to the bottom of the browser window while the page scrolls, and being the page's last
   part it also takes its own room at the foot of the page, so nothing is ever left hidden under it. On an application step page (the full-window layout of #833, further down) .page-foot is ONE
   line instead - the footer and the bar side by side, the bar as compact as the footer - so the bar adds no line there and the step's scrolling part keeps its room (#833 review 12); nothing in
   that layout floats, so the bar's own position is set here, with the page's other parts. The words are the body's size, the ink on the lavender of the step pages' fixed areas, with their deeper
   lavender edge. A question asked over the page (.modal-backdrop) covers it. */
.page-foot { display: contents; }
.signed-in-bar { position: sticky; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .2rem 2.5rem; padding: .45rem 1.5rem; background: #e7dffa; color: var(--ink); border-top: 2px solid #a99bd6; font-size: 1rem; }

/* #993 (Steve 2026-11-22: a page left open gave "I am getting no response to clicking Confirm." until it was reloaded): the line of a page whose live link to the website is gone (App.razor) -
   "SW-1953 Connection to CCPE lost - reload this page." when the link drops, BG-1955 when the website ended the page because of an error - hidden while the link stands; shown AT ONCE, across the
   top of the window over everything (a question asked over the page included), in the error red: blazor.web.js puts the dropped link's state on #components-reconnect-modal as a class (shown for
   every state but hide - so it goes away by itself when the link is made again), and shows #blazor-error-ui itself (display: block) when the website ended the page's link. It is the page's own
   line, set here with the page's other parts: it is shown only when the page no longer works, and then over everything - the step pages' layout too. */
#components-reconnect-modal, #blazor-error-ui { display: none; }
#components-reconnect-modal.components-reconnect-show, #components-reconnect-modal.components-reconnect-retrying, #components-reconnect-modal.components-reconnect-failed, #components-reconnect-modal.components-reconnect-rejected, #components-reconnect-modal.components-reconnect-paused, #components-reconnect-modal.components-reconnect-resume-failed { display: block; }
.connection-lost { position: fixed; top: 0; left: 0; right: 0; z-index: 2000; padding: .6rem 1.5rem; text-align: center; background: var(--err-bg); color: var(--err-fg); border-bottom: 2px solid var(--err-fg); font-weight: 600; font-size: 1rem; }
.connection-lost .btn { margin-left: 1rem; background: var(--err-fg); color: #fff; }

/* 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); }
/* #854 (Steve 11-11: "The font is too small and the link should be bold."): the hint under Primary SIC code (IssuerCreditFields.razor) is read at the page's
   normal text size, with its SEC link in bold - this one hint only, every other .hint keeps its small size. (Its full width comes from the page: the hint sits
   outside the narrow field.) */
.hint-wide { font-size: 1rem; }
.hint-wide a { font-weight: 700; }
.revisit-link { font-weight: 700; text-decoration: underline; }   /* #862 (Steve 11-11, Status page: "Please make each of the purpose links (your application ....) bold and underscored.") */
.muted { color: var(--ink-soft); }
.stack > .field { margin-bottom: 1rem; }
.mt { margin-top: .75rem; }
.ml { margin-left: .5rem; }
.ok-inline { color: var(--resp-fg); font-size: .85rem; margin-left: .5rem; }   /* #973: "Saved." / "Link sent" beside the button just pressed answers what the user did - the response blue */
.btn-primary + .ok-inline { font-size: .92rem; }   /* #861 (Steve 11-11, Step 4SB: "Saved should be the same font size as 'Save currencies'", then "... for the other Saved. appearance"): "Saved." beside a Save button is the button's text size (.btn) */
.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; }
/* #972 (Steve 11-23): the Authorized Signer's row on the Secondary Authorized Signers page shows these words in place of the box */
.signer-word { font-weight: 600; white-space: nowrap; }

/* 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); }
/* #891 phase 5 (Steve 11-15: "Suspend User should be white on red") - white on red, the one danger button */
.btn-danger { background: #c62828; color: #fff; }
.btn-danger:hover { background: #a31f1f; color: #fff; }
/* #969 (Steve 2026-11-21, on the firm page: "The Suspensions button should have a color (orange) and should read Show Suspensions."): the orange button - the exchange's own bright orange (255 140 0, the
   one of its SW-210 alert) with the ink colour for the words on it (7.2:1; white on it would be 2.2:1). Only the colours: the size and the shape are every other button's (.btn .btn-sm). */
.btn-orange { background: #ff8c00; color: var(--ink); }
.btn-orange:hover { background: #e67e00; color: var(--ink); }
/* #1137 (Steve 2026-12-01, on My Firm -> Accounts & banking, verbatim: "For a CLOSED account, I would like a RED closed object (same format as the Close account button to the left of the Request a
   Change button."): a label in a button's shape and colours that is not a button - no pointer, and its colour does not change when the mouse is over it */
.btn-static { cursor: default; }
.btn-danger.btn-static:hover { background: #c62828; color: #fff; }

/* #891 phase 5: a question asked over the page (Suspend User - now asks twice) */
.modal-backdrop { position: fixed; inset: 0; background: rgba(20, 20, 30, .45); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-box { background: #fff; border-radius: 12px; padding: 1.4rem 1.6rem; max-width: 560px; width: calc(100% - 2rem); box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }

.form-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: 1.25rem; }
/* #1086 (Steve 2026-11-24): a message the website shows (Components/MessageLines.razor) - one sentence per line, a blank line between two: the line breaks WebsiteMessage.Lines puts in are kept */
.msg-lines { white-space: pre-line; }

/* 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); }
/* #973 (Steve 2026-11-22, on the Secondary Authorized Signers page: "The top green box is standard language.  THe second green box is your response.  Having both green does not get my
   attention.  Pick another color for the lower box (consistently through the website) if that is information in response to what I have done."): BLUE for a message that answers what the user
   just did - a request recorded, a file uploaded, a password set, a link sent again, a step taken - on every page of the website. Green (.alert-success) stays the page's standing text, yellow
   (.alert-warn) a warning, red (.alert-error) an error; purple is the request buttons'. The dark blue on the light blue reads about 6.9:1. */
.alert-response { background: var(--resp-bg); color: var(--resp-fg); border-color: var(--resp-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; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .6rem; }   /* #890: the buttons of a heading, together at its right end */
.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; }
/* #641 (Steve 12-02: "there needs to be a space before the word 'version'"): the version note after a document's title is set apart from it (Blazor drops the space between the title and its span) */
.doc-name > .doc-meta { margin-left: .4em; }
.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; }
/* #925 (Steve 11-18, Step 2: "...to the right of the file description (eg IRS Form W-9) you listed the file types which are acceptable for every upload."): the file types an upload accepts, right after
   its description (and role tag), before the Uploaded / Required box. The page's note style (.doc-meta - the body's size, from #889's block at the foot of this file) in normal weight, as the description beside it is bold. */
.doc-accepted { margin-left: .5rem; font-weight: 400; }
.doc-upload-btn { cursor: pointer; }
/* #926 (Steve 11-18: "Replace is file-specific, so you need Replace to the right of each existing file ... and you should put Add below any existing file names."): each listed file has its own Replace beside
   its Remove (in the .doc-files row above); the one Add button sits below the list of a row's files - or right below its description when there are none. */
.doc-add { margin-top: .5rem; }

/* ─────────────────────────────────────────────────────────────────────────
   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 - for a participant, #985's signed-in bar in the footer's line); 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-actions .hint { font-size: .95rem; }   /* #858 (Steve 11-11, Step 2, then Step 4SB: 'The "hint" needs to be the font size as "Submit for review"'): every hint in the bottom bar, in the text size of the button beside it (the rule above) */
.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; }
/* #985: a participant continuing a role application has the signed-in bar here too (Steve: "every page a participant user is signed in to") - in the footer's line, not a line of its own:
   .page-foot (MainLayout: the footer, then the bar) is one row, the two side by side and as compact as each other, so the scrolling part keeps the room review 12 measured. On a narrow window the
   bar goes under the footer. The bar is in the page's column like the footer: it covers nothing. */
.page:has(.step-layout) .page-foot { display: flex; flex-wrap: wrap; }
.page:has(.step-layout) .page-foot > .footer, .page:has(.step-layout) .page-foot > .signed-in-bar { flex: 1 1 auto; }
.page:has(.step-layout) .page-foot > .signed-in-bar { padding: .3rem 1.5rem; 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.
   #955 (Steve 11-20, on the signed-in participant's firm page: "These pages need the bold purple vertical scroll bar that is on the initial application pages."): the pages under
     Components/Pages/Participant/ have no scrolling part of their own - the page itself scrolls - so the same bar is drawn on the document (the html element: the viewport's bar takes
     its style from it) while ParticipantLayout's wrapper .participant-pages is on the page. The selector html:has(.participant-pages) is added to the rules below that draw the bar
     and to the variables they read: one set of declarations for both, none of them changed. It comes first in each list and the .step-body selector last, on the line of the brace
     (the tests of the rules read a rule by the selector that starts its line). */
html:has(.participant-pages),
.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); }
html:has(.participant-pages)::-webkit-scrollbar,
.step-body::-webkit-scrollbar { width: 16px; }
html:has(.participant-pages)::-webkit-scrollbar-track,
.step-body::-webkit-scrollbar-track { background: var(--scroll-track); border-left: 1px solid var(--fixed-line); }
html:has(.participant-pages)::-webkit-scrollbar-thumb,
.step-body::-webkit-scrollbar-thumb { background-color: var(--ccpe-purple); background-clip: padding-box; border: 2px solid transparent; border-radius: 999px; min-height: 56px; }
html:has(.participant-pages)::-webkit-scrollbar-thumb:hover,
.step-body::-webkit-scrollbar-thumb:hover { background-color: var(--ccpe-purple-dark); }
@supports (-moz-appearance: none) {
    html:has(.participant-pages),
    .step-body { scrollbar-width: auto; scrollbar-color: var(--ccpe-purple) var(--scroll-track); }
}

/* #969 (Steve 2026-11-21, on the signed-in participant's firm page /participant: "It would look better if the page were wider so that the wrap around on Kit Primary did not occur.  Also, I would
   prefer the buttons to be right justified on their row."): the page's panel (.firm-page, the one in Participant.razor) takes up to 1180px where the other pages keep their 860px, and the content
   column around it up to 1240px - only while this panel is on the page. A row like Kit Primary's (name, e-mail, role, status, whether signed in, and its two buttons) is about 920px wide, so it
   stays on one line at a normal desktop width. The rule with :has() is its own rule: a browser without :has() drops a rule it cannot read, and the page then keeps the column it had.
   Every row's buttons (.app-list-action) sit at the right end of the row, as the headings' buttons do: a row (.firm-row) is a flex line - its text (.firm-row-text) takes the room and its buttons
   follow together at the right; a row too long for one line puts its buttons on a line of their own, still at the right. Only this page's rows: the lists of the other pages are as they were. */
.content:has(.firm-page) { max-width: 1240px; }
.form-wide.firm-page { max-width: 1180px; }
.firm-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; }
.firm-row-text { flex: 1 1 auto; min-width: 0; }
.firm-row > .app-list-action { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; margin-left: auto; }
.firm-row > .app-list-action ~ .app-list-action { margin-left: 0; }   /* a second group of buttons (a document's Download, then Submit a new version): the first takes the free room, this one follows it */
.firm-row > .hint { flex: 1 1 100%; margin-top: 0; }   /* a note under the row (a new version waiting for review): a line of its own */

/* #998 (Steve 2026-11-22, on the My Firm page: "please make the line between sections (Firm, Roles, People, ... a bit darker and wider)"): on My Firm (.firm-page) the line between two
   sections is 2px wide (every other page's is 1px) and a darker grey than the site's hairline (--line). The rule sets only the line's width and colour - never its style - so the first
   section (Firm) keeps no line above it (.form-section:first-of-type). Only this page: the sections of the other pages are as they were. */
.firm-page .form-section { border-top-width: 2px; border-top-color: #c4c9d1; }
/* #999 (Steve 2026-11-22: "Make the second titles a slightly larger font.  At People second, the title People looks to be about the same font as the bold items immediately below."): on My
   Firm each section's title (Firm, Roles, People, Notifications Recipient, Credit ratings, Accounts & banking, Users, Documents on file) is 1.35rem (about 20px) where the site's h2 is
   1.15rem (about 17px) - it stands out from the bold names of its list (the body's 15px) and stays below the firm's name (h1, 1.7rem). Only this page. */
.firm-page .form-section h2 { font-size: 1.35rem; }

/* #889 (Steve 11-14, about Admin's windows: "The small italiced(?) should ne bold or larger font.  This has been a problem in many places.  You should check for this everywhere." - the
   website has the same fine print): ONE block, last in this file, for every note / hint / muted / small text of the site: the body's size (1rem = 15px), never italic. The rules above
   keep their other declarations (colour, margin, line-height); this block only sets the size, repeating the selectors above where those are more specific than a class so that it wins.
   Buttons, inputs, pills, badges, alerts and table cells are not notes and are not touched. The bottom bar's button follows its hint (#858: 'The "hint" needs to be the font size as
   "Submit for review"'). <em> (the 5 places that name an e-mail address or a button) is normal text, not italic. OnboardingNoteText889Tests keeps a new small note out of this file. */
/* #889 note-text:start */
.topbar-user, .footer, .home-note, .info-card p, .hint, .ok-inline, .btn-primary + .ok-inline, .err-inline, .app-list-meta, .role-desc, .field-error, .validation-message, .mismatch-msg,
.stepper-label, .stepper-caption, .doc-files li, .doc-meta, .review-doc-viewer, .doc-signed-line, .acct-ccpe-id, .acct-bank-summary, .fee-unit, .step-actions .hint,
.step-layout .stepper-label, .step-layout .stepper-caption, .step-head p { font-size: 1rem; font-style: normal; }
.page:has(.step-layout) .footer { font-size: 1rem; }   /* its own rule: a browser without :has() drops a rule it cannot read, and must not drop the others with it */
.step-actions .btn-lg { font-size: 1rem; }   /* #858: the button beside the hint, so the two stay the same size */
em { font-style: normal; font-weight: normal; }
/* #889 note-text:end */
