/* Adealia — "the rest" of the pages on the modern design system. Report 201.

   SOURCE: `planning/design/modern-handoff/` — the Firm file's Settings screen
   and the Modern file's Work queue, and the Design system page's 12 rules for
   the pages the handoff did not draw. Loads after design-system.css.

   WHOSE PAGES. Home for staff and working brokers, Work queue as one list
   (tasks/), Profile, the four Settings pages, Adealia support access, Guide,
   the chat page's chrome, the site-admin pages, the sign-in pages and the
   error pages. Every rule here is scoped under `.rp` (a page opts in on its
   `.ui-page`) or under a page's own class, so no other page changes.

   WHAT IS HERE
     1. `.rp` — the page frame as drawn: 1120px, 32px padding, 20px between
        blocks, a 30/600 title with its one-line lede under it.
     2. `.rp-card` — a card with an 18/600 title and a 14px line under it;
        `.rp-line` — one row inside a card (a state, a record).
     3. `.rp-rows` — a list card of rows, as the Work queue draws them: a kind
        pill, the title and its meta, the due text, the action.
        `.rp-section` — the 14/600 line over a list, with its count.
     4. Page rules: settings, reminders, profile, tasks, home, support access,
        guide, chat chrome, error pages, admin, sign-in.
   Shared components the shell track did not provide are added here, in §2
   and §3, and nowhere else. */

/* ── 1. The page frame ──────────────────────────────────────────────── */
.ui-page.rp {
  max-width: 1120px;
  padding: var(--space-7) var(--space-7) 64px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.ui-page.rp > * { flex-shrink: 0; }
.rp > .ui-page-head,
.rp .settings-head { margin-bottom: 0; }
.rp .ui-page-head h1,
.rp .ui-title {
  font-size: var(--fs-page-title);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
.rp .ui-page-head__sub,
.rp .ui-lede {
  margin: 4px 0 0;
  font-size: var(--fs-body);
  color: var(--ink-3);
  text-wrap: pretty;
}
.rp .ui-page-head__sub a { font-weight: 600; text-decoration: none; }
.rp .ui-stack { gap: var(--space-5); }
@media (max-width: 759.98px) {
  .ui-page.rp { padding: var(--space-5) var(--space-4) 48px; }
}

/* ── 2. Cards and lines ─────────────────────────────────────────────── */
.rp-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}
.rp-card__head { display: flex; flex-direction: column; gap: 2px; }
.rp-card__title {
  margin: 0;
  font-family: var(--font-body, inherit);
  font-size: var(--fs-section);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--ink-1);
}
.rp-card__sub { margin: 0; font-size: 14px; color: var(--ink-4); text-wrap: pretty; }
.rp-card__foot { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.rp-card p { margin: 0; }
.rp-card form { margin: 0; }

/* One row in a card: a short key, its text, a quiet action at the end. */
.rp-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  border-top: 1px solid var(--line-2);
  padding-top: 10px;
  min-width: 0;
}
.rp-line__key { font-weight: 600; min-width: 48px; }
.rp-line__text { flex: 1; min-width: 140px; font-size: 14px; color: var(--ink-3); }
.rp-line__act { margin-left: auto; }
.rp-line--form { padding-top: var(--space-3); }

/* A field row: control and its button side by side, wrapping on a phone. */
.rp-inline { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.rp-inline select { flex: 1 1 220px; min-width: 0; max-width: 420px; }
@media (max-width: 759.98px) { .rp-inline select { flex-basis: 100%; max-width: none; } }
.rp-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-1); }
.rp-hint { margin: 0; font-size: var(--fs-meta); font-weight: 400; color: var(--ink-4); text-wrap: pretty; }

/* ── 3. A list card of rows (the Work queue's rows) ─────────────────── */
.rp-section { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.rp-section__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.rp-section__title small { font-size: inherit; font-weight: 400; color: var(--ink-4); }
.rp-group-title { margin: 0; font-size: var(--fs-section); font-weight: 600; color: var(--ink-1); }

/* .rp-rows is the shared list card (design-system.css §5). */
.rp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 13px 18px;
  min-width: 0;
}
.rp-row__main { flex: 1 1 240px; min-width: 0; }
.rp-row__title {
  display: block;
  font-size: var(--fs-row);
  font-weight: 500;
  color: var(--ink-1);
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.rp-row__title:hover { color: var(--accent); }
.rp-row__meta { display: block; font-size: var(--fs-meta); color: var(--ink-4); overflow-wrap: anywhere; }
.rp-row__who { font-size: 14px; color: var(--ink-3); flex: 0 1 160px; min-width: 0; }
.rp-row__due { font-size: var(--fs-meta); font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.rp-row__due--overdue { color: var(--alert-fg); }
.rp-row__due--today, .rp-row__due--soon { color: var(--warn-fg); }
.rp-row__act { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.rp-row__act form { margin: 0; }
.rp-row__chev { font-size: 20px; color: var(--ink-4); }
.rp-row--done .rp-row__title { color: var(--ink-3); }
@media (max-width: 759.98px) {
  .rp-row { padding: 12px 14px; }
  .rp-row__act { margin-left: 0; justify-content: flex-start; }
}

/* ── 4. Page rules ──────────────────────────────────────────────────── */

/* SETTINGS. The tabs as drawn: 14/600, a copper underline on the one open. */
.rp .settings-tabs {
  display: flex; flex-wrap: nowrap; gap: 4px; margin: 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.rp .settings-tabs__tab {
  padding: 10px 14px;
  font-size: 14px; font-weight: 600;
  color: var(--ink-4);
  text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.rp .settings-tabs__tab:hover { color: var(--ink-1); }
.rp .settings-tabs__tab.is-on { color: var(--ink-1); border-bottom-color: var(--copper-cta); }
.rp #jurisdiction { width: 80px; text-transform: uppercase; }
.rp .settings-office { display: flex; flex-direction: column; gap: var(--space-3); border-top: 1px solid var(--line-2); padding-top: var(--space-3); }
.rp .settings-office__name { margin: 0; font-size: var(--fs-row); font-weight: 600; }
.rp .settings-office__people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-3); }
.rp .settings-office .ui-btn { align-self: flex-start; }
.rp .settings-role { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); border-top: 1px solid var(--line-2); padding: 10px 0 0; }
.rp .settings-role__name { flex: 0 0 220px; font-weight: 600; color: var(--ink-1); }
.rp .settings-role input { flex: 1 1 220px; max-width: 360px; }
.rp .settings-role input:placeholder-shown { color: var(--ink-4); }
.rp #settingsRoles form { display: flex; flex-direction: column; gap: 10px; }
.rp .settings-list__foot { padding: var(--space-2) 0 0; margin: 0; border: 0; }

/* Reminders: a list card of rows; one opens in place (rule 5). */
.rp .settings-reminders { padding: 0; }
.rp .settings-reminders__row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 96px 20px;
  gap: 6px 16px;
  align-items: center;
  padding: 13px 18px;
  color: var(--ink-1);
  text-decoration: none;
}
.rp .settings-reminders__row--head {
  padding: 10px 18px;
  font-size: var(--fs-micro); font-weight: 600; color: var(--ink-4);
  background: var(--rail-bg);
  border-bottom: 1px solid var(--line-2);
}
.rp .settings-reminder + .settings-reminder { border-top: 1px solid var(--line-2); }
.rp a.settings-reminders__row:hover { background: var(--rail-bg); }
.rp .settings-reminders__name { display: block; font-weight: 600; }
.rp .settings-reminders__meta { display: block; font-size: var(--fs-meta); color: var(--ink-4); }
.rp .settings-reminders__when { font-size: 14px; color: var(--ink-3); }
.rp .settings-reminders__caret { font-size: 20px; color: var(--ink-4); }
.rp .settings-reminder.is-open { background: color-mix(in srgb, var(--rail-bg) 60%, var(--card-bg)); }
.rp .settings-reminder__panel { padding: 0 18px var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.rp .settings-cadence__act { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
@media (max-width: 759.98px) {
  .rp .settings-reminders__row { grid-template-columns: minmax(0, 1fr) 20px; }
  .rp .settings-reminders__row--head { display: none; }
  .rp .settings-reminders__what { grid-column: 1; }
  .rp .settings-reminders__when,
  .rp .settings-reminders__words { grid-column: 1; }
  .rp .settings-reminders__caret { grid-column: 2; grid-row: 1; }
  .rp .settings-reminder__panel { padding: 0 14px var(--space-4); }
}

/* PROFILE. Cards as the Settings screen draws them. */
.rp .prof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-3); }
.rp .prof-grid label,
.rp .lic-grid label,
.rp .lic-grid .lic-file { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-1); }
/* The handoff draws a label flush with its control's edge, 14/600 over it
   (the Settings and panel fields); components.css indents it 13px. */
.rp .prof-grid > label, .rp .lic-grid > label, .rp .lic-grid > .lic-file, .rp .auth-label,
.rp .ev-desc-label { text-indent: 0; font-size: 14px; font-weight: 600; color: var(--ink-1); }
.rp .prof-readonly dt, .rp .prof-readonly dd { padding-left: 0; }
.rp .prof-grid > label > input, .rp .prof-grid > label > select,
.rp .lic-grid > label > input, .rp .lic-grid > label > select { margin-top: 0; }
.rp .prof-note { margin: 0; font-size: 14px; color: var(--ink-4); text-wrap: pretty; }
.rp .prof-readonly {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-3); margin: 0;
  border-top: 1px solid var(--line-2); padding-top: var(--space-3);
}
.rp .prof-readonly dt { font-size: var(--fs-micro); color: var(--ink-4); }
.rp .prof-readonly dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.rp .lic-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; }
.rp .lic-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.rp .lic-item { padding: 12px 14px; }
.rp .lic-item + .lic-item { border-top: 1px solid var(--line-2); }
.rp .lic-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; }
.rp .lic-name { font-weight: 600; }
.rp .lic-item details > summary,
.rp .lic-add > summary {
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-3);
  margin-top: 6px;
}
.rp .lic-item details[open] > summary { margin-bottom: var(--space-3); }
.rp .lic-add[open] > summary { margin-bottom: var(--space-3); }
.rp .lic-add > *:not(summary) + * { margin-top: var(--space-3); }

/* The expiry and standing words are pills with a word (rule 6). */
.rp .lic-item .lic-expiry {
  display: inline-flex; align-items: center;
  font-size: var(--pill-fs); font-weight: 600; line-height: var(--pill-lh);
  padding: var(--pill-pad-y) var(--pill-pad-x); border-radius: var(--radius-pill);
  background: var(--ok-bg); color: var(--ok-fg); white-space: nowrap;
}
.rp .lic-item .lic-expiry::before { content: none; display: none; }
.rp .lic-item .lic-expiring, .rp .lic-item .lic-soon, .rp .lic-item .lic-warn { background: var(--warn-bg); color: var(--warn-fg); }
.rp .lic-item .lic-expired { background: var(--alert-bg); color: var(--alert-fg); }
.rp .lic-item .lic-unknown { background: var(--skel-bg); color: var(--ink-3); }

/* WORK QUEUE AS ONE LIST. */
.rp .tasks-note { margin: 0; font-size: var(--fs-meta); color: var(--ink-4); }
.rp .tasks-note a { font-weight: 600; }

/* HOME (staff and working brokers). */
.rp .ui-page-head--home { margin-bottom: 0; }
.rp .ui-greeting { font-size: var(--fs-page-title); line-height: 1.15; margin: 0; }
.rp .ui-greeting em { font-style: normal; }
.rp .ui-eyebrow { margin: 0 0 4px; font-size: var(--fs-meta); color: var(--ink-4); letter-spacing: 0; text-transform: none; font-weight: 400; }
.rp .ui-ask { margin: 0; }
.rp .ui-stats { margin: 0; }
.rp .ui-split { margin: 0; }

/* The card that exists because something is wrong (CE to check, a license
   that lapsed) was tinted whole. The handoff draws that card white, with a
   coloured edge, a pill with a word and one way on (its sent-back card):
   the loud object is loud by its edge, and its words stay in ink. */
.rp .ui-card[data-card="ce_status"],
.rp .ui-card[data-card="license_status"] {
  background: var(--card-bg);
  border-color: var(--warn-line);
  padding: var(--space-5);
}
.rp .ui-card[data-card="ce_status"] .card-title,
.rp .ui-card[data-card="license_status"] .card-title { font-size: var(--fs-micro); font-weight: 600; color: var(--ink-4); }
.rp .ui-card[data-card="ce_status"] .ui-badge { background: var(--warn-bg); color: var(--warn-fg); }
.rp .ui-card[data-card="ce_status"] .card-heading,
.rp .ui-card[data-card="license_status"] .card-heading,
.rp .ui-card[data-card="course_list_missing"] .card-heading { font-size: var(--fs-section); font-weight: 600; letter-spacing: 0; color: var(--ink-1); }
.rp .ui-card[data-card="ce_status"] .lic-name,
.rp .ui-card[data-card="license_status"] .lic-name { color: var(--ink-1); }
.rp .ui-card[data-card="ce_status"] .ce-reason,
.rp .ui-card[data-card="license_status"] .card-detail,
.rp .ui-card[data-card="course_list_missing"] .ce-reason { color: var(--ink-3); }
.rp .ui-card[data-card="ce_status"] .card-action,
.rp .ui-card[data-card="license_status"] .card-action,
.rp .ui-card[data-card="course_list_missing"] .card-action {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 0 var(--space-4); margin-top: var(--space-3);
  border: 1px solid var(--line-input, var(--line)); border-radius: var(--radius-sm);
  background: var(--card-bg); color: var(--ink-1);
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.rp .ui-card[data-card="ce_status"] .card-action:hover,
.rp .ui-card[data-card="license_status"] .card-action:hover,
.rp .ui-card[data-card="course_list_missing"] .card-action:hover { background: var(--rail-bg); color: var(--ink-1); text-decoration: none; }
.rp .card-chev.ms { font-size: 20px; color: var(--ink-4); }

/* SUPPORT ACCESS: the log as rows. */
.rp .support-access-when { font-size: var(--fs-meta); color: var(--ink-4); white-space: nowrap; font-family: inherit; }

/* GUIDE. */
.rp .guide-toc { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); }
.rp .guide-toc ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.rp .guide-toc a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--card-bg); color: var(--ink-1); font-size: 14px; font-weight: 500; text-decoration: none; }
.rp .guide-toc a:hover { border-color: var(--ink-4); }
.rp .guide-section, .rp .guide-toc { scroll-margin-top: 80px; margin: 0; }
.rp .guide-section__title { margin: 0 0 var(--space-3); font-size: var(--fs-section); font-weight: 600; }

/* ERROR PAGES in the shell. */
.rp .ui-state { margin-top: var(--space-3); }

/* CHAT CHROME: the way back reads like every other back link. */
.focus-line .focus-top__back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 14px; text-decoration: none; }
.focus-line .focus-top__back .ms { font-size: 18px; }

/* SITE ADMIN. Its tables drawn as the handoff's generic table: a 12/600
   header on the rail tint, 13px rows, hairlines, one card. */
.rp .ui-table-wrap, .rp > .ui-card:has(> .ui-table), .rp .ui-table { border-radius: var(--radius-lg); }
.rp .ui-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card-bg); border: 1px solid var(--line); overflow: hidden; }
.rp .ui-table th { padding: 10px 18px; font-size: var(--fs-micro); font-weight: 600; color: var(--ink-4); background: var(--rail-bg); border-bottom: 1px solid var(--line-2); text-align: left; letter-spacing: 0; text-transform: none; }
.rp .ui-table td { padding: 13px 18px; font-size: 14px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.rp .ui-table tbody tr:first-child td { border-top: 0; }

.rp form.panel, .rp .panel { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.rp .panel > h3, .rp .panel > h2 { margin: 0; font-size: var(--fs-section); font-weight: 600; }

/* SIGN-IN PAGES. One copper primary, 10px controls, the drawn type. */
.auth-card { border-radius: var(--radius-lg); }
.auth-title { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.auth-form input:not([type="checkbox"]):not([type="hidden"]),
.auth-form select { border-radius: var(--radius-sm); min-height: 44px; }
.auth-btn { border-radius: var(--radius-sm); min-height: var(--btn-min-h); }
.auth-err { border-radius: var(--radius-sm); background: var(--alert-bg); color: var(--alert-fg); border: 1px solid var(--alert-line); }

/* ── The OpenFlow home (1 Oct 2026) ─────────────────────────────────
   Mike and Tim's concept, `planning/openflow_design/`: a big question, one
   ask box, a grid of tiles, "Needs your attention" down the right. One font
   (the concept's serif headline is not used: the design system has one
   family). Stacks to one column under 1000px. */
.of-home__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: var(--space-7, 32px);
  align-items: start;
}
.of-home__main, .of-home__side { display: flex; flex-direction: column; gap: var(--space-5, 20px); min-width: 0; }
.of-home__head { display: flex; flex-direction: column; gap: 6px; }
.of-home__head .ui-eyebrow { margin: 0; }
.of-home__title {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--ink-navy);
  text-wrap: balance;
}
.of-home__title em { font-style: normal; }
.of-home__sub { margin: 0; font-size: var(--fs-body-lg); color: var(--muted-ink, var(--steel-slate)); }

.rp.of-home .ui-ask {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-3);
  border: 1px solid var(--line-1);
  border-radius: 16px;
  padding: 8px 8px 8px 18px;
  box-shadow: 0 1px 2px rgba(17,23,58,.04), 0 6px 20px rgba(17,23,58,.05);
  flex-wrap: nowrap;
}
/* !important on the three lines the form-field rule sets: that rule is
   `.ui-page input:not(…)` six times over (components.css), which no plain
   selector here can outrank. The box itself is the field; the input inside
   it must not draw a second one. */
.rp.of-home .ui-ask input.of-ask__input {
  flex: 1 1 auto; min-width: 0;
  border: 0 !important; outline: none; background: transparent !important;
  font-size: var(--fs-body-lg); height: 44px; padding: 0 !important;
  box-shadow: none;
}
.rp.of-home .ui-ask input.of-ask__input:focus-visible { outline: none; box-shadow: none; }

/* The right column is narrow, so a card's rows lay out as they do on a
   phone (components.css, the 16b phone rule): the deadline pill goes under
   the title rather than squeezing it to two words. */
.of-home__side .card-row {
  grid-template-columns: 34px minmax(0, 1fr);
  row-gap: 6px; align-items: start; padding-inline: 16px;
}
.of-home__side .card-row__title { white-space: normal; }
.of-home__side .card-row > .ui-due { grid-column: 2; justify-self: start; }
.rp.of-home .ui-ask:focus-within { border-color: var(--line-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--copper-cta) 18%, transparent); }
.of-ask__go {
  flex: none; width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: var(--copper-cta); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.of-ask__go:hover { background: var(--copper-press); }
.of-ask__go:focus-visible { outline: 2px solid var(--ink-navy); outline-offset: 2px; }
.of-ask__go .ms { font-size: 24px; }

.of-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  gap: 14px;
}
.of-tile {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; min-height: 112px; padding: 18px 12px;
  background: var(--surface-3);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-lg);
  color: var(--ink-navy); text-decoration: none; text-align: center;
  font-size: 16px; line-height: 1.25;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.of-tile:hover { border-color: var(--line-3); box-shadow: 0 4px 14px rgba(17,23,58,.06); color: var(--ink-navy); }
.of-tile:focus-visible { outline: 2px solid var(--copper-cta); outline-offset: 2px; }
.of-tile .of-tile__icon { font-size: 34px; width: auto; height: auto; }
.of-tile__label { overflow-wrap: anywhere; }
.of-tile__badge {
  position: absolute; top: 10px; right: 10px;
  min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box;
  border-radius: 999px; background: var(--alert-dot); color: #fff;
  font-size: 12.5px; font-weight: 600; line-height: 22px; text-align: center;
}

@media (max-width: 999px) {
  .of-home__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .of-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .of-tile { min-height: 96px; font-size: 15px; padding: 14px 8px; }
}

/* The home is 1240px of content, centered; `openflow.css` sets it with the
   other pages' widths so the page scrolls the full width. */
@media (max-width: 759.98px) {
  .shell-col > .ui-page.of-home { padding-inline: 16px; }
}

/* ── The carousel home (R1, 7 Oct 2026) ─────────────────────────────
   `planning/design/home-carousel/README.md`: the carousel up to 920 wide,
   380–460 tall, 32px corners, a navy shade over the photo, the greeting
   in Instrument Serif, a 68px white chat bar inside; the tiles 920 wide
   under it. */
.rp.of-home--carousel { display: flex; flex-direction: column; align-items: center; gap: 28px; padding-top: 8px; }
.of-home--carousel > * { width: 100%; max-width: 920px; }

.hc {
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(380px, 50vh, 460px);
  border-radius: 32px;
  background: var(--ink-navy);
  color: #fff;
}
.hc__slides, .hc__slide, .hc__shade { position: absolute; inset: 0; }
.hc__slide { opacity: 0; transition: opacity 700ms ease; }
.hc__slide.is-on { opacity: 1; }
.hc__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc__shade { background: rgba(15, 22, 45, 0.38); z-index: 1; }
.hc__body {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px 40px 72px; text-align: center; box-sizing: border-box;
}
.hc__hello {
  margin: 0; color: #fff;
  font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: clamp(34px, 5.2vw, 68px); line-height: 1.05; letter-spacing: -0.01em;
  text-shadow: 0 1px 12px rgba(15, 22, 45, .25);
}
.hc__hello em { font-style: normal; }
.hc__sub { margin: 0; font-size: clamp(16px, 1.6vw, 20px); color: rgba(255,255,255,.92); }
.hc .jl-authorized { color: #fff; margin: 0; }

.rp.of-home .hc .ui-ask {
  display: flex; align-items: center; gap: 8px;
  width: 100%; max-width: 760px; height: 68px; margin-top: 10px; box-sizing: border-box;
  background: #fff; border: 1px solid var(--ink-navy); border-radius: 999px;
  padding: 0 10px 0 26px; flex-wrap: nowrap;
}
.rp.of-home .hc .ui-ask input.hc__input {
  flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 !important;
  border: 0 !important; background: transparent !important; box-shadow: none;
  font-size: 17px; color: var(--ink-navy); outline: none;
}
.rp.of-home .hc .ui-ask input.hc__input:focus-visible { outline: none; }
.rp.of-home .hc .ui-ask:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.45); }
.hc__go {
  flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--ink-navy); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.hc__go:hover { background: var(--navy-soft); }
.hc__go:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hc__go .ms { font-size: 24px; }

.hc__nav {
  position: absolute; z-index: 3; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
}
.hc__arrow {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--ink-navy);
  display: inline-flex; align-items: center; justify-content: center;
}
.hc__arrow .ms { font-size: 22px; }
.hc__arrow:hover { background: #fff; }
.hc__dots { display: inline-flex; gap: 6px; align-items: center; background: rgba(255,255,255,.9); border-radius: 999px; padding: 8px 10px; }
.hc__dot { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: #B9BCC8; transition: width .2s ease; }
.hc__dot.is-on { width: 24px; background: var(--ink-navy); }
.hc__arrow:focus-visible, .hc__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* The tiles, as the handoff draws them: 200px-min columns, 12px gap, 18px
   corners, a 30px icon, the border navy on hover. */
.of-home--carousel .of-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.of-home--carousel .of-tile { border-color: #E4DFD5; border-radius: 18px; }
.of-home--carousel .of-tile:hover { border-color: var(--ink-navy); box-shadow: none; }
.of-home--carousel .of-tile .of-tile__icon { font-size: 30px; }

/* Report 215. "Change photos", top right of the carousel, for who may. */
.hc__edit {
  position: absolute; z-index: 3; top: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  background: rgba(255,255,255,.9); color: var(--ink-navy);
  font-size: 14px; font-weight: 500; text-decoration: none;
}
.hc__edit .ms { font-size: 18px; }
.hc__edit:hover { background: #fff; color: var(--ink-navy); }
.hc__edit:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hc-nofirm { margin: 0; font-size: 16px; color: var(--steel-slate); text-align: center; }

/* The top bar on the home only: 72px, no ground, no border, no search. */
.shell-top.shell-top--home { height: 72px; background: transparent; border-bottom: 0; }
.shell-top.shell-top--home .topsearch { visibility: hidden; }

@media (max-width: 759.98px) {
  .hc { border-radius: 22px; height: auto; min-height: 380px; }
  .hc__body { padding: 28px 18px 76px; }
  .rp.of-home .hc .ui-ask { height: 60px; padding-left: 18px; }
  .hc__edit { top: 12px; right: 12px; height: 32px; padding: 0 10px; }
  .hc__edit span:not(.ms) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .of-home--carousel .of-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .hc__slide { transition: none; } }

/* ── Report 226: "What do you need to do?" and the brand accents ──────
   Three shortcuts in a row above Mike's eight boxes; they wrap on a phone.
   With firm colours, the icons take the firm's link colour (5:1 or better)
   and a box's edge on hover its primary (`--brand-icon`, `--brand-edge`,
   set only by `domain/brand_colors`). Without, both are as before. */
.hs-do { display: flex; flex-direction: column; gap: 10px; }
.hs-do__title { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink-navy); }
.hs-do__row { display: flex; flex-wrap: wrap; gap: 10px; }
.hs-do__btn {
  flex: 1 1 200px; min-width: 0; min-height: 56px; box-sizing: border-box;
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: var(--surface-3); border: 1px solid #E4DFD5; border-radius: 14px;
  color: var(--ink-navy); text-decoration: none;
}
.hs-do__btn:hover { border-color: var(--brand-edge, var(--ink-navy)); color: var(--ink-navy); }
.hs-do__btn:focus-visible { outline: 2px solid var(--ink-navy); outline-offset: 2px; }
.hs-do__icon { font-size: 26px; color: var(--brand-icon, currentColor); flex: none; }
.hs-do__words { display: flex; flex-direction: column; min-width: 0; }
.hs-do__label { font-size: 16px; font-weight: 600; }
.hs-do__sub { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-home--carousel .of-tile .of-tile__icon { color: var(--brand-icon, currentColor); }
.of-home--carousel .of-tile:hover { border-color: var(--brand-edge, var(--ink-navy)); }
@media (max-width: 759.98px) {
  .hs-do__btn { flex-basis: 100%; }
}
