/* ══════════════════════════════════════════════════════════════════
   THE PERSON'S JOURNEY SCREENS — report 137.

   The journeys design handoff, artboards C1–C16
   (`planning/design/journeys-handoff/Journeys - Broker.dc.html`), phone first
   at 390 wide. Every value below is one of the handoff's tokens (README,
   "Design tokens"); nothing here restyles a shared `.ui-*` component. The
   prefix is `jp-` and every rule is scoped under it, or under `.jp` for the
   few shared pieces a journey screen hosts (the flash row, the file picker,
   the user menu).

   ONE COLUMN, the handoff's frame: a white top bar, the paper ground, and the
   primary action pinned to the bottom of the screen (`.jp-foot`). Wider than
   a phone, the column stays phone-width and centred — these are a broker's
   screens, read one thing at a time.
   ══════════════════════════════════════════════════════════════════ */

.jp, .jp-home {
  /* ALIASES OF THE SHARED TOKENS — report 190. This block used to hold its
     own copy of the handoff's hex table, so a colour here could drift from
     the same colour in `components.css`, and did: the meta grey (#5F7085),
     the faint grey (#7A8899), the glyph (#A8A093) and the input edge
     (#B6AFA3) are the four values `redesign-2026-09.md` §3 retires for
     failing contrast, and they were still drawn here. Every name now points
     at the shared token, so a colour or a face means the same on every
     screen. The names stay so no rule below had to move. */
  --jp-paper: var(--page-bg);
  --jp-card: var(--card-bg);
  --jp-subtle: var(--rail-bg);
  --jp-hover: var(--tint-bg);
  --jp-chip: var(--chip-bg);
  --jp-border: var(--line);
  --jp-divider: var(--line-2);
  --jp-input: var(--line-input);
  --jp-btn-line: var(--line-3);
  --jp-ink: var(--ink-1);
  --jp-body: var(--ink-2);
  --jp-sec: var(--ink-3);
  --jp-meta: var(--ink-4);
  --jp-faint: var(--ink-4);
  --jp-glyph: var(--muted-ink);
  --jp-copper: var(--copper-cta);
  --jp-copper-hover: var(--accent-hi);
  --jp-ok: var(--green-deep);
  --jp-ok-bg: var(--ok-bg);
  --jp-ok-ink: var(--ok-fg);
  --jp-wait-bg: var(--wait-bg);
  --jp-wait-ink: var(--wait-fg);
  --jp-wait-2: var(--wait-fg-2);
  --jp-back: var(--alert-fg);
  --jp-back-bg: var(--alert-bg);
  --jp-back-line: var(--alert-dot);
  --jp-back-ink: var(--alert-fg);
  --jp-sans: var(--font-sans);
  --jp-mono: var(--font-sans);
  font-family: var(--jp-sans);
  color: var(--jp-ink);
}
.jp {
  background: var(--jp-paper);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}
body.jp-body {
  display: block;
  background: var(--jp-page-ground, var(--chip-bg));
  height: auto;
}
@media (max-width: 600px) {
  body.jp-body { background: var(--page-bg); }
}
.jp *, .jp *::before, .jp *::after { box-sizing: border-box; }
.jp [hidden] { display: none !important; }
:where(.jp, .jp-home) a { color: var(--accent); text-decoration: none; }   /* the link ink, report 190 */
:where(.jp, .jp-home) a:hover { color: var(--jp-copper-hover); text-decoration: underline; }
:where(.jp) p, :where(.jp) h1, :where(.jp) h2, :where(.jp) h3 { margin: 0; }
.jp button, .jp input, .jp textarea, .jp select { font: inherit; }

/* ── The top bar ──────────────────────────────────────────────────── */
.jp-top {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; min-height: 64px;
  background: var(--jp-card); border-bottom: 1px solid var(--jp-divider);
  position: sticky; top: 0; z-index: 20;
}
.jp-top--back { min-height: 53px; }
.jp-top--bare { background: transparent; border-bottom: 0; position: static; }
/* An activity's instructions sit under its title in the sub-line's voice
   (C7, C9, C10), not as body text. */
.jp-intro { font-size: var(--fs-ui); line-height: 1.5; color: var(--jp-meta); margin: -10px 0 16px; }
.jp-intro p + p, .jp-intro ul { margin-top: 6px; }
.jp-intro ul { padding-left: 18px; }
.jp-logo { display: inline-flex; align-items: center; }
/* REPORT 146, P8. R1's mark is a wide lockup with three lines of type in a
   170x100 image; at 24px tall it was a few unreadable pixels. 40px is the
   height at which its name can be read, and the bar stays 64px. */
.jp-logo img { height: 40px; width: auto; display: block; }
.jp-top { padding-top: 12px; padding-bottom: 12px; }
.jp-logo span { font-weight: 600; font-size: var(--fs-body); color: var(--jp-ink); }
.jp .jp-ask {
  margin-left: auto; padding: 8px 12px; border: 1px solid var(--jp-border);
  border-radius: var(--radius-pill); font-size: var(--fs-meta); font-weight: 500;
  color: var(--jp-ink); background: var(--jp-card); white-space: nowrap;
}
.jp .jp-ask:hover { background: var(--jp-hover); text-decoration: none; color: var(--jp-ink); }
.jp .jp-back-link { font-size: var(--fs-ui); color: var(--jp-sec); }
.jp .jp-back-link:hover { color: var(--jp-ink); }
.jp-top__right { margin-left: auto; font-size: var(--fs-meta); }
.jp-saved { color: var(--jp-ok); font-weight: 500; }
.jp-saved[data-state="saving"] { color: var(--jp-meta); }
.jp-saved[data-state="failed"] { color: var(--jp-back); }
/* Report 164 (walk 2, problem 10): a refused answer, at its field. */
.jp-field__problem { margin: 6px 0 0; font-size: var(--fs-ui); line-height: 1.45; color: var(--jp-back); }

/* The account menu is the shared one (`_user_menu.html`), shown as its
   initials only — the design's 34px circle. Its dropdown is unchanged. */
.jp-top .user-menu { position: relative; }
.jp-top .user-text, .jp-top .user-menu-caret { display: none; }
.jp-top .user-menu-btn {
  padding: 0; border: 0; background: none; cursor: pointer;
  display: inline-flex; min-height: 34px; align-items: center;
}
.jp-top .avatar {
  width: 34px; height: 34px; border-radius: var(--radius-pill); background: var(--jp-chip);
  color: var(--jp-sec); font-size: var(--fs-micro); font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center;
}
.jp-top .user-menu-dropdown { right: 0; left: auto; }

/* ── The body of a screen ─────────────────────────────────────────── */
.jp-main { flex: 1; padding: 22px 18px 26px; display: flex; flex-direction: column; }
.jp-main--wide { padding: 20px 22px 0; }
.jp .flashes { padding: 12px 18px 0; }

.jp-h1 { font-size: var(--fs-page-title); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 6px; text-wrap: balance; }
.jp-h1--act { font-size: var(--fs-heading); line-height: 1.25; margin-bottom: 4px; }
.jp-h1--big { font-size: var(--fs-page-title); line-height: 1.15; margin-bottom: 12px; }
.jp-sub { font-size: var(--fs-body); color: var(--jp-sec); margin: 0 0 12px; }
.jp-sub--act { font-size: var(--fs-ui); color: var(--jp-meta); line-height: 1.45; margin-bottom: 18px; }
.jp-lede { font-size: var(--fs-section); line-height: 1.6; color: var(--jp-body); margin: 0 0 26px; }
.jp-body-text { font-size: var(--fs-body); line-height: 1.6; color: var(--jp-body); }
.jp-meta { font-size: var(--fs-meta); color: var(--jp-meta); line-height: 1.5; }
.jp-faint { font-size: var(--fs-meta); color: var(--jp-faint); }

.jp-bar {
  height: 8px; border-radius: var(--radius-pill); background: var(--jp-border);
  overflow: hidden; margin: 0 0 22px;
}
.jp-bar > span { display: block; height: 100%; background: var(--jp-ok); }

/* ── Next up: the only dark card ──────────────────────────────────── */
.jp-next {
  background: var(--jp-ink); color: var(--on-anchor); border-radius: var(--shell-radius);
  padding: 20px; margin-bottom: 14px;
}
.jp-next__label { font-size: var(--fs-meta); font-weight: 500; color: var(--on-anchor-2); margin-bottom: 8px; }
.jp-next__title { font-size: var(--fs-heading); font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.jp-next__text { font-size: var(--fs-ui); line-height: 1.5; color: var(--on-anchor-2); margin-bottom: 18px; }
.jp .jp-next__go {
  display: block; text-align: center; padding: 14px 0; border-radius: var(--radius);
  background: var(--card-bg); color: var(--jp-ink); font-size: var(--fs-body); font-weight: 600;
}
.jp .jp-next__go:hover { background: var(--jp-hover); color: var(--jp-ink); text-decoration: none; }

/* ── Waiting on a team ────────────────────────────────────────────── */
.jp-wait {
  display: flex; gap: 12px; padding: 15px 16px; background: var(--jp-wait-bg);
  border-radius: var(--radius-lg); margin-bottom: 14px;
}
.jp-wait__dot {
  width: 22px; height: 22px; flex: none; border-radius: var(--radius-pill); background: var(--card-bg);
  color: var(--jp-wait-2); font-size: var(--fs-label); display: flex; align-items: center;
  justify-content: center; line-height: 1;
}
.jp-wait__text { display: flex; flex-direction: column; gap: 3px; }
.jp-wait__title { font-size: var(--fs-body); font-weight: 500; color: var(--jp-wait-ink); }
.jp-wait__body { font-size: var(--fs-ui); color: var(--jp-wait-2); line-height: 1.5; }
.jp-gap { height: 12px; }

/* ── Sent back (C11) ──────────────────────────────────────────────── */
.jp-fix {
  background: var(--jp-card); border: 1.5px solid var(--jp-back-line);
  border-radius: var(--shell-radius); padding: 20px; margin-bottom: 14px;
}
/* The shared pill, report 190 (components.css §1 `--pill-*`), OVERDUE. */
.jp-chip-back {
  display: inline-block; padding: var(--pill-pad-y) var(--pill-pad-x); border-radius: var(--radius-pill);
  font-size: var(--pill-fs); font-weight: var(--pill-weight); line-height: var(--pill-lh);
  background: var(--jp-back-bg); color: var(--jp-back); margin-bottom: 8px;
}
.jp-fix__title { font-size: var(--fs-heading); font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.jp-fix__note { font-size: var(--fs-body); line-height: 1.55; color: var(--jp-body); margin-bottom: 18px; }
.jp-fix__by { color: var(--jp-meta); }
.jp-cant { font-size: var(--fs-ui); line-height: 1.55; color: var(--jp-meta); margin: 0 0 22px; }

/* ── The checklist's groups and rows ──────────────────────────────── */
.jp-group { margin: 12px 0 24px; }
.jp-group__title { font-size: var(--fs-body); font-weight: 600; margin: 0 0 4px; }
.jp-group__sub { font-size: var(--fs-meta); color: var(--jp-meta); margin: 0 0 10px; }
.jp-list {
  background: var(--jp-card); border: 1px solid var(--jp-border);
  border-radius: var(--radius-lg); overflow: hidden; list-style: none; margin: 0; padding: 0;
}
.jp-list > li + li { border-top: 1px solid var(--jp-divider); }
:is(.jp, .jp-home) .jp-row {
  display: flex; align-items: flex-start; gap: 13px; padding: 15px 16px;
  color: inherit; text-decoration: none; transition: background 140ms ease;
}
:is(.jp, .jp-home) a.jp-row:hover { background: var(--jp-hover); text-decoration: none; color: inherit; }
.jp-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.jp-row__title { font-size: var(--fs-body); font-weight: 500; line-height: 1.35; color: var(--jp-ink); }
.jp-row__meta { font-size: var(--fs-meta); line-height: 1.45; color: var(--jp-meta); }
.jp-row__chev { flex: none; font-size: var(--fs-section); color: var(--jp-glyph); line-height: 1.2; }

/* The status glyph: README, "Status glyphs". */
.jp-glyph {
  width: 24px; height: 24px; flex: none; margin-top: 1px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--jp-input); background: var(--card-bg); color: var(--jp-input);
  font-size: var(--fs-micro); font-weight: 600; display: flex; align-items: center;
  justify-content: center; line-height: 1;
}
[data-state="done"] > .jp-glyph { background: var(--jp-ok); border-color: var(--jp-ok); color: var(--on-anchor); }
[data-state="done"] .jp-row__title { color: var(--jp-sec); }
[data-state="done"] .jp-row__meta { color: var(--jp-faint); }
[data-state="next_up"] > .jp-glyph { border-color: var(--jp-copper); color: var(--jp-copper); }
[data-state="next_up"] .jp-row__meta { color: var(--jp-copper); }
[data-state="not_open_yet"] > .jp-glyph { background: var(--jp-paper); border-style: dashed; border-color: var(--jp-btn-line); color: var(--jp-glyph); }
[data-state="not_open_yet"] .jp-row__title { color: var(--jp-sec); }
[data-state="not_open_yet"] .jp-row__meta { color: var(--jp-faint); }
[data-state="waiting_on_firm"] > .jp-glyph { background: var(--jp-wait-bg); border-color: var(--jp-wait-bg); color: var(--jp-wait-2); }
[data-state="waiting_on_firm"] .jp-row__meta { color: var(--jp-wait-2); }
[data-state="sent_back"] > .jp-glyph { background: var(--jp-back); border-color: var(--jp-back); color: var(--on-anchor); }
[data-state="sent_back"] .jp-row__meta { color: var(--jp-back); }
/* Report 171 (ADE-279). A row the broker skipped, and its "Undo". */
[data-state="skipped"] > .jp-glyph { background: var(--jp-paper); color: var(--jp-glyph); }
[data-state="skipped"] .jp-row__title { color: var(--jp-sec); }
[data-state="skipped"] .jp-row__meta { color: var(--jp-faint); }
.jp-row > form { flex: none; }
.jp-done[data-role="skipped"] > summary .jp-glyph { background: var(--jp-paper); border-color: var(--jp-btn-line); color: var(--jp-glyph); }
/* Report 171. A registered event at the top of the checklist. */
.jp-event { margin-bottom: 14px; }
.jp-event > p + p { margin-top: 6px; }

/* "Done 4 · Show" — a disclosure, so the list is there without a script. */
.jp-done {
  background: var(--jp-card); border: 1px solid var(--jp-border);
  border-radius: var(--radius-lg); margin-bottom: 14px; overflow: hidden;
}
.jp-done > summary {
  display: flex; align-items: center; gap: 13px; padding: 15px 16px;
  cursor: pointer; list-style: none;
}
.jp-done > summary::-webkit-details-marker { display: none; }
.jp-done > summary .jp-glyph { background: var(--jp-ok); border-color: var(--jp-ok); color: var(--on-anchor); margin-top: 0; }
.jp-done__label { flex: 1; font-size: var(--fs-body); font-weight: 500; }
.jp-done__count { font-variant-numeric: tabular-nums; font-weight: 400; color: var(--jp-meta); }
.jp-done__show { font-size: var(--fs-ui); color: var(--jp-sec); }
.jp-done[open] .jp-done__show::before { content: "Hide"; }
.jp-done[open] .jp-done__show > span { display: none; }
.jp-done .jp-list { border: 0; border-top: 1px solid var(--jp-divider); border-radius: 0; }

/* The contact block at the end of the checklist. */
.jp-contact {
  padding: 16px; border-radius: var(--radius-lg); background: var(--jp-chip);
  display: flex; flex-direction: column; gap: 4px;
}
.jp-contact__lead { font-size: var(--fs-meta); color: var(--jp-sec); }
.jp-contact__who { font-size: var(--fs-body); font-weight: 500; }
:is(.jp, .jp-home) .jp-contact__way { font-size: var(--fs-ui); font-weight: 500; color: var(--jp-copper); }

/* ── Arrival (C2) ─────────────────────────────────────────────────── */
.jp-facts {
  background: var(--jp-card); border: 1px solid var(--jp-border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px;
}
.jp-fact { display: flex; gap: 14px; padding: 16px 18px; }
.jp-fact + .jp-fact { border-top: 1px solid var(--jp-divider); }
.jp-fact__k { font-variant-numeric: tabular-nums; font-size: var(--fs-ui); color: var(--jp-copper); width: 56px; flex: none; }
.jp-fact__v { font-size: var(--fs-body); line-height: 1.5; }
.jp-person {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--jp-card); border: 1px solid var(--jp-border); border-radius: var(--radius-lg);
}
.jp-avatar {
  width: 44px; height: 44px; flex: none; border-radius: var(--radius-pill); background: var(--jp-ink);
  color: var(--on-anchor); font-size: var(--fs-meta); font-weight: 500; display: flex;
  align-items: center; justify-content: center;
}
.jp-person__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jp-person__lead { font-size: var(--fs-meta); color: var(--jp-meta); }
.jp-person__name { font-size: var(--fs-body); font-weight: 500; }
.jp-person__role { font-size: var(--fs-meta); color: var(--jp-meta); }
:is(.jp, .jp-home) .jp-person__go { font-size: var(--fs-ui); font-weight: 500; color: var(--jp-copper); }

/* ── The pinned action ────────────────────────────────────────────── */
.jp-foot {
  position: sticky; bottom: 0; z-index: 10;
  padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(to bottom, transparent, var(--jp-paper) 14px);
}
.jp-foot--wide { padding: 16px 22px 22px; }
/* Report 164 (Run 9): in the page's flow, not pinned over the last field. */
.jp-foot--flow { position: static; background: none; }
.jp .jp-btn {
  display: block; width: 100%; text-align: center; padding: 16px 12px;
  border-radius: var(--radius-sm); background: var(--primary); color: var(--on-primary);
  font-size: var(--fs-section); font-weight: var(--btn-weight); border: 0; cursor: pointer; line-height: 1.3;
  text-decoration: none;
}
.jp .jp-btn:hover { background: var(--primary-press); color: var(--on-primary); text-decoration: none; }
/* The shared disabled look, report 190 (components.css §1 `--btn-off-*`). */
.jp .jp-btn:disabled, .jp .jp-btn:disabled:hover { opacity: 1; background: var(--btn-off-bg); color: var(--btn-off-fg); border: 1px solid var(--btn-off-edge); cursor: not-allowed; }
.jp .jp-btn--quiet {
  background: var(--card-bg); color: var(--jp-ink); border: 1px solid var(--btn-edge);
}
.jp .jp-btn--quiet:hover { background: var(--jp-hover); color: var(--jp-ink); }
.jp .jp-btn--text {
  background: none; color: var(--jp-ink); padding: 10px 0; font-size: var(--fs-body);
}
.jp .jp-btn--text:hover { background: none; text-decoration: underline; color: var(--jp-ink); }
.jp .jp-btn--light { background: var(--card-bg); color: var(--jp-ink); font-weight: 500; }
.jp .jp-btn--light:hover { background: var(--jp-hover); color: var(--jp-ink); }
.jp-foot__note { font-size: var(--fs-ui); color: var(--jp-meta); text-align: center; }
.jp .jp-linkbtn {
  background: none; border: 0; padding: 0; color: var(--jp-meta);
  font-size: var(--fs-ui); cursor: pointer; text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Activity screens (C4–C10) ────────────────────────────────────── */
.jp-card {
  background: var(--jp-card); border: 1px solid var(--jp-border);
  border-radius: var(--radius-lg); padding: 18px;
}
.jp-card + .jp-card { margin-top: 14px; }
.jp-stack { display: flex; flex-direction: column; gap: 14px; }
.jp-doc__title { font-size: var(--fs-body); font-weight: 600; margin-bottom: 10px; }
.jp-doc__words {
  font-family: var(--jp-sans); font-size: var(--fs-ui); line-height: 1.55;
  color: var(--jp-body); white-space: pre-wrap; margin: 0 0 12px;
  max-height: 260px; overflow: auto;
}
.jp-doc__foot { font-size: var(--fs-meta); color: var(--jp-faint); }
/* REPORT 146, P5. The agreement on the page (C4's white card). A browser
   that will not draw a PDF inline shows the fallback sentence inside the
   same box instead. */
.jp-doc__viewer {
  display: block; width: 100%; height: 360px; margin: 0 0 10px;
  border: 1px solid var(--jp-divider); border-radius: var(--radius-sm); background: var(--rail-bg);
}
.jp-doc__read {
  max-height: 360px; overflow: auto; margin: 0 0 10px; padding: 2px 4px 0 0;
}
.jp-doc__page {
  font-size: var(--fs-ui); line-height: 1.55; color: var(--jp-body); white-space: pre-wrap;
}
.jp-doc__pageno { font-size: var(--fs-meta); color: var(--jp-faint); margin: 8px 0 14px; }
.jp-doc__fallback { padding: 16px; font-size: var(--fs-ui); line-height: 1.55; color: var(--jp-body); }
.jp-doc__words-box .jp-doc__words { font-size: var(--fs-meta); color: var(--jp-sec); max-height: 180px; }

.jp-label { display: block; font-size: var(--fs-ui); font-weight: 500; color: var(--jp-sec); margin: 0 0 8px; }
.jp-label__opt { display: block; font-weight: 400; color: var(--jp-meta); font-size: var(--fs-meta); margin-top: 2px; }
.jp-field + .jp-field { margin-top: 18px; }
.jp .jp-input {
  display: block; width: 100%; padding: 10px 14px; font-size: var(--fs-body);
  color: var(--jp-ink); background: var(--card-bg); border: 1px solid var(--jp-input);
  border-radius: var(--radius); line-height: 1.5;
}
.jp .jp-input:focus { outline: none; border-color: var(--jp-ink); box-shadow: 0 0 0 1px var(--jp-ink); }
.jp textarea.jp-input { min-height: 150px; resize: vertical; }
.jp-input--name { font-size: var(--fs-section); font-weight: 500; }
.jp-tick {
  display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-body);
  line-height: 1.5; color: var(--jp-body); margin-top: 14px; cursor: pointer;
}
.jp-tick input[type="checkbox"], .jp-tick input[type="radio"] {
  width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--jp-ink);
}
.jp-guide__title { font-size: var(--fs-body); font-weight: 600; margin: 18px 0 8px; }
.jp-label--q { color: var(--jp-ink); font-size: var(--fs-body); }
.jp-lede--done { font-size: var(--fs-body); margin-bottom: 22px; }
.jp-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.jp-after { margin-top: 18px; }
.jp-after--near { margin-top: 12px; }
.jp-tick--flush { margin: 0; }
.jp-sent-photo { max-width: 100%; border-radius: var(--radius); display: block; margin-bottom: 10px; }

/* The photo screen's preview (C5). */
.jp-drop {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--chip-bg) 0 14px, var(--sunk-bg) 14px 28px);
  min-height: 330px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; padding: 18px;
}
.jp-drop img[data-preview] { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jp-drop__name {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: var(--card-bg); border-radius: var(--radius-inner); padding: 3px 9px;
  font-variant-numeric: tabular-nums; font-size: var(--fs-meta); color: var(--jp-sec);
  max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.jp-drop .ui-file { z-index: 1; }
.jp .jp-drop .ui-file__button, .jp .jp-upload .ui-file__button {
  padding: 11px 16px; border-radius: var(--radius-sm); background: var(--jp-ink); color: var(--on-anchor);
  font-size: var(--fs-body); font-weight: 500; border: 0; min-height: 44px;
}
.jp-drop.has-photo .ui-file { opacity: 0; pointer-events: none; }
.jp .jp-drop .ui-file-staged, .jp .jp-upload .ui-file-staged { font-size: var(--fs-meta); }

/* The upload area of a document (C6, C11). */
.jp-upload {
  border: 1.5px dashed var(--jp-btn-line); border-radius: var(--radius-lg); background: var(--card-bg);
  padding: 22px 18px; text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 6px;
}
.jp-upload__title { font-size: var(--fs-body); font-weight: 500; }
.jp-upload__hint { font-size: var(--fs-ui); color: var(--jp-meta); margin-bottom: 10px; }

/* A file that was sent (C6, C11). */
.jp-file {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--card-bg); border: 1px solid var(--jp-border); border-radius: var(--radius-lg);
}
.jp-file__tag {
  width: 40px; height: 48px; flex: none; border-radius: var(--radius-inner); background: var(--jp-chip);
  font-variant-numeric: tabular-nums; font-size: var(--fs-micro); color: var(--jp-meta);
  display: flex; align-items: center; justify-content: center;
}
.jp-file__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jp .jp-file__name { font-size: var(--fs-body); font-weight: 500; color: var(--jp-ink); overflow-wrap: anywhere; }
.jp-file__meta { font-size: var(--fs-meta); color: var(--jp-meta); }
.jp-file--back .jp-file__name { text-decoration: line-through; color: var(--jp-sec); }
.jp-file--back .jp-file__meta { color: var(--jp-back); }

/* The blue "Sent — Licensing is checking it" box (C6). */
.jp-sent {
  background: var(--jp-wait-bg); border-radius: var(--radius-lg); padding: 18px;
}
.jp-sent__title { font-size: var(--fs-section); font-weight: 600; color: var(--jp-wait-ink); margin-bottom: 6px; }
.jp-sent__body { font-size: var(--fs-ui); line-height: 1.55; color: var(--jp-wait-2); }
/* Report 164 (walk 2, problem 1): the check is finished — the green of a
   done row, not the blue of waiting. */
.jp-sent--ok { background: var(--jp-ok-bg); }
.jp-sent--ok .jp-sent__title, .jp-sent--ok .jp-sent__body { color: var(--jp-ok-ink); }

/* The red "What to fix" box (C11). */
.jp-whatfix { background: var(--jp-back-bg); border-radius: var(--radius-lg); padding: 18px; }
.jp-whatfix__label { font-size: var(--fs-ui); font-weight: 600; color: var(--jp-back); margin-bottom: 6px; }
.jp-whatfix__note { font-size: var(--fs-body); line-height: 1.55; color: var(--jp-back-ink); margin-bottom: 10px; }
.jp-whatfix__by { font-size: var(--fs-meta); color: var(--jp-back); }

/* The result of an activity (C4 Signed). */
.jp-done-mark {
  width: 56px; height: 56px; border-radius: var(--radius-pill); background: var(--jp-ok);
  color: var(--on-anchor); font-size: var(--fs-heading); display: flex; align-items: center;
  justify-content: center; margin: 26px 0 22px;
}
.jp-told { margin-top: 24px; }
.jp-told__lead { font-size: var(--fs-meta); color: var(--jp-meta); margin-bottom: 4px; }
.jp-told__body { font-size: var(--fs-body); line-height: 1.55; }
.jp-answers { margin: 0; display: grid; gap: 10px; }
.jp-answers dt { font-size: var(--fs-meta); color: var(--jp-meta); }
.jp-answers dd { margin: 0; font-size: var(--fs-body); line-height: 1.5; overflow-wrap: anywhere; }

/* The video (C8). */
.jp-video {
  background: var(--jp-ink); border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16 / 10; position: relative;
}
.jp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jp-video__none {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px;
  font-variant-numeric: tabular-nums; font-size: var(--fs-meta); color: var(--on-anchor-2);
}

/* The choosable cards — a session (C9) or an option (C10). */
.jp-choice {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: var(--card-bg); border: 1px solid var(--jp-border); border-radius: var(--radius-lg);
  cursor: pointer; line-height: 1.35;
}
.jp-choice + .jp-choice { margin-top: 12px; }
.jp-choice input[type="radio"] {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; flex: none;
  margin: 0; border-radius: var(--radius-pill); border: 1.5px solid var(--jp-input); background: var(--card-bg);
}
.jp-choice input[type="radio"]:checked { border: 7px solid var(--jp-ink); }
.jp-choice input[type="radio"]:focus-visible { outline: 2px solid var(--jp-copper); outline-offset: 2px; }
.jp-choice:has(input:checked) { border: 1.5px solid var(--jp-ink); padding: 11.5px 15.5px; }
.jp-choice__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jp-choice__title { font-size: var(--fs-body); font-weight: 500; }
/* REPORT 146, P11: a session's time range stays on one line. */
.jp-choice__meta { font-size: var(--fs-ui); color: var(--jp-meta); white-space: nowrap; }
.jp-choice__side { font-size: var(--fs-meta); color: var(--jp-meta); text-align: right; flex: none; }
.jp-choice.is-full { opacity: 0.55; cursor: not-allowed; background: var(--jp-subtle); }
.jp-choice.is-full .jp-choice__side { color: var(--jp-back); }
.jp-options { background: var(--card-bg); border: 1px solid var(--jp-border); border-radius: var(--radius-lg); padding: 16px 18px; }
.jp-options__q { font-size: var(--fs-body); font-weight: 500; margin-bottom: 8px; }
.jp-option { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: var(--fs-body); cursor: pointer; }
.jp-option input[type="radio"] {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; flex: none;
  margin: 0; border-radius: var(--radius-pill); border: 1.5px solid var(--jp-input); background: var(--card-bg);
}
.jp-option input[type="radio"]:checked { border: 7px solid var(--jp-ink); }
.jp-option input[type="radio"]:focus-visible { outline: 2px solid var(--jp-copper); outline-offset: 2px; }
.jp-option__note { display: block; font-size: var(--fs-meta); color: var(--jp-meta); }

/* A problem with what was sent. */
.jp-problem {
  background: var(--jp-back-bg); color: var(--jp-back-ink); border-radius: var(--radius-lg);
  padding: 14px 16px; font-size: var(--fs-ui); line-height: 1.5; margin-bottom: 14px;
}
.jp-problem ul { margin: 0; padding-left: 18px; }

.jp-clock { font-size: var(--fs-meta); color: var(--jp-faint); margin-top: 22px; }

/* ── Your part done (C12) ─────────────────────────────────────────── */
.jp-partdone { background: var(--jp-ok-bg); border-radius: var(--shell-radius); padding: 20px; margin-bottom: 24px; }
.jp-partdone__title { font-size: var(--fs-heading); font-weight: 600; color: var(--jp-ok-ink); margin-bottom: 6px; }
.jp-partdone__body { font-size: var(--fs-body); line-height: 1.55; color: var(--jp-ok-ink); margin-bottom: 14px; }
.jp-chip-ok {
  display: inline-block; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--card-bg);
  color: var(--jp-ok); font-size: var(--fs-ui); font-weight: 600;
}
.jp-still-title { font-size: var(--fs-body); font-weight: 600; margin: 0 0 10px; }

/* ── All set (C13) and the closed notice ──────────────────────────── */
body.jp-body--ink { background: var(--jp-page-ground, var(--chip-bg)); }
.jp--ink { background: var(--jp-ink); color: var(--on-anchor); }
@media (max-width: 600px) { body.jp-body--ink { background: var(--ink-1); } }
.jp--ink .jp-main { padding: 26px 26px 0; }
.jp-allset__mark {
  width: 64px; height: 64px; border-radius: var(--radius-pill); background: var(--card-bg);
  color: var(--jp-ok); font-size: var(--fs-page-title); display: flex; align-items: center;
  justify-content: center; margin: 84px 0 26px;
}
.jp-allset__title { font-size: var(--fs-page-title); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 14px; }
.jp-allset__body { font-size: var(--fs-body); line-height: 1.6; color: var(--on-anchor-2); margin-bottom: 22px; }
.jp-allset__facts { border-top: 1px solid color-mix(in srgb, var(--on-anchor) 18%, transparent); padding-top: 18px; display: grid; gap: 8px; font-size: var(--fs-ui); color: var(--wait-bg); }
.jp--ink .jp-foot { background: none; }
.jp.jp--ink .jp-btn--text, .jp.jp--ink .jp-btn--text:hover { color: var(--on-anchor); }

/* ── Several journeys (C15) ───────────────────────────────────────── */
.jp-home__date { font-size: var(--fs-ui); color: var(--jp-meta); margin-bottom: 4px; }
.jp-jcard {
  display: block; background: var(--card-bg); border: 1px solid var(--jp-border);
  border-radius: var(--radius-lg); padding: 18px; color: inherit;
}
.jp-jcard + .jp-jcard { margin-top: 12px; }
:is(.jp, .jp-home) a.jp-jcard:hover { background: var(--jp-hover); text-decoration: none; color: inherit; }
.jp-jcard--back { border: 1.5px solid var(--jp-back-line); }
.jp-jcard__title { display: block; font-size: var(--fs-section); font-weight: 600; margin-bottom: 4px; color: var(--jp-ink); }
.jp-jcard__sub { display: block; font-size: var(--fs-ui); color: var(--jp-sec); line-height: 1.5; }
/* REPORT 146, P6: what was sent back, above who sent it and their words. */
.jp-jcard__what { display: block; font-size: var(--fs-body); font-weight: 500; color: var(--jp-ink); margin: 2px 0 4px; }
.jp-jcard .jp-bar { display: block; margin: 10px 0 14px; height: 6px; }
.jp-jcard__next { display: flex; align-items: flex-end; gap: 10px; }
.jp-jcard__next > span:first-child { flex: 1; min-width: 0; }
.jp-jcard__nl { display: block; font-size: var(--fs-meta); color: var(--jp-meta); }
.jp-jcard__nt { display: block; font-size: var(--fs-body); font-weight: 500; color: var(--jp-ink); }
.jp-section { font-size: var(--fs-body); font-weight: 600; color: var(--jp-meta); margin: 24px 0 10px; }
.jp-fin { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.jp-fin .jp-glyph { background: var(--jp-ok); border-color: var(--jp-ok); color: var(--on-anchor); margin-top: 0; }
.jp-fin__title { flex: 1; font-size: var(--fs-body); }
.jp-fin__when { font-size: var(--fs-meta); color: var(--jp-meta); }

/* The home page's cards are the same component, inside the dashboard's own
   column (`dashboard/index.html`): the tokens and the family carry over, the
   frame does not. */
.jp-home { margin-bottom: 20px; }
/* Report 146: the focused home (P1, P2) keeps the phone design's measure on a
   wide screen rather than stretching one card across it. */
.jp-home--focus { max-width: 640px; }
.jp-home--focus :where(p) { margin: 0; }
.jp-home .jp-section { margin-top: 20px; }
.jp-home .jp-list { list-style: none; margin: 0; padding: 0; }

/* ── The assistant's answers about a journey (C14) ────────────────── */
.msg .bubble ul.jp-rows {
  list-style: none; padding: 0; margin: 10px 0; background: var(--card-bg);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.msg .bubble ul.jp-rows > li { margin: 0; padding: 0; }
.msg .bubble ul.jp-rows > li + li { border-top: 1px solid var(--line-2); }
.msg .bubble ul.jp-rows a {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px;
  color: var(--ink-1); text-decoration: none; font-weight: 500; font-size: var(--fs-ui);
}
.msg .bubble ul.jp-rows a::after { content: "›"; margin-left: auto; color: var(--muted-ink); }
.msg .bubble ul.jp-rows a:hover { background: var(--tint-bg); }
.msg .bubble a.jp-go {
  display: inline-block; margin-top: 10px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-3); background: var(--card-bg); color: var(--ink-1);
  font-weight: 500; text-decoration: none;
}
.msg .bubble a.jp-go:hover { background: var(--tint-bg); }
.msg .bubble ul.jp-rows .jp-rows__meta {
  display: block; padding: 0 16px 12px; margin-top: -8px;
  font-size: var(--fs-meta); line-height: 1.45; color: var(--ink-4);
}

/* ── The app shell on a phone (report 146, P9) ──────────────────────
   Not a journeys screen: the ordinary pages, for the person going through
   one. Kept here because this file is linked on every page and the item is
   the person's.

   THE CLOSING LINE ("R1 Companies / Adealia") WAS A SECOND FIXED BAND on a
   phone. It sits outside the page's scroller, so the scroller stopped at
   its top edge and the last card on a page was sliced by it, 45px above
   the tab bar that .main-col already clears (components.css, ADE-168).
   Where the tab bar is drawn (720px and under) it is the page's bottom
   edge, so the closing line goes and the scroller runs to the bar. */
@media (max-width: 720px) {
  .ui-page--foot { display: none; }
  /* ONE PIXEL OF AIR between the page and the bar, now that nothing else
     sits between them. Without it a row cut by the scroller's edge could
     have its centre a fraction of a pixel above the bar, and a hit test
     rounds that point onto the bar (measured on /connect at 390x844:
     centre 786.95, bar top 787). */
  .main-col {
    padding-bottom: calc(var(--tabbar-tap) + var(--tabbar-rule) + 1px
                         + env(safe-area-inset-bottom));
  }
}
/* The home card's event time: "9:00 AM-12:00 PM MDT" on one line (P11). */
.card-event-when__time { white-space: nowrap; }

/* ── Replace a sent file (C6, report 160) ───────────────────────── */
.jp-replace { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.jp-replace .ui-file { flex: 1 1 auto; }
.jp .jp-replace__go { width: auto; min-height: var(--btn-min-h); padding: 0 var(--btn-pad-x); font-size: var(--btn-fs); border-radius: var(--radius-sm); }

/* ── A video that ticks itself, and its chapters (C8, report 160) ── */
.jp-video__done { color: var(--jp-ok); font-weight: 500; }
.jp-chapters { list-style: none; margin: 0; padding: 0; background: var(--card-bg); border: 1px solid var(--jp-border); border-radius: var(--radius-lg); overflow: hidden; }
.jp-chapters li + li { border-top: 1px solid var(--jp-divider); }
.jp-chapter { display: flex; gap: 14px; width: 100%; padding: 13px 16px; font-size: var(--fs-body); line-height: 1.4; text-align: left; color: var(--jp-ink); background: none; border: 0; }
button.jp-chapter { cursor: pointer; }
button.jp-chapter:hover { background: var(--jp-hover); }
.jp-chapter__at { flex: none; width: 44px; font-variant-numeric: tabular-nums; font-size: var(--fs-meta); color: var(--jp-faint); padding-top: 1px; }

/* ── The home of somebody in onboarding, in C15's frame (report 160) ── */
.jp-greeting em { font-style: normal; }
.jp .jp-home--focus { max-width: none; margin-bottom: 0; }

/* ── The design's plain frame inside the app (report 160) ────────────
   `body.is-focus`: the chat of somebody in onboarding (C14) and a review
   item (D2, D5). The page draws one white bar of its own (`.focus-top`)
   and the app's rail, rail button and tab bar are hidden. They stay in the
   page, so a script that reads them still finds them. */
body.is-focus .sidebar,
body.is-focus .rail-toggle,
body.is-focus .tabbar { display: none !important; }
body.is-focus .main-col > header.focus-top {
  display: flex; align-items: center; gap: 16px;
  min-height: 56px; padding: 14px 18px;
  background: var(--card-bg); border-bottom: 1px solid var(--line-2);
  font-family: 'Instrument Sans', Helvetica, Arial, sans-serif;
  font-size: var(--fs-ui);
}
body.is-focus .focus-top a { text-decoration: none; }
body.is-focus .focus-top__back { font-weight: 500; color: var(--ink-3); }
body.is-focus .focus-top__back:hover { color: var(--ink-1); }
body.is-focus .focus-top__title { margin-left: auto; font-weight: 600; color: var(--ink-1); }
body.is-focus .focus-top__pos { color: var(--ink-4); }
body.is-focus .focus-top__skip { margin-left: auto; color: var(--ink-2); }
.focus-narrow { display: none; }
@media (min-width: 901px) {
  body.is-focus .main-col > header.focus-top { padding: 16px 32px; }
}
@media (max-width: 900px) {
  /* The tab bar is gone, so nothing needs room kept for it. */
  body.is-focus .main-col { padding-bottom: env(safe-area-inset-bottom); }
  body.is-focus .jr-phone-bar { bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 720px) {
  .focus-wide { display: none; }
  .focus-narrow { display: inline; }
  /* D5: "‹ Queue" at one end, "3 of 7" at the other. */
  body.is-focus .focus-top__pos { margin-left: auto; }
}

/* ══════════════════════════════════════════════════════════════════
   REPORT 173 — THE APP REVIEW, THE BROKER'S SIDE (screens 1–4).
   `planning/design/app-review-handoff/Review - Broker.dc.html`.

   2a/2b: the checklist in a new order, and at a desk (above 900px) the
   checklist as the left column with one activity open on the right
   (`journeys/_desk.html`). Section 3: one frame and one footer for every
   kind of activity. The values are the review's; the colours are the
   existing tokens (components.css names #616B78 `--ink-4`, #94501E
   `--accent`, #F2EEE6 `--tint-bg`). #918D86 is the review's ring on an
   open row, darker than the old `--jp-input`.
   ══════════════════════════════════════════════════════════════════ */
.jp, .jp-home { --jp-ring: var(--line-input); --jp-ink4: var(--ink-4); --jp-accent: var(--accent); --jp-sel: var(--select-bg); --jp-tint: var(--tint-bg); }

/* ── The bar: the logo and the initials (1b, 2a) ─────────────────── */
.jp-top .user-menu { margin-left: auto; }
.jp-top .avatar {
  background: var(--jp-ink); color: var(--on-anchor); font-size: var(--fs-meta); font-weight: 600;
}
.jp-top__name, .jp-top__q { display: none; }

/* ── The checklist, on a phone (2a) ──────────────────────────────── */
.jp-list-col { display: flex; flex-direction: column; }
.jp-desk__list .jp-list-col { padding: 24px 20px 28px; }
.jp-list-col > .jp-h1 { font-size: var(--fs-page-title); letter-spacing: -0.01em; margin: 0 0 12px; }
.jp-stand { font-size: var(--fs-section); font-weight: 500; line-height: 1.5; margin: 0 0 12px; color: var(--jp-ink); }
.jp-list-col > .jp-bar { background: var(--jp-chip); margin: 0 0 6px; }
.jp-list-col > .jp-sub { font-size: var(--fs-meta); color: var(--jp-ink4); margin: 0 0 24px; }
.jp-list-col > .jp-fix, .jp-list-col > .jp-cant { margin-bottom: 24px; }
.jp-part { margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.jp-part__title { font-size: var(--fs-ui); font-weight: 600; margin: 0; color: var(--jp-ink); }
.jp-part > .jp-next { margin: 0; }
.jp-next { border-radius: var(--radius-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.jp-next__label { font-size: var(--fs-meta); font-weight: 400; color: var(--on-anchor-2); margin: 0; }
.jp-next__title { font-size: var(--fs-heading); font-weight: 600; line-height: 1.3; margin: 0; }
.jp .jp-next__go { padding: 14px 0; font-size: var(--fs-body); font-weight: 500; }
.jp-list-col .jp-list { border-radius: var(--radius-lg); }
.jp-list-col .jp-row { align-items: center; gap: 12px; padding: 14px 16px; }
.jp-list-col .jp-row__title { font-size: var(--fs-body); font-weight: 500; }
.jp-list-col .jp-row__meta { font-size: var(--fs-meta); color: var(--jp-ink4); }
.jp-list-col .jp-glyph { border-color: var(--jp-ring); margin-top: 0; }
.jp-list-col [data-state="waiting_on_firm"] .jp-row__meta { color: var(--jp-wait-2); }
.jp-list-col [data-state="not_open_yet"] > .jp-glyph { border-color: var(--jp-btn-line); }
.jp-list-col [data-state="not_open_yet"] .jp-row__meta { color: var(--jp-faint); }
.jp-list-col [data-state="next_up"] > .jp-glyph { border-color: var(--jp-copper); font-size: 9px; }
.jp-list-col [data-state="next_up"] .jp-row__meta { color: var(--jp-accent); }
.jp-list-col [data-state="done"] > .jp-glyph { border-color: var(--jp-ok); }

/* A registered event (2a). */
.jp-event {
  background: var(--jp-card); border: 1px solid var(--jp-border); border-radius: var(--radius-lg);
  padding: 16px 18px; margin: 0 0 24px; display: flex; flex-direction: column; gap: 12px;
}
.jp-event__main { display: flex; gap: 14px; }
.jp-datetile {
  width: 52px; flex: none; border-radius: var(--radius-sm); background: var(--jp-tint);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 0;
}
.jp-datetile__m { font-size: var(--fs-meta); color: var(--jp-ink4); }
.jp-datetile__d { font-variant-numeric: tabular-nums; font-size: var(--fs-section); font-weight: 500; }
.jp-event__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.jp-event__reg { font-size: var(--fs-meta); color: var(--jp-ok); font-weight: 500; }
.jp-event__title { font-size: var(--fs-body); font-weight: 500; }
.jp-event__when { font-size: var(--fs-meta); color: var(--jp-ink4); }
.jp .jp-event__link { font-size: var(--fs-meta); overflow-wrap: anywhere; }
.jp-event__acts { display: flex; gap: 10px; }
.jp .jp-event__btn {
  flex: 1; text-align: center; padding: 11px; border-radius: var(--radius-sm); border: 1px solid var(--jp-btn-line);
  background: var(--card-bg); font-size: var(--fs-ui); font-weight: 500; color: var(--jp-ink); cursor: pointer;
}
.jp .jp-event__btn:hover { background: var(--jp-hover); color: var(--jp-ink); text-decoration: none; }

/* Waiting on R1 (2a): the team and what they are doing. */
.jp-waitlist { list-style: none; margin: 0; padding: 0; background: var(--jp-wait-bg); border-radius: var(--radius-lg); }
.jp-waitrow { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; }
.jp-waitrow + .jp-waitrow { border-top: 1px solid color-mix(in srgb, var(--wait-fg) 12%, transparent); }
.jp-waitrow .jp-wait__dot { width: 24px; height: 24px; font-size: var(--fs-meta); }
.jp-waitrow__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jp-waitrow__title { font-size: var(--fs-body); font-weight: 500; color: var(--jp-wait-ink); }
.jp a.jp-waitrow__title { color: var(--jp-wait-ink); }
.jp a.jp-waitrow__title:hover { color: var(--jp-wait-ink); text-decoration: underline; }
.jp-waitrow__meta { font-size: var(--fs-meta); color: var(--jp-wait-2); }

/* Optional, Done and Skipped at the foot. On a phone Optional is a heading
   with its rows; Done and Skipped are one folded line each. */
.jp-folds { display: flex; flex-direction: column; }
.jp-fold { margin: 0 0 24px; }
.jp-fold > summary { list-style: none; }
.jp-fold > summary::-webkit-details-marker { display: none; }
.jp-fold__sum { font-size: var(--fs-ui); font-weight: 600; margin: 0 0 10px; pointer-events: none; }
.jp-fold__count { display: none; }
.jp-folds .jp-done { margin: 0 0 14px; }
.jp-done > summary { gap: 8px; padding: 14px 16px; }
.jp-done__tick { color: var(--jp-ok); font-weight: 600; font-size: var(--fs-body); }
.jp-done__tick--skip { color: var(--jp-glyph); }
.jp-done__label { font-size: var(--fs-body); font-weight: 400; }
.jp-done__count { font-family: inherit; color: inherit; }
.jp-done__show { font-size: var(--fs-ui); font-weight: 500; color: var(--jp-accent); }
.jp-questions { font-size: var(--fs-ui); line-height: 1.55; color: var(--jp-sec); margin: 10px 0 0; }
.jp .jp-questions a { color: var(--jp-accent); }

/* ── One activity (section 3) ─────────────────────────────────────── */
.jp-step { display: flex; flex-direction: column; flex: 1; background: var(--card-bg); }
.jp-step__bar { padding: 16px 20px; min-height: 0; border-bottom: 1px solid var(--jp-border); }
.jp .jp-step__bar .jp-back-link { font-size: var(--fs-body); font-weight: 500; color: var(--jp-sec); }
.jp-step__bar .jp-top__right { font-size: var(--fs-meta); }
.jp-step__body { padding: 22px 20px; }
.jp-step__meta { font-size: var(--fs-meta); color: var(--jp-ink4); margin: 0 0 6px; }
.jp-step__body .jp-h1--act { font-size: var(--fs-heading); line-height: 1.25; margin: 0 0 12px; }
.jp-step__lead { font-size: var(--fs-body); line-height: 1.55; color: var(--jp-body); margin: 0 0 16px; }
.jp-step__lead p + p, .jp-step__lead ul { margin-top: 8px; }
.jp-step__lead ul { padding-left: 18px; margin-bottom: 0; }
.jp-step__lead li + li { margin-top: 4px; }
.jp-photo-row { display: flex; flex-direction: column; gap: 12px; }
.jp-photo-row__side { display: contents; }
.jp-photo-row__side > .jp-step__lead { order: -1; margin: 0; }
.jp-photo-row .jp-drop { min-height: 250px; border-radius: var(--radius-lg); }
.jp-upload { border: 1.5px dashed var(--jp-ring); border-radius: var(--radius-lg); padding: 26px 16px; }
.jp-upload__hint { font-size: var(--fs-meta); color: var(--jp-ink4); margin: 4px 0 0; }
.jp-step__body .jp-label { color: var(--jp-ink); font-size: var(--fs-ui); font-weight: 500; margin-bottom: 6px; }
.jp-step__body .jp-input { border-color: var(--jp-ring); }
.jp-step__body .jp-field + .jp-field { margin-top: 14px; }
.jp-outside {
  display: flex; flex-direction: column; gap: 10px; padding: 16px;
  background: var(--jp-subtle); border: 1px solid var(--jp-border); border-radius: var(--radius-lg);
}
.jp-outside__site { font-size: var(--fs-ui); font-weight: 500; }
.jp-outside__note { font-size: var(--fs-meta); line-height: 1.5; color: var(--jp-ink4); }
.jp .jp-outside__open {
  align-self: flex-start; padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--jp-btn-line);
  background: var(--card-bg); font-size: var(--fs-body); font-weight: 500; color: var(--jp-ink);
}
.jp .jp-outside__open:hover { background: var(--jp-hover); color: var(--jp-ink); text-decoration: none; }
.jp-step__body .jp-choice { border-radius: var(--radius-lg); padding: 14px; }
.jp-step__body .jp-choice:has(input:checked) { padding: 13.5px; }
.jp-step__body .jp-choice__title { font-size: var(--fs-body); }
.jp-step__body .jp-choice__meta { font-size: var(--fs-meta); color: var(--jp-ink4); white-space: normal; }
.jp-choice__full { color: var(--jp-back); }
.jp-step__body .jp-choice + .jp-choice { margin-top: 10px; }

/* THE ONE FOOTER: the main button full width, then "Not now", then "Not
   for me" on an optional one. */
.jp-step > .jp-foot {
  padding: 14px 20px 20px; gap: 6px; background: var(--card-bg); border-top: 1px solid var(--jp-divider);
  margin-top: auto;
}
.jp-step > .jp-foot--flow { position: static; }
.jp-foot__main { display: flex; flex-direction: column; gap: 10px; }
.jp-foot__main:empty { display: none; }
.jp-foot__ways { display: flex; justify-content: center; margin: 0; }
.jp .jp-way {
  padding: 10px 16px; font-size: var(--fs-body); font-weight: 500; color: var(--jp-sec);
  background: none; border: 0; cursor: pointer; text-decoration: none;
}
.jp .jp-way:hover { color: var(--jp-ink); text-decoration: underline; }
.jp .jp-way + .jp-way { border-left: 1px solid var(--jp-border); }

/* ── The page a journey's link opens (1a) ─────────────────────────── */
body.jp-body { min-height: 100vh; }
.jl { background: var(--card-bg); }
@media (min-width: 601px) {
  .jl { margin: 40px auto; max-width: 440px; min-height: 0; border: 1px solid var(--jp-border); border-radius: 28px; overflow: hidden; }
}
.jl-main { flex: 1; padding: 56px 28px 24px; display: flex; flex-direction: column; gap: 28px; }
.jl-logo { width: 120px; height: auto; align-self: center; }
.jl-firm { font-size: var(--fs-section); font-weight: 600; text-align: center; }
.jl-firm.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.jl-head { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.jl-title { font-size: var(--fs-page-title); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; text-wrap: balance; }
.jl-sub { font-size: var(--fs-body); line-height: 1.55; color: var(--jp-sec); }
.jl-contact {
  display: flex; gap: 14px; align-items: center; padding: 16px;
  background: var(--jp-subtle); border: 1px solid var(--jp-border); border-radius: var(--radius-lg);
}
.jl-avatar {
  width: 52px; height: 52px; flex: none; border-radius: var(--radius-pill); background: var(--jp-chip);
  color: var(--jp-sec); font-size: var(--fs-body); font-weight: 500; display: flex; align-items: center; justify-content: center;
}
.jl-contact__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jl-contact__name { font-size: var(--fs-body); font-weight: 500; }
.jl-contact__role { font-size: var(--fs-meta); color: var(--jp-ink4); }
.jp .jl-contact__way { font-size: var(--fs-meta); color: var(--jp-accent); overflow-wrap: anywhere; }
.jl-foot { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--jp-divider); }
.jl-foot form { margin: 0; }
.jl-btn {
  display: block; width: 100%; text-align: center; padding: 16px; border-radius: var(--radius); border: 0;
  background: var(--jp-ink); color: var(--on-anchor); font: inherit; font-size: var(--fs-section); font-weight: 500; cursor: pointer;
}
.jl-btn:hover { background: var(--anchor-press); }
.jl-note { font-size: var(--fs-meta); line-height: 1.5; color: var(--jp-ink4); text-align: center; }
.jl .flashes { padding: 0; }

/* ── Home after authorization (4a) ───────────────────────────────── */
.jl-authorized { margin: 6px 0 0; font-size: var(--fs-ui); color: var(--ink-4); line-height: 1.9; }
.jl-authorized__chip {
  display: inline-block; padding: var(--pill-pad-y) var(--pill-pad-x); border-radius: var(--radius-pill);
  font-size: var(--pill-fs); font-weight: var(--pill-weight); line-height: var(--pill-lh); background: var(--ok-bg);
  color: var(--ok-fg); margin-right: 8px;
}
.ui-card:has(> .jl-left), .ui-card--flush:has(> .jl-left) { padding: 0; }
.jl-left__head { display: flex; align-items: baseline; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.jl-left__head .card-heading { margin: 0; font-size: var(--fs-section); font-weight: 600; }
.jl-left__count { margin-left: auto; font-size: var(--fs-meta); color: var(--ink-4); white-space: nowrap; }
.jl-left__rows { list-style: none; margin: 0; padding: 0; }
.jl-left__row { display: flex; gap: 12px; align-items: center; padding: 14px 22px; }
.jl-left__row + .jl-left__row { border-top: 1px solid var(--line-2); }
.jl-left__glyph {
  width: 22px; height: 22px; flex: none; border-radius: var(--radius-pill); border: 1.5px solid var(--line-input);
  background: var(--card-bg); color: var(--wait-fg-2); font-size: var(--fs-micro); display: flex; align-items: center; justify-content: center; line-height: 1;
}
.jl-left__row[data-state="waiting_on_firm"] .jl-left__glyph { border: 0; background: var(--wait-bg); }
.jl-left__row[data-state="sent_back"] .jl-left__glyph { border-color: var(--alert-fg); background: var(--alert-fg); color: var(--on-anchor); }
.jl-left__row[data-state="next_up"] .jl-left__glyph { border-color: var(--copper-cta); color: var(--copper-cta); font-size: 9px; }
.jl-left__row[data-state="not_open_yet"] .jl-left__glyph { border-style: dashed; border-color: var(--line-3); background: var(--page-bg); }
.jl-left__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.jl-left__title { font-size: var(--fs-body); font-weight: 500; color: var(--ink-1); text-decoration: none; }
a.jl-left__title:hover { text-decoration: underline; }
.jl-left__meta { font-size: var(--fs-meta); color: var(--ink-4); }
.jl-left__when { font-size: var(--fs-meta); color: var(--ink-4); white-space: nowrap; }
.jl-left__foot { padding: 14px 22px; border-top: 1px solid var(--line-2); font-size: var(--fs-ui); font-weight: 500; }
.jl-left__foot a { color: var(--accent); text-decoration: none; }
.jl-left__foot a:hover { color: var(--accent-hi); text-decoration: underline; }

/* ── First arrival (1b) ────────────────────────────────────────────── */
.jp-arrive { padding: 28px 20px; gap: 22px; }
.jp-arrive .jp-h1 { font-size: var(--fs-page-title); letter-spacing: -0.01em; margin: 0; }
.jp-arrive .jp-facts { margin: 0; }
.jp-arrive .jp-fact__k { font-variant-numeric: tabular-nums; font-size: var(--fs-section); font-weight: 500; color: var(--jp-ink); width: 44px; }
.jp-arrive .jp-fact__k--word { font-family: var(--jp-sans); font-size: var(--fs-body); font-weight: 400; color: var(--jp-ink4); }
.jp-arrive .jp-fact__v { font-size: var(--fs-body); }
.jp-ask-who { display: flex; flex-direction: column; gap: 4px; }
.jp-ask-who__lead { font-size: var(--fs-meta); font-weight: 600; color: var(--jp-ink4); }
.jp-ask-who__who { font-size: var(--fs-body); line-height: 1.5; }
.jp .jp-ask-who a { color: var(--jp-accent); }
.jp-foot--arrive { background: var(--card-bg); border-top: 1px solid var(--jp-border); padding: 16px 20px 22px; }

/* ── The two layouts ──────────────────────────────────────────────── */
.jp-desk { flex: 1; display: flex; flex-direction: column; }
.jp-desk__step, .jp-desk__list { flex: 1; display: flex; flex-direction: column; }
.jp-rest { padding: 24px 20px; }
.jp-rest__title { font-size: var(--fs-section); font-weight: 600; line-height: 1.35; margin: 0 0 8px; }

@media (max-width: 900px) {
  .jp-desk[data-open="list"] > .jp-desk__step,
  .jp-desk[data-open="step"] > .jp-desk__list { display: none; }
  .jp-desk-only, .jp-top--desk-only { display: none !important; }
  .jp-desk[data-open="step"] { background: var(--card-bg); }
  .jp--desk:has(.jp-desk[data-open="step"]) { background: var(--card-bg); }
}

@media (min-width: 901px) {
  .jp-phone-only { display: none !important; }
  .jp.jp--desk { max-width: none; background: var(--jp-paper); }
  /* 2b is the whole window, not the app's inset card (components.css
     pads the body above 900px). */
  body.jp-body:has(.jp--desk) { background: var(--jp-paper); padding: 0; }
  .jp--desk .jp-top { padding: 12px 32px; gap: 16px; }
  .jp--desk .jp-top__name { display: inline; font-size: var(--fs-ui); color: var(--jp-ink4); }
  .jp--desk .jp-top__q { display: inline; margin-left: auto; font-size: var(--fs-ui); color: var(--jp-sec); }
  .jp.jp--desk .jp-top__q a { color: var(--jp-sec); }
  .jp--desk .jp-top__q + .user-menu { margin-left: 0; }
  .jp--desk .jp-top .user-menu-btn {
    gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--jp-border); border-radius: var(--radius-pill);
    flex-direction: row-reverse;
  }
  .jp--desk .jp-top .avatar { width: 30px; height: 30px; font-size: var(--fs-micro); }
  .jp--desk .jp-top .user-text { display: block; }
  .jp--desk .jp-top .user-name { font-size: var(--fs-ui); font-weight: 500; color: var(--jp-ink); }
  .jp--desk .jp-top .user-role { display: none; }

  .jp-desk { display: grid; grid-template-columns: 440px minmax(0, 1fr); min-height: calc(100vh - 65px); }
  .jp-desk__list { background: var(--jp-subtle); border-right: 1px solid var(--jp-border); }
  .jp-desk__list .jp-list-col { padding: 28px; }
  .jp-desk__list .jp-h1 { font-size: var(--fs-page-title); letter-spacing: -0.02em; margin-bottom: 10px; }
  .jp-desk__list .jp-stand { font-size: var(--fs-body); margin-bottom: 10px; }
  .jp-desk__list .jp-sub { margin-bottom: 22px; }
  .jp-desk__list .jp-part { gap: 8px; margin-bottom: 22px; }
  .jp-desk__list .jp-part__title { font-size: var(--fs-meta); }
  .jp-desk__list .jp-list { border-radius: var(--radius-lg); }
  .jp-desk__list .jp-row { padding: 13px 16px; }
  .jp-desk__list .jp-row__title { font-size: var(--fs-body); }
  .jp-desk__list .jp-row__meta { font-size: var(--fs-meta); }
  .jp-desk__list .jp-row__chev { display: none; }
  .jp-desk__list .jp-glyph { width: 22px; height: 22px; }
  .jp-desk__list li.is-current > .jp-row { background: var(--jp-sel); box-shadow: inset 3px 0 0 var(--jp-ink); }
  .jp-desk__list li.is-current .jp-row__title { font-weight: 600; }
  .jp-desk__list .jp-event { flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-lg); margin-bottom: 22px; }
  .jp-desk__list .jp-event__main { flex: 1; min-width: 0; gap: 12px; align-items: center; }
  .jp-desk__list .jp-datetile { width: 46px; border-radius: var(--radius-sm); padding: 5px 0; }
  .jp-desk__list .jp-datetile__m { font-size: var(--fs-label); }
  .jp-desk__list .jp-datetile__d { font-size: var(--fs-section); }
  .jp-desk__list .jp-event__reg { display: none; }
  .jp-desk__list .jp-event__title { font-size: var(--fs-ui); }
  .jp-desk__list .jp-event__when { font-size: var(--fs-meta); }
  .jp-desk__list .jp-event__acts { flex-direction: column; gap: 4px; align-items: flex-end; }
  .jp.jp--desk .jp-desk__list .jp-event__btn {
    flex: none; padding: 0; border: 0; background: none; font-size: var(--fs-meta); color: var(--jp-accent);
  }
  .jp-desk__list .jp-waitlist { border-radius: var(--radius-lg); }
  .jp-desk__list .jp-waitrow { padding: 11px 16px; }
  .jp-desk__list .jp-waitrow .jp-wait__dot { display: none; }
  .jp-desk__list .jp-waitrow__title { font-size: var(--fs-ui); }
  .jp-desk__list .jp-waitrow__meta { font-size: var(--fs-meta); }

  /* "Optional · 2" and "Done · 5" on one line (2b); one that is opened
     takes the whole width under it. */
  .jp-desk__list .jp-folds { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 12px 16px; }
  .jp-desk__list .jp-folds > details { margin: 0; background: none; border: 0; border-radius: 0; }
  .jp-desk__list .jp-folds > details[open] { flex-basis: 100%; }
  .jp-desk__list .jp-folds > details > summary {
    padding: 0; margin: 0; pointer-events: auto; cursor: pointer; display: inline-flex; gap: 0;
  }
  .jp-desk__list .jp-folds > details > summary > * { font-size: var(--fs-ui); font-weight: 400; color: var(--jp-sec); }
  .jp-desk__list .jp-fold__count { display: inline; white-space: pre; }
  .jp-desk__list .jp-done__label { white-space: pre; }
  .jp-desk__list .jp-done__tick, .jp-desk__list .jp-done__show { display: none !important; }
  .jp-desk__list .jp-folds > details > .jp-list { margin-top: 8px; border: 1px solid var(--jp-border); border-radius: var(--radius-lg); }

  /* The activity on the right (2b). */
  .jp-desk__step { background: var(--jp-paper); }
  .jp-step { background: transparent; padding: 36px 56px; flex: none; }
  .jp-step > * { max-width: 640px; width: 100%; }
  .jp-step__bar { position: static; background: none; border: 0; padding: 0; min-height: 0; }
  .jp-step__bar .jp-back-link { display: none; }
  .jp-step__bar .jp-top__right { margin-left: auto; }
  .jp-step__body { padding: 0; flex: none; }
  .jp-step__body .jp-h1--act { font-size: var(--fs-page-title); letter-spacing: -0.01em; margin-bottom: 22px; }
  .jp-step__body .jp-h1 { font-size: var(--fs-page-title); }
  .jp-photo-row { flex-direction: row; gap: 24px; align-items: flex-start; }
  .jp-photo-row__form { flex: none; width: 220px; }
  .jp-photo-row .jp-drop { min-height: 270px; }
  .jp-photo-row__side { display: block; flex: 1; min-width: 0; }
  .jp-photo-row__side .jp-step__lead { font-size: var(--fs-body); margin-bottom: 10px; }
  .jp-step > .jp-foot {
    position: static; background: none; border: 0; padding: 18px 0 0; margin-top: 22px;
    border-top: 1px solid var(--jp-border); flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px;
  }
  .jp-step > .jp-foot > .jp-meta { flex-basis: 100%; }
  .jp-foot__main { flex-direction: row; gap: 12px; }
  .jp.jp--desk .jp-foot__main .jp-btn { width: auto; padding: 13px 22px; font-size: var(--fs-body); border-radius: var(--radius-sm); }
  .jp.jp--desk .jp-foot__main .jp-btn--quiet { padding: 13px 18px; }
  .jp-foot__ways { margin-left: auto; }
  .jp.jp--desk .jp-way { padding: 10px 0 10px 16px; }
  .jp.jp--desk .jp-way + .jp-way { margin-left: 16px; }
  .jp.jp--desk .jp-step > .jp-foot:not([data-role="step-foot"]) .jp-btn { width: auto; padding: 13px 22px; }
  .jp-rest { padding: 36px 56px; max-width: 700px; }
}

/* ══════════════════════════════════════════════════════════════════
   REPORT 195 — THE BROKER'S SIDE IN THE MODERN HANDOFF
   (`planning/design/modern-handoff/`, "Broker home", the phase screen
   without phases, the intake, the form in the side panel).

   PAGE RULES ONLY. The shared components (`.ui-title`, `.ui-btn`,
   `.ui-pill`, `.ui-rows`, `.ui-help`, `.ui-progress`, the panel) are the
   shell's, in design-system.css; nothing here redefines them. Classes are
   `bx-*`. Where an activity's body keeps an older `jp-*` class (the
   agreement, the upload, the sessions), it is redrawn here INSIDE
   `.bx-step` only, so nothing else that uses it moves.

   Components this section adds because the shell has none:
     .bx-gcard     one checklist group as a card (the handoff's phase card)
     .bx-line      one line of a plain list ("Waiting on R1", Finished)
     .bx-fix       "What to fix" inside a row and on the intake
     .bx-datetile  the event's date tile
     .bx-option    a choice drawn as a card (the intake)
   ══════════════════════════════════════════════════════════════════ */

.bx-page {
  width: 100%;
  max-width: 824px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-7) 64px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  color: var(--ink-1);
}
.bx-page--home { max-width: 1180px; }
/* The old frame was a 560px phone column on a ground; in the one shell a
   broker's page is as wide as its own measure says. */
.jp:has(> .bx-page) { max-width: none; min-height: 0; background: transparent; }
.bx-page--intake { max-width: 624px; padding-top: 48px; }
.bx-page [hidden], .bx-panel [hidden] { display: none !important; }
/* The frame resets a button's font to its parent's (`.jp button`); the
   shared button's weight is put back. */
.jp .bx-page .ui-btn { font-weight: var(--btn-weight); font-size: var(--btn-fs); }
.jp .bx-page .ui-btn--quiet { font-weight: 500; }
.jp .bx-page .ui-btn--sm { font-size: 14px; }
/* A long button ("Start: sign the independent contractor agreement")
   wraps at 390px rather than running off the screen (rule 11). */
.bx-page .ui-btn, .bx-panel .ui-btn { max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 759.98px) {
  .bx-page { padding: var(--space-5) var(--space-4) 48px; gap: var(--space-5); }
  .bx-page--intake { padding-top: var(--space-6); }
}

/* The page's head: what it is for (rule 2), and "Ask a question". */
.bx-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  flex-wrap: wrap;
}
.bx-head__text { flex: 1 1 320px; min-width: 0; }
.bx-head .jp-ask { flex: none; margin-left: 0; }
.bx-date { margin: 0 0 2px; font-size: var(--fs-meta); color: var(--ink-4); }

.bx-progress { display: flex; flex-direction: column; gap: 10px; }
.bx-progress__words { margin: 0; font-size: var(--fs-body); color: var(--ink-2); }
.bx-note { margin: 0; font-size: var(--fs-body); color: var(--ink-3); }

/* ── The broker home ───────────────────────────────────────────────── */
.bx-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.bx-home__main { min-width: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.bx-home__side { min-width: 0; }
@media (max-width: 1099.98px) {
  .bx-home { grid-template-columns: minmax(0, 1fr); }
}
.bx-help__team {
  margin: 0; padding-top: 14px; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--ink-3);
}
.bx-help__team .ms { font-size: 17px; }

/* What was sent back, on top: the new red's edge, the reviewer's words,
   and "Fix it". On a phone the button goes under the words. */
.bx-back-card {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-5);
  background: var(--card-bg);
  border: 1px solid var(--alert-line);
  border-radius: var(--radius-lg);
}
.bx-back-card__ico { font-size: 22px; color: var(--alert-fg); align-self: flex-start; margin-top: 1px; }
.bx-back-card__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bx-back-card__title { margin: 0; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.bx-back-card__note { margin: 0; font-size: 14px; color: var(--ink-3); overflow-wrap: anywhere; }
.bx-back-card__flag { margin: 2px 0 0; font-size: var(--fs-meta); color: var(--alert-fg); }
.bx-back-card__go { flex: none; }
@media (max-width: 759.98px) {
  .bx-back-card { flex-wrap: wrap; align-items: flex-start; }
  .bx-back-card__text { flex-basis: calc(100% - 40px); }
  .bx-back-card__go { margin-left: 38px; }
}

.bx-section { display: flex; flex-direction: column; gap: var(--space-3); }
.bx-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.bx-section__title { margin: 0; font-size: var(--fs-section); font-weight: 600; line-height: 1.3; color: var(--ink-1); }
.bx-section__title--sub { margin-top: var(--space-3); }
.bx-section__link { font-size: 14px; font-weight: 500; }
.bx-stack { display: flex; flex-direction: column; gap: var(--space-3); }
.bx-stack:empty { display: none; }

/* One checklist group as a card: its state in a pill, "N of M done",
   the bar, and what is next at its foot (a locked one says what unlocks
   it). The group to act on first is drawn with a navy edge. */
.bx-gcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: var(--space-3);
}
.bx-gcard {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink-1);
  text-decoration: none;
  min-width: 0;
}
.bx-gcard:hover { border-color: var(--ink-4); color: var(--ink-1); }
.bx-gcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bx-gcard.is-current { border-color: var(--ink-1); box-shadow: 0 0 0 1px var(--ink-1); }
.bx-gcard--locked { background: var(--tint-bg); }
.bx-gcard__top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.bx-gcard__title { font-size: var(--fs-section); font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.bx-gcard--locked .bx-gcard__title { color: var(--ink-3); }
.bx-gcard__meta { font-size: 14px; color: var(--ink-3); }
.bx-gcard__foot { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; line-height: 1.35; }
.bx-gcard__foot .ms { font-size: 18px; margin-top: 1px; }
.bx-gcard__foot--sent_back { color: var(--alert-fg); }
.bx-gcard__foot--open      { color: var(--warn-fg); }
.bx-gcard__foot--waiting   { color: var(--ink-3); }
.bx-gcard__foot--locked    { color: var(--ink-4); }
.bx-gcard__foot--done      { color: var(--done-ink); }

/* One journey as a card (the list of checklists, and any other journey
   on the home). */
.bx-jcard {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px var(--space-5);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink-1);
  text-decoration: none;
}
.bx-jcard:hover { border-color: var(--ink-4); color: var(--ink-1); }
.bx-jcard--back { border-color: var(--alert-line); }
.bx-jcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2) var(--space-3); flex-wrap: wrap; }
.bx-jcard__title { font-size: var(--fs-section); font-weight: 600; line-height: 1.25; }
.bx-jcard__chev { font-size: 22px; color: var(--ink-4); }
.bx-jcard__what { font-weight: 600; }
.bx-jcard__sub { font-size: 14px; color: var(--ink-3); overflow-wrap: anywhere; }
.bx-jcard__next { display: flex; flex-direction: column; gap: 2px; }
.bx-jcard__nl { font-size: var(--fs-micro); font-weight: 600; color: var(--ink-4); }
.bx-jcard__nt { font-weight: 600; }

/* A plain list: "Waiting on R1", Finished, Skipped. */
/* The card itself is the shared list card (design-system.css §5). */
.bx-line {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  color: var(--ink-1);
  text-decoration: none;
}
a.bx-line:hover { background: var(--rail-bg); color: var(--ink-1); }
.bx-line__ico { font-size: 22px; color: var(--ink-4); }
.bx-line__ico--done { color: var(--done-ink); font-variation-settings: 'wght' 350, 'opsz' 20, 'FILL' 1; }
.bx-line__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bx-line__title { flex: 1; min-width: 0; font-weight: 600; color: var(--ink-1); text-decoration: none; overflow-wrap: anywhere; }
a.bx-line__title:hover { text-decoration: underline; }
.bx-line__meta { font-size: var(--fs-meta); color: var(--ink-4); }
.bx-line form { flex: none; margin: 0; }

.bx-fold {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.bx-fold__sum {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  cursor: pointer; list-style: none;
  font-weight: 600; color: var(--ink-1);
}
.bx-fold__sum::-webkit-details-marker { display: none; }
.bx-fold__sum .ms { color: var(--ink-4); }
.bx-fold__count { font-weight: 400; color: var(--ink-4); }
.bx-fold__chev { margin-left: auto; transition: transform .15s ease; }
.bx-fold[open] .bx-fold__chev { transform: rotate(180deg); }
.bx-fold .bx-list { border: 0; border-top: 1px solid var(--line-2); border-radius: 0; }

/* A registered event: the date tile, "You're registered", the event, its
   time, "Add to calendar" and "Can't make it". */
.bx-event {
  display: flex; align-items: center; gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-4) 18px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.bx-datetile {
  width: 52px; flex: none;
  display: flex; flex-direction: column; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--card-bg);
}
.bx-datetile__m { width: 100%; text-align: center; font-size: var(--fs-micro); font-weight: 600; padding: 2px 0; background: var(--tint-bg); color: var(--ink-3); }
.bx-datetile__d { font-size: 20px; font-weight: 600; line-height: 1.3; padding: 2px 0 4px; }
.bx-event__text { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.bx-event__title { font-weight: 600; overflow-wrap: anywhere; }
.bx-event__when { font-size: 14px; color: var(--ink-3); }
.bx-event__link { font-size: var(--fs-meta); overflow-wrap: anywhere; }
.bx-event__acts { display: flex; flex-wrap: wrap; gap: var(--space-2); }


/* A plain card, a row of actions, the first arrival's facts, all set. */
.bx-card {
  padding: var(--space-5); background: var(--card-bg);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.bx-card__text { margin: 0; font-size: var(--fs-body); line-height: 1.55; color: var(--ink-2); }
.bx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bx-fact__k { flex: none; min-width: 40px; font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--ink-1); }
.bx-fact__v { flex: 1; min-width: 0; color: var(--ink-2); }
.bx-allset {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-7) var(--space-6); background: var(--card-bg);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.bx-allset .bx-allset__mark { font-size: 40px; width: 40px; height: 40px; color: var(--done-ink); }
.bx-allset__facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-3); }
.bx-allset .bx-actions { margin-top: var(--space-3); }
@media (max-width: 759.98px) { .bx-allset { padding: var(--space-6) var(--space-5); } }


/* The home's "Onboarding — what's left" (report 173's 4a) in the modern
   handoff's icons: one Material symbol per state, as the rows draw it. */
.jl-left__ico { font-size: 22px; color: var(--ink-4); }
.jl-left__row[data-state="sent_back"] .jl-left__ico { color: var(--alert-fg); font-variation-settings: 'wght' 350, 'opsz' 20, 'FILL' 1; }
.jl-left__row[data-state="next_up"] .jl-left__ico,
.jl-left__row[data-state="open"] .jl-left__ico { color: var(--copper-cta); }
.jl-left__row[data-state="waiting_on_firm"] .jl-left__ico { color: var(--wait-fg); }
.jl-left__row[data-state="event"] .jl-left__ico { color: var(--done-ink); }
.jl-left__row[data-state="sent_back"] .jl-left__meta { color: var(--alert-fg); }


/* The page a journey's link opens (report 173's 1a) in the modern
   handoff's values: the card at 14px, the one button copper (decision 3),
   a 10px control radius, and the contact as the handoff's person strip. */
@media (min-width: 601px) {
  .jp.jl { border-radius: var(--radius-lg); }
  body.jl-body { background: var(--page-bg); }
}
.jp .jl-btn {
  min-height: 48px; padding: 12px var(--btn-pad-x);
  border-radius: var(--radius-sm);
  background: var(--primary); color: var(--on-primary);
  font-size: var(--btn-fs); font-weight: var(--btn-weight);
}
.jp .jl-btn:hover { background: var(--primary-press); }
.jp .jl-contact { border-radius: var(--radius-sm); padding: 14px; gap: var(--space-3); }
.jp .jl-avatar { width: 40px; height: 40px; font-size: 14px; font-weight: 600; background: var(--count-bg, var(--chip-bg)); color: var(--ink-1); }
.jp .jl-contact__name { font-weight: 600; }
.jp .jl-title { color: var(--ink-1); }

/* ── The checklist: its groups, and rows that open in place ────────── */
.bx-group { display: flex; flex-direction: column; gap: var(--space-2); scroll-margin-top: calc(var(--top-h) + 16px); }
.bx-group__head { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.bx-group__title { margin: 0; font-size: var(--fs-section); font-weight: 600; line-height: 1.3; }
.bx-group__meta { margin: 0 0 var(--space-1); font-size: 14px; color: var(--ink-4); }
.bx-row { scroll-margin-top: calc(var(--top-h) + 16px); }
.bx-row[open] > .ui-row__head { background: #FFFDF9; }
.bx-row .ui-row__body { gap: var(--space-3); }
.bx-row__lead { margin: 0; font-size: var(--fs-body); color: var(--ink-2); }
.bx-row__line { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-4); }
.bx-row__line .ms { font-size: 17px; }
.bx-row__acts { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bx-questions { margin: 0; display: flex; align-items: flex-start; gap: var(--space-2); font-size: 14px; color: var(--ink-3); }
.bx-questions .ms { font-size: 18px; color: var(--ink-4); }

/* "What to fix": the reviewer's own words in the new red. */
.bx-fix {
  padding: 14px var(--space-4);
  background: var(--alert-bg);
  border-radius: var(--radius-sm);
  color: var(--alert-fg);
}
.bx-fix__label { margin: 0 0 2px; font-weight: 600; }
.bx-fix__note { margin: 0; font-size: var(--fs-body); }
.bx-fix__by { margin: 6px 0 0; font-size: var(--fs-meta); }

/* ── One activity, as a page and in the side panel ─────────────────── */
.bx-back { margin: 0; }
.bx-back a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); text-decoration: none; font-weight: 500; }
.bx-back a:hover { color: var(--ink-1); }
.bx-back .ms { font-size: 18px; }
.bx-step { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.bx-step > * { margin-top: 0; margin-bottom: 0; }
.bx-step .jp-gap { display: none; }
.bx-step__label + .bx-step__title { margin-top: -12px; }
.bx-step__title { overflow-wrap: anywhere; }
.bx-step__meta { margin: -10px 0 0; font-size: 14px; color: var(--ink-4); }
.bx-step #stepForm, .bx-step #stepForm > form { display: flex; flex-direction: column; gap: var(--space-4); }
.bx-step .jp-step__lead, .bx-step .jp-body-text { margin: 0; font-size: var(--fs-body); line-height: 1.55; color: var(--ink-2); }
.bx-step .jp-step__lead p { margin: 0 0 var(--space-2); }
.bx-step .jp-step__lead p:last-child { margin-bottom: 0; }
.bx-step .jp-meta, .bx-step .jp-clock { margin: 0; font-size: var(--fs-meta); color: var(--ink-4); }
.bx-step .jp-card {
  margin: 0; padding: var(--space-4) 18px;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: none;
}
.bx-step--panel .jp-card { background: var(--rail-bg); border-color: var(--line-2); }
.bx-step .jp-whatfix {
  margin: 0; padding: 14px var(--space-4);
  background: var(--alert-bg); border: 0; border-radius: var(--radius-sm);
  color: var(--alert-fg);
}
.bx-step .jp-whatfix__label { margin: 0 0 2px; font-size: var(--fs-body); font-weight: 600; color: var(--alert-fg); text-transform: none; letter-spacing: 0; }
.bx-step .jp-whatfix__note { margin: 0; font-size: var(--fs-body); color: var(--alert-fg); }
.bx-step .jp-whatfix__by { margin: 6px 0 0; font-size: var(--fs-meta); color: var(--alert-fg); }
.bx-step .jp-sent {
  margin: 0; padding: 14px var(--space-4);
  background: var(--wait-bg); border: 0; border-radius: var(--radius-sm); color: var(--wait-fg);
}
.bx-step .jp-sent--ok { background: var(--ok-bg); color: var(--ok-fg); }
.bx-step .jp-sent__title { margin: 0; font-weight: 600; color: inherit; }
.bx-step .jp-sent__body { margin: 4px 0 0; font-size: 14px; color: inherit; }
.bx-step .jp-file {
  margin: 0; display: flex; align-items: center; gap: var(--space-3);
  padding: 10px 12px; background: var(--card-bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.bx-step .jp-file__tag { flex: none; font-size: var(--fs-micro); font-weight: 600; color: var(--ink-3); background: var(--tint-bg); border-radius: 6px; padding: 4px 6px; }
.bx-step .jp-file__text { min-width: 0; display: flex; flex-direction: column; }
.bx-step .jp-file__name { overflow-wrap: anywhere; }
.bx-step .jp-file__meta { font-size: var(--fs-meta); color: var(--ink-4); }
.bx-step .jp-file--back .jp-file__name { text-decoration: line-through; color: var(--ink-4); }
.bx-step .jp-file--back .jp-file__meta { color: var(--alert-fg); }
/* The upload: a dashed box, "Choose a file" as a secondary button. */
.bx-step .jp-upload, .bx-step .jp-drop {
  margin: 0; padding: var(--space-6) var(--space-5);
  border: 1px dashed var(--line-3); border-radius: var(--radius-lg);
  background: var(--card-bg);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.bx-step .jp-upload__title { margin: 0; font-weight: 600; color: var(--ink-1); }
.bx-step .jp-upload__hint { margin: 0; font-size: var(--fs-meta); color: var(--ink-4); }
.bx-step .ui-file__button, .jp .bx-step .jp-drop .ui-file__button, .jp .bx-step .jp-upload .ui-file__button {
  background: var(--card-bg); color: var(--ink-1);
  border: 1px solid var(--btn-edge); border-radius: var(--radius-sm);
}
.bx-step .ui-file__button:hover, .jp .bx-step .jp-upload .ui-file__button:hover, .jp .bx-step .jp-drop .ui-file__button:hover { background: var(--tint-bg); color: var(--ink-1); }
.bx-step .jp-photo-row { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: flex-start; }
.bx-step .jp-photo-row__form { flex: 1 1 260px; min-width: 0; }
.bx-step .jp-photo-row__side { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.bx-step--panel .jp-photo-row__side { flex-basis: 100%; }
/* Fields: a label over its control (the handoff's form in the panel). */
.bx-step .jp-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink-1); text-transform: none; letter-spacing: 0; }
.bx-step .jp-input {
  width: 100%; box-sizing: border-box; min-height: 44px;
  padding: 10px 12px; font: inherit; font-size: var(--fs-body); color: var(--ink-1);
  background: var(--card-bg); border: 1px solid var(--line-input); border-radius: var(--radius-sm);
}
.bx-step .jp-tick { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: var(--fs-body); color: var(--ink-1); }
.bx-step .jp-tick input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--ink-1); }
.bx-step .jp-doc__words-box { margin: 0; }
.bx-step .jp-doc__words { margin: 0; white-space: pre-wrap; font: inherit; font-size: 14px; color: var(--ink-2); background: var(--rail-bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: var(--space-3); }
/* Choices: a session, an option. */
.bx-step .jp-options { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.bx-step .jp-options__q { margin: 0; font-size: 14px; font-weight: 600; }
.bx-step .jp-option, .bx-step .jp-choice {
  display: flex; align-items: center; gap: var(--space-3);
  margin: 0; min-height: 52px; padding: 12px var(--space-4);
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; box-shadow: none;
}
.bx-step #stepForm form[data-sessions] { gap: 10px; }
.bx-step .jp-option:has(input:checked), .bx-step .jp-choice:has(input:checked) { border-color: var(--ink-1); background: var(--select-bg); }
.bx-step .jp-option input, .bx-step .jp-choice input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--ink-1); }
.bx-step .jp-choice.is-full { opacity: .55; cursor: not-allowed; }
.bx-step .jp-outside {
  margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2);
  padding: var(--space-4) 18px; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.bx-step .jp-outside__site { font-weight: 600; }
.bx-step .jp-outside__note { font-size: 14px; color: var(--ink-3); }
.bx-step .jp-video { margin: 0; border-radius: var(--radius-lg); overflow: hidden; }
.bx-step .jp-answers { margin: 0; }
.bx-step .jp-told { display: flex; flex-direction: column; gap: 4px; }
.bx-step .jp-told__lead { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-1); }
.bx-step .jp-told__body { margin: 0; font-size: var(--fs-body); color: var(--ink-2); }
.bx-step .jp-replace { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bx-step .jp-guide__title { margin: var(--space-2) 0 0; font-size: 15px; font-weight: 600; }
/* Done: what happened, in the done green. */
.bx-done {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-4) 18px;
  background: var(--ok-bg); border-radius: var(--radius-lg);
}
.bx-done__ico { font-size: 24px; color: var(--done-ink); }
.bx-done__text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bx-done__title { margin: 0; font-size: 17px; font-weight: 600; color: var(--ok-fg); }
.bx-done .jp-lede--done { margin: 0; font-size: var(--fs-body); color: var(--ink-2); text-align: left; }

/* The one footer. As a page it follows the body; in the panel it is the
   panel's foot, with the primary as wide as the design draws it. */
.bx-foot.jp-foot {
  position: static; inset: auto; z-index: auto;
  width: auto; max-width: none; margin: 0;
  padding: var(--space-5) 0 0;
  background: none; border: 0; border-top: 1px solid var(--line-2); box-shadow: none;
  display: flex; flex-direction: column; align-items: stretch; gap: var(--space-3);
}
.bx-foot__main { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bx-foot__ways { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.bx-foot__note { margin: 0; font-size: var(--fs-meta); color: var(--ink-4); }
.ui-panel__foot > .bx-foot.jp-foot { flex: 1 1 100%; padding: 0; border-top: 0; gap: 10px; }
.ui-panel__foot .bx-foot__main .ui-btn--primary { flex: 1 1 200px; }
.bx-panel .ui-panel__body > .bx-step { gap: var(--space-4); }


/* In the side panel an activity is outside the frame (`.jp`), so the
   frame's aliases the older `jp-*` rules read are given to it here. */
.bx-step--panel {
  --jp-paper: var(--page-bg); --jp-card: var(--card-bg); --jp-subtle: var(--rail-bg);
  --jp-hover: var(--tint-bg); --jp-chip: var(--chip-bg); --jp-border: var(--line);
  --jp-divider: var(--line-2); --jp-input: var(--line-input); --jp-btn-line: var(--line-3);
  --jp-ink: var(--ink-1); --jp-body: var(--ink-2); --jp-sec: var(--ink-3); --jp-meta: var(--ink-4);
  --jp-faint: var(--ink-4); --jp-glyph: var(--muted-ink); --jp-copper: var(--copper-cta);
  --jp-copper-hover: var(--accent-hi); --jp-ok: var(--green-deep); --jp-ok-bg: var(--ok-bg);
  --jp-ok-ink: var(--ok-fg); --jp-wait-bg: var(--wait-bg); --jp-wait-ink: var(--wait-fg);
  --jp-wait-2: var(--wait-fg-2); --jp-back: var(--alert-fg); --jp-back-bg: var(--alert-bg);
  --jp-back-line: var(--alert-dot); --jp-back-ink: var(--alert-fg); --jp-sans: var(--font-sans);
  --jp-mono: var(--font-sans); --jp-ring: var(--line-input); --jp-ink4: var(--ink-4);
  --jp-accent: var(--accent); --jp-sel: var(--select-bg); --jp-tint: var(--tint-bg);
}
.bx-step .jp-choice input[type="radio"], .bx-step .jp-choice input[type="radio"]:checked,
.bx-step .jp-option input { appearance: auto; -webkit-appearance: auto; border: 0; }
.bx-step .jp-choice:has(input:checked) { padding: 12px var(--space-4); border-width: 1px; }
.bx-step .jp-choice + .jp-choice { margin-top: 0; }

/* ── One question per screen (the handoff's intake) ────────────────── */
.bx-intake__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.bx-intake__label { margin: 0; }
.bx-intake__saved { font-size: var(--fs-meta); color: var(--ink-4); white-space: nowrap; }
.bx-intake__bar { margin-top: -12px; }
.bx-intake__lead { margin: 0; color: var(--ink-3); }
.bx-intake { display: flex; flex-direction: column; gap: var(--space-5); margin: 0; }
.bx-intake #stepForm { display: flex; flex-direction: column; gap: var(--space-7); }
.bx-q { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.bx-q__set { margin: 0; padding: 0; border: 0; min-width: 0; }
.bx-q__title {
  display: block; margin: 0 0 var(--space-2); padding: 0;
  font-size: var(--fs-section); font-weight: 600; line-height: 1.25; color: var(--ink-1);
}
.bx-intake.is-stepped .bx-q__title { font-size: 28px; letter-spacing: -0.01em; margin-bottom: var(--space-3); }
.bx-q__opt { font-size: var(--fs-meta); font-weight: 400; letter-spacing: 0; color: var(--ink-4); }
.bx-input {
  width: 100%; box-sizing: border-box; min-height: 52px;
  padding: 12px var(--space-4);
  font: inherit; font-size: 17px; color: var(--ink-1);
  background: var(--card-bg); border: 1px solid var(--line-input); border-radius: var(--radius-sm);
}
textarea.bx-input { min-height: 140px; resize: vertical; line-height: 1.5; }
.bx-input:focus { outline: none; border-color: var(--ink-4); box-shadow: var(--shadow-focus); }
.bx-q__options { display: flex; flex-direction: column; gap: 10px; }
.bx-option {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: 52px; padding: 12px var(--space-4);
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; font-size: var(--fs-body); color: var(--ink-1);
}
.bx-option:has(input:checked) { border-color: var(--ink-1); background: var(--select-bg); }
.bx-option input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--ink-1); }
.bx-intake__nav {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3);
  padding-top: var(--space-4); border-top: 1px solid var(--line-2);
}
.bx-intake__go { margin-left: auto; }
.bx-intake .jp-field__problem { margin: 0; font-size: 14px; color: var(--alert-fg); }
