/* desktop.css -- F30/D95: Calwide CRM look at >=1200px. Re-points
   tokens.css to the CRM palette (--cw-*). Blue: APP_DESKTOP_BRAND_COLOR
   via brand.js (--desktop-brand); navy chrome fixed here. */

@media (min-width: 1200px) {
:root {
  --bg:#F4F6FB; --surface:#FFFFFF; --surface-2:#E8EDF7;
  --border:#DDE3F0; --border-strong:#C4CFE8;
  --text:#212529; --text-muted:#5A6B86; --text-subtle:#8A99C2;
  --brand:var(--desktop-brand, #1A56DB);
  --brand-hover:color-mix(in oklab, var(--brand), black 18%);
  --brand-subtle:#E8EDF7;
  --nav-text:#334170; --nav-label:#5A6B86;
  --chrome-bg:linear-gradient(90deg, #0A1F44 0%, #112D6B 100%);
  --chrome-shadow:0 2px 8px rgba(10,31,68,.35);
  --shadow-card:0 2px 4px rgba(10,31,68,.08);
}
/* --on-brand is inline on <html> (brand.js); body wins by inheritance. */
body { --on-brand:var(--desktop-on-brand, #FFFFFF); }
}
@media (min-width: 1200px) and (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
  --bg:#0A1222; --surface:#111B30; --surface-2:#16223B;
  --border:#26365A; --border-strong:#33466F;
  --text:#E3E9F6; --text-muted:#A3B0CC; --text-subtle:#6F7FA3;
  --brand:color-mix(in oklab, var(--desktop-brand, #1A56DB), white 50%);
  --brand-hover:color-mix(in oklab, var(--desktop-brand, #1A56DB), white 62%);
  --brand-subtle:#1A2A4F; --nav-text:#C3CEE6; --nav-label:#97A6C8;
  --chrome-bg:linear-gradient(90deg, #071430 0%, #0D2150 100%);
  --chrome-shadow:0 2px 10px rgba(0,0,0,.5);
  --shadow-card:0 2px 6px rgba(0,0,0,.35);
}
:root:not([data-theme="light"]) body { --on-brand:#0A1222; }
}
@media (min-width: 1200px) {
:root[data-theme="dark"] body { --on-brand:#0A1222; }
:root[data-theme="dark"] {
  --bg:#0A1222; --surface:#111B30; --surface-2:#16223B;
  --border:#26365A; --border-strong:#33466F;
  --text:#E3E9F6; --text-muted:#A3B0CC; --text-subtle:#6F7FA3;
  --brand:color-mix(in oklab, var(--desktop-brand, #1A56DB), white 50%);
  --brand-hover:color-mix(in oklab, var(--desktop-brand, #1A56DB), white 62%);
  --brand-subtle:#1A2A4F; --nav-text:#C3CEE6; --nav-label:#97A6C8;
  --chrome-bg:linear-gradient(90deg, #071430 0%, #0D2150 100%);
  --chrome-shadow:0 2px 10px rgba(0,0,0,.5);
  --shadow-card:0 2px 6px rgba(0,0,0,.35);
}

/* Top bar (CRM .crm-navbar): navy, blue edge, full width over the sidebar. */
.app-bar {
  margin-left:0; background:var(--chrome-bg); color:#FFFFFF;
  border-bottom:3px solid var(--desktop-brand, #1A56DB); box-shadow:var(--chrome-shadow);
  position:relative; z-index:3;
}
.app-bar .icon-btn { color:rgba(255,255,255,.85); }
.app-bar .icon-btn:hover, .app-bar .app-bar__profile[aria-current="page"] { color:#FFFFFF; background:rgba(255,255,255,.12); }
.app-bar :focus-visible { outline-color:#FFFFFF; }
.app-bar .list { color:var(--text); }
.app-bar__brand {
  display:flex; align-items:center; gap:10px; flex:0 0 232px;
  font-weight:700; letter-spacing:.03em;
}
.app-bar__brand img { border-radius:6px; background:#FFFFFF; padding:2px; }

/* Sidebar (CRM .crm-sidebar): below the top bar; dividers, uppercase
   section labels, compact links, solid-blue active pill. F32. */
.tab-bar { top:56px; bottom:38px; padding:12px; gap:2px; overflow-y:auto; }
.tab { color:var(--nav-text); border-radius:6px; font-size:14px; font-weight:500; padding:8px 14px; gap:10px; }
.tab svg { width:18px; height:18px; flex:none; }
.tab:hover { background:var(--brand-subtle); color:var(--text); }
.tab[aria-current="page"] { background:var(--brand); color:var(--on-brand); }
.tab-bar a.tab-bar__sidebar-only { display:flex; }
.tab-bar .nav-sep { width:100%; margin:8px 0; border:0; border-top:1px solid var(--border); }
.tab-bar .nav-label { margin:2px 0 4px; padding:0 14px; font-size:11px; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase; color:var(--nav-label); }

/* Colour-theme menu (CRM .theme-menu). F32. */
.app-bar__theme { display:block; }
.app-bar .theme-menu { min-width:200px; padding:6px 0; }
.theme-menu__head { margin:0; padding:8px 16px 6px; font-size:11px; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase; color:var(--text-muted); }
.theme-menu__item { min-height:40px; padding:8px 16px; gap:10px; font-size:14px; color:var(--text); cursor:pointer; }
.theme-menu__item::before { display:none; }
.theme-menu__item:hover { background:var(--surface-2); }
.theme-menu__check { margin-left:auto; visibility:hidden; color:var(--brand); }
.theme-menu__item[aria-checked="true"] {
  font-weight:700; background:var(--brand-subtle); box-shadow:inset 4px 0 0 var(--brand);
}
.theme-menu__item[aria-checked="true"] .theme-menu__check { visibility:visible; }

/* Cards (CRM .card): soft navy shadow on every card surface. */
.list, .item-card, .balance-card, .login-screen form { box-shadow:var(--shadow-card); }

/* Footer (CRM .crm-footer): last .app-shell child, below .content. */
.app-footer {
  display:flex; align-items:center; justify-content:center; flex:none;
  height:38px; background:var(--chrome-bg); color:rgba(255,255,255,.7);
  border-top:2px solid var(--desktop-brand, #1A56DB);
  font-size:12px; letter-spacing:.02em; position:relative; z-index:2;
}
}

/* F31: internet-banking home (>=1200px). The phone card + grid give way
   to the overview: banner, headline cards, account/loan tables, side
   column. Everything below scopes to .overview or its children. */
@media (min-width: 1200px) {
.dashboard__balance, .dashboard__actions, .phone-view { display:none; }
.overview { display:flex; flex-direction:column; gap:var(--space-6); max-width:1600px; }
.overview a { text-decoration:none; }

/* Banner -- the CRM hero, in navy-to-brand so it reads as a bank. */
.overview__banner {
  position:relative; overflow:hidden; display:flex; align-items:flex-end; justify-content:space-between;
  gap:var(--space-6); padding:28px 32px; border-radius:var(--radius-lg); color:#FFFFFF;
  background:linear-gradient(120deg, #0A1F44 0%, #112D6B 55%, var(--desktop-brand, #1A56DB) 100%);
  box-shadow:0 10px 30px -12px rgba(10,31,68,.55);
}
.overview__banner::after {
  content:""; position:absolute; right:-80px; top:-120px; width:360px; height:360px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.14), transparent 65%); pointer-events:none;
}
.overview__intro, .overview__cta { position:relative; z-index:1; }
.overview__eyebrow { margin:0 0 6px; font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.72); }
.overview__title { margin:0; font-size:28px; line-height:1.15; font-weight:700; letter-spacing:-.01em; }
.overview__member { margin:6px 0 0; font-size:15px; color:rgba(255,255,255,.82); }
.overview__cta { display:flex; align-items:center; gap:10px; }
.btn--on-dark {
  width:auto; min-height:42px; padding:0 18px; font-size:14px; color:#FFFFFF;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.32);
}
.btn--on-dark:hover { background:rgba(255,255,255,.22); border-color:#FFFFFF; }
.overview__eye .eye { color:#FFFFFF; border:1px solid rgba(255,255,255,.32); }
.overview__banner :focus-visible { outline-color:#FFFFFF; }

/* Headline cards (CRM .kpi-card). */
.kpis { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:var(--space-4); }
.kpi {
  display:grid; grid-template-columns:auto 1fr; grid-template-areas:"icon label" "value value" "meta meta";
  align-items:center; column-gap:12px; row-gap:10px; padding:20px; background:var(--surface);
  border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-card);
  border-top:3px solid var(--brand);
}
.kpi--alert { border-top-color:var(--warn); }
.kpi__icon { grid-area:icon; width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  background:var(--brand-subtle); color:var(--brand); }
.kpi--alert .kpi__icon { background:var(--warn-bg); color:var(--warn); }
.kpi__label { grid-area:label; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--text-muted); }
.kpi__value { grid-area:value; font-weight:700; color:var(--text); }
.kpi__value .amount--lg { font-size:26px; }
.kpi__value--num { font-size:24px; line-height:1.2; font-variant-numeric:tabular-nums; }
.kpi__meta { grid-area:meta; display:flex; align-items:center; gap:6px; font-size:13px; color:var(--text-muted); }
.status-dot { width:8px; height:8px; border-radius:50%; flex:none; }
.status-dot--ok { background:var(--ok); }
.status-dot--warn { background:var(--warn); }

/* Two-column body. */
.overview__grid { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:var(--space-6); align-items:start; }
.overview__main, .overview__side { display:flex; flex-direction:column; gap:var(--space-6); min-width:0; }

/* Panels (CRM .card + .card-header). */
.panel { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-card); overflow:hidden; }
.panel__head { display:flex; align-items:center; justify-content:space-between; gap:var(--space-3);
  padding:14px 20px; border-bottom:1px solid var(--border); background:var(--surface-2); }
.panel__title { margin:0; font-size:15px; font-weight:700; color:var(--text); }
.panel__link { font-size:13px; font-weight:600; color:var(--brand); }
.panel__link:hover { text-decoration:underline; }
.panel__empty { margin:0; padding:24px 20px; color:var(--text-muted); }

/* Data tables. */
.dtable-wrap { overflow-x:auto; }
.dtable { width:100%; border-collapse:collapse; font-size:14px; }
.dtable th { padding:10px 16px; text-align:left; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--text-muted); border-bottom:1px solid var(--border); white-space:nowrap; }
.dtable td { padding:14px 16px; border-bottom:1px solid var(--border); vertical-align:middle; }
.dtable tbody tr:last-child td { border-bottom:0; }
.dtable tbody tr:hover { background:var(--surface-2); }
.dtable__num { text-align:right; white-space:nowrap; }
.dtable th.dtable__num { text-align:right; }
.dtable__item { display:flex; align-items:center; gap:12px; color:var(--text); }
.dtable__item:hover .dtable__title { color:var(--brand); }
.dtable__title { display:block; font-weight:600; white-space:nowrap; }
.dtable__sub { display:block; font-size:12px; color:var(--text-muted); font-variant-numeric:tabular-nums; }
.dtable__caps { color:var(--text-muted); white-space:nowrap; }
.dtable__flag { display:block; font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--warn); }
.dtable__actions { text-align:right; white-space:nowrap; }
.dtable__actions .btn { margin-left:6px; }
.monogram--sm { width:36px; height:36px; font-size:13px; border-radius:10px; }
.btn--sm { width:auto; min-height:34px; padding:0 14px; font-size:13px; border-radius:8px; }
.btn--sm.btn--ghost { padding:0 8px; }

/* Side column. */
.qa-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; padding:12px; }
.qa-grid .quick__item { padding:12px 4px; border-radius:var(--radius-md); gap:8px; }
.qa-grid .quick__item:hover { background:var(--surface-2); }
.qa-grid .quick__icon { width:44px; height:44px; border-radius:12px; background:var(--brand-subtle); }
.qa-grid .quick__icon svg { width:22px; height:22px; }
.qa-grid .quick__label { font-size:12px; line-height:1.3; }
.help-list { margin:0; padding:8px 20px 16px; }
.help-list div { display:flex; justify-content:space-between; gap:var(--space-3); padding:8px 0; border-bottom:1px solid var(--border); }
.help-list div:last-child { border-bottom:0; }
.help-list dt { color:var(--text-muted); font-size:14px; }
.help-list dd { margin:0; font-weight:600; font-size:14px; }
.help-list a { color:var(--brand); }
.help-list--stacked div { flex-direction:column; align-items:flex-start; gap:6px; }
.help-list--stacked dd { font-weight:400; font-size:13px; color:var(--text-muted); }

/* F33: Accounts overview extras. Stacked grid: full-width table, side
   panels as a row beneath it. */
.overview__grid--stacked { grid-template-columns:minmax(0,1fr); }
.overview__grid--stacked .overview__side { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); align-items:start; }
.dtable__stack { display:flex; flex-direction:column; gap:4px; }
.dtable__mono { font-variant-numeric:tabular-nums; letter-spacing:.02em; color:var(--text-muted); white-space:nowrap; }
.yesno { display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; white-space:nowrap; }
.yesno::before { content:""; width:8px; height:8px; border-radius:50%; flex:none; }
.yesno--yes { color:var(--ok); }
.yesno--yes::before { background:var(--ok); }
.yesno--no { color:var(--text-muted); }
.yesno--no::before { background:var(--border-strong); }
.notice { display:flex; gap:12px; padding:16px 18px; border-radius:var(--radius-lg);
  background:var(--brand-subtle); color:var(--text); border:1px solid var(--border); }
.notice > svg { flex:none; color:var(--brand); margin-top:2px; }
.notice__title { margin:0 0 4px; font-size:14px; font-weight:700; }
.notice__body { margin:0; font-size:13px; line-height:1.5; color:var(--text-muted); }
}

/* 1200-1399px: too narrow for tables + side column side by side -- the
   side column drops beneath, as a row (same as the stacked grid). */
@media (min-width: 1200px) and (max-width: 1399px) {
.overview__grid { grid-template-columns:minmax(0,1fr); }
.overview__side { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); align-items:start; }
}

/* F34: the page frame (base.html) for every signed-in page that doesn't
   bring its own banner. Banner across the top, page + side column below. */
@media (min-width: 1200px) {
.desk-frame { display:grid; grid-template-columns:minmax(0,1fr) 320px; grid-template-areas:"hero hero" "main aside";
  gap:var(--space-6); align-items:start; max-width:1600px; }
.desk-frame:has(> .desk-frame__aside:empty) { grid-template-columns:minmax(0,1fr); grid-template-areas:"hero" "main"; }
.desk-frame__main { display:block; grid-area:main; min-width:0; }
.desk-frame__aside { grid-area:aside; display:flex; flex-direction:column; gap:var(--space-6); }
.desk-frame__aside:empty { display:none; }
.desk-panel { display:block; }
.desk-only { display:block; }
.phone-view { display:none; }

.desk-hero {
  grid-area:hero; position:relative; overflow:hidden; display:flex; align-items:flex-end; justify-content:space-between;
  gap:var(--space-6); padding:24px 32px; border-radius:var(--radius-lg); color:#FFFFFF;
  background:linear-gradient(120deg, #0A1F44 0%, #112D6B 55%, var(--desktop-brand, #1A56DB) 100%);
  box-shadow:0 10px 30px -12px rgba(10,31,68,.55);
}
.desk-hero::after { content:""; position:absolute; right:-80px; top:-120px; width:340px; height:340px; border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.14), transparent 65%); pointer-events:none; }
.desk-hero__text, .desk-hero__side { position:relative; z-index:1; }
.desk-hero__side { display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.desk-hero__eyebrow { margin:0 0 6px; font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.72); }
.desk-hero__title { margin:0; font-size:26px; line-height:1.2; font-weight:700; letter-spacing:-.01em; }
.desk-hero__lede { margin:6px 0 0; font-size:15px; color:rgba(255,255,255,.82); max-width:60ch; }
.desk-hero__eyebrow:empty, .desk-hero__lede:empty { display:none; }
.desk-hero :focus-visible { outline-color:#FFFFFF; }
.desk-hero a { text-decoration:none; }

/* Money-flow stepper, white on the navy banner. */
.steps { display:flex; align-items:center; gap:8px; margin:0; padding:0; list-style:none; }
.steps__item { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:rgba(255,255,255,.62); }
.steps__item + .steps__item::before { content:""; width:28px; height:2px; border-radius:2px; background:rgba(255,255,255,.28); }
.steps__num { width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex:none;
  font-size:12px; font-weight:700; border:2px solid rgba(255,255,255,.4); }
.steps__item--done { color:rgba(255,255,255,.88); }
.steps__item--done .steps__num { background:rgba(255,255,255,.18); border-color:transparent; }
.steps__item--current { color:#FFFFFF; }
.steps__item--current .steps__num { background:#FFFFFF; color:#0A1F44; border-color:#FFFFFF; }

/* How-it-works list. */
.howto { margin:0; padding:16px 20px 18px 20px; list-style:none; counter-reset:howto; display:flex; flex-direction:column; gap:12px; }
.howto li { counter-increment:howto; display:grid; grid-template-columns:24px 1fr; gap:10px; font-size:13px; line-height:1.5; color:var(--text-muted); }
.howto li::before { content:counter(howto); width:24px; height:24px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700; background:var(--brand-subtle); color:var(--brand); }

/* Money forms and their review/PIN/result screens as a bank form card. */
.desk-frame__main .money-form { max-width:none; margin:0; padding:32px; background:var(--surface);
  border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-card); }
.desk-frame__main > .dashboard { max-width:none; }
}

/* F34: banner figure (detail pages), lead button, fact sheet, panel links. */
@media (min-width: 1200px) {
.desk-hero__figure { display:flex; flex-direction:column; align-items:flex-end; margin-right:12px; }
.desk-hero__figure-label { font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:rgba(255,255,255,.72); }
.desk-hero__figure .amount--lg { font-size:28px; font-weight:700; }
.btn--on-dark.btn--lead { background:#FFFFFF; color:#0A1F44; border-color:#FFFFFF; }
.btn--on-dark.btn--lead:hover { background:#E8EDF7; }
.fact-sheet { display:grid; grid-template-columns:1fr 1fr; }
.fact-sheet > .def-row { border-top:1px solid var(--border); }
.fact-sheet > .def-row:nth-child(-n+2) { border-top:0; }
.fact-sheet > .def-row:nth-child(even) { border-left:1px solid var(--border); }
.fact-sheet > .def-row::before { display:none; }
.panel a, .desk-frame__aside a { text-decoration:none; }
}

/* F34: Transact payments hub. */
@media (min-width: 1200px) {
.svc-hub { display:flex; flex-direction:column; gap:var(--space-6); }
.svc-group__title { margin:0 0 12px; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--nav-label); }
.svc-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; }
.svc {
  display:flex; align-items:flex-start; gap:14px; padding:18px; color:var(--text); text-decoration:none;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-card);
  transition:border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.svc:hover { border-color:var(--brand); box-shadow:0 8px 24px -10px rgba(10,31,68,.35); transform:translateY(-1px); }
.svc__icon { width:44px; height:44px; border-radius:12px; flex:none; display:flex; align-items:center; justify-content:center;
  background:var(--brand-subtle); color:var(--brand); }
.svc__text { display:flex; flex-direction:column; gap:3px; min-width:0; }
.svc__title { font-size:15px; font-weight:700; }
.svc__desc { font-size:13px; line-height:1.45; color:var(--text-muted); }
}

/* F34: full-width overview body (Loans) -- cards, table, then a row of panels. */
@media (min-width: 1200px) {
.overview__stack { display:flex; flex-direction:column; gap:var(--space-6); }
.overview__side--row { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:var(--space-6); align-items:start; }
}

/* F34: My Profile card + panels; Settings as cards. */
@media (min-width: 1200px) {
.profile-card { display:flex; align-items:center; gap:20px; padding:24px; background:var(--surface);
  border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow-card); }
.profile-card__avatar { width:72px; height:72px; border-radius:50%; flex:none; display:flex; align-items:center; justify-content:center;
  font-size:26px; font-weight:700; color:#FFFFFF; background:linear-gradient(135deg, #112D6B, var(--desktop-brand, #1A56DB)); }
.profile-card__name { margin:0; font-size:22px; font-weight:700; }
.profile-card__meta { margin:6px 0 0; display:flex; align-items:center; gap:8px; font-size:14px; color:var(--text-muted); }
.svc-list { display:flex; flex-direction:column; padding:8px; gap:4px; }
.svc--flat { border:0; box-shadow:none; padding:12px; }
.svc--flat:hover { transform:none; box-shadow:none; background:var(--surface-2); }

.settings-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:var(--space-6); align-items:start; }
.settings-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card); overflow:hidden; }
.settings-card > .section-head { margin:0; padding:14px 20px; background:var(--surface-2); border-bottom:1px solid var(--border); }
.settings-card > .section-head .t-label { font-size:15px; font-weight:700; letter-spacing:0; text-transform:none; color:var(--text); }
.settings-card > .def-row { padding:16px 20px; align-items:center; }
.settings-card--signout { grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between; gap:var(--space-6); padding:20px; }
.settings-card--signout .btn { width:auto; padding-inline:28px; }
.settings-card__note { margin:0; color:var(--text-muted); font-size:14px; }
}

/* F34: desktop top bar on full-screen phone pages; statement range inline. */
@media (min-width: 1200px) {
.desk-app-bar { display:contents; }
.range-form { flex-direction:row; align-items:center; gap:12px; }
.range-form .field { flex:1 1 0; }
.range-form .btn { width:auto; padding-inline:24px; flex:none; }
}

/* F34: generic desktop card around a .section-head + content (loan
   application detail); a row of them; a 3-column fact sheet. */
@media (min-width: 1200px) {
.desk-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card); overflow:hidden; }
.desk-card > .section-head { margin:0; padding:14px 20px; background:var(--surface-2); border-bottom:1px solid var(--border); }
.desk-card > .section-head .t-label { font-size:15px; font-weight:700; letter-spacing:0; text-transform:none; color:var(--text); }
.desk-card > form, .desk-card > p { margin:0; padding:20px; }
.desk-card > .list { border:0; border-radius:0; box-shadow:none; }
.desk-card .amount-input { justify-content:flex-start; margin:16px 0; }
.desk-card .amount-input__field { font-size:20px; max-width:none; text-align:left; }
.desk-card .btn--secondary { width:auto; padding-inline:24px; }
.desk-card-row { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:var(--space-6); align-items:start; }
.fact-sheet--3 { grid-template-columns:repeat(3, minmax(0,1fr)); }
.fact-sheet--3 > .def-row:nth-child(-n+3) { border-top:0; }
.fact-sheet--3 > .def-row:nth-child(even) { border-left:0; }
.fact-sheet--3 > .def-row + .def-row { border-left:1px solid var(--border); }
}

/* F35: Settings row icons on desktop -- the CRM's quiet tile, not the phone gradient. */
@media (min-width: 1200px) {
.def-row__label:has(.row-ic) { display:inline-flex; align-items:center; gap:12px; }
.row-ic { width:32px; height:32px; border-radius:10px; flex:none; display:inline-flex; align-items:center; justify-content:center;
  background:var(--brand-subtle); color:var(--brand); }
}

/* F42/D105 (was F38/D102's gold): hero tokens on desktop -- the
   Home/Accounts banner and the F34 page banner. The chosen hero's file
   (static/css/heroes/hNN.css, linked after this one) sets them; these
   defaults are 05 Member Card's. The navy top bar, sidebar and footer
   stay as they are. */
@media (min-width: 1200px) {
:root {
  --d-hero: linear-gradient(120deg, #E3ECFC 0%, #C9DAF8 100%);
  --d-home: var(--d-hero);
  --d-hero-ink: #0B1B3D;
  --d-hero-muted: #2B3D63;
  --d-hero-shadow: 0 10px 26px -16px rgba(26,86,219,.45);
  --d-bubble: rgba(255,255,255,.6);
  --d-btn-bg: rgba(255,255,255,.6); --d-btn-ink: #0B1B3D; --d-btn-bd: rgba(11,27,61,.2);
  --d-lead-bg: #0B1B3D; --d-lead-ink: #FFFFFF;
}
.overview__banner, .desk-hero { background:var(--d-hero); color:var(--d-hero-ink); box-shadow:var(--d-hero-shadow); }
.overview__banner.home-banner { background:var(--d-home); }
.overview__banner::after, .desk-hero::after { background:radial-gradient(circle, var(--d-bubble), transparent 65%); }
.overview__eyebrow, .desk-hero__eyebrow, .desk-hero__figure-label { color:var(--d-hero-muted); }
.overview__member, .desk-hero__lede { color:var(--d-hero-muted); }
.overview__banner :focus-visible, .desk-hero :focus-visible { outline-color:var(--d-hero-ink); }

/* Banner buttons: outlined, and the lead action solid. */
.btn--on-dark { color:var(--d-btn-ink); background:var(--d-btn-bg); border-color:var(--d-btn-bd); }
.btn--on-dark:hover { background:var(--d-btn-hover, color-mix(in srgb, var(--d-btn-bg), var(--d-btn-ink) 12%)); border-color:var(--d-btn-ink); }
.btn--on-dark.btn--lead { background:var(--d-lead-bg); color:var(--d-lead-ink); border-color:var(--d-lead-bg); }
.btn--on-dark.btn--lead:hover { background:var(--d-lead-hover, color-mix(in srgb, var(--d-lead-bg) 86%, #000)); }
.overview__eye .eye { color:var(--d-hero-ink); border-color:var(--d-btn-bd); }

/* Stepper in the banner's ink (D102's navy alphas, as mixes of the ink). */
.steps__item { color:var(--d-hero-muted); }
.steps__item + .steps__item::before { background:color-mix(in srgb, var(--d-hero-ink) 28%, transparent); }
.steps__num { border-color:color-mix(in srgb, var(--d-hero-ink) 45%, transparent); }
.steps__item--done { color:var(--d-hero-ink); }
.steps__item--done .steps__num { background:color-mix(in srgb, var(--d-hero-ink) 12%, transparent); border-color:transparent; }
.steps__item--current { color:var(--d-hero-ink); }
.steps__item--current .steps__num { background:var(--d-hero-ink); color:var(--d-step-on, var(--d-lead-ink)); border-color:var(--d-hero-ink); }

/* F42: the Home banner's landscape and headline row. A banner that
   carries both balances drops them from the cards below. */
.home-banner__scene { position:absolute; left:0; right:0; bottom:0; z-index:0; pointer-events:none;
  background:no-repeat center bottom / 100% 100%; }
.home-banner > :not(.home-banner__scene) { position:relative; z-index:1; }
.home-status { display:inline-flex; align-items:center; gap:6px; margin-top:4px; font-size:13px; font-weight:600; color:var(--d-hero-muted); }
.kpis--2 { grid-template-columns:repeat(2, minmax(0,1fr)); }
}

/* F40: statement cards and ledger in the CRM shadow. */
@media (min-width: 1200px) {
.stmt-sum__item, .stmt-filter, .ledger-wrap { box-shadow:var(--shadow-card); }
.master-detail--stmt .master-detail__list { display:none; }
.stmt-sum__value { font-size:22px; }
.ledger tbody tr.lr:hover { background:var(--surface-2); }
}
