/* Generated from config/design-tokens.json. Do not edit. */
@font-face {
  font-family: "Inter";
  src: url("/consumer/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("/consumer/fonts/sora-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --jdwealth-font-body: "Inter", "Avenir Next", "Segoe UI", sans-serif;
  --jdwealth-font-interface: "Inter", "Avenir Next", "Segoe UI", sans-serif;
  --jdwealth-font-display: "Sora", "Inter", "Avenir Next", "Segoe UI", sans-serif;
  --jdwealth-font-weight-regular: 400;
  --jdwealth-font-weight-medium: 500;
  --jdwealth-font-weight-semibold: 600;
  --jdwealth-font-weight-bold: 700;
  --jdwealth-font-size-caption: 0.75rem;
  --jdwealth-font-size-label: 0.8125rem;
  --jdwealth-font-size-body-small: 0.875rem;
  --jdwealth-font-size-body: 1rem;
  --jdwealth-font-size-lead: 1.125rem;
  --jdwealth-font-size-subheading: 1.25rem;
  --jdwealth-font-size-section: clamp(1.45rem, 2.4vw, 2rem);
  --jdwealth-font-size-page: clamp(2rem, 3vw, 2.5rem);
  --jdwealth-font-size-title: clamp(2rem, 3.6vw, 2.85rem);
  --jdwealth-font-size-hero: clamp(2.2rem, 5.5vw, 3.35rem);
  --jdwealth-font-size-display-mobile: clamp(2.5rem, 8vw, 3.7rem);
  --jdwealth-font-size-display-compact: clamp(2.7rem, 4.9vw, 4.7rem);
  --jdwealth-font-size-display: clamp(3.35rem, 7vw, 6.75rem);
  --jdwealth-font-line-height-display: 0.9;
  --jdwealth-font-line-height-solid: 1;
  --jdwealth-font-line-height-tight: 1.1;
  --jdwealth-font-line-height-snug: 1.25;
  --jdwealth-font-line-height-normal: 1.45;
  --jdwealth-font-line-height-relaxed: 1.6;
  --jdwealth-font-tracking-display: -0.045em;
  --jdwealth-font-tracking-heading: -0.03em;
  --jdwealth-font-tracking-subtle: -0.015em;
  --jdwealth-font-tracking-normal: 0;
  --jdwealth-font-tracking-label: 0.04em;
  --jdwealth-font-tracking-caps: 0.08em;
  --jdwealth-color-brand-navy: #060043;
  --jdwealth-color-brand-orange: #e88b56;
  --jdwealth-color-brand-blue: #5d6bb2;
  --jdwealth-color-brand-pale-blue: #c7e2f6;
  --jdwealth-color-brand-black: #231f20;
  --jdwealth-color-brand-white: #ffffff;
  --jdwealth-color-light-canvas: #f8e9df;
  --jdwealth-color-light-surface: #fffaf7;
  --jdwealth-color-light-surface-strong: #ffffff;
  --jdwealth-color-light-text: #060043;
  --jdwealth-color-light-muted: #5b6188;
  --jdwealth-color-light-border: #d9b7a2;
  --jdwealth-color-light-border-soft: rgba(217, 183, 162, 0.66);
  --jdwealth-color-light-nav: #fff7f1;
  --jdwealth-color-light-mobile: #fffaf7;
  --jdwealth-color-light-gradient-start: #fff8f3;
  --jdwealth-color-light-gradient-middle: #f8e9df;
  --jdwealth-color-light-gradient-end: #e9c1aa;
  --jdwealth-color-light-accent-text: #e88b56;
  --jdwealth-color-dark-canvas: #060043;
  --jdwealth-color-dark-surface: #100b4e;
  --jdwealth-color-dark-surface-strong: #17105f;
  --jdwealth-color-dark-text: #fffaf7;
  --jdwealth-color-dark-muted: #c6bfd8;
  --jdwealth-color-dark-border: rgba(255, 255, 255, 0.13);
  --jdwealth-color-dark-border-soft: rgba(255, 255, 255, 0.08);
  --jdwealth-color-dark-nav: #08033d;
  --jdwealth-color-dark-mobile: #060043;
  --jdwealth-color-dark-gradient-start: #060043;
  --jdwealth-color-dark-gradient-middle: #100b4e;
  --jdwealth-color-dark-gradient-end: #241260;
  --jdwealth-color-dark-accent-text: #f2b28b;
  --jdwealth-color-action: #e88b56;
  --jdwealth-color-action-strong: #e88b56;
  --jdwealth-color-data: #e88b56;
  --jdwealth-color-data-strong: #e88b56;
  --jdwealth-color-present: #e88b56;
  --jdwealth-color-present-strong: #e88b56;
  --jdwealth-color-danger: #d46b5d;
  --jdwealth-color-on-solid: #060043;
  --jdwealth-color-present-ink: #060043;
  --jdwealth-space-1: 0.25rem;
  --jdwealth-space-2: 0.5rem;
  --jdwealth-space-3: 0.75rem;
  --jdwealth-space-4: 1rem;
  --jdwealth-space-5: 1.25rem;
  --jdwealth-space-6: 1.5rem;
  --jdwealth-space-8: 2rem;
  --jdwealth-space-9: 2.25rem;
  --jdwealth-space-10: 2.5rem;
  --jdwealth-space-12: 3rem;
  --jdwealth-space-14: 3.5rem;
  --jdwealth-space-18: 4.5rem;
  --jdwealth-space-36: 9rem;
  --jdwealth-space-0-5: 0.125rem;
  --jdwealth-space-1-5: 0.375rem;
  --jdwealth-space-2-5: 0.625rem;
  --jdwealth-space-3-5: 0.875rem;
  --jdwealth-space-4-5: 1.125rem;
  --jdwealth-space-5-5: 1.375rem;
  --jdwealth-space-fluid-control: clamp(1rem, 2.2vw, 1.55rem);
  --jdwealth-space-fluid-section: clamp(1.25rem, 2.8vw, 2rem);
  --jdwealth-space-fluid-page: clamp(1.5rem, 4vw, 3.5rem);
  --jdwealth-space-fluid-wide: clamp(1.5rem, 4vw, 4.5rem);
  --jdwealth-radius-control: 0.6rem;
  --jdwealth-radius-panel: 0.85rem;
  --jdwealth-radius-card: 1rem;
  --jdwealth-radius-pill: 999px;
  --jdwealth-shadow-panel: 0 1.15rem 3rem rgba(6, 0, 67, 0.08);
  --jdwealth-shadow-raised: 0 1px 2px rgba(6, 0, 67, 0.05), 0 14px 34px rgba(6, 0, 67, 0.09);
  --jdwealth-shadow-soft: 0 1rem 2.5rem rgba(6, 0, 67, 0.065);
  --jdwealth-shadow-focus: 0 0 0 3px color-mix(in srgb, var(--jdwealth-color-action) 35%, transparent);
  --jdwealth-shadow-data-card: inset 0 1px 0 color-mix(in srgb, var(--jdwealth-color-text) 7%, transparent), 0 0.8rem 2rem color-mix(in srgb, var(--jdwealth-color-text) 7%, transparent);
  --jdwealth-shadow-data-card-selected: inset 0 1px 0 color-mix(in srgb, var(--jdwealth-color-text) 9%, transparent), 0 1rem 2.25rem color-mix(in srgb, var(--jdwealth-color-text) 11%, transparent);
  --jdwealth-shadow-action: 0 0.45rem 1rem color-mix(in srgb, var(--jdwealth-color-action-strong) 28%, transparent);
  --jdwealth-shadow-present: 0 0.75rem 1.625rem color-mix(in srgb, var(--jdwealth-color-present) 28%, transparent);
  --jdwealth-shadow-modal: 0 1rem 3rem color-mix(in srgb, var(--jdwealth-color-text) 12%, transparent);
  --jdwealth-shadow-accent-edge: inset 0.24rem 0 0 var(--jdwealth-color-action);
  --jdwealth-motion-quick: 90ms;
  --jdwealth-motion-standard: 180ms;
  --jdwealth-motion-deliberate: 360ms;
  --jdwealth-motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --jdwealth-control-minimum-target: 2.75rem;
  --jdwealth-control-content-maximum: 92rem;
  --jdwealth-control-workspace-maximum: 72rem;
  --jdwealth-control-form-maximum: 54rem;
  --jdwealth-control-text-maximum: 44rem;
  --jdwealth-color-canvas: var(--jdwealth-color-light-canvas);
  --jdwealth-color-surface: var(--jdwealth-color-light-surface);
  --jdwealth-color-surface-strong: var(--jdwealth-color-light-surface-strong);
  --jdwealth-color-text: var(--jdwealth-color-light-text);
  --jdwealth-color-muted: var(--jdwealth-color-light-muted);
  --jdwealth-color-border: var(--jdwealth-color-light-border);
  --jdwealth-color-border-soft: var(--jdwealth-color-light-border-soft);
  --jdwealth-color-nav: var(--jdwealth-color-light-nav);
  --jdwealth-color-mobile: var(--jdwealth-color-light-mobile);
  --jdwealth-color-gradient-start: var(--jdwealth-color-light-gradient-start);
  --jdwealth-color-gradient-middle: var(--jdwealth-color-light-gradient-middle);
  --jdwealth-color-gradient-end: var(--jdwealth-color-light-gradient-end);
  --jdwealth-color-accent-text: var(--jdwealth-color-light-accent-text);
}

:root[data-lu-appearance="dark"] {
  --jdwealth-color-canvas: var(--jdwealth-color-dark-canvas);
  --jdwealth-color-surface: var(--jdwealth-color-dark-surface);
  --jdwealth-color-surface-strong: var(--jdwealth-color-dark-surface-strong);
  --jdwealth-color-text: var(--jdwealth-color-dark-text);
  --jdwealth-color-muted: var(--jdwealth-color-dark-muted);
  --jdwealth-color-border: var(--jdwealth-color-dark-border);
  --jdwealth-color-border-soft: var(--jdwealth-color-dark-border-soft);
  --jdwealth-color-nav: var(--jdwealth-color-dark-nav);
  --jdwealth-color-mobile: var(--jdwealth-color-dark-mobile);
  --jdwealth-color-gradient-start: var(--jdwealth-color-dark-gradient-start);
  --jdwealth-color-gradient-middle: var(--jdwealth-color-dark-gradient-middle);
  --jdwealth-color-gradient-end: var(--jdwealth-color-dark-gradient-end);
  --jdwealth-color-accent-text: var(--jdwealth-color-dark-accent-text);
}

/* Source: consumer/styles/shared/foundations.css */
/* Shared JD Wealth interaction and typography foundations. App and page files
 * compose these tokens; provider, authentication and persistence stay in the
 * pinned Luminair kit. */

html {
  color-scheme: light dark;
  scroll-behavior: smooth;
}

body[data-tenant="jd-wealth"] {
  font-family: var(--jdwealth-font-body);
  color: var(--jdwealth-color-text);
  background: var(--jdwealth-color-canvas);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Public Platform presentation variables are compatibility inputs only. This
 * is the single bridge from JD Wealth's design contract to reusable Luminair
 * components; page-level consumer CSS reads JD Wealth tokens exclusively. */
body[data-tenant="jd-wealth"] .lu-app {
  --brand-background: var(--jdwealth-color-canvas) !important;
  --brand-surface: var(--jdwealth-color-surface) !important;
  --brand-text: var(--jdwealth-color-text) !important;
  --brand-muted: var(--jdwealth-color-muted) !important;
  --brand-border: var(--jdwealth-color-border) !important;
  --brand-accent: var(--jdwealth-color-action) !important;
  --brand-accent-strong: var(--jdwealth-color-action-strong) !important;
  --brand-body: var(--jdwealth-font-body) !important;
  --brand-heading: var(--jdwealth-font-display) !important;
  --body-font: var(--jdwealth-font-body) !important;
  --heading-font: var(--jdwealth-font-display) !important;
  --brand-radius: var(--jdwealth-radius-panel) !important;
  --lu-shell-nav: var(--jdwealth-color-nav) !important;
  --lu-shell-mobile: var(--jdwealth-color-mobile) !important;
  --lu-shell-panel: var(--jdwealth-color-surface) !important;
  --lu-shell-strong: var(--jdwealth-color-surface-strong) !important;
  --lu-shell-text: var(--jdwealth-color-text) !important;
  --lu-shell-muted: var(--jdwealth-color-muted) !important;
  --lu-shell-border: var(--jdwealth-color-border) !important;
  --lu-shell-active-background: var(--jdwealth-color-action-strong) !important;
  --lu-shell-active-text: var(--jdwealth-color-on-solid) !important;
}

body[data-tenant="jd-wealth"] :where(button, input, select, textarea) {
  font: inherit;
}

body[data-tenant="jd-wealth"]
  :where(
    button,
    [role="button"],
    summary,
    select,
    textarea,
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    .lu-button,
    .lu-primary-button,
    .lu-secondary-button
  ) {
  min-block-size: var(--jdwealth-control-minimum-target);
}

body[data-tenant="jd-wealth"] :where(button, [role="button"], summary) {
  min-inline-size: var(--jdwealth-control-minimum-target);
}

body[data-tenant="jd-wealth"] :where(nav a, .lu-admin-bar-header a) {
  min-block-size: var(--jdwealth-control-minimum-target);
  display: inline-flex;
  align-items: center;
}

body[data-tenant="jd-wealth"]
  :where(button, a, input, select, textarea, summary) {
  -webkit-tap-highlight-color: transparent;
}

body[data-tenant="jd-wealth"] :where(button, [role="button"], a):active {
  transform: scale(0.985);
  transition: transform var(--jdwealth-motion-quick) var(--jdwealth-motion-ease);
}

body[data-tenant="jd-wealth"]
  :where(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid
    color-mix(in srgb, var(--jdwealth-color-action) 40%, transparent);
  outline-offset: 3px;
}

body[data-tenant="jd-wealth"] .lu-display,
body[data-tenant="jd-wealth"] [class*="pageTitle"],
body[data-tenant="jd-wealth"] [class*="pageHeading"] h1,
body[data-tenant="jd-wealth"] :where(h1, h2, h3, h4, h5, h6),
body[data-tenant="jd-wealth"]
  #lu-main-content
  :where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--jdwealth-font-display);
  font-weight: var(--jdwealth-font-weight-regular);
}

body[data-tenant="jd-wealth"]
  :where(
    nav a,
    nav button,
    [role="navigation"] a,
    [role="navigation"] button,
    label,
    input,
    select,
    textarea,
    button
  ),
body[data-tenant="jd-wealth"]
  #lu-main-content
  :where(
    nav a,
    nav button,
    [role="navigation"] a,
    [role="navigation"] button,
    label,
    input,
    select,
    textarea,
    button
  ) {
  font-family: var(--jdwealth-font-interface);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Source: consumer/styles/portal/00-foundations.css */
/* JD Wealth-owned client presentation layer.
 * Data, authentication and mutations remain on public Luminair contracts. */

/* The platform shell leaves a small viewport gutter around the app. Keep that
 * gutter and the app on one fixed background recipe so the portal never starts
 * with a flat strip above the page gradient. */
:root {
  --jdwealth-portal-canvas: linear-gradient(
      145deg,
      var(--jdwealth-color-light-gradient-start) 0%,
      var(--jdwealth-color-light-gradient-middle) 52%,
      var(--jdwealth-color-light-gradient-end) 100%
    )
    fixed;
  background: var(--jdwealth-portal-canvas);
}

:root[data-lu-appearance="dark"] {
  --jdwealth-portal-canvas: linear-gradient(
      145deg,
      var(--jdwealth-color-dark-gradient-start) 0%,
      var(--jdwealth-color-dark-gradient-middle) 52%,
      var(--jdwealth-color-dark-gradient-end) 100%
    )
    fixed;
  background: var(--jdwealth-portal-canvas);
}

:root:not([data-lu-appearance="dark"]):has(
    .lu-dashboard-page[data-dashboard-layout="hero-action"]
  ) {
  --jdwealth-portal-canvas: var(--jdwealth-color-light-canvas);
}

:root[data-lu-appearance="dark"]:has(
    .lu-dashboard-page[data-dashboard-layout="hero-action"]
  ) {
  --jdwealth-portal-canvas: var(--jdwealth-color-dark-canvas);
}

:root body[data-tenant="jd-wealth"],
.lu-app[data-shell-variant="portal-card"] {
  background: var(--jdwealth-portal-canvas);
}

/* JD Wealth declares Light as its portal default. Keep a dark host system from
 * partially switching the platform gradient before the client has made an
 * explicit appearance choice; explicit Dark continues to use the dark theme. */
:root:not([data-lu-appearance="dark"])
  .lu-app[data-shell-variant="portal-card"] {
  color-scheme: light;
}

.lu-app[data-shell-variant="portal-card"] {
  /* JD Wealth's coral action family is the sole non-danger interaction accent. */
  --jdwealth-color-action: var(--jdwealth-color-data);
  --jdwealth-color-action-strong: var(--jdwealth-color-data-strong);
  --jdwealth-color-action-soft: color-mix(
    in srgb,
    var(--jdwealth-color-action) 9%,
    var(--jdwealth-color-surface)
  );
  --jdwealth-color-line: color-mix(
    in srgb,
    var(--jdwealth-color-border) 72%,
    transparent
  );
}

.lu-app[data-shell-variant="portal-card"] .lu-main {
  width: min(100%, var(--jdwealth-control-content-maximum));
}

.lu-portal-card-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.lu-portal-card-header .lu-variant-topbar {
  overflow: clip;
  background: color-mix(in srgb, var(--jdwealth-color-nav) 91%, transparent);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.lu-portal-card-header .lu-variant-brand-link,
.lu-portal-card-header .lu-portal-profile-link,
.lu-portal-card-header .lu-portal-menu-trigger {
  min-height: var(--jdwealth-control-minimum-target);
}

.lu-portal-card-header .lu-variant-brand-link {
  display: inline-flex;
  align-items: center;
}

/* Keep the supplied vector wordmark optically large enough to render cleanly.
 * The source SVG is tightly cropped, so this width now describes visible art
 * rather than a padded export canvas. */
.lu-portal-card-header .lu-portal-logo {
  width: min(var(--jdwealth-space-36), 38vw);
  height: auto;
  max-width: var(--jdwealth-space-36);
  object-fit: contain;
  object-position: left center;
}

/* Primary navigation is interface typography: slightly larger Inter with
 * deliberate, compact caps tracking for easier scanning. */
.lu-portal-card-header .lu-variant-primary-link {
  font-family: var(--jdwealth-font-interface);
  font-size: var(--jdwealth-font-size-label);
  font-weight: var(--jdwealth-font-weight-medium);
  letter-spacing: var(--jdwealth-font-tracking-caps);
}

:root[data-lu-appearance="dark"] .lu-portal-card-header .lu-portal-logo {
  content: url("/consumer/assets/jd-wealth-logo-reversed.svg");
  filter: none;
}

.lu-portal-card-header .lu-portal-profile-link {
  min-width: var(--jdwealth-control-minimum-target);
}

.lu-portal-card-header .lu-portal-profile-link > span,
.lu-portal-card-header .lu-portal-sheet-avatar {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-brand-navy) 18%,
    var(--jdwealth-color-action)
  );
  background: var(--jdwealth-color-action);
  color: var(--jdwealth-color-brand-navy);
  box-shadow: var(--jdwealth-shadow-action);
}

/* Major workspace surfaces are structural, not floating. Route fragments may
 * add elevation only for a genuinely selected or temporary surface. */
.lu-app[data-shell-variant="portal-card"]
  :where(
    .lu-panel,
    .lu-feature-editorial-card,
    .lu-financial-collection,
    .lu-profile-section-card,
    .lu-vault-intro,
    .lu-vault-group,
    .lu-vault-upload
  ) {
  box-shadow: none;
}

.lu-primary-button,
.lu-secondary-button,
.lu-danger-button,
.lu-text-button,
.lu-financial-card-trigger,
.lu-form-page-progress button,
.lu-goal-card button {
  min-height: var(--jdwealth-control-minimum-target);
  touch-action: manipulation;
}

.lu-primary-button {
  background: var(--jdwealth-color-action-strong);
  border-color: var(--jdwealth-color-accent-text);
  color: var(--jdwealth-color-on-solid);
}

/* Source: consumer/styles/portal/05-auth.css */
/* Authentication: the dashboard's calm materials and blue action language,
 * with the existing Luminair identity and activation mechanics left intact. */
body[data-tenant="jd-wealth"] .lu-auth-page--tenant-client {
  --portal-focus: color-mix(in srgb, var(--jdwealth-color-data) 46%, transparent);
  overflow-x: hidden;
  overflow-y: auto;
  background: linear-gradient(
    145deg,
    var(--jdwealth-color-gradient-start) 0%,
    var(--jdwealth-color-gradient-middle) 52%,
    var(--jdwealth-color-gradient-end) 100%
  );
  color: var(--jdwealth-color-text);
  font-family: var(--jdwealth-font-body);
}

@media (min-width: 621px) and (min-height: 700px) {
  body[data-tenant="jd-wealth"] .lu-auth-page--tenant-client {
    height: 100dvh;
    min-height: 100dvh;
    overflow-y: hidden;
    padding-block: clamp(var(--jdwealth-space-3), 2vh, var(--jdwealth-space-5));
  }

  body[data-tenant="jd-wealth"]
    :is(.lu-auth-compact-card, .lu-auth-frame > .lu-auth-card--compact) {
    gap: clamp(var(--jdwealth-space-3), 1.5vh, var(--jdwealth-space-4));
    padding-block: clamp(var(--jdwealth-space-5), 2.8vh, var(--jdwealth-space-8));
  }

  body[data-tenant="jd-wealth"] .lu-auth-compact-heading {
    gap: clamp(var(--jdwealth-space-2), 1vh, var(--jdwealth-space-2-5));
  }
}

body[data-tenant="jd-wealth"] .lu-auth-page--tenant-client::before {
  background:
    radial-gradient(
      circle at 82% 14%,
      color-mix(in srgb, var(--jdwealth-color-data) 20%, transparent),
      transparent 31%
    ),
    radial-gradient(
      circle at 12% 88%,
      color-mix(in srgb, var(--jdwealth-color-surface-strong) 64%, transparent),
      transparent 34%
    );
}

body[data-tenant="jd-wealth"] .lu-auth-page--tenant-client::after {
  inset: auto -10vw -30vh auto;
  width: min(62rem, 88vw);
  height: min(62rem, 88vw);
  border: 1px solid
    color-mix(in srgb, var(--jdwealth-color-data) 15%, transparent);
  border-radius: 50%;
  background: transparent;
  opacity: 0.7;
  mask-image: linear-gradient(145deg, black, transparent 68%);
}

body[data-tenant="jd-wealth"]
  :is(.lu-auth-compact-card, .lu-auth-frame > .lu-auth-card--compact) {
  width: min(100%, 32rem);
  gap: var(--jdwealth-space-4);
  overflow: hidden;
  border: 1px solid var(--jdwealth-color-border-soft);
  border-radius: var(--jdwealth-radius-card);
  background: color-mix(in srgb, var(--jdwealth-color-surface) 96%, transparent);
  box-shadow: none;
  color: var(--jdwealth-color-text);
  padding: clamp(var(--jdwealth-space-5), 2.5vw, var(--jdwealth-space-8));
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  transform: none;
}

body[data-tenant="jd-wealth"]
  :is(.lu-auth-compact-card, .lu-auth-card--compact)::before {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--jdwealth-color-surface-strong) 48%, transparent),
    transparent 32%
  );
}

body[data-tenant="jd-wealth"] .lu-auth-frame--compact {
  width: min(100%, 32rem);
}

body[data-tenant="jd-wealth"] .lu-auth-compact-top,
body[data-tenant="jd-wealth"] .lu-auth-compact-tools {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: var(--jdwealth-space-2-5);
}

body[data-tenant="jd-wealth"] .lu-auth-compact-top {
  justify-content: flex-start;
}

body[data-tenant="jd-wealth"] .lu-auth-compact-tools {
  justify-content: flex-end;
  margin-inline-start: auto;
}

body[data-tenant="jd-wealth"] .lu-auth-compact-pill {
  display: none;
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-data) 34%,
    var(--jdwealth-color-border)
  );
  background: color-mix(
    in srgb,
    var(--jdwealth-color-data) 10%,
    var(--jdwealth-color-surface)
  );
  color: var(--jdwealth-color-accent-text);
  font-size: var(--jdwealth-font-size-caption);
  letter-spacing: var(--jdwealth-font-tracking-label);
}

body[data-tenant="jd-wealth"] .lu-auth-compact-path {
  width: 9.5rem;
  height: 2.5rem;
  overflow: hidden;
  background: url("/consumer/assets/jd-wealth-logo.svg") center / contain
    no-repeat;
  color: transparent;
  font-size: 0;
  white-space: nowrap;
}

:root[data-lu-appearance="dark"]
  body[data-tenant="jd-wealth"]
  .lu-auth-compact-path {
  background-image: url("/consumer/assets/jd-wealth-logo-reversed.svg");
}

body[data-tenant="jd-wealth"]
  .lu-auth-compact-top
  .lu-appearance-control {
  flex: 0 0 auto;
}

/* Sign-in is deliberately light-only. Appearance remains available inside
 * the authenticated portal, where clients have enough context for the choice. */
body[data-tenant="jd-wealth"]
  .lu-auth-page--tenant-client:has(.lu-auth-compact-form)
  .lu-auth-compact-top
  .lu-appearance-control {
  display: none;
}

body[data-tenant="jd-wealth"]
  .lu-auth-compact-top
  .lu-appearance-control
  legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

body[data-tenant="jd-wealth"]
  .lu-auth-compact-top
  .lu-appearance-control
  > div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--jdwealth-space-0-5);
  border-color: var(--jdwealth-color-border-soft);
  border-radius: var(--jdwealth-radius-pill);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-canvas) 62%,
    var(--jdwealth-color-surface)
  );
  padding: var(--jdwealth-space-0-5);
}

body[data-tenant="jd-wealth"]
  .lu-auth-compact-top
  .lu-appearance-control
  label {
  min-height: 1.75rem;
  border-radius: var(--jdwealth-radius-pill);
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
  padding-inline: var(--jdwealth-space-2-5);
}

body[data-tenant="jd-wealth"]
  .lu-auth-compact-top
  .lu-appearance-control
  label:has(input:checked) {
  background: var(--jdwealth-color-surface-strong);
  box-shadow: 0 1px 4px
    color-mix(in srgb, var(--jdwealth-color-text) 12%, transparent);
  color: var(--jdwealth-color-text);
}

body[data-tenant="jd-wealth"] .lu-auth-compact-heading {
  gap: var(--jdwealth-space-2-5);
  padding-block: var(--jdwealth-space-1);
}

body[data-tenant="jd-wealth"] .lu-auth-compact-heading p,
body[data-tenant="jd-wealth"] .lu-auth-card--compact .lu-kicker {
  color: var(--jdwealth-color-accent-text);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: 700;
  letter-spacing: var(--jdwealth-font-tracking-caps);
}

body[data-tenant="jd-wealth"]
  :is(.lu-auth-compact-heading h1, .lu-auth-card--compact h1) {
  max-width: 17ch;
  color: var(--jdwealth-color-text);
  font-family: var(--jdwealth-font-display);
  font-size: var(--jdwealth-font-size-title);
  font-weight: var(--jdwealth-font-weight-regular);
  letter-spacing: var(--jdwealth-font-tracking-display);
  line-height: var(--jdwealth-font-line-height-solid);
  text-wrap: balance;
}

body[data-tenant="jd-wealth"] .lu-auth-compact-heading > span,
body[data-tenant="jd-wealth"] .lu-auth-card--compact .lu-copy,
body[data-tenant="jd-wealth"]
  .lu-auth-card--compact
  .lu-auth-password-form
  small {
  color: var(--jdwealth-color-muted);
}

body[data-tenant="jd-wealth"] .lu-auth-compact-heading > span,
body[data-tenant="jd-wealth"] .lu-auth-card--compact .lu-copy {
  max-width: 43ch;
  font-size: var(--jdwealth-font-size-body);
  line-height: var(--jdwealth-font-line-height-relaxed);
}

body[data-tenant="jd-wealth"]
  :is(.lu-auth-compact-form, .lu-auth-password-form) {
  gap: var(--jdwealth-space-3-5);
}

body[data-tenant="jd-wealth"]
  :is(.lu-auth-compact-form label > span, .lu-auth-password-form label) {
  color: var(--jdwealth-color-text);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: 700;
  letter-spacing: var(--jdwealth-font-tracking-normal);
  text-transform: none;
}

body[data-tenant="jd-wealth"]
  :is(
    .lu-auth-compact-form input,
    .lu-auth-card--compact .lu-auth-password-form input
  ) {
  min-height: 3.05rem;
  height: auto;
  border-color: var(--jdwealth-color-border-soft);
  border-radius: var(--jdwealth-radius-control);
  background: var(--jdwealth-color-surface-strong);
  color: var(--jdwealth-color-text);
  box-shadow: inset 0 1px 2px
    color-mix(in srgb, var(--jdwealth-color-text) 4%, transparent);
  padding: var(--jdwealth-space-3) var(--jdwealth-space-3-5);
}

body[data-tenant="jd-wealth"] .lu-auth-compact-form input::placeholder {
  color: color-mix(in srgb, var(--jdwealth-color-muted) 66%, transparent);
}

body[data-tenant="jd-wealth"] .lu-auth-password-control input {
  padding-inline-end: 3.75rem;
}

body[data-tenant="jd-wealth"] .lu-auth-password-toggle {
  color: var(--jdwealth-color-muted);
}

body[data-tenant="jd-wealth"] .lu-auth-compact-recovery a {
  color: var(--jdwealth-color-accent-text);
  font-size: var(--jdwealth-font-size-body);
  font-weight: var(--jdwealth-font-weight-semibold);
  text-decoration-color: color-mix(
    in srgb,
    var(--jdwealth-color-accent-text) 46%,
    transparent
  );
  text-underline-offset: 0.22em;
}

body[data-tenant="jd-wealth"] .lu-auth-compact-recovery a:hover {
  color: var(--jdwealth-color-action-strong);
  text-decoration-color: currentColor;
}

body[data-tenant="jd-wealth"]
  :is(
    .lu-auth-compact-submit.lu-primary-link,
    .lu-auth-card--compact .lu-primary-link
  ) {
  min-height: 3rem;
  justify-content: center;
  border: 1px solid var(--jdwealth-color-data-strong);
  border-radius: var(--jdwealth-radius-control);
  background: var(--jdwealth-color-data-strong);
  color: var(--jdwealth-color-on-solid);
  box-shadow: var(--jdwealth-shadow-action);
  font-size: var(--jdwealth-font-size-body-small);
  font-weight: var(--jdwealth-font-weight-bold);
  letter-spacing: var(--jdwealth-font-tracking-normal);
  text-transform: none;
}

body[data-tenant="jd-wealth"] .lu-auth-compact-note,
body[data-tenant="jd-wealth"] .lu-auth-card--compact .lu-auth-status {
  border-color: var(--jdwealth-color-border-soft);
  border-radius: var(--jdwealth-radius-control);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-canvas) 58%,
    var(--jdwealth-color-surface)
  );
  color: var(--jdwealth-color-text);
  box-shadow: none;
}

body[data-tenant="jd-wealth"] .lu-auth-compact-note[data-tone="neutral"] {
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-label);
}

body[data-tenant="jd-wealth"] .lu-auth-compact-note[data-tone="success"] {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-data) 35%,
    var(--jdwealth-color-border)
  );
  background: color-mix(
    in srgb,
    var(--jdwealth-color-data) 10%,
    var(--jdwealth-color-surface)
  );
  color: var(--jdwealth-color-text);
}

body[data-tenant="jd-wealth"]
  :is(
    .lu-auth-compact-note[data-tone="error"],
    .lu-auth-card--compact .lu-auth-status[data-tone="error"]
  ) {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-danger) 42%,
    var(--jdwealth-color-border)
  );
  background: color-mix(
    in srgb,
    var(--jdwealth-color-danger) 9%,
    var(--jdwealth-color-surface)
  );
  color: var(--jdwealth-color-text);
}

body[data-tenant="jd-wealth"]
  .lu-auth-card--compact
  .lu-auth-status::before {
  background: color-mix(
    in srgb,
    var(--jdwealth-color-data) 12%,
    var(--jdwealth-color-surface)
  );
  color: var(--jdwealth-color-accent-text);
}

body[data-tenant="jd-wealth"] .lu-auth-card--compact .lu-auth-status p {
  color: var(--jdwealth-color-muted);
}

.lu-auth-activation-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--jdwealth-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.lu-auth-activation-steps li {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: var(--jdwealth-space-1-5);
  padding: var(--jdwealth-space-2-5);
  border: 1px solid var(--jdwealth-color-border-soft);
  border-radius: var(--jdwealth-radius-control);
  background: transparent;
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: var(--jdwealth-font-weight-semibold);
  line-height: var(--jdwealth-font-line-height-snug);
}

.lu-auth-activation-steps li[data-current="true"] {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-data) 42%,
    var(--jdwealth-color-border)
  );
  background: color-mix(
    in srgb,
    var(--jdwealth-color-data) 10%,
    var(--jdwealth-color-surface)
  );
  color: var(--jdwealth-color-text);
}

.lu-auth-activation-steps li > span {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--jdwealth-color-surface-strong);
  color: var(--jdwealth-color-accent-text);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: var(--jdwealth-font-weight-bold);
}

@media (max-width: 620px) {
  body[data-tenant="jd-wealth"] .lu-auth-page--tenant-client {
    align-items: start;
    padding: max(var(--jdwealth-space-2-5), env(safe-area-inset-top))
      max(var(--jdwealth-space-2-5), env(safe-area-inset-right))
      max(var(--jdwealth-space-2-5), env(safe-area-inset-bottom))
      max(var(--jdwealth-space-2-5), env(safe-area-inset-left));
  }

  body[data-tenant="jd-wealth"]
    :is(.lu-auth-compact-card, .lu-auth-frame > .lu-auth-card--compact) {
    width: 100%;
    border-radius: var(--jdwealth-radius-card);
    gap: var(--jdwealth-space-3-5);
    padding: var(--jdwealth-space-4-5);
  }

  body[data-tenant="jd-wealth"] .lu-auth-compact-tools {
    min-width: 0;
  }

  body[data-tenant="jd-wealth"] .lu-auth-compact-path {
    display: block;
    width: 8.75rem;
    height: 2.3rem;
  }

  .lu-auth-activation-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .lu-auth-activation-steps li {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--jdwealth-space-2);
    padding: var(--jdwealth-space-2-5);
  }
}

@media (prefers-reduced-transparency: reduce) {
  body[data-tenant="jd-wealth"]
    :is(.lu-auth-compact-card, .lu-auth-frame > .lu-auth-card--compact) {
    background: var(--jdwealth-color-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  body[data-tenant="jd-wealth"]
    :is(.lu-auth-compact-card, .lu-auth-frame > .lu-auth-card--compact) {
    border-color: currentColor;
    background: var(--jdwealth-color-surface);
  }
}

/* Source: consumer/styles/portal/10-dashboard.css */
/* Dashboard: keep the large greeting and make the next action part of it. */
.lu-dashboard-page[data-dashboard-layout="hero-action"] {
  --jdwealth-color-data-soft: color-mix(
    in srgb,
    var(--jdwealth-color-data) 9%,
    var(--jdwealth-color-surface)
  );
  --jdwealth-color-line: color-mix(
    in srgb,
    var(--jdwealth-color-border) 72%,
    transparent
  );
  min-width: 0;
  gap: var(--jdwealth-space-5);
}

:root
  .lu-app[data-shell-variant="portal-card"]:has(
    .lu-dashboard-page[data-dashboard-layout="hero-action"]
  ) {
  background: var(--jdwealth-color-canvas);
}

.lu-dashboard-page[data-dashboard-layout="hero-action"] .lu-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(17.5rem, 0.72fr);
  align-items: stretch;
  gap: clamp(var(--jdwealth-space-5), 3vw, var(--jdwealth-space-10));
  min-height: 18rem;
  padding: clamp(var(--jdwealth-space-5), 3vw, var(--jdwealth-space-10));
}

.lu-dashboard-page[data-dashboard-layout="hero-action"] .lu-dashboard-welcome {
  align-items: center;
  display: flex;
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-welcome
  .lu-display {
  max-width: 13ch;
  margin-top: var(--jdwealth-space-2-5);
  font-size: var(--jdwealth-font-size-display-compact);
  line-height: var(--jdwealth-font-line-height-display);
  letter-spacing: var(--jdwealth-font-tracking-display);
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-welcome
  .lu-display
  em {
  color: var(--jdwealth-color-action);
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-welcome
  .lu-copy {
  max-width: 38rem;
  margin-top: var(--jdwealth-space-4);
  font-size: var(--jdwealth-font-size-body);
}

.lu-dashboard-hero-action {
  align-self: center;
  display: grid;
  gap: var(--jdwealth-space-3);
  padding: clamp(var(--jdwealth-space-4-5), 2vw, var(--jdwealth-space-6));
  border: 1px solid
    color-mix(in srgb, var(--jdwealth-color-data) 24%, var(--jdwealth-color-line));
  border-radius: var(--jdwealth-radius-card);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-surface-strong) 86%,
    var(--jdwealth-color-data) 14%
  );
  box-shadow: var(--jdwealth-shadow-accent-edge);
}

.lu-dashboard-hero-action .lu-pill {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-data) 34%,
    var(--jdwealth-color-line)
  );
  background: color-mix(
    in srgb,
    var(--jdwealth-color-data) 16%,
    var(--jdwealth-color-surface)
  );
  color: color-mix(
    in srgb,
    var(--jdwealth-color-data) 72%,
    var(--jdwealth-color-text)
  );
}

.lu-dashboard-hero-action h2 {
  margin: 0;
  font-family: var(--jdwealth-font-display);
  font-size: var(--jdwealth-font-size-section);
  line-height: var(--jdwealth-font-line-height-solid);
  letter-spacing: var(--jdwealth-font-tracking-heading);
}

.lu-dashboard-hero-action p,
.lu-dashboard-hero-action small {
  margin: var(--jdwealth-space-2) 0 0;
  color: var(--jdwealth-color-muted);
  line-height: var(--jdwealth-font-line-height-normal);
}

.lu-dashboard-hero-action > .lu-primary-button {
  justify-self: start;
  min-width: 11rem;
  text-align: center;
}

.lu-dashboard-caught-up-icon {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid var(--jdwealth-color-action);
  border-radius: 50%;
  color: var(--jdwealth-color-action);
  font-size: var(--jdwealth-font-size-lead);
}

.lu-dashboard-hero-action:has(.lu-dashboard-caught-up-icon) {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--jdwealth-space-3-5);
  padding: var(--jdwealth-space-4-5) var(--jdwealth-space-5);
}

.lu-dashboard-hero-action:has(.lu-dashboard-caught-up-icon) h2,
.lu-dashboard-hero-action:has(.lu-dashboard-caught-up-icon) > a {
  display: none;
}

.lu-dashboard-hero-action:has(.lu-dashboard-caught-up-icon) p {
  margin: 0;
  color: var(--jdwealth-color-text);
  font-weight: var(--jdwealth-font-weight-semibold);
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-content-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "financial"
    "goals";
  gap: var(--jdwealth-space-5);
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-advice-team {
  display: none;
}

.lu-dashboard-page[data-dashboard-layout="hero-action"] .lu-dashboard-financial,
.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-priority-goals {
  width: 100%;
  min-height: 0;
  min-width: 0;
  padding: clamp(var(--jdwealth-space-5), 2vw, var(--jdwealth-space-8));
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-financial
  .lu-section-header
  h2,
.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-priority-goals
  .lu-section-header
  h2 {
  font-size: var(--jdwealth-font-size-section);
  line-height: var(--jdwealth-font-line-height-solid);
  letter-spacing: var(--jdwealth-font-tracking-display);
}

body[data-tenant="jd-wealth"]
  #lu-main-content
  .lu-dashboard-financial-total
  > strong {
  font-family: var(--jdwealth-font-interface);
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-goal-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--jdwealth-space-4);
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-goal-list
  > a {
  position: relative;
  display: flex;
  overflow: hidden;
  min-width: 0;
  min-height: 10rem;
  padding: clamp(var(--jdwealth-space-4), 1.7vw, var(--jdwealth-space-5));
  border: 1px solid
    color-mix(in srgb, var(--jdwealth-color-data) 24%, var(--jdwealth-color-line));
  border-radius: var(--jdwealth-radius-card);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-surface) 90%,
    var(--jdwealth-color-data) 10%
  );
  box-shadow: none;
  transition:
    transform var(--jdwealth-motion-deliberate) var(--jdwealth-motion-ease),
    border-color var(--jdwealth-motion-deliberate) var(--jdwealth-motion-ease),
    background var(--jdwealth-motion-deliberate) var(--jdwealth-motion-ease),
    box-shadow var(--jdwealth-motion-deliberate) var(--jdwealth-motion-ease);
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-goal-list
  > a::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.24rem;
  background: color-mix(
    in srgb,
    var(--jdwealth-color-data) 68%,
    var(--jdwealth-color-text)
  );
  content: "";
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-goal-list
  > a:has([data-priority="high"]) {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-data) 48%,
    var(--jdwealth-color-line)
  );
  background: color-mix(
    in srgb,
    var(--jdwealth-color-surface) 82%,
    var(--jdwealth-color-data) 18%
  );
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-goal-list
  > a:hover {
  transform: translateY(-0.12rem);
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-data) 62%,
    var(--jdwealth-color-border)
  );
  background: color-mix(
    in srgb,
    var(--jdwealth-color-surface) 84%,
    var(--jdwealth-color-data) 16%
  );
  box-shadow: none;
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-goal-heading {
  width: 100%;
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-goal-heading
  > div {
  width: 100%;
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-goal-heading
  strong {
  min-height: 0;
  font-family: var(--jdwealth-font-display);
  font-size: var(--jdwealth-font-size-lead);
  font-weight: var(--jdwealth-font-weight-medium);
  line-height: var(--jdwealth-font-line-height-tight);
  letter-spacing: var(--jdwealth-font-tracking-heading);
}

.lu-dashboard-page[data-dashboard-layout="hero-action"] .lu-progress {
  margin-top: var(--jdwealth-space-2-5);
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-progress-track
  > span {
  background: color-mix(
    in srgb,
    var(--jdwealth-color-data) 78%,
    var(--jdwealth-color-text)
  );
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-caught-up-icon {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-data) 64%,
    var(--jdwealth-color-text)
  );
  color: color-mix(
    in srgb,
    var(--jdwealth-color-data) 64%,
    var(--jdwealth-color-text)
  );
}

/* Dashboard controls use adaptive surfaces so active state and data remain
 * unambiguous in both portal appearances. */
.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-segmented-control {
  border-color: color-mix(in srgb, var(--jdwealth-color-border) 82%, transparent);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-surface) 78%,
    var(--jdwealth-color-border) 22%
  );
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-segmented-control
  label {
  color: color-mix(
    in srgb,
    var(--jdwealth-color-text) 72%,
    var(--jdwealth-color-muted)
  );
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  #dashboard-net-worth:checked
  ~ .lu-dashboard-segmented-control
  label[for="dashboard-net-worth"],
.lu-dashboard-page[data-dashboard-layout="hero-action"]
  #dashboard-cashflow:checked
  ~ .lu-dashboard-segmented-control
  label[for="dashboard-cashflow"] {
  border: 1px solid var(--jdwealth-color-action);
  background: var(--jdwealth-color-action);
  color: var(--jdwealth-color-on-solid);
  box-shadow: var(--jdwealth-shadow-action);
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  :is(.lu-dashboard-financial-total, .lu-dashboard-breakdown > a) {
  border-color: color-mix(in srgb, var(--jdwealth-color-border) 86%, transparent);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-surface) 94%,
    var(--jdwealth-color-data) 6%
  );
  box-shadow: none;
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-breakdown
  > a:hover {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-data) 58%,
    var(--jdwealth-color-border)
  );
  background: color-mix(
    in srgb,
    var(--jdwealth-color-surface) 84%,
    var(--jdwealth-color-data) 16%
  );
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-breakdown
  > a
  i {
  background: color-mix(in srgb, var(--jdwealth-color-border) 78%, transparent);
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-breakdown
  > a
  i::after {
  background: color-mix(
    in srgb,
    var(--jdwealth-color-data) 78%,
    var(--jdwealth-color-text)
  );
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-goal-icon {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-data) 42%,
    var(--jdwealth-color-border)
  );
  background: color-mix(
    in srgb,
    var(--jdwealth-color-surface) 80%,
    var(--jdwealth-color-data) 20%
  );
  color: color-mix(
    in srgb,
    var(--jdwealth-color-data) 72%,
    var(--jdwealth-color-text)
  );
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-goal-meta
  .lu-pill {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-data) 42%,
    var(--jdwealth-color-border)
  );
  background: color-mix(
    in srgb,
    var(--jdwealth-color-surface) 76%,
    var(--jdwealth-color-data) 24%
  );
  color: var(--jdwealth-color-text);
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-goal-meta
  > span[data-priority] {
  color: color-mix(
    in srgb,
    var(--jdwealth-color-text) 76%,
    var(--jdwealth-color-data)
  );
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-goal-meta
  > span[data-priority="high"] {
  color: color-mix(
    in srgb,
    var(--jdwealth-color-danger) 72%,
    var(--jdwealth-color-text)
  );
}

.lu-dashboard-page[data-dashboard-layout="hero-action"]
  .lu-dashboard-goal-heading
  > div
  > span {
  color: color-mix(
    in srgb,
    var(--jdwealth-color-text) 72%,
    var(--jdwealth-color-muted)
  );
}

/* The dashboard stays recognisably JD Wealth, but its first viewport should
 * lead with a clear next action rather than a display-scale greeting. Keep
 * these breakpoints with the owning route so the responsive shell remains
 * reusable by the other portal workspaces. */
@media (max-width: 820px) {
  body[data-tenant="jd-wealth"]
    .lu-dashboard-page[data-dashboard-layout="hero-action"]
    .lu-dashboard-welcome
    .lu-display {
    font-size: var(--jdwealth-font-size-display-mobile);
  }
}

@media (max-width: 620px) {
  body[data-tenant="jd-wealth"]
    .lu-dashboard-page[data-dashboard-layout="hero-action"] {
    gap: var(--jdwealth-space-4);
  }

  body[data-tenant="jd-wealth"]
    .lu-dashboard-page[data-dashboard-layout="hero-action"]
    .lu-dashboard-hero {
    gap: var(--jdwealth-space-3-5);
    padding: var(--jdwealth-space-4-5);
  }

  body[data-tenant="jd-wealth"]
    .lu-dashboard-page[data-dashboard-layout="hero-action"]
    .lu-dashboard-welcome
    .lu-display {
    max-width: 12ch;
    font-size: var(--jdwealth-font-size-hero);
    line-height: var(--jdwealth-font-line-height-solid);
  }

  body[data-tenant="jd-wealth"]
    .lu-dashboard-page[data-dashboard-layout="hero-action"]
    .lu-dashboard-welcome
    .lu-copy {
    margin-top: var(--jdwealth-space-3);
    font-size: var(--jdwealth-font-size-body-small);
    line-height: var(--jdwealth-font-line-height-normal);
  }

  body[data-tenant="jd-wealth"] .lu-dashboard-hero-action {
    gap: var(--jdwealth-space-2-5);
    padding: var(--jdwealth-space-4);
    box-shadow: var(--jdwealth-shadow-accent-edge);
  }

  body[data-tenant="jd-wealth"] .lu-dashboard-hero-action h2 {
    font-size: var(--jdwealth-font-size-subheading);
  }

  body[data-tenant="jd-wealth"]
    .lu-dashboard-page[data-dashboard-layout="hero-action"]
    :is(.lu-dashboard-financial, .lu-dashboard-priority-goals) {
    padding: var(--jdwealth-space-4-5);
  }

  body[data-tenant="jd-wealth"]
    .lu-dashboard-page[data-dashboard-layout="hero-action"]
    :is(
      .lu-dashboard-financial .lu-section-header h2,
      .lu-dashboard-priority-goals .lu-section-header h2
    ) {
    font-size: var(--jdwealth-font-size-section);
  }

  body[data-tenant="jd-wealth"]
    .lu-dashboard-page[data-dashboard-layout="hero-action"]
    .lu-dashboard-goal-list
    > a {
    min-height: 0;
    padding: var(--jdwealth-space-4);
  }
}

/* Source: consumer/styles/portal/20-workspaces.css */
/* Secondary workspaces: one compact title row, then the actual content. */
.lu-portal-page:is(
  [data-portal-feature="goals"],
  [data-portal-feature="assets-liabilities"],
  [data-portal-feature="cashflow"],
  [data-portal-feature="vault-documents"],
  [data-portal-feature="profile"]
) {
  width: min(
    calc(100% - var(--jdwealth-space-8)),
    var(--jdwealth-control-workspace-maximum)
  );
  margin-inline: auto;
}

.lu-portal-page:is(
  [data-portal-feature="goals"],
  [data-portal-feature="assets-liabilities"],
  [data-portal-feature="cashflow"],
  [data-portal-feature="vault-documents"]
) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: var(--jdwealth-space-4);
  row-gap: var(--jdwealth-space-5-5);
}

.lu-portal-page:is(
    [data-portal-feature="goals"],
    [data-portal-feature="assets-liabilities"],
    [data-portal-feature="cashflow"],
    [data-portal-feature="vault-documents"]
  )
  > .lu-feature-editorial-header {
  grid-column: 1;
  grid-row: 1;
  gap: var(--jdwealth-space-2-5);
  min-height: 0;
  padding: var(--jdwealth-space-2) 0 var(--jdwealth-space-1);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lu-portal-page:is(
    [data-portal-feature="goals"],
    [data-portal-feature="assets-liabilities"],
    [data-portal-feature="cashflow"],
    [data-portal-feature="vault-documents"]
  )
  .lu-feature-editorial-heading {
  align-items: center;
}

.lu-portal-page:is(
    [data-portal-feature="goals"],
    [data-portal-feature="assets-liabilities"],
    [data-portal-feature="cashflow"],
    [data-portal-feature="vault-documents"]
  )
  .lu-feature-editorial-heading
  h1 {
  margin-top: var(--jdwealth-space-1-5);
  font-size: var(--jdwealth-font-size-title);
  line-height: var(--jdwealth-font-line-height-solid);
  letter-spacing: var(--jdwealth-font-tracking-display);
}

.lu-portal-page:is(
    [data-portal-feature="goals"],
    [data-portal-feature="assets-liabilities"],
    [data-portal-feature="cashflow"],
    [data-portal-feature="vault-documents"]
  )
  .lu-feature-editorial-subtitle {
  margin-top: var(--jdwealth-space-2);
  font-size: var(--jdwealth-font-size-body-small);
  line-height: var(--jdwealth-font-line-height-relaxed);
}

.lu-portal-page[data-portal-feature="assets-liabilities"]
  .lu-feature-editorial-summary,
.lu-portal-page[data-portal-feature="cashflow"] .lu-feature-editorial-summary {
  display: none;
}

/* Platform-backed advice pages use the same restrained editorial hierarchy as
 * the financial workspaces instead of a second oversized hero archetype. */
.lu-portal-page:is(
  [data-portal-feature="annual-review"],
  [data-portal-feature="knowledge"],
  [data-portal-feature="risk-profile"],
  [data-portal-feature="team-adviser"]
) {
  width: calc(100% - var(--jdwealth-space-8));
  max-width: var(--jdwealth-control-content-maximum);
  margin-inline: auto;
  gap: var(--jdwealth-space-4);
}

.lu-portal-page:is(
    [data-portal-feature="annual-review"],
    [data-portal-feature="knowledge"],
    [data-portal-feature="risk-profile"],
    [data-portal-feature="team-adviser"]
  )
  > .lu-feature-hero {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.42fr);
  align-items: end;
  gap: var(--jdwealth-space-4);
  padding: clamp(var(--jdwealth-space-5), 3vw, var(--jdwealth-space-8));
  border-radius: var(--jdwealth-radius-panel);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-surface) 94%,
    var(--jdwealth-color-canvas)
  );
  border: 1px solid var(--jdwealth-color-line);
  box-shadow: none;
}

.lu-portal-page:is(
    [data-portal-feature="annual-review"],
    [data-portal-feature="knowledge"],
    [data-portal-feature="risk-profile"],
    [data-portal-feature="team-adviser"]
  )
  > .lu-feature-hero
  h1 {
  font-size: var(--jdwealth-font-size-title);
  line-height: var(--jdwealth-font-line-height-solid);
  letter-spacing: var(--jdwealth-font-tracking-display);
}

.lu-portal-page:is(
    [data-portal-feature="annual-review"],
    [data-portal-feature="knowledge"],
    [data-portal-feature="risk-profile"],
    [data-portal-feature="team-adviser"]
  )
  > .lu-feature-hero
  .lu-feature-context {
  align-self: end;
  gap: var(--jdwealth-space-3);
}

.lu-portal-page:is(
    [data-portal-feature="annual-review"],
    [data-portal-feature="knowledge"],
    [data-portal-feature="risk-profile"],
    [data-portal-feature="team-adviser"]
  )
  .lu-section-header
  h2 {
  font-family: var(--jdwealth-font-display);
  font-size: var(--jdwealth-font-size-section);
  font-weight: var(--jdwealth-font-weight-regular);
  line-height: var(--jdwealth-font-line-height-tight);
  letter-spacing: var(--jdwealth-font-tracking-heading);
}

.lu-portal-page:is(
    [data-portal-feature="annual-review"],
    [data-portal-feature="team-adviser"]
  )
  > .lu-stack
  > .lu-panel:first-child
  .lu-section-header
  h2 {
  display: none;
}

.lu-portal-page[data-portal-feature="annual-review"] .lu-form-intro h2 {
  display: none;
}

.lu-portal-page[data-portal-feature="team-adviser"] .lu-team-groups,
.lu-portal-page[data-portal-feature="team-adviser"] .lu-grid {
  gap: var(--jdwealth-space-4);
}

.lu-portal-page[data-portal-feature="team-adviser"] .lu-team-card {
  border-radius: var(--jdwealth-radius-card);
  box-shadow: none;
}

@media (max-width: 820px) {
  .lu-portal-page:is(
    [data-portal-feature="annual-review"],
    [data-portal-feature="knowledge"],
    [data-portal-feature="risk-profile"],
    [data-portal-feature="team-adviser"]
  ) {
    width: min(
      calc(100% - var(--jdwealth-space-4)),
      var(--jdwealth-control-workspace-maximum)
    );
  }

  .lu-portal-page:is(
      [data-portal-feature="annual-review"],
      [data-portal-feature="knowledge"],
      [data-portal-feature="risk-profile"],
      [data-portal-feature="team-adviser"]
    )
    > .lu-feature-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Source: consumer/styles/portal/30-financial.css */
/* Financial workspaces are a calm summary, a clear collection switch and a
 * compact record list. Data, validation and inline editing stay platform-owned. */
.lu-financial-collections {
  gap: var(--jdwealth-space-6);
}

.lu-portal-page:is(
    [data-portal-feature="assets-liabilities"],
    [data-portal-feature="cashflow"]
  )
  > .lu-financial-collections {
  display: contents;
}

.lu-portal-page:is(
    [data-portal-feature="assets-liabilities"],
    [data-portal-feature="cashflow"]
  )
  :is(
    .lu-financial-segmented-control,
    .lu-financial-summary,
    .lu-financial-collection,
    .lu-financial-status
  ) {
  grid-column: 1 / -1;
}

/* A compact control keeps the selected collection clear without competing with
 * the financial totals or turning the switch itself into a feature card. */
.lu-financial-segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--jdwealth-space-1);
  width: min(100%, 25rem);
  min-width: 0;
  padding: var(--jdwealth-space-1);
  border: 1px solid var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-control);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-surface) 88%,
    var(--jdwealth-color-canvas)
  );
}

.lu-financial-segmented-control button {
  min-width: 0;
  min-height: var(--jdwealth-control-minimum-target);
  padding: var(--jdwealth-space-2) var(--jdwealth-space-3);
  border: 1px solid transparent;
  border-radius: var(--jdwealth-radius-control);
  background: transparent;
  color: var(--jdwealth-color-muted);
  cursor: pointer;
  font: inherit;
  font-size: var(--jdwealth-font-size-body-small);
  font-weight: 600;
  letter-spacing: var(--jdwealth-font-tracking-normal);
  text-transform: none;
  transition:
    border-color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    background-color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease);
}

.lu-financial-segmented-control button:hover:not([aria-selected="true"]) {
  background: color-mix(
    in srgb,
    var(--jdwealth-color-action-soft) 56%,
    var(--jdwealth-color-surface)
  );
  color: var(--jdwealth-color-text);
}

.lu-financial-segmented-control button:focus-visible {
  outline: 2px solid var(--jdwealth-color-action);
  outline-offset: 2px;
}

.lu-financial-segmented-control button[aria-selected="true"] {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-action) 48%,
    var(--jdwealth-color-line)
  );
  background: var(--jdwealth-color-action-soft);
  color: var(--jdwealth-color-text);
}

body[data-tenant="jd-wealth"]
  .lu-portal-page:is(
    [data-portal-feature="assets-liabilities"],
    [data-portal-feature="cashflow"]
  )
  .lu-financial-summary {
  display: block;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Totals are one summary strip, not three equally heavy cards. */
.lu-financial-summary .lu-metrics {
  display: grid;
  grid-template-columns: minmax(14rem, 1.25fr) repeat(2, minmax(10rem, 0.85fr));
  overflow: hidden;
  border: 1px solid var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-panel);
  background: var(--jdwealth-color-surface);
  box-shadow: none;
}

.lu-financial-summary .lu-metric {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 7.15rem;
  padding: var(--jdwealth-space-4) var(--jdwealth-space-5);
  border: 0;
  border-inline-start: 1px solid var(--jdwealth-color-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lu-financial-summary .lu-metric:first-child {
  border-inline-start: 0;
}

.lu-financial-summary .lu-metric > span,
.lu-financial-summary .lu-metric > small {
  color: var(--jdwealth-color-muted);
}

.lu-financial-summary .lu-metric > span {
  font-size: var(--jdwealth-font-size-caption);
  font-weight: 600;
  letter-spacing: var(--jdwealth-font-tracking-label);
  text-transform: uppercase;
}

.lu-financial-summary .lu-metric > small {
  margin-top: var(--jdwealth-space-1);
  font-size: var(--jdwealth-font-size-body-small);
  line-height: var(--jdwealth-font-line-height-normal);
}

.lu-financial-summary .lu-metric[data-financial-outcome] {
  order: -1;
  background: color-mix(
    in srgb,
    var(--jdwealth-color-action-soft) 70%,
    var(--jdwealth-color-surface)
  );
}

.lu-financial-summary .lu-metric[data-financial-selected="true"] {
  background: color-mix(
    in srgb,
    var(--jdwealth-color-action-soft) 44%,
    var(--jdwealth-color-surface)
  );
  box-shadow: inset 0 0.2rem 0 var(--jdwealth-color-action);
}

.lu-financial-summary .lu-metric strong {
  display: block;
  margin-top: var(--jdwealth-space-1);
  font-family: var(--jdwealth-font-display);
  font-size: var(--jdwealth-font-size-section);
  font-weight: 600;
  letter-spacing: var(--jdwealth-font-tracking-display);
  line-height: var(--jdwealth-font-line-height-tight);
}

/* The cashflow result remains the first number a client scans, but no longer
 * overwhelms the input totals with display-sized type. */
.lu-portal-page[data-portal-feature="cashflow"]
  .lu-financial-summary
  .lu-metric[data-financial-outcome]
  strong {
  color: var(--jdwealth-color-accent-text);
  font-size: var(--jdwealth-font-size-title);
}

.lu-financial-combined-add {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--jdwealth-space-2-5);
}

.lu-financial-combined-add > span {
  display: none;
}

.lu-financial-add-choices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--jdwealth-space-2);
}

.lu-financial-collection {
  display: grid;
  gap: var(--jdwealth-space-3);
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lu-financial-collection[hidden] {
  display: none;
}

/* Section headings provide structure with type and a divider rather than
 * another raised, tinted surface. */
.lu-portal-page:is(
    [data-portal-feature="assets-liabilities"],
    [data-portal-feature="cashflow"]
  )
  .lu-financial-collection[data-record-presentation="editorial-card"]
  .lu-financial-collection-heading {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--jdwealth-space-4);
  margin: 0;
  padding: 0 0 var(--jdwealth-space-3);
  border: 0;
  border-bottom: 1px solid var(--jdwealth-color-line);
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.lu-portal-page:is(
    [data-portal-feature="assets-liabilities"],
    [data-portal-feature="cashflow"]
  )
  .lu-financial-collection[data-record-presentation="editorial-card"]
  .lu-financial-collection-heading::before {
  content: none;
}

.lu-portal-page:is(
    [data-portal-feature="assets-liabilities"],
    [data-portal-feature="cashflow"]
  )
  .lu-financial-collection-heading
  h2 {
  font-size: var(--jdwealth-font-size-section);
  line-height: var(--jdwealth-font-line-height-tight);
}

.lu-portal-page:is(
    [data-portal-feature="assets-liabilities"],
    [data-portal-feature="cashflow"]
  )
  .lu-financial-collection-heading
  p {
  max-width: 62ch;
  margin-top: var(--jdwealth-space-1);
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-body-small);
  line-height: var(--jdwealth-font-line-height-normal);
}

/* Records form a single, deliberately quiet list. Expanding a row adds a
 * modest tone and edge rather than a second floating card. */
.lu-financial-records {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-panel);
  background: var(--jdwealth-color-surface);
  box-shadow: none;
}

.lu-financial-card {
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--jdwealth-color-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition:
    background-color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    border-color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease);
}

.lu-financial-card:last-child {
  border-bottom: 0;
}

.lu-financial-card[data-expanded="true"] {
  background: color-mix(
    in srgb,
    var(--jdwealth-color-action-soft) 44%,
    var(--jdwealth-color-surface)
  );
  box-shadow: inset 0.2rem 0 0 var(--jdwealth-color-action);
}

.lu-financial-card-trigger {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--jdwealth-space-4);
  min-height: 4.25rem;
  padding: var(--jdwealth-space-3) var(--jdwealth-space-5);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  transition: background-color var(--jdwealth-motion-quick)
    var(--jdwealth-motion-ease);
}

.lu-financial-card-trigger:hover {
  background: color-mix(
    in srgb,
    var(--jdwealth-color-action-soft) 52%,
    transparent
  );
}

.lu-financial-card-trigger:focus-visible {
  outline: 2px solid var(--jdwealth-color-action);
  outline-offset: -2px;
}

.lu-financial-card-trigger[aria-expanded="true"] {
  background: transparent;
  box-shadow: none;
}

.lu-financial-card-copy,
.lu-financial-card-side {
  display: flex;
  align-items: center;
  gap: var(--jdwealth-space-3);
}

.lu-financial-card-copy {
  min-width: 0;
  flex-wrap: wrap;
}

.lu-financial-card-copy > strong {
  order: -2;
  font-family: var(--jdwealth-font-display);
  font-size: var(--jdwealth-font-size-lead);
  font-weight: 600;
  line-height: var(--jdwealth-font-line-height-snug);
  letter-spacing: var(--jdwealth-font-tracking-subtle);
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.lu-financial-card-badges {
  order: -1;
}

.lu-financial-card-description {
  display: -webkit-box;
  overflow: hidden;
  max-width: 36rem;
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-body-small);
  line-height: var(--jdwealth-font-line-height-normal);
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.lu-financial-card-side > span:first-child {
  min-width: 8rem;
  text-align: right;
}

.lu-financial-card-side > span:first-child strong {
  font-size: var(--jdwealth-font-size-lead);
}

.lu-financial-card-action {
  display: inline-flex;
  align-items: center;
  gap: var(--jdwealth-space-2);
  color: var(--jdwealth-color-accent-text);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: 600;
}

.lu-financial-card-action svg {
  width: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.lu-financial-card-editor {
  padding: var(--jdwealth-space-4) var(--jdwealth-space-5)
    var(--jdwealth-space-5);
  border-top: 1px solid var(--jdwealth-color-line);
  background: transparent;
  animation: jdwealth-financial-disclosure-in var(--jdwealth-motion-deliberate)
    var(--jdwealth-motion-ease) both;
}

.lu-financial-editor-inline {
  max-width: var(--jdwealth-control-form-maximum);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lu-financial-editor-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--jdwealth-space-4);
  row-gap: var(--jdwealth-space-3);
}

.lu-financial-editor-fields .lu-form-field:first-child,
.lu-financial-editor-fields .lu-form-field:last-child {
  grid-column: 1 / -1;
}

.lu-financial-editor-footer {
  align-items: center;
  gap: var(--jdwealth-space-3);
}

/* Keep the financial rules self-contained: the generic responsive fragment
 * also covers these selectors, so feature-qualified rules intentionally win. */
@media (max-width: 820px) {
  .lu-portal-page:is(
      [data-portal-feature="assets-liabilities"],
      [data-portal-feature="cashflow"]
    )
    .lu-financial-summary
    .lu-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lu-portal-page:is(
      [data-portal-feature="assets-liabilities"],
      [data-portal-feature="cashflow"]
    )
    .lu-financial-summary
    .lu-metric[data-financial-outcome] {
    grid-column: 1 / -1;
    border-inline-start: 0;
    border-bottom: 1px solid var(--jdwealth-color-line);
  }
}

@media (max-width: 620px) {
  .lu-financial-segmented-control {
    width: 100%;
  }

  .lu-financial-segmented-control button {
    padding-inline: var(--jdwealth-space-2);
    font-size: var(--jdwealth-font-size-label);
  }

  .lu-portal-page:is(
      [data-portal-feature="assets-liabilities"],
      [data-portal-feature="cashflow"]
    )
    .lu-financial-summary
    .lu-metrics {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .lu-portal-page:is(
      [data-portal-feature="assets-liabilities"],
      [data-portal-feature="cashflow"]
    )
    .lu-financial-summary
    .lu-metric {
    min-height: 0;
    padding: var(--jdwealth-space-3-5);
  }

  .lu-portal-page:is(
      [data-portal-feature="assets-liabilities"],
      [data-portal-feature="cashflow"]
    )
    .lu-financial-collection-heading {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: var(--jdwealth-space-3);
  }

  .lu-portal-page:is(
      [data-portal-feature="assets-liabilities"],
      [data-portal-feature="cashflow"]
    )
    .lu-financial-heading-actions,
  .lu-portal-page:is(
      [data-portal-feature="assets-liabilities"],
      [data-portal-feature="cashflow"]
    )
    .lu-financial-heading-actions
    .lu-primary-button {
    width: auto;
  }

  .lu-financial-card-trigger {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--jdwealth-space-2);
    padding: var(--jdwealth-space-3-5);
  }

  .lu-financial-card-copy {
    display: grid;
    gap: var(--jdwealth-space-1);
  }

  .lu-financial-card-description,
  .lu-financial-card-action > :last-child {
    display: none;
  }

  .lu-financial-card-side {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    text-align: left;
  }

  .lu-financial-card-side > span:first-child {
    min-width: 0;
    text-align: left;
  }

  .lu-financial-card-action svg {
    width: 1.2rem;
  }

  .lu-financial-editor-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .lu-financial-editor-footer {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr);
  }
}

@keyframes jdwealth-financial-disclosure-in {
  from {
    opacity: 0;
    transform: translateY(-0.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Source: consumer/styles/portal/35-booking.css */
/* Booking is a JD Wealth service workspace: the same calm rail, type and
 * controls as the financial pages, with the live-calendar boundary intact. */
.lu-portal-page[data-portal-feature="booking"] {
  width: calc(100% - var(--jdwealth-space-8));
  max-width: var(--jdwealth-control-workspace-maximum);
  margin-inline: auto;
  gap: var(--jdwealth-space-4);
}

.lu-portal-page[data-portal-feature="booking"] .lu-feature-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: clamp(8.5rem, 14vw, 11rem);
  align-items: center;
  gap: var(--jdwealth-space-5);
  border-color: var(--jdwealth-color-border-soft);
  border-radius: var(--jdwealth-radius-card);
  background:
    linear-gradient(
      112deg,
      color-mix(in srgb, var(--jdwealth-color-action) 8%, var(--jdwealth-color-surface)) 0%,
      var(--jdwealth-color-surface) 42%,
      color-mix(in srgb, var(--jdwealth-color-brand-pale-blue) 24%, var(--jdwealth-color-surface)) 100%
    );
  box-shadow: none;
  padding: var(--jdwealth-space-4) var(--jdwealth-space-5);
  color: var(--jdwealth-color-text);
}

.lu-portal-page[data-portal-feature="booking"] .lu-feature-hero h1 {
  margin: var(--jdwealth-space-1) 0 0;
  font-size: var(--jdwealth-font-size-section);
  line-height: var(--jdwealth-font-line-height-solid);
  letter-spacing: var(--jdwealth-font-tracking-display);
}

.lu-portal-page[data-portal-feature="booking"] .lu-feature-context {
  max-width: 28rem;
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-body);
  line-height: var(--jdwealth-font-line-height-relaxed);
}

.lu-booking-catalog,
.lu-booking-catalog-fallback {
  border-color: var(--jdwealth-color-border-soft);
  border-radius: var(--jdwealth-radius-card);
  background: var(--jdwealth-color-surface);
  box-shadow: none;
  padding: var(--jdwealth-space-fluid-section);
}

.lu-booking-catalog-heading {
  gap: var(--jdwealth-space-4) var(--jdwealth-space-fluid-section);
}

.lu-booking-catalog-heading h2,
.lu-booking-catalog-fallback h2 {
  color: var(--jdwealth-color-text);
  font-size: var(--jdwealth-font-size-title);
  line-height: var(--jdwealth-font-line-height-solid);
  letter-spacing: var(--jdwealth-font-tracking-display);
}

.lu-booking-catalog-heading > p,
.lu-booking-catalog-fallback p,
.lu-booking-service-card p,
.lu-booking-catalog-note {
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-body);
  line-height: var(--jdwealth-font-line-height-relaxed);
}

.lu-booking-service-grid {
  gap: var(--jdwealth-space-4);
}

.lu-booking-service-card {
  gap: var(--jdwealth-space-4);
  border-color: var(--jdwealth-color-border-soft);
  border-radius: var(--jdwealth-radius-card);
  background: var(--jdwealth-color-surface-strong);
  box-shadow: none;
  padding: var(--jdwealth-space-4);
}

.lu-booking-service-card h3 {
  color: var(--jdwealth-color-text);
  font-size: var(--jdwealth-font-size-section);
  letter-spacing: var(--jdwealth-font-tracking-heading);
}

.lu-booking-service-duration {
  color: var(--jdwealth-color-action-strong);
  font-weight: var(--jdwealth-font-weight-semibold);
}

.lu-booking-service-card dl {
  gap: var(--jdwealth-space-3);
}

.lu-booking-service-card dl > div {
  border-color: var(--jdwealth-color-border-soft);
  padding-top: var(--jdwealth-space-3);
}

.lu-booking-service-card dt {
  color: var(--jdwealth-color-muted);
  font-weight: var(--jdwealth-font-weight-semibold);
}

.lu-booking-service-card dd {
  color: var(--jdwealth-color-text);
  font-size: var(--jdwealth-font-size-body);
  font-weight: var(--jdwealth-font-weight-medium);
}

.lu-booking-service-card .lu-primary-button,
.lu-booking-catalog-fallback .lu-primary-button {
  min-height: var(--jdwealth-control-minimum-target);
  border-radius: var(--jdwealth-radius-control);
  background: var(--jdwealth-color-action);
  color: var(--jdwealth-color-on-solid);
  padding-inline: var(--jdwealth-space-4);
}

.lu-booking-service-card .lu-primary-button:hover,
.lu-booking-catalog-fallback .lu-primary-button:hover {
  background: var(--jdwealth-color-action-strong);
}

.lu-booking-catalog-note {
  border-top: 1px solid var(--jdwealth-color-border-soft);
  padding-top: var(--jdwealth-space-4);
}

.lu-booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--jdwealth-color-border-soft);
  border-radius: var(--jdwealth-radius-card);
  background: var(--jdwealth-color-surface);
}

.lu-booking-workflow,
.lu-booking-summary,
.lu-booking-success {
  border: 1px solid var(--jdwealth-color-border-soft);
  border-radius: var(--jdwealth-radius-card);
  background: var(--jdwealth-color-surface);
  box-shadow: none;
}

.lu-booking-workflow {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.lu-booking-workflow:has(> .lu-booking-selected-service) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.lu-booking-workflow:has(> .lu-booking-selected-service) > .lu-booking-selected-service,
.lu-booking-workflow:has(> .lu-booking-selected-service) > .lu-booking-step:nth-of-type(n) {
  grid-column: 1;
}

.lu-booking-step {
  margin: 0;
  border: 0;
  min-width: 0;
  gap: var(--jdwealth-space-3-5);
  padding: var(--jdwealth-space-4) var(--jdwealth-space-5);
}

.lu-booking-step + .lu-booking-step {
  border-top: 0;
}

.lu-booking-selected-service {
  position: relative;
  background:
    linear-gradient(
      100deg,
      color-mix(in srgb, var(--jdwealth-color-action) 9%, var(--jdwealth-color-surface)) 0%,
      var(--jdwealth-color-surface) 58%
    );
  padding: var(--jdwealth-space-4) var(--jdwealth-space-6);
}

.lu-booking-selected-service::before {
  position: absolute;
  inset: var(--jdwealth-space-4) auto var(--jdwealth-space-4) 0;
  width: 3px;
  border-radius: var(--jdwealth-radius-pill);
  background: var(--jdwealth-color-action);
  content: "";
}

.lu-booking-selected-service h2 {
  margin: var(--jdwealth-space-1) 0;
  color: var(--jdwealth-color-text);
  font-size: var(--jdwealth-font-size-title);
  letter-spacing: var(--jdwealth-font-tracking-heading);
}

.lu-booking-selected-service p:last-child {
  margin: 0;
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-body);
}

.lu-booking-step legend {
  display: inline-flex;
  align-items: center;
  gap: var(--jdwealth-space-2-5);
  color: var(--jdwealth-color-text);
  font-size: var(--jdwealth-font-size-body);
  font-weight: var(--jdwealth-font-weight-semibold);
  letter-spacing: var(--jdwealth-font-tracking-subtle);
}

.lu-booking-step legend > span {
  display: inline-grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--jdwealth-color-action) 45%, var(--jdwealth-color-border));
  border-radius: 50%;
  background: color-mix(in srgb, var(--jdwealth-color-action) 9%, var(--jdwealth-color-surface));
  color: var(--jdwealth-color-action-strong);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: var(--jdwealth-font-weight-bold);
}

.lu-booking-options,
.lu-booking-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: var(--jdwealth-space-3);
  margin-top: var(--jdwealth-space-2);
}

.lu-booking-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lu-booking-slots {
  grid-template-columns: repeat(auto-fill, minmax(7.25rem, 1fr));
  align-content: start;
}

.lu-booking-option,
.lu-booking-slot {
  min-height: var(--jdwealth-control-minimum-target);
  border: 1px solid var(--jdwealth-color-border);
  border-radius: var(--jdwealth-radius-control);
  background: var(--jdwealth-color-surface-strong);
  color: var(--jdwealth-color-text);
  padding: var(--jdwealth-space-3) var(--jdwealth-space-4);
  cursor: pointer;
  transition:
    border-color var(--jdwealth-motion-standard) var(--jdwealth-motion-ease),
    background var(--jdwealth-motion-standard) var(--jdwealth-motion-ease),
    transform var(--jdwealth-motion-quick) var(--jdwealth-motion-ease);
}

.lu-portal-page[data-portal-feature="booking"] .lu-booking-option > span,
.lu-portal-page[data-portal-feature="booking"] .lu-booking-slot > span {
  min-height: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.lu-portal-page[data-portal-feature="booking"] .lu-booking-option > span {
  display: grid;
  gap: var(--jdwealth-space-1);
}

.lu-booking-option:hover,
.lu-booking-slot[data-available="true"]:hover {
  border-color: color-mix(in srgb, var(--jdwealth-color-action) 65%, var(--jdwealth-color-border));
  background: color-mix(
    in srgb,
    var(--jdwealth-color-action) 6%,
    var(--jdwealth-color-surface-strong)
  );
  transform: translateY(-1px);
}

.lu-booking-option > span,
.lu-booking-slot > span {
  gap: var(--jdwealth-space-1);
}

.lu-booking-slot[data-available="false"] {
  display: none;
}

.lu-booking-slot[data-available="true"] {
  display: grid;
  min-height: 2.85rem;
  place-items: center;
  padding: var(--jdwealth-space-2) var(--jdwealth-space-3);
  text-align: center;
}

.lu-booking-slot[data-available="true"] > span {
  min-height: 0;
  padding: 0;
}

.lu-booking-slot[data-available="true"] small {
  display: none;
}

.lu-booking-slot[data-available="true"] strong::after {
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  margin-left: var(--jdwealth-space-2);
  border-radius: 50%;
  background: var(--jdwealth-color-action);
  content: "";
  vertical-align: middle;
}

.lu-booking-error .lu-secondary-button,
.lu-booking-workflow:has(> .lu-booking-selected-service)
  > .lu-booking-step:nth-of-type(4)
  .lu-form-field
  > small {
  display: none;
}

.lu-booking-option:has(input:checked),
.lu-booking-slot:has(input:checked) {
  border-color: var(--jdwealth-color-action-strong);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-action) 14%,
    var(--jdwealth-color-surface-strong)
  );
  box-shadow: var(--jdwealth-shadow-focus);
}

.lu-portal-page[data-portal-feature="booking"]
  :is(.lu-booking-option, .lu-booking-slot):has(input:checked)
  :is(span, strong, small) {
  color: var(--jdwealth-color-text);
}

.lu-booking-summary {
  position: relative;
  top: auto;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-top: 1px solid var(--jdwealth-color-border-soft);
  border-radius: 0;
  background: color-mix(
    in srgb,
    var(--jdwealth-color-action) 4%,
    var(--jdwealth-color-surface)
  );
  padding: var(--jdwealth-space-5);
}

.lu-booking-summary::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--jdwealth-color-action),
    var(--jdwealth-color-brand-blue)
  );
  content: "";
}

.lu-booking-summary h2 {
  margin: var(--jdwealth-space-2) 0 var(--jdwealth-space-4);
  font-size: var(--jdwealth-font-size-section);
  line-height: var(--jdwealth-font-line-height-solid);
  letter-spacing: var(--jdwealth-font-tracking-heading);
}

.lu-booking-summary dl {
  display: grid;
  gap: 0;
}

.lu-booking-summary dl > div {
  border-bottom: 1px solid var(--jdwealth-color-border-soft);
  padding-block: var(--jdwealth-space-2-5);
}

.lu-booking-summary dt {
  margin-bottom: var(--jdwealth-space-1);
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: var(--jdwealth-font-weight-semibold);
  letter-spacing: var(--jdwealth-font-tracking-label);
  text-transform: uppercase;
}

.lu-booking-summary dd {
  color: var(--jdwealth-color-text);
  font-size: var(--jdwealth-font-size-body);
  font-weight: var(--jdwealth-font-weight-semibold);
  line-height: var(--jdwealth-font-line-height-snug);
}

.lu-booking-summary .lu-primary-button {
  width: 100%;
  min-height: 3.25rem;
  margin-top: var(--jdwealth-space-1);
  border-radius: var(--jdwealth-radius-control);
  box-shadow: var(--jdwealth-shadow-action);
}

.lu-booking-summary .lu-primary-button:disabled {
  box-shadow: none;
}

.lu-booking-calendar {
  width: 100%;
  max-width: none;
  margin-top: var(--jdwealth-space-2);
  border: 1px solid var(--jdwealth-color-border-soft);
  border-radius: var(--jdwealth-radius-card);
  background: var(--jdwealth-color-surface-strong);
  padding: var(--jdwealth-space-4);
}

.lu-booking-calendar-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--jdwealth-space-4);
  padding-bottom: var(--jdwealth-space-3);
  border-bottom: 1px solid var(--jdwealth-color-border-soft);
}

.lu-booking-calendar-intro > div:first-child {
  display: grid;
  gap: var(--jdwealth-space-1);
}

.lu-booking-calendar-intro strong {
  color: var(--jdwealth-color-text);
  font-family: var(--jdwealth-font-display);
  font-size: var(--jdwealth-font-size-subheading);
  letter-spacing: var(--jdwealth-font-tracking-subtle);
}

.lu-booking-calendar-intro > div:first-child span,
.lu-booking-calendar-status {
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
}

.lu-booking-calendar-key {
  display: flex;
  flex-wrap: wrap;
  gap: var(--jdwealth-space-3);
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
}

.lu-booking-calendar-key span {
  display: inline-flex;
  align-items: center;
  gap: var(--jdwealth-space-1);
}

.lu-booking-calendar-key span::before {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--jdwealth-color-muted) 32%, transparent);
  content: "";
}

.lu-booking-calendar-key span[data-state="available"]::before {
  background: var(--jdwealth-color-action);
}

.lu-booking-calendar-months {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  align-items: start;
  gap: var(--jdwealth-space-5);
  padding-top: var(--jdwealth-space-4);
}

.lu-booking-calendar-month {
  min-width: 0;
}

.lu-booking-calendar-month + .lu-booking-calendar-month {
  padding-left: var(--jdwealth-space-5);
  border-left: 1px solid var(--jdwealth-color-border-soft);
}

.lu-booking-calendar-heading {
  min-height: var(--jdwealth-control-minimum-target);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--jdwealth-space-1);
  text-align: center;
}

.lu-booking-calendar-heading strong {
  font-size: var(--jdwealth-font-size-subheading);
  letter-spacing: var(--jdwealth-font-tracking-subtle);
}

.lu-booking-calendar-grid button {
  min-width: var(--jdwealth-control-minimum-target);
  min-height: var(--jdwealth-control-minimum-target);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--jdwealth-color-text);
  cursor: pointer;
  transition:
    background var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    transform var(--jdwealth-motion-quick) var(--jdwealth-motion-ease);
}

.lu-booking-calendar-grid button[data-available="true"]:not([aria-pressed="true"]):hover {
  background: color-mix(
    in srgb,
    var(--jdwealth-color-action) 10%,
    var(--jdwealth-color-surface-strong)
  );
  transform: translateY(-1px);
}

.lu-booking-calendar-weekdays,
.lu-booking-calendar-grid {
  display: grid;
  gap: var(--jdwealth-space-1);
}

.lu-booking-calendar-weekdays span {
  padding-block: var(--jdwealth-space-2);
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: var(--jdwealth-font-weight-semibold);
  text-align: center;
}

.lu-booking-calendar-grid > span {
  display: grid;
  min-height: var(--jdwealth-control-minimum-target);
  place-items: center;
}

.lu-booking-calendar-grid button {
  aspect-ratio: 1;
  justify-self: center;
  font-size: var(--jdwealth-font-size-body);
  font-weight: var(--jdwealth-font-weight-medium);
}

.lu-booking-calendar-grid button:disabled {
  background: color-mix(
    in srgb,
    var(--jdwealth-color-muted) 7%,
    var(--jdwealth-color-surface-strong)
  );
  color: color-mix(in srgb, var(--jdwealth-color-muted) 54%, transparent);
  cursor: not-allowed;
}

.lu-booking-calendar-grid button[data-loading="true"] {
  color: transparent;
  cursor: progress;
}

.lu-booking-calendar-grid button[aria-pressed="true"] {
  background: var(--jdwealth-color-action);
  color: var(--jdwealth-color-on-solid);
  box-shadow: var(--jdwealth-shadow-focus);
}

.lu-booking-calendar-status {
  margin: var(--jdwealth-space-3) 0 0;
  text-align: center;
}

.lu-booking-calendar-status.is-error {
  color: var(--jdwealth-color-danger);
}

.lu-booking-calendar-timezone {
  display: inline-flex;
  align-items: center;
  gap: var(--jdwealth-space-2);
  margin: var(--jdwealth-space-3) 0 0;
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
}

.lu-booking-calendar-timezone::before {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--jdwealth-color-brand-blue);
  content: "";
}

@media (max-width: 860px) {
  .lu-portal-page[data-portal-feature="booking"] {
    width: calc(100% - var(--jdwealth-space-4));
  }

  .lu-portal-page[data-portal-feature="booking"] .lu-feature-hero,
  .lu-booking-catalog-heading,
  .lu-booking-catalog-fallback,
  .lu-booking-service-grid,
  .lu-booking {
    grid-template-columns: minmax(0, 1fr);
  }

  .lu-booking-workflow:has(> .lu-booking-selected-service) > .lu-booking-selected-service,
  .lu-booking-workflow:has(> .lu-booking-selected-service) > .lu-booking-step:nth-of-type(n) {
    grid-column: 1;
    border-left: 0;
  }

  .lu-booking-summary {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 560px) {
  .lu-booking-step {
    gap: var(--jdwealth-space-3);
    padding: var(--jdwealth-space-4);
  }

  .lu-booking-selected-service {
    padding: var(--jdwealth-space-4) var(--jdwealth-space-5);
  }

  .lu-booking-options {
    gap: var(--jdwealth-space-2);
  }

  .lu-booking-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--jdwealth-space-2);
  }

  .lu-booking-calendar {
    width: 100%;
    padding: var(--jdwealth-space-3);
  }

  .lu-booking-calendar-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--jdwealth-space-2);
  }

  .lu-booking-calendar-months {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--jdwealth-space-4);
  }

  .lu-booking-calendar-month + .lu-booking-calendar-month {
    padding-top: var(--jdwealth-space-4);
    padding-left: 0;
    border-top: 1px solid var(--jdwealth-color-border-soft);
    border-left: 0;
  }

  .lu-booking-slot[data-available="true"] {
    min-height: var(--jdwealth-control-minimum-target);
    justify-content: center;
    padding: var(--jdwealth-space-2) var(--jdwealth-space-3);
    text-align: center;
  }

  .lu-booking-option {
    padding: var(--jdwealth-space-2-5) var(--jdwealth-space-3);
  }

  .lu-booking-summary {
    padding: var(--jdwealth-space-4);
  }
}

@media (max-width: 420px) {
  .lu-booking-calendar {
    padding-inline: var(--jdwealth-space-2);
  }
}

/* Source: consumer/styles/portal/40-goals.css */
/* Goals: calm, scan-friendly records with a focused direct-edit state. */
.lu-portal-page[data-portal-feature="goals"] > .lu-goals-workspace {
  display: contents;
}

.lu-goals-heading {
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  align-self: center;
  padding: 0;
}

.lu-goals-heading h2 {
  font-size: var(--jdwealth-font-size-section);
}

.lu-goal-cards {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--jdwealth-space-3);
}

.lu-portal-page[data-portal-feature="goals"] .lu-goal-card {
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-color: var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-card);
  background: var(--jdwealth-color-surface);
  box-shadow: none;
}

/* The pinned kit still renders the original two-part goal card while the
 * consumer also supports the newer disclosure contract. Keep both shapes
 * intentional instead of letting the shared width rules collapse the title. */
.lu-portal-page[data-portal-feature="goals"]
  .lu-goal-card:not(.lu-goal-card-disclosure) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: clamp(var(--jdwealth-space-3-5), 1.6vw, var(--jdwealth-space-4-5));
}

.lu-portal-page[data-portal-feature="goals"]
  .lu-goal-card:not(.lu-goal-card-disclosure)
  > .lu-goal-card-main {
  width: auto;
}

.lu-portal-page[data-portal-feature="goals"]
  .lu-goal-card:not(.lu-goal-card-disclosure)
  > .lu-goal-card-side {
  width: auto;
  min-width: min(19rem, 38vw);
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.lu-portal-page[data-portal-feature="goals"]
  .lu-goal-card:not(.lu-goal-card-disclosure)
  .lu-goal-card-main
  > p {
  display: none;
}

.lu-portal-page[data-portal-feature="goals"] .lu-goal-card h2 {
  font-size: var(--jdwealth-font-size-lead);
  line-height: var(--jdwealth-font-line-height-snug);
}

.lu-portal-page[data-portal-feature="goals"] .lu-goal-card-side strong {
  font-size: var(--jdwealth-font-size-subheading);
}

.lu-goal-card-summary-item[data-field-id="priority"][data-field-value="High"]
  > :last-child {
  color: color-mix(
    in srgb,
    var(--jdwealth-color-danger) 78%,
    var(--jdwealth-color-text)
  );
}

.lu-goal-card-disclosure {
  display: block;
  scroll-margin-top: var(--jdwealth-space-18);
  transition:
    border-color var(--jdwealth-motion-standard) var(--jdwealth-motion-ease),
    box-shadow var(--jdwealth-motion-standard) var(--jdwealth-motion-ease),
    background-color var(--jdwealth-motion-standard) var(--jdwealth-motion-ease);
}

.lu-goal-card-disclosure[data-expanded="true"] {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-action) 42%,
    var(--jdwealth-color-line)
  );
  background: color-mix(
    in srgb,
    var(--jdwealth-color-action-soft) 28%,
    var(--jdwealth-color-surface)
  );
  /* Selection is an edge treatment, not a second floating card. */
  box-shadow: var(--jdwealth-shadow-accent-edge);
}

.lu-goal-card-trigger {
  display: grid;
  grid-template-columns: minmax(14rem, 1.2fr) minmax(0, 2.8fr);
  gap: clamp(var(--jdwealth-space-4), 2.2vw, var(--jdwealth-space-8));
  align-items: center;
  width: 100%;
  min-height: 5rem;
  padding: var(--jdwealth-space-4)
    clamp(var(--jdwealth-space-4), 2.2vw, var(--jdwealth-space-6));
  border: 0;
  background: transparent;
  color: var(--jdwealth-color-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--jdwealth-motion-standard)
    var(--jdwealth-motion-ease);
}

.lu-goal-card-trigger:hover {
  background: color-mix(in srgb, var(--jdwealth-color-action) 5%, transparent);
}

.lu-goal-card-trigger:focus-visible {
  outline: 2px solid var(--jdwealth-color-action);
  outline-offset: -3px;
}

.lu-goal-card-trigger:disabled {
  cursor: wait;
  opacity: 0.65;
}

.lu-goal-card-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--jdwealth-font-display);
  font-size: var(--jdwealth-font-size-lead);
  font-weight: 600;
  line-height: var(--jdwealth-font-line-height-snug);
  letter-spacing: var(--jdwealth-font-tracking-heading);
  text-wrap: pretty;
}

.lu-goal-card-summary {
  display: grid;
  /* The current public summary contract supplies priority and target amount.
   * Do not reserve empty columns for category/date that it does not expose. */
  grid-template-columns: minmax(6.5rem, 0.8fr) minmax(8rem, 1fr) auto;
  gap: clamp(var(--jdwealth-space-3), 1.8vw, var(--jdwealth-space-5-5));
  align-items: center;
  min-width: 0;
}

.lu-goal-card-summary-item {
  display: grid;
  gap: var(--jdwealth-space-1);
  min-width: 0;
}

.lu-goal-card-summary-item + .lu-goal-card-summary-item {
  padding-inline-start: clamp(var(--jdwealth-space-3), 1.8vw, var(--jdwealth-space-5));
  border-inline-start: 1px solid var(--jdwealth-color-line);
}

.lu-goal-card-summary-item small {
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: 700;
  line-height: var(--jdwealth-font-line-height-tight);
  letter-spacing: var(--jdwealth-font-tracking-label);
  text-transform: uppercase;
}

/* The overlay's longer questions remain available to assistive technology;
 * the summary only needs concise scan labels. */
.lu-goal-card-summary-item[data-field-id="priority"] small {
  font-size: 0;
}

.lu-goal-card-summary-item[data-field-id="priority"] small::after {
  content: "Priority";
  font-size: var(--jdwealth-font-size-caption);
}

.lu-goal-card-summary-amount small {
  font-size: 0;
}

.lu-goal-card-summary-amount small::after {
  content: "Target";
  font-size: var(--jdwealth-font-size-caption);
}

.lu-goal-card-summary-item > :last-child {
  overflow: hidden;
  color: var(--jdwealth-color-text);
  font-size: var(--jdwealth-font-size-body-small);
  font-weight: var(--jdwealth-font-weight-semibold);
  line-height: var(--jdwealth-font-line-height-snug);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lu-goal-card-summary-amount > strong {
  color: var(--jdwealth-color-accent-text);
  font-size: var(--jdwealth-font-size-body);
  letter-spacing: var(--jdwealth-font-tracking-subtle);
}

.lu-goal-card-action {
  display: inline-grid;
  grid-template-columns: 1rem auto;
  gap: var(--jdwealth-space-1-5);
  align-items: center;
  justify-self: end;
  color: var(--jdwealth-color-accent-text);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: var(--jdwealth-font-weight-bold);
  white-space: nowrap;
}

.lu-goal-card-action > span {
  font-size: 0;
}

.lu-goal-card-action > span::after {
  content: "Edit";
  font-size: var(--jdwealth-font-size-caption);
}

.lu-goal-card-disclosure[data-expanded="true"] .lu-goal-card-action > span::after {
  content: "Close";
}

.lu-goal-card-action svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform var(--jdwealth-motion-standard)
    var(--jdwealth-motion-ease);
}

.lu-goal-card-disclosure[data-expanded="true"] .lu-goal-card-action svg {
  transform: rotate(180deg);
}

.lu-goal-card-editor {
  border-top: 1px solid var(--jdwealth-color-line);
  background: transparent;
}

.lu-goal-editor-inline {
  padding: clamp(var(--jdwealth-space-4), 2.2vw, var(--jdwealth-space-6));
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lu-goal-editor-heading {
  align-items: center;
  gap: var(--jdwealth-space-4);
  padding-bottom: var(--jdwealth-space-1);
}

.lu-goal-editor-heading > div {
  min-width: 0;
}

.lu-goal-editor-heading h2 {
  max-width: 42rem;
  overflow-wrap: anywhere;
}

/* Close is the non-destructive exit from an edit; keep it distinct from the
 * destructive remove action in the footer. */
.lu-goal-editor-heading > .lu-text-button {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding-inline: var(--jdwealth-space-3);
  border: 1px solid var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-control);
  color: var(--jdwealth-color-text);
}

/* The renderer supplies nine fields in a fixed, accessible DOM order. Keep
 * that order, while using the available width to make the core data faster to
 * review and edit on desktop. */
.lu-goal-editor-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--jdwealth-space-4);
}

.lu-goal-editor-fields .lu-form-field:first-child,
.lu-goal-editor-fields .lu-form-field:nth-child(2) {
  grid-column: span 2;
}

.lu-goal-editor-fields .lu-form-field:nth-child(7) {
  grid-column: span 2;
}

/* Keep the source labels for screen readers but shorten only the visual
 * treatment in this compact editor. Required fields retain an explicit mark. */
.lu-goal-editor-fields > .lu-form-field > span {
  font-size: 0;
  line-height: var(--jdwealth-font-line-height-snug);
}

.lu-goal-editor-fields > .lu-form-field > span::before,
.lu-goal-editor-fields > .lu-form-field > span::after {
  font-size: var(--jdwealth-font-size-label);
  font-weight: var(--jdwealth-font-weight-semibold);
}

.lu-goal-editor-fields > .lu-form-field:nth-child(1) > span::before {
  content: "Goal";
}

.lu-goal-editor-fields > .lu-form-field:nth-child(2) > span::before {
  content: "Description";
}

.lu-goal-editor-fields > .lu-form-field:nth-child(3) > span::before {
  content: "Category";
}

.lu-goal-editor-fields > .lu-form-field:nth-child(4) > span::before {
  content: "Priority";
}

.lu-goal-editor-fields > .lu-form-field:nth-child(5) > span::before {
  content: "Target date";
}

.lu-goal-editor-fields > .lu-form-field:nth-child(6) > span::before {
  content: "Already saved";
}

.lu-goal-editor-fields > .lu-form-field:nth-child(7) > span::before {
  content: "Target amount";
}

.lu-goal-editor-fields > .lu-form-field:nth-child(8) > span::before {
  content: "Funding source";
}

.lu-goal-editor-fields > .lu-form-field:nth-child(9) > span::before {
  content: "Contribution frequency";
}

.lu-goal-editor-fields > .lu-form-field:is(:first-child, :nth-child(4)) > span::after {
  content: " *";
  color: var(--jdwealth-color-danger);
}

.lu-goal-editor-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--jdwealth-space-4);
  padding-top: var(--jdwealth-space-4);
}

.lu-goal-editor-footer > div {
  min-width: 0;
}

.lu-goal-editor-footer > div > p {
  margin: 0;
  font-size: var(--jdwealth-font-size-caption);
  line-height: var(--jdwealth-font-line-height-normal);
}

.lu-goal-editor-footer > .lu-primary-button {
  min-width: 9.5rem;
}

.lu-goal-editor-footer .lu-text-button {
  padding-inline: 0;
  color: var(--jdwealth-color-danger);
}

.lu-goal-archive-confirm {
  justify-items: start;
  gap: var(--jdwealth-space-2);
  margin-top: var(--jdwealth-space-3);
  padding: var(--jdwealth-space-3) 0 0 var(--jdwealth-space-3);
  border-top: 0;
  border-inline-start: 2px solid color-mix(
    in srgb,
    var(--jdwealth-color-danger) 50%,
    var(--jdwealth-color-line)
  );
}

.lu-goal-archive-confirm p {
  max-width: 34rem;
}

.lu-goal-archive-confirm .lu-danger-button {
  min-width: 8.5rem;
}

.lu-portal-page[data-portal-feature="goals"] .lu-goal-card h2 {
  margin-top: 0;
  font-size: var(--jdwealth-font-size-subheading);
  line-height: var(--jdwealth-font-line-height-tight);
  letter-spacing: var(--jdwealth-font-tracking-heading);
}

.lu-goal-card-main,
.lu-goal-card-side {
  width: 100%;
}

.lu-goal-pills {
  gap: var(--jdwealth-space-2);
  margin-top: var(--jdwealth-space-4-5);
}

.lu-portal-page[data-portal-feature="goals"] .lu-goal-pills > span {
  padding: var(--jdwealth-space-1-5) var(--jdwealth-space-2-5);
  letter-spacing: var(--jdwealth-font-tracking-label);
  text-transform: none;
}

.lu-portal-page[data-portal-feature="goals"]
  .lu-goal-pills
  > span:first-child::before {
  content: "Priority: ";
  color: var(--jdwealth-color-muted);
}

.lu-portal-page[data-portal-feature="goals"]
  .lu-goal-pills
  > span:nth-child(2)::before {
  content: "Goal type: ";
  color: var(--jdwealth-color-muted);
}

.lu-portal-page[data-portal-feature="goals"]
  .lu-goal-pills
  > span:nth-child(3)::before {
  content: "Target: ";
  color: var(--jdwealth-color-muted);
}

.lu-goal-card-side {
  margin-top: auto;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-top: var(--jdwealth-space-6);
  border-top: 1px solid var(--jdwealth-color-line);
}

.lu-goal-card-side .lu-secondary-button {
  min-width: 0;
  min-height: 2.6rem;
  padding-inline: var(--jdwealth-space-3-5);
}

.lu-goal-card-side > div:first-child {
  justify-items: start;
  text-align: left;
}

.lu-portal-page[data-portal-feature="goals"]
  .lu-goal-card-side
  > div:first-child
  > span {
  font-size: 0;
}

.lu-portal-page[data-portal-feature="goals"]
  .lu-goal-card-side
  > div:first-child
  > span::after {
  content: "Target amount";
  font-size: var(--jdwealth-font-size-caption);
}

.lu-portal-page[data-portal-feature="goals"] .lu-goal-card-side strong {
  font-size: var(--jdwealth-font-size-section);
}

.lu-portal-page[data-portal-feature="goals"]
  :is(.lu-goal-editor, .lu-goals-empty, .lu-financial-status) {
  grid-column: 1 / -1;
}

.lu-goal-editor:not(.lu-goal-editor-inline) {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-action) 36%,
    var(--jdwealth-color-line)
  );
  box-shadow: var(--jdwealth-shadow-accent-edge);
}

@media (max-width: 1080px) {
  .lu-goal-card-trigger {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--jdwealth-space-3);
  }

  .lu-goal-card-summary {
    grid-template-columns: minmax(7rem, 1fr) minmax(8rem, 1fr) auto;
  }

  .lu-goal-editor-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lu-goal-editor-fields .lu-form-field:nth-child(7) {
    grid-column: 1;
  }

  .lu-goal-editor-fields .lu-form-field:nth-child(9) {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .lu-goal-editor-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--jdwealth-space-3-5);
  }

  .lu-goal-editor-fields .lu-form-field,
  .lu-goal-editor-fields .lu-form-field:first-child,
  .lu-goal-editor-fields .lu-form-field:nth-child(2),
  .lu-goal-editor-fields .lu-form-field:nth-child(7),
  .lu-goal-editor-fields .lu-form-field:nth-child(9) {
    grid-column: 1;
  }
}

@media (max-width: 620px) {
  .lu-goal-card:not(.lu-goal-card-disclosure) {
    grid-template-columns: minmax(0, 1fr);
  }

  .lu-goal-card:not(.lu-goal-card-disclosure) > .lu-goal-card-side {
    width: 100%;
    min-width: 0;
    margin-top: var(--jdwealth-space-4);
    padding-top: var(--jdwealth-space-4);
    border-top: 1px solid var(--jdwealth-color-line);
  }

  .lu-goal-card-trigger {
    min-height: 4.5rem;
    padding: var(--jdwealth-space-4);
  }

  .lu-goal-card-title {
    font-size: var(--jdwealth-font-size-lead);
  }

  .lu-goal-card-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--jdwealth-space-3-5);
  }

  .lu-goal-card-summary-item + .lu-goal-card-summary-item {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .lu-goal-card-action {
    grid-column: 2;
    justify-self: end;
  }

  .lu-goal-editor-inline {
    padding: var(--jdwealth-space-4);
  }

  .lu-goal-editor-heading {
    align-items: flex-start;
  }

  .lu-goal-editor-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--jdwealth-space-3-5);
  }

  .lu-goal-editor-fields .lu-form-field,
  .lu-goal-editor-fields .lu-form-field:first-child,
  .lu-goal-editor-fields .lu-form-field:nth-child(2),
  .lu-goal-editor-fields .lu-form-field:nth-child(7),
  .lu-goal-editor-fields .lu-form-field:nth-child(9) {
    grid-column: 1;
  }

  .lu-goal-editor-footer {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .lu-goal-editor-footer > .lu-primary-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lu-goal-card-disclosure,
  .lu-goal-card-trigger,
  .lu-goal-card-action svg {
    transition: none;
  }
}

/* Source: consumer/styles/portal/50-profile.css */
/* Profile: one calm, centred card with stacked details groups and one disclosed
 * editor at a time. */
.lu-profile-editorial {
  width: calc(100% - var(--jdwealth-space-8));
  max-width: var(--jdwealth-control-form-maximum);
  margin-inline: auto;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-card);
  background: var(--jdwealth-color-surface);
}

.lu-profile-overview {
  gap: var(--jdwealth-space-3);
  padding: clamp(var(--jdwealth-space-5), 2.5vw, var(--jdwealth-space-8));
  border: 0;
  border-radius: 0;
  background: transparent;
}

.lu-profile-overview-heading,
.lu-profile-identity {
  display: flex;
  min-width: 0;
  align-items: center;
}

.lu-profile-overview-heading {
  justify-content: space-between;
  gap: var(--jdwealth-space-5);
}

.lu-profile-identity {
  flex: 1 1 auto;
  gap: var(--jdwealth-space-4);
}

.lu-profile-avatar {
  display: grid;
  width: clamp(3.5rem, 6vw, 4.5rem);
  height: clamp(3.5rem, 6vw, 4.5rem);
  flex: 0 0 auto;
  place-items: center;
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-action) 38%,
    var(--jdwealth-color-line)
  );
  border-radius: var(--jdwealth-radius-pill);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-action-soft) 74%,
    var(--jdwealth-color-surface)
  );
  color: var(--jdwealth-color-accent-text);
  font-size: var(--jdwealth-font-size-lead);
  font-weight: var(--jdwealth-font-weight-semibold);
}

.lu-profile-overview h1 {
  margin: 0;
  color: var(--jdwealth-color-text);
  font-size: var(--jdwealth-font-size-title);
  font-weight: var(--jdwealth-font-weight-regular);
  letter-spacing: var(--jdwealth-font-tracking-display);
  line-height: var(--jdwealth-font-line-height-solid);
}

/* The contact summary below is more useful than repeating the product name. */
.lu-profile-overview h1 + p {
  display: none;
}

.lu-profile-overview-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--jdwealth-space-2);
}

.lu-profile-overview-actions > .lu-primary-button {
  display: none;
}

/* Access controls remain available without competing with the profile action. */
.lu-profile-overview-access {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--jdwealth-space-2);
}

.lu-profile-overview-access > span,
.lu-profile-overview-access .lu-appearance-control legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lu-profile-overview-access .lu-appearance-control {
  width: auto;
}

.lu-profile-overview-access .lu-appearance-control > div {
  min-height: var(--jdwealth-control-minimum-target);
  grid-template-columns: repeat(2, minmax(2.75rem, 1fr));
  border-color: var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-control);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-canvas) 72%,
    var(--jdwealth-color-surface)
  );
  padding: var(--jdwealth-space-1);
}

.lu-profile-overview-access .lu-appearance-control label {
  min-height: calc(var(--jdwealth-control-minimum-target) - 0.4rem);
  border-radius: var(--jdwealth-radius-control);
  font-size: var(--jdwealth-font-size-caption);
}

.lu-profile-overview-access .lu-appearance-control label:has(input:checked) {
  background: var(--jdwealth-color-surface);
  color: var(--jdwealth-color-text);
  box-shadow: var(--jdwealth-shadow-soft);
}

.lu-profile-overview-access .lu-secondary-button {
  min-height: var(--jdwealth-control-minimum-target);
  border-radius: var(--jdwealth-radius-control);
  padding-inline: var(--jdwealth-space-3);
  white-space: nowrap;
}

.lu-profile-overview-access form,
.lu-profile-overview-access form button {
  margin: 0;
}

.lu-profile-overview .lu-feature-editorial-badges {
  align-items: center;
  gap: var(--jdwealth-space-3);
  margin: 0 0 0
    calc(var(--jdwealth-space-18) + var(--jdwealth-space-4));
}

.lu-profile-overview .lu-feature-editorial-badges > span {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-body-small);
  font-weight: var(--jdwealth-font-weight-medium);
  letter-spacing: var(--jdwealth-font-tracking-normal);
  text-transform: none;
}

.lu-profile-overview .lu-feature-editorial-badges > span + span::before {
  content: "";
  width: var(--jdwealth-space-1);
  height: var(--jdwealth-space-1);
  margin-right: var(--jdwealth-space-3);
  border-radius: var(--jdwealth-radius-pill);
  background: var(--jdwealth-color-action);
}

.lu-profile-editorial-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.lu-profile-section-card {
  display: flex;
  min-width: 0;
  min-height: 0;
  height: auto;
  flex-direction: column;
  padding: clamp(var(--jdwealth-space-4), 2vw, var(--jdwealth-space-5));
  border: 0;
  border-top: 1px solid var(--jdwealth-color-line);
  border-radius: 0;
  background: transparent;
}

.lu-profile-section-card:has(> .lu-profile-inline-editor) {
  display: flex;
  grid-column: 1 / -1;
  padding: clamp(var(--jdwealth-space-4), 2vw, var(--jdwealth-space-5));
  border-color: var(--jdwealth-color-line);
  box-shadow: none;
}

/* Editing replaces the selected section values in place. The other profile
 * sections stay visible so opening an editor never turns the page into a
 * separate view. */
.lu-profile-section-card:has(> .lu-profile-inline-editor)
  > .lu-profile-details {
  display: none;
}

.lu-profile-section-heading,
.lu-profile-inline-editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--jdwealth-space-4);
}

.lu-profile-section-heading h2,
.lu-profile-inline-editor-heading h3,
.lu-profile-settings h2 {
  margin: 0;
  color: var(--jdwealth-color-text);
  font-family: var(--jdwealth-font-display);
  font-size: var(--jdwealth-font-size-section);
  font-weight: var(--jdwealth-font-weight-regular);
  letter-spacing: var(--jdwealth-font-tracking-heading);
  line-height: var(--jdwealth-font-line-height-tight);
}

.lu-profile-section-heading .lu-text-button {
  min-height: var(--jdwealth-control-minimum-target);
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: var(--jdwealth-color-accent-text);
  text-decoration: underline;
  text-decoration-color: color-mix(
    in srgb,
    var(--jdwealth-color-action) 42%,
    transparent
  );
  text-underline-offset: 0.2em;
}

.lu-profile-section-heading .lu-text-button:hover {
  background: transparent;
  color: var(--jdwealth-color-text);
  text-decoration-color: currentColor;
}

.lu-profile-card-copy {
  max-width: 62ch;
  margin: var(--jdwealth-space-1-5) 0 0;
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-body-small);
  line-height: var(--jdwealth-font-line-height-normal);
}

/* Read values use the same label/value rhythm as the portal forms. */
.lu-profile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--jdwealth-space-6);
  margin-top: var(--jdwealth-space-4);
}

.lu-profile-details > div {
  display: grid;
  min-width: 0;
  min-height: 3.75rem;
  grid-template-columns: minmax(6.5rem, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: var(--jdwealth-space-3);
  padding: var(--jdwealth-space-2-5) 0;
  border: 0;
  border-top: 1px solid var(--jdwealth-color-line);
  border-radius: 0;
  background: transparent;
}

.lu-profile-details dt {
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-label);
  font-weight: var(--jdwealth-font-weight-medium);
  letter-spacing: var(--jdwealth-font-tracking-normal);
}

.lu-profile-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--jdwealth-color-text);
  font-size: var(--jdwealth-font-size-body-small);
  font-weight: var(--jdwealth-font-weight-medium);
  line-height: var(--jdwealth-font-line-height-snug);
  text-align: left;
}

/* Contact values are longer than personal attributes. Give each one the full
 * section width so email addresses and phone numbers remain scan-friendly. */
.lu-profile-editorial-grid > .lu-profile-section-card:nth-child(2) .lu-profile-details {
  grid-template-columns: minmax(0, 1fr);
}

.lu-profile-editorial-grid
  > .lu-profile-section-card:nth-child(2)
  .lu-profile-details
  > div {
  grid-template-columns: minmax(7.5rem, 0.55fr) minmax(0, 1.45fr);
}

.lu-profile-household-members {
  display: grid;
  gap: var(--jdwealth-space-3);
  margin-top: var(--jdwealth-space-4);
  padding-top: var(--jdwealth-space-4);
  border-top: 1px solid var(--jdwealth-color-line);
}

.lu-profile-household-heading,
.lu-profile-household-heading > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--jdwealth-space-3);
}

.lu-profile-household-heading > div {
  align-items: flex-start;
  flex-direction: column;
  gap: var(--jdwealth-space-0-5);
}

.lu-profile-household-heading span {
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: var(--jdwealth-font-weight-semibold);
  letter-spacing: var(--jdwealth-font-tracking-label);
  text-transform: uppercase;
}

.lu-profile-household-heading strong {
  color: var(--jdwealth-color-text);
  font-size: var(--jdwealth-font-size-body-small);
}

.lu-profile-household-list {
  display: grid;
  gap: 0;
}

.lu-profile-household-list > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--jdwealth-space-2-5);
  padding: var(--jdwealth-space-3) 0;
  border: 0;
  border-top: 1px solid var(--jdwealth-color-line);
  border-radius: 0;
  background: transparent;
}

.lu-profile-household-list > div > strong {
  overflow-wrap: anywhere;
  color: var(--jdwealth-color-text);
  font-size: var(--jdwealth-font-size-body-small);
}

.lu-profile-household-list > div > span:last-child {
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
}

.lu-profile-member-avatar {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: var(--jdwealth-radius-pill);
  background: var(--jdwealth-color-action-soft);
  color: var(--jdwealth-color-accent-text);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: var(--jdwealth-font-weight-semibold);
}

.lu-profile-inline-editor {
  max-width: 68rem;
  margin-top: var(--jdwealth-space-3);
  padding-top: 0;
  border-top: 0;
  animation: JD Wealth-disclosure-in var(--jdwealth-motion-deliberate)
    var(--jdwealth-motion-ease) both;
}

.lu-profile-editorial[data-profile-mode="inline"] .lu-profile-inline-editor {
  animation: none;
}

.lu-profile-inline-editor-heading p {
  max-width: 54ch;
  margin: 0;
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-label);
  line-height: var(--jdwealth-font-line-height-normal);
}

.lu-profile-inline-editor .lu-profile-form {
  width: 100%;
  max-width: none;
  margin: var(--jdwealth-space-4) 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lu-profile-inline-editor .lu-profile-group {
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  border: 0;
}

.lu-profile-inline-editor .lu-profile-group > legend {
  display: none;
}

.lu-profile-inline-editor .lu-profile-fields {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--jdwealth-space-4);
  width: 100%;
  margin-inline: 0;
}

.lu-profile-inline-editor .lu-form-field {
  align-content: start;
  justify-items: stretch;
  gap: var(--jdwealth-space-1-5);
  text-align: left;
}

.lu-profile-inline-editor .lu-form-field > span,
.lu-profile-inline-editor .lu-profile-protected-row strong {
  color: var(--jdwealth-color-text);
  font-size: var(--jdwealth-font-size-label);
  font-weight: var(--jdwealth-font-weight-semibold);
  letter-spacing: var(--jdwealth-font-tracking-normal);
}

.lu-profile-inline-editor .lu-profile-protected-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: var(--jdwealth-space-4);
  padding: var(--jdwealth-space-3) 0;
  border: 0;
  border-top: 1px solid var(--jdwealth-color-line);
  border-radius: 0;
  background: transparent;
}

.lu-profile-inline-editor .lu-profile-protected-row > span:first-child {
  display: grid;
  gap: var(--jdwealth-space-0-5);
}

.lu-profile-inline-editor .lu-profile-protected-row small,
.lu-profile-inline-editor .lu-form-field small {
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
  line-height: var(--jdwealth-font-line-height-normal);
}

.lu-profile-inline-editor .lu-profile-protected-value {
  display: flex;
  min-width: 0;
  min-height: var(--jdwealth-control-minimum-target);
  align-items: center;
  gap: var(--jdwealth-space-2);
  padding: var(--jdwealth-space-2-5) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-body-small);
  overflow-wrap: anywhere;
}

.lu-profile-inline-editor .lu-profile-protected-value svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.lu-profile-inline-editor .lu-form-field[data-profile-readonly="true"] > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--jdwealth-space-3);
}

.lu-profile-inline-editor
  .lu-form-field[data-profile-readonly="true"]
  > span::after {
  content: "Protected";
  padding: var(--jdwealth-space-1) var(--jdwealth-space-2);
  border: 1px solid
    color-mix(in srgb, var(--jdwealth-color-action) 28%, var(--jdwealth-color-line));
  border-radius: var(--jdwealth-radius-pill);
  background: var(--jdwealth-color-action-soft);
  color: var(--jdwealth-color-accent-text);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: var(--jdwealth-font-weight-semibold);
  letter-spacing: var(--jdwealth-font-tracking-label);
  text-transform: uppercase;
}

.lu-profile-inline-editor .lu-form-field :is(input, select) {
  min-height: var(--jdwealth-control-minimum-target);
  border: 1px solid var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-control);
  background: var(--jdwealth-color-surface);
  color: var(--jdwealth-color-text);
  font-family: var(--jdwealth-font-body);
  font-size: var(--jdwealth-font-size-body);
  padding: var(--jdwealth-space-3) var(--jdwealth-space-3-5);
  transition:
    border-color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    background-color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    box-shadow var(--jdwealth-motion-quick) var(--jdwealth-motion-ease);
}

.lu-profile-inline-editor
  .lu-form-field
  :is(input, select):hover:not(:disabled):not([readonly]) {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-action) 44%,
    var(--jdwealth-color-line)
  );
}

.lu-profile-inline-editor .lu-form-field :is(input, select):focus {
  border-color: var(--jdwealth-color-action);
  outline: 0;
  box-shadow: var(--jdwealth-shadow-focus);
}

.lu-profile-inline-editor .lu-form-field input[readonly],
.lu-profile-inline-editor .lu-form-field select:disabled {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-action) 24%,
    var(--jdwealth-color-line)
  );
  background: color-mix(
    in srgb,
    var(--jdwealth-color-canvas) 74%,
    var(--jdwealth-color-surface)
  );
  color: var(--jdwealth-color-muted);
  cursor: not-allowed;
}

.lu-profile-inline-editor .lu-profile-toggle {
  min-height: var(--jdwealth-control-minimum-target);
  border-color: var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-control);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-canvas) 55%,
    var(--jdwealth-color-surface)
  );
  padding: var(--jdwealth-space-3) var(--jdwealth-space-3-5);
}

.lu-profile-inline-editor .lu-profile-toggle:focus-within {
  border-color: var(--jdwealth-color-action);
  outline: 0;
  box-shadow: var(--jdwealth-shadow-focus);
}

.lu-profile-inline-editor .lu-profile-toggle input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--jdwealth-color-accent-text);
}

.lu-profile-inline-editor .lu-profile-actions {
  margin-top: var(--jdwealth-space-5);
  padding: var(--jdwealth-space-4) 0 0;
  border-top: 1px solid var(--jdwealth-color-line);
}

.lu-profile-inline-editor .lu-profile-actions .lu-primary-button {
  min-height: var(--jdwealth-control-minimum-target);
  border-radius: var(--jdwealth-radius-control);
  padding-inline: var(--jdwealth-space-4-5);
}

@media (max-width: 900px) {
  .lu-profile-editorial .lu-profile-overview-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .lu-profile-editorial .lu-profile-overview-actions {
    justify-content: flex-start;
  }

  .lu-profile-editorial .lu-profile-overview-access {
    justify-content: flex-start;
  }

  .lu-profile-editorial .lu-profile-overview .lu-feature-editorial-badges {
    margin-left: 0;
  }

  .lu-profile-editorial .lu-profile-details {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .lu-profile-editorial {
    width: 100%;
    gap: 0;
  }

  .lu-profile-editorial .lu-profile-overview {
    padding: var(--jdwealth-space-4-5);
  }

  .lu-profile-editorial .lu-profile-identity {
    align-items: center;
    gap: var(--jdwealth-space-3);
  }

  .lu-profile-editorial .lu-profile-avatar {
    width: 3.5rem;
    height: 3.5rem;
    font-size: var(--jdwealth-font-size-body);
  }

  .lu-profile-editorial .lu-profile-overview h1 {
    font-size: var(--jdwealth-font-size-page);
  }

  .lu-profile-editorial .lu-profile-overview-actions,
  .lu-profile-editorial .lu-profile-overview-actions > .lu-primary-button {
    width: 100%;
  }

  .lu-profile-editorial .lu-profile-overview-access {
    width: 100%;
    justify-content: space-between;
  }

  .lu-profile-editorial .lu-profile-overview .lu-feature-editorial-badges {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--jdwealth-space-1-5);
  }

  .lu-profile-editorial
    .lu-profile-overview
    .lu-feature-editorial-badges
    > span
    + span::before {
    display: none;
  }

  .lu-profile-editorial .lu-profile-editorial-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .lu-profile-editorial .lu-profile-section-card,
  .lu-profile-editorial .lu-profile-section-card:has(> .lu-profile-inline-editor) {
    grid-column: auto;
    padding: var(--jdwealth-space-4);
  }

  .lu-profile-editorial .lu-profile-section-heading,
  .lu-profile-editorial .lu-profile-inline-editor-heading {
    gap: var(--jdwealth-space-2);
  }

  .lu-profile-editorial .lu-profile-section-heading h2,
  .lu-profile-editorial .lu-profile-inline-editor-heading h3 {
    font-size: var(--jdwealth-font-size-subheading);
  }

  .lu-profile-editorial .lu-profile-details > div {
    min-height: 3.5rem;
    grid-template-columns: minmax(7.25rem, 0.85fr) minmax(0, 1.15fr);
    gap: var(--jdwealth-space-2);
  }

  .lu-profile-editorial
    .lu-profile-editorial-grid
    > .lu-profile-section-card:nth-child(2)
    .lu-profile-details
    > div {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: var(--jdwealth-space-1);
  }

  .lu-profile-editorial .lu-profile-inline-editor {
    margin-top: var(--jdwealth-space-3);
    padding-top: 0;
  }

  .lu-profile-editorial .lu-profile-inline-editor .lu-profile-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--jdwealth-space-3-5);
  }

  .lu-profile-editorial .lu-profile-inline-editor .lu-profile-protected-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--jdwealth-space-1);
  }

  .lu-profile-editorial .lu-profile-inline-editor .lu-profile-protected-value {
    min-height: 0;
    padding-top: 0;
  }

  .lu-profile-editorial .lu-profile-inline-editor .lu-profile-actions {
    align-items: stretch;
    flex-direction: column;
    gap: var(--jdwealth-space-3);
  }

  .lu-profile-editorial .lu-profile-inline-editor .lu-profile-actions .lu-primary-button {
    width: 100%;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .lu-profile-overview,
  .lu-profile-section-card,
  .lu-profile-inline-editor .lu-profile-toggle {
    background: var(--jdwealth-color-surface);
  }
}

@media (prefers-contrast: more) {
  .lu-profile-overview,
  .lu-profile-section-card,
  .lu-profile-details > div,
  .lu-profile-household-list > div,
  .lu-profile-inline-editor .lu-profile-protected-row,
  .lu-profile-inline-editor .lu-form-field :is(input, select),
  .lu-profile-inline-editor .lu-profile-toggle {
    border-color: var(--jdwealth-color-text);
  }
}

/* Source: consumer/styles/portal/60-vault.css */
/* Secure Files: a quiet, document-led workspace. Keep the platform's upload,
 * category, preview and download contracts intact while making the consumer
 * presentation easier to scan. */
.lu-portal-page[data-portal-feature="vault-documents"] > .lu-vault-workspace {
  display: contents;
}

/* The page heading owns the explanatory copy. The vault intro remains the
 * compact, persistent upload action beside it. */
.lu-vault-intro {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  padding: 0;
}

.lu-vault-intro-actions {
  justify-content: flex-end;
}

.lu-vault-intro-actions > button {
  min-height: var(--jdwealth-control-minimum-target);
  border-radius: var(--jdwealth-radius-control);
  padding-inline: var(--jdwealth-space-4);
}

.lu-portal-page[data-portal-feature="vault-documents"]
  :is(.lu-vault-group, .lu-vault-upload, .lu-vault-status, .lu-vault-error, .lu-vault-success) {
  grid-column: 1 / -1;
}

/* Groups are one restrained surface, with rows divided inside it—not cards
 * nested within another card. */
.lu-vault-group {
  gap: 0;
  padding: 0;
  overflow: clip;
  border-color: var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-card);
  background: var(--jdwealth-color-surface);
}

.lu-vault-group > header {
  align-items: center;
  gap: var(--jdwealth-space-4);
  padding: var(--jdwealth-space-4) var(--jdwealth-space-5);
  border-bottom: 1px solid var(--jdwealth-color-line);
}

.lu-vault-group > header > div {
  min-width: 0;
}

.lu-vault-group h2 {
  margin-block: var(--jdwealth-space-1);
  font-family: var(--jdwealth-font-display);
  font-size: var(--jdwealth-font-size-subheading);
  font-weight: var(--jdwealth-font-weight-semibold);
  line-height: var(--jdwealth-font-line-height-snug);
  letter-spacing: var(--jdwealth-font-tracking-heading);
}

.lu-vault-group > header p {
  max-width: var(--jdwealth-control-text-maximum);
  margin-top: var(--jdwealth-space-1);
  font-size: var(--jdwealth-font-size-body-small);
  line-height: var(--jdwealth-font-line-height-normal);
}

/* This is information, rather than a third action, so it should read as a
 * small count badge rather than a full-height control. */
.lu-vault-group > header > strong {
  min-width: 1.75rem;
  height: 1.75rem;
  padding-inline: var(--jdwealth-space-2);
  border-color: var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-pill);
  background: var(--jdwealth-color-action-soft);
  color: var(--jdwealth-color-text);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: var(--jdwealth-font-weight-semibold);
}

.lu-vault-snapshots,
.lu-vault-documents {
  gap: 0;
}

.lu-vault-snapshots > h3,
.lu-vault-documents > h3 {
  margin: 0;
  padding: var(--jdwealth-space-3) var(--jdwealth-space-5) var(--jdwealth-space-2);
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: var(--jdwealth-font-weight-semibold);
  letter-spacing: var(--jdwealth-font-tracking-label);
}

.lu-vault-documents:has(> h3) {
  border-top: 1px solid var(--jdwealth-color-line);
}

.lu-vault-row {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--jdwealth-space-3);
  padding: var(--jdwealth-space-3-5) var(--jdwealth-space-5);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lu-vault-row + .lu-vault-row {
  border-top: 1px solid var(--jdwealth-color-line);
}

.lu-vault-row:hover {
  background: var(--jdwealth-color-action-soft);
}

.lu-vault-file-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-color: var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-control);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-action-soft) 62%,
    var(--jdwealth-color-surface)
  );
}

.lu-vault-file-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.lu-vault-row-copy > span {
  font-size: var(--jdwealth-font-size-caption);
  font-weight: var(--jdwealth-font-weight-semibold);
  letter-spacing: var(--jdwealth-font-tracking-label);
}

.lu-vault-row h3 {
  margin-block: var(--jdwealth-space-1);
  font-size: var(--jdwealth-font-size-body);
  font-weight: var(--jdwealth-font-weight-semibold);
  line-height: var(--jdwealth-font-line-height-snug);
}

.lu-vault-row p,
.lu-vault-row small {
  margin-top: var(--jdwealth-space-1);
  font-size: var(--jdwealth-font-size-caption);
  line-height: var(--jdwealth-font-line-height-normal);
}

.lu-vault-row-actions {
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--jdwealth-space-2);
}

.lu-vault-row-actions :is(button, a) {
  min-height: var(--jdwealth-control-minimum-target);
  border-color: var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-control);
  padding-inline: var(--jdwealth-space-3);
}

.lu-vault-row-actions :is(button, a):hover {
  border-color: var(--jdwealth-color-action);
  background: var(--jdwealth-color-surface);
}

/* Keep upload focused and useful without turning the open state into the
 * tallest surface on the page. */
.lu-vault-upload {
  gap: var(--jdwealth-space-4);
  padding: clamp(var(--jdwealth-space-4), 2.5vw, var(--jdwealth-space-5-5));
  border-color: var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-card);
  background: var(--jdwealth-color-surface);
}

.lu-vault-upload-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.46fr);
  align-items: start;
  gap: var(--jdwealth-space-4);
}

.lu-vault-upload h2 {
  margin-block: var(--jdwealth-space-1);
  font-family: var(--jdwealth-font-display);
  font-size: var(--jdwealth-font-size-subheading);
  font-weight: var(--jdwealth-font-weight-semibold);
  line-height: var(--jdwealth-font-line-height-snug);
  letter-spacing: var(--jdwealth-font-tracking-heading);
}

.lu-vault-upload-heading p {
  margin: 0;
  font-size: var(--jdwealth-font-size-body-small);
  line-height: var(--jdwealth-font-line-height-normal);
}

.lu-vault-security-note {
  width: auto;
  padding: var(--jdwealth-space-3);
  border-color: var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-control);
  background: var(--jdwealth-color-action-soft);
}

.lu-vault-dropzone {
  min-height: 7.5rem;
  gap: var(--jdwealth-space-3);
  padding: var(--jdwealth-space-4);
  border-radius: var(--jdwealth-radius-card);
}

.lu-vault-dropzone-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-color: var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-control);
}

.lu-vault-dropzone-copy strong {
  font-family: var(--jdwealth-font-interface);
  font-size: var(--jdwealth-font-size-body);
  font-weight: var(--jdwealth-font-weight-semibold);
  letter-spacing: var(--jdwealth-font-tracking-subtle);
}

.lu-vault-dropzone-actions > :is(button, a),
.lu-vault-upload-actions > button {
  min-height: var(--jdwealth-control-minimum-target);
  border-radius: var(--jdwealth-radius-control);
}

.lu-vault-upload-grid {
  gap: var(--jdwealth-space-4);
}

.lu-vault-upload-grid textarea {
  min-height: 5.5rem;
}

@media (max-width: 760px) {
  .lu-vault-upload-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .lu-vault-security-note {
    width: 100%;
  }

  .lu-vault-row {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }

  .lu-vault-row-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .lu-vault-row-actions :is(button, a) {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 460px) {
  .lu-vault-intro-actions {
    justify-content: stretch;
  }

  .lu-vault-intro-actions > button {
    width: 100%;
  }

  .lu-vault-group > header {
    align-items: flex-start;
    padding: var(--jdwealth-space-4);
  }

  .lu-vault-snapshots > h3,
  .lu-vault-documents > h3,
  .lu-vault-row {
    padding-inline: var(--jdwealth-space-4);
  }

  .lu-vault-dropzone {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 7rem;
    text-align: left;
  }

  .lu-vault-dropzone-icon {
    justify-self: auto;
  }

  .lu-vault-dropzone-copy strong {
    white-space: nowrap;
  }

  .lu-vault-dropzone-actions,
  .lu-vault-dropzone > small {
    grid-column: 1 / -1;
  }

  .lu-vault-dropzone-actions {
    display: flex;
    align-items: center;
    flex-direction: row;
  }

  .lu-vault-dropzone-actions > * {
    width: auto;
  }
}

/* Source: consumer/styles/portal/70-journeys.css */
/* Guided forms: a persistent section rail on desktop, compact scroller on mobile. */
.lu-portal-page[data-portal-feature="fact-find"]
  .lu-feature-editorial-header
  :is(.lu-editorial-kicker, .lu-feature-editorial-badges) {
  display: none;
}

.lu-portal-page:is(
    [data-portal-feature="fact-find"],
    [data-portal-feature="annual-review"]
  )
  .lu-feature-editorial-header
  h1 {
  font-size: var(--jdwealth-font-size-page);
  line-height: var(--jdwealth-font-line-height-tight);
}

.lu-journey-form[data-journey-presentation="section-rail"] {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  grid-template-areas:
    "rail intro"
    "rail review"
    "rail content"
    "rail actions"
    "rail history";
  align-items: start;
  gap: var(--jdwealth-space-4) var(--jdwealth-space-5);
}

.lu-journey-form[data-journey-presentation="section-rail"]
  > .lu-form-page-progress {
  position: sticky;
  top: 1rem;
  grid-area: rail;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: var(--jdwealth-space-3);
  border: 1px solid var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-panel);
  background: color-mix(in srgb, var(--jdwealth-color-surface) 91%, transparent);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.lu-journey-form[data-journey-presentation="section-rail"]
  .lu-form-page-progress
  ol {
  display: grid;
  gap: var(--jdwealth-space-1-5);
}

.lu-journey-form[data-journey-presentation="section-rail"]
  .lu-form-page-progress
  li {
  min-width: 0;
}

.lu-journey-form[data-journey-presentation="section-rail"]
  .lu-form-page-progress
  button {
  width: 100%;
  min-height: 3.45rem;
  padding: var(--jdwealth-space-2-5);
  border: 0;
  border-radius: var(--jdwealth-radius-control);
  background: transparent;
  text-align: left;
}

.lu-journey-form[data-journey-presentation="section-rail"]
  .lu-form-page-progress
  button[aria-current="step"] {
  background: var(--jdwealth-color-action-soft);
  color: var(--jdwealth-color-accent-text);
  box-shadow: var(--jdwealth-shadow-accent-edge);
}

.lu-journey-form[data-journey-presentation="section-rail"]
  .lu-form-page-progress
  button:not(:disabled):hover {
  background: color-mix(
    in srgb,
    var(--jdwealth-color-action-soft) 75%,
    transparent
  );
}

.lu-journey-form[data-journey-presentation="section-rail"]
  .lu-form-page-number {
  width: 1.85rem;
  height: 1.85rem;
  font-size: var(--jdwealth-font-size-caption);
}

.lu-journey-form[data-journey-presentation="section-rail"]
  .lu-form-page-copy
  small {
  color: var(--jdwealth-color-muted);
}

.lu-journey-form[data-journey-presentation="section-rail"] .lu-form-page-copy {
  display: grid;
  gap: var(--jdwealth-space-1);
  min-width: 0;
}

.lu-journey-form[data-journey-presentation="section-rail"]
  .lu-form-page-copy
  strong {
  line-height: var(--jdwealth-font-line-height-tight);
}

.lu-journey-form[data-journey-presentation="section-rail"] > .lu-form-intro {
  grid-area: intro;
  padding: var(--jdwealth-space-1-5) var(--jdwealth-space-1) var(--jdwealth-space-3);
}

.lu-journey-form[data-journey-presentation="section-rail"]
  > .lu-form-page-content,
.lu-journey-form[data-journey-presentation="section-rail"] > .lu-form-loading {
  grid-area: content;
  min-width: 0;
}

.lu-journey-form[data-journey-presentation="section-rail"] .lu-form-section {
  margin: 0 0 var(--jdwealth-space-3-5);
  padding: clamp(var(--jdwealth-space-4), 2.4vw, var(--jdwealth-space-6));
  border-radius: var(--jdwealth-radius-panel);
  box-shadow: var(--jdwealth-shadow-panel);
}

.lu-journey-form[data-journey-presentation="section-rail"]
  .lu-form-section
  > legend {
  max-width: 100%;
}

.lu-journey-form[data-journey-presentation="section-rail"] .lu-form-step {
  display: none;
}

.lu-journey-form[data-journey-presentation="section-rail"] .lu-form-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lu-journey-form[data-journey-presentation="section-rail"]
  .lu-form-choice-group,
.lu-journey-form[data-journey-presentation="section-rail"]
  .lu-form-acknowledgement {
  border-radius: var(--jdwealth-radius-control);
}

.lu-journey-form[data-journey-presentation="section-rail"]
  > .lu-form-review-summary {
  grid-area: review;
}

.lu-form-review-summary {
  overflow: clip;
  border: 1px solid var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-panel);
  background: var(--jdwealth-color-surface);
  box-shadow: var(--jdwealth-shadow-panel);
}

.lu-form-review-summary-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--jdwealth-space-4);
  padding: var(--jdwealth-space-4-5) var(--jdwealth-space-5);
  border-bottom: 1px solid var(--jdwealth-color-line);
}

.lu-form-review-summary-heading h3 {
  margin: var(--jdwealth-space-1) 0 0;
  font-family: var(--jdwealth-font-display);
  font-size: var(--jdwealth-font-size-section);
}

.lu-form-review-summary-heading > span {
  color: var(--jdwealth-color-accent-text);
  font-size: var(--jdwealth-font-size-label);
  font-weight: var(--jdwealth-font-weight-bold);
}

.lu-form-review-rows article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--jdwealth-space-4);
  padding: var(--jdwealth-space-3-5) var(--jdwealth-space-5);
}

.lu-form-review-rows article + article {
  border-top: 1px solid var(--jdwealth-color-line);
}

.lu-form-review-rows article > div {
  display: grid;
  gap: var(--jdwealth-space-1);
}

.lu-form-review-rows article span {
  overflow: hidden;
  color: var(--jdwealth-color-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lu-journey-form[data-journey-presentation="section-rail"] > .lu-form-actions {
  position: sticky;
  bottom: 0.75rem;
  z-index: 3;
  grid-area: actions;
  border: 1px solid var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-control);
  background: color-mix(in srgb, var(--jdwealth-color-surface) 91%, transparent);
  box-shadow: var(--jdwealth-shadow-modal);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.lu-journey-form[data-journey-presentation="section-rail"]
  > .lu-form-actions
  .lu-form-buttons {
  order: 2;
}

.lu-journey-form[data-journey-presentation="section-rail"] > .lu-form-history {
  grid-area: history;
}

/* Before the final review, submission cannot fail because it is not yet
 * available. Replace the implementation detail with one calm expectation;
 * the original live status remains intact on the send step for real errors. */
.lu-journey-form[data-journey-presentation="section-rail"]:not(
    :has(> .lu-form-review-summary)
  )
  > .lu-form-actions
  .lu-form-statuses
  > span:last-child {
  display: none;
}

.lu-journey-form[data-journey-presentation="section-rail"]:not(
    :has(> .lu-form-review-summary)
  )
  > .lu-form-actions
  .lu-form-statuses::after {
  content: "We’ll check your answers before you send them.";
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
}

/* The policy title and description already explain the retained submission
 * history. Remove the implementation-oriented eyebrow without hiding any
 * submission, reference or evidence detail. */
.lu-journey-form[data-journey-presentation="section-rail"]
  > .lu-form-history
  > div:first-child
  > .lu-kicker {
  display: none;
}

/* Tax return: dashboard typography, compact controls and one clear task at a time. */
.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"] {
  width: 100%;
  max-width: 66rem;
  margin-inline: auto;
  grid-template-columns: 12.25rem minmax(0, 50rem);
  justify-content: start;
  gap: var(--jdwealth-space-3) var(--jdwealth-space-4);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  > .lu-form-page-progress {
  top: 0.75rem;
  max-height: calc(100dvh - 1.5rem);
  padding: var(--jdwealth-space-2);
  border-color: var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-panel);
  background: color-mix(in srgb, var(--jdwealth-color-surface) 96%, transparent);
  box-shadow: none;
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-page-progress
  ol {
  gap: var(--jdwealth-space-1);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-page-progress
  button {
  min-height: 3.7rem;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: var(--jdwealth-space-2-5);
  border: 1px solid transparent;
  border-radius: var(--jdwealth-radius-control);
  padding: var(--jdwealth-space-2) var(--jdwealth-space-2-5);
  transition:
    border-color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    background-color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    transform var(--jdwealth-motion-quick) var(--jdwealth-motion-ease);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-page-progress
  button[aria-current="step"] {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-action) 42%,
    var(--jdwealth-color-line)
  );
  background: var(--jdwealth-color-action-soft);
  color: var(--jdwealth-color-text);
  box-shadow: var(--jdwealth-shadow-accent-edge);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-page-progress
  button:not(:disabled, [aria-current="step"]):hover {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-action) 30%,
    var(--jdwealth-color-line)
  );
  background: color-mix(
    in srgb,
    var(--jdwealth-color-action-soft) 70%,
    transparent
  );
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-page-progress
  button:active:not(:disabled) {
  transform: scale(0.98);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-page-number {
  width: 2rem;
  height: 2rem;
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-action) 55%,
    var(--jdwealth-color-line)
  );
  color: var(--jdwealth-color-accent-text);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-page-progress
  button[aria-current="step"]
  .lu-form-page-number {
  border-color: var(--jdwealth-color-accent-text);
  background: var(--jdwealth-color-action-strong);
  color: var(--jdwealth-color-on-solid);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-page-copy
  small {
  color: var(--jdwealth-color-accent-text);
  font-size: var(--jdwealth-font-size-caption);
  letter-spacing: var(--jdwealth-font-tracking-caps);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-page-copy
  strong {
  color: var(--jdwealth-color-text);
  font-size: var(--jdwealth-font-size-caption);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  > .lu-form-intro {
  gap: var(--jdwealth-space-1);
  padding: var(--jdwealth-space-0-5) var(--jdwealth-space-1) var(--jdwealth-space-2);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-intro
  .lu-kicker {
  color: var(--jdwealth-color-accent-text);
  font-size: var(--jdwealth-font-size-caption);
  letter-spacing: var(--jdwealth-font-tracking-caps);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-intro
  h2 {
  margin-top: var(--jdwealth-space-1);
  font-family: var(--jdwealth-font-display);
  font-size: var(--jdwealth-font-size-title);
  font-weight: var(--jdwealth-font-weight-regular);
  letter-spacing: var(--jdwealth-font-tracking-display);
  line-height: var(--jdwealth-font-line-height-solid);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-intro
  > p {
  max-width: 68ch;
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-body-small);
  line-height: var(--jdwealth-font-line-height-normal);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  > .lu-form-page-content {
  display: grid;
  gap: var(--jdwealth-space-3);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-section {
  gap: var(--jdwealth-space-3-5);
  margin: 0;
  padding: var(--jdwealth-space-4) var(--jdwealth-space-4-5);
  border: 1px solid var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-panel);
  background: var(--jdwealth-color-surface);
  box-shadow: none;
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-section
  > legend {
  transform: none;
  padding: 0 0 var(--jdwealth-space-3);
  border-bottom: 1px solid var(--jdwealth-color-line);
}

/* The page introduction already names a lone section; keep the fieldset legend
   available to assistive technology without repeating it visually. */
.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-page-content:not(
    :has(.lu-form-section:not([hidden]) ~ .lu-form-section:not([hidden]))
  )
  .lu-form-section:not([hidden])
  > legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-section-title {
  display: grid;
  gap: var(--jdwealth-space-1);
  font-family: var(--jdwealth-font-display);
  font-size: var(--jdwealth-font-size-section);
  font-weight: var(--jdwealth-font-weight-regular);
  letter-spacing: var(--jdwealth-font-tracking-heading);
  line-height: var(--jdwealth-font-line-height-tight);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-section-title
  small {
  max-width: 72ch;
  margin: 0;
  color: var(--jdwealth-color-muted);
  font-family: var(--jdwealth-font-body);
  font-size: var(--jdwealth-font-size-label);
  font-weight: 500;
  letter-spacing: var(--jdwealth-font-tracking-normal);
  line-height: var(--jdwealth-font-line-height-normal);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-fields {
  align-items: start;
  column-gap: var(--jdwealth-space-3-5);
  row-gap: var(--jdwealth-space-3);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  :is(.lu-form-field, .lu-form-choice-group, .lu-form-acknowledgement) {
  min-width: 0;
  align-self: start;
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-field {
  align-content: start;
  gap: var(--jdwealth-space-1);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  :is(.lu-form-field > span, .lu-form-choice-group > legend) {
  color: var(--jdwealth-color-text);
  font-size: var(--jdwealth-font-size-label);
  font-weight: var(--jdwealth-font-weight-bold);
  letter-spacing: var(--jdwealth-font-tracking-normal);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-field
  :is(input, select, textarea) {
  min-height: 2.85rem;
  border-color: var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-control);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-canvas) 44%,
    var(--jdwealth-color-surface)
  );
  color: var(--jdwealth-color-text);
  font-family: var(--jdwealth-font-body);
  font-size: var(--jdwealth-font-size-body-small);
  padding: var(--jdwealth-space-2-5) var(--jdwealth-space-3);
  transition:
    border-color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    background-color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    box-shadow var(--jdwealth-motion-quick) var(--jdwealth-motion-ease);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-field
  :is(input, select, textarea):hover:not(:disabled, [readonly]) {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-action) 42%,
    var(--jdwealth-color-line)
  );
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-field
  :is(input, select, textarea):focus {
  border-color: var(--jdwealth-color-action);
  outline: 0;
  background: var(--jdwealth-color-surface);
  box-shadow: var(--jdwealth-shadow-focus);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  :is(.lu-form-field small, .lu-form-help) {
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
  line-height: var(--jdwealth-font-line-height-normal);
  max-width: 56ch;
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  gap: var(--jdwealth-space-2);
  margin-top: var(--jdwealth-space-1-5);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-option {
  min-height: 2.65rem;
  min-width: 0;
  border-color: var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-control);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-canvas) 44%,
    var(--jdwealth-color-surface)
  );
  color: var(--jdwealth-color-text);
  font-size: var(--jdwealth-font-size-body-small);
  line-height: var(--jdwealth-font-line-height-snug);
  padding: var(--jdwealth-space-1-5) var(--jdwealth-space-2-5);
  transition:
    border-color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    background-color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    transform var(--jdwealth-motion-quick) var(--jdwealth-motion-ease);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-option:hover {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-action) 42%,
    var(--jdwealth-color-line)
  );
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-option:active {
  transform: scale(0.98);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-option:has(input:checked) {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-action) 52%,
    var(--jdwealth-color-line)
  );
  background: var(--jdwealth-color-action-soft);
  color: var(--jdwealth-color-accent-text);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-option
  input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--jdwealth-color-accent-text);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-acknowledgement {
  min-height: 3.25rem;
  border: 1px solid var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-control);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-canvas) 44%,
    var(--jdwealth-color-surface)
  );
  padding: var(--jdwealth-space-3);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-acknowledgement:has(input:checked) {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-action) 52%,
    var(--jdwealth-color-line)
  );
  background: var(--jdwealth-color-action-soft);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  :is(.lu-form-collection-item, .lu-evidence-category) {
  border-color: var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-control);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-canvas) 44%,
    var(--jdwealth-color-surface)
  );
  padding: var(--jdwealth-space-3-5);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  > .lu-form-actions {
  bottom: 0.55rem;
  align-items: center;
  gap: var(--jdwealth-space-3);
  padding: var(--jdwealth-space-3) var(--jdwealth-space-3);
  border-color: var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-panel);
  background: color-mix(in srgb, var(--jdwealth-color-surface) 97%, transparent);
  box-shadow: var(--jdwealth-shadow-panel);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-buttons {
  gap: var(--jdwealth-space-2);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-buttons
  :is(.lu-primary-button, .lu-secondary-button) {
  min-height: var(--jdwealth-control-minimum-target);
  border-radius: var(--jdwealth-radius-pill);
  padding-inline: var(--jdwealth-space-4);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-statuses {
  gap: var(--jdwealth-space-0-5);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  .lu-form-statuses
  > span {
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
  line-height: var(--jdwealth-font-line-height-snug);
  text-align: left;
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  > .lu-form-history {
  grid-area: history;
  gap: var(--jdwealth-space-2) var(--jdwealth-space-4);
  padding: var(--jdwealth-space-3-5) var(--jdwealth-space-4);
  border-color: var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-panel);
  background: var(--jdwealth-color-surface);
  box-shadow: none;
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  > .lu-form-history:not(:has(.lu-form-history-list)) {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  > .lu-form-history
  .lu-kicker {
  color: var(--jdwealth-color-accent-text);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  > .lu-form-history
  h2 {
  font-family: var(--jdwealth-font-display);
  font-size: var(--jdwealth-font-size-subheading);
  letter-spacing: var(--jdwealth-font-tracking-heading);
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  > .lu-form-history:not(:has(.lu-form-history-list))
  > div
  > p:last-child {
  display: none;
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  > .lu-form-history:not(:has(.lu-form-history-list))
  > p:last-child {
  max-width: 34rem;
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
  line-height: var(--jdwealth-font-line-height-normal);
  text-align: right;
}

.lu-portal-page
  .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
  > .lu-form-review-summary {
  border-color: var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-panel);
  box-shadow: none;
}

/* Annual review starts with a decision checklist. Let its controls use the
 * whole content rail instead of preserving an empty editorial column. */
.lu-portal-page
  .lu-journey-form[data-journey-id="annual-review"][data-journey-presentation="section-rail"]
  .lu-form-page-content
  > .lu-form-section
  .lu-form-choice-group {
  grid-column: 1 / -1;
}

.lu-portal-page
  .lu-journey-form[data-journey-id="annual-review"][data-journey-presentation="section-rail"]
  .lu-form-choice-group
  .lu-form-options {
  grid-template-columns: repeat(2, minmax(0, 12rem));
}

@media (max-width: 820px) {
  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "rail"
      "intro"
      "review"
      "content"
      "actions"
      "history";
    gap: var(--jdwealth-space-3);
  }

  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    > .lu-form-page-progress {
    top: 0.4rem;
    max-height: none;
    overflow: visible;
    padding: var(--jdwealth-space-1);
    border-radius: var(--jdwealth-radius-control);
    background: var(--jdwealth-color-surface);
    box-shadow: none;
  }

  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    .lu-form-page-progress
    ol {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: var(--jdwealth-space-0-5);
  }

  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    .lu-form-page-progress
    li {
    width: auto;
    min-width: 0;
  }

  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    .lu-form-page-progress
    button {
    min-height: 2.3rem;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding: var(--jdwealth-space-0-5);
  }

  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    .lu-form-page-number {
    width: min(2rem, 100%);
    height: 2rem;
    font-size: var(--jdwealth-font-size-caption);
  }

  /* The page title below the rail supplies current-step context. Keeping every
     reached step visible as a compact number avoids the clipped scroller. */
  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    .lu-form-page-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* Annual review has seven stable macro steps. On a phone, replace the faint
     row of numbers with one explicit current-step summary. The percentage and
     current section description remain immediately below it. */
  .lu-portal-page
    .lu-journey-form[data-journey-id="annual-review"][data-journey-presentation="section-rail"]
    .lu-form-page-progress
    ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .lu-portal-page
    .lu-journey-form[data-journey-id="annual-review"][data-journey-presentation="section-rail"]
    .lu-form-page-progress
    li {
    display: none;
  }

  .lu-portal-page
    .lu-journey-form[data-journey-id="annual-review"][data-journey-presentation="section-rail"]
    .lu-form-page-progress
    li:has(button[aria-current="step"]) {
    display: block;
  }

  .lu-portal-page
    .lu-journey-form[data-journey-id="annual-review"][data-journey-presentation="section-rail"]
    .lu-form-page-progress
    button[aria-current="step"] {
    min-height: var(--jdwealth-control-minimum-target);
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    gap: var(--jdwealth-space-3);
    padding: var(--jdwealth-space-2) var(--jdwealth-space-3);
    text-align: left;
  }

  .lu-portal-page
    .lu-journey-form[data-journey-id="annual-review"][data-journey-presentation="section-rail"]
    button[aria-current="step"]
    .lu-form-page-number {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--jdwealth-color-accent-text);
    font-size: var(--jdwealth-font-size-label);
    font-weight: var(--jdwealth-font-weight-semibold);
    white-space: nowrap;
  }

  .lu-portal-page
    .lu-journey-form[data-journey-id="annual-review"][data-journey-presentation="section-rail"]
    button[aria-current="step"]
    .lu-form-page-number::before {
    content: "Step ";
  }

  .lu-portal-page
    .lu-journey-form[data-journey-id="annual-review"][data-journey-presentation="section-rail"]
    button[aria-current="step"]
    .lu-form-page-number::after {
    content: " of 7";
  }

  .lu-portal-page
    .lu-journey-form[data-journey-id="annual-review"][data-journey-presentation="section-rail"]
    button[aria-current="step"]
    .lu-form-page-copy {
    position: static;
    display: grid;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    gap: var(--jdwealth-space-0-5);
    white-space: normal;
  }

  .lu-portal-page
    .lu-journey-form[data-journey-id="annual-review"][data-journey-presentation="section-rail"]
    button[aria-current="step"]
    .lu-form-page-copy
    small {
    color: var(--jdwealth-color-muted);
  }

  .lu-portal-page
    .lu-journey-form[data-journey-id="annual-review"][data-journey-presentation="section-rail"]
    button[aria-current="step"]
    .lu-form-page-copy
    strong {
    color: var(--jdwealth-color-text);
    font-size: var(--jdwealth-font-size-body-small);
  }

  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    > .lu-form-intro {
    padding: var(--jdwealth-space-0-5) var(--jdwealth-space-1)
      var(--jdwealth-space-1-5);
  }

  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    .lu-form-intro
    h2 {
    font-size: var(--jdwealth-font-size-title);
  }

  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    .lu-form-section {
    gap: var(--jdwealth-space-3);
    padding: var(--jdwealth-space-3-5);
  }

  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    .lu-form-section
    > legend {
    transform: none;
  }

  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    .lu-form-fields {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 0;
  }

  /* Reserve room for the sticky controls and make browser focus scrolling
     stop above them rather than behind the action bar. */
  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    > .lu-form-page-content {
    padding-bottom: calc(var(--jdwealth-space-14) + env(safe-area-inset-bottom));
  }

  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    .lu-form-field
    :is(input, select, textarea) {
    scroll-margin-bottom: var(--jdwealth-space-36);
  }

  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    > .lu-form-actions {
    bottom: max(0.4rem, env(safe-area-inset-bottom));
    display: grid;
    padding: var(--jdwealth-space-2);
    box-shadow: var(--jdwealth-shadow-panel);
  }

  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    .lu-form-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 1;
    width: 100%;
  }

  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    .lu-form-buttons
    > .lu-primary-button {
    grid-column: 1 / -1;
  }

  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    .lu-form-statuses {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    > .lu-form-history:not(:has(.lu-form-history-list)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    > .lu-form-history:not(:has(.lu-form-history-list))
    > p:last-child {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    .lu-form-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    .lu-form-option {
    width: 100%;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    > :is(.lu-form-page-progress, .lu-form-actions) {
    background: var(--jdwealth-color-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    > :is(.lu-form-page-progress, .lu-form-actions, .lu-form-history),
  .lu-portal-page
    .lu-journey-form:is([data-journey-id="fact-find"], [data-journey-id="annual-review"])[data-journey-presentation="section-rail"]
    :is(
      .lu-form-section,
      .lu-form-field :is(input, select, textarea),
      .lu-form-option,
      .lu-form-acknowledgement
    ) {
    border-color: var(--jdwealth-color-text);
  }
}

/* The initial onboarding is one deliberate workspace: shell and form share a
 * rail, progress reads as wayfinding rather than a second navigation bar, and
 * every answer uses the same quiet, tactile control grammar. */
@media (min-width: 1024px) {
  .lu-app:has(
      .lu-portal-page[data-portal-feature="fact-find"]
        .lu-journey-form[data-journey-id="fact-find"]
    )
    .lu-portal-card-header {
    width: min(100%, 72rem);
    margin-inline: auto;
  }
}

.lu-portal-page[data-portal-feature="fact-find"]:has(
    .lu-journey-form[data-journey-id="fact-find"]
  )
  > .lu-feature-editorial-header {
  display: none;
}

.lu-portal-page[data-portal-feature="fact-find"] {
  gap: 0;
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"] {
  width: min(100%, 72rem);
  overflow: clip;
  margin-inline: auto;
  border: 1px solid var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-panel);
  background: var(--jdwealth-color-surface);
  box-shadow: none;
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  > .lu-form-page-progress {
  overflow: clip;
  padding: var(--jdwealth-space-4) var(--jdwealth-space-4-5)
    var(--jdwealth-space-3-5);
  border-color: var(--jdwealth-color-line);
  background: var(--jdwealth-color-surface);
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-page-progress
  ol {
  position: relative;
  min-width: 0;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0;
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-page-progress
  ol::before {
  position: absolute;
  top: var(--jdwealth-space-3-5);
  right: 5%;
  left: 5%;
  height: 1px;
  background: var(--jdwealth-color-line);
  content: "";
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-page-progress
  li {
  z-index: 1;
  min-width: 0;
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-page-progress
  button {
  width: 100%;
  min-height: var(--jdwealth-control-minimum-target);
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: var(--jdwealth-space-1-5);
  padding: 0 var(--jdwealth-space-1);
  border-color: transparent;
  border-radius: var(--jdwealth-radius-control);
  background: transparent;
  text-align: center;
  transition:
    color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    transform var(--jdwealth-motion-quick) var(--jdwealth-motion-ease);
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-page-progress
  button:not(:disabled):active {
  transform: scale(0.97);
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-page-progress
  button:disabled {
  opacity: 1;
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-page-number {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-pill);
  background: var(--jdwealth-color-surface);
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: var(--jdwealth-font-weight-semibold);
  letter-spacing: var(--jdwealth-font-tracking-normal);
  box-shadow: 0 0 0 var(--jdwealth-space-1-5)
    var(--jdwealth-color-surface);
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  button[aria-current="step"]
  .lu-form-page-number {
  border-color: var(--jdwealth-color-action);
  background: var(--jdwealth-color-action-strong);
  color: var(--jdwealth-color-on-solid);
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-page-copy {
  display: block;
  min-width: 0;
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-page-copy
  small {
  display: none;
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-page-copy
  strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: var(--jdwealth-font-weight-semibold);
  line-height: var(--jdwealth-font-line-height-snug);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  button[aria-current="step"]
  .lu-form-page-copy
  strong {
  color: var(--jdwealth-color-text);
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  > .lu-form-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  align-items: end;
  gap: var(--jdwealth-space-6);
  padding: var(--jdwealth-space-5) var(--jdwealth-space-5)
    var(--jdwealth-space-4);
  border: 0;
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-intro
  h2 {
  margin-top: var(--jdwealth-space-1);
  font-family: var(--jdwealth-font-display);
  font-size: var(--jdwealth-font-size-section);
  font-weight: var(--jdwealth-font-weight-regular);
  letter-spacing: var(--jdwealth-font-tracking-heading);
  line-height: var(--jdwealth-font-line-height-tight);
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-intro
  .lu-kicker {
  color: var(--jdwealth-color-accent-text);
  font-size: var(--jdwealth-font-size-caption);
  letter-spacing: var(--jdwealth-font-tracking-caps);
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-intro
  > p {
  max-width: 44ch;
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-body-small);
  line-height: var(--jdwealth-font-line-height-normal);
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-section {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0 var(--jdwealth-space-5) var(--jdwealth-space-5);
  border-color: var(--jdwealth-color-line);
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-section
  > legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-fields {
  grid-column: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: var(--jdwealth-space-4);
  row-gap: var(--jdwealth-space-3);
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  :is(.lu-form-field, .lu-form-choice-group) {
  min-width: 0;
  align-self: start;
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  :is(.lu-form-field, .lu-form-choice-group) {
  gap: var(--jdwealth-space-1-5);
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  :is(.lu-form-field > span, .lu-form-choice-group > legend) {
  color: var(--jdwealth-color-text);
  font-size: var(--jdwealth-font-size-label);
  font-weight: var(--jdwealth-font-weight-semibold);
  line-height: var(--jdwealth-font-line-height-snug);
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-field
  :is(input, select, textarea) {
  min-height: 3rem;
  border-color: var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-control);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-canvas) 26%,
    var(--jdwealth-color-surface)
  );
  color: var(--jdwealth-color-text);
  font-family: var(--jdwealth-font-body);
  font-size: var(--jdwealth-font-size-body-small);
  padding: var(--jdwealth-space-2-5) var(--jdwealth-space-3);
  transition:
    background-color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    border-color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    box-shadow var(--jdwealth-motion-quick) var(--jdwealth-motion-ease);
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-field
  :is(input, select, textarea):focus {
  border-color: var(--jdwealth-color-action);
  outline: 0;
  background: var(--jdwealth-color-surface);
  box-shadow: var(--jdwealth-shadow-focus);
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-field
  :is(input, select, textarea):disabled {
  background: color-mix(
    in srgb,
    var(--jdwealth-color-canvas) 48%,
    var(--jdwealth-color-surface)
  );
  color: var(--jdwealth-color-muted);
  opacity: 1;
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  :is(.lu-form-field small, .lu-form-help) {
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
  line-height: var(--jdwealth-font-line-height-snug);
}

/* Required markers and protected identity notes carry the useful context. */
.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-section:has([name="first-name"])
  .lu-form-field:not(:has(> :is(input, select, textarea):disabled))
  > small,
.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-choice-group
  > .lu-form-help {
  display: none;
}

/* Yes and no are one segmented control, matching the height and surface of a
 * text field while preserving the native radio contract and keyboard focus. */
.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-choice-group
  .lu-form-options {
  min-height: 3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--jdwealth-space-1);
  margin: 0;
  padding: var(--jdwealth-space-1);
  border: 1px solid var(--jdwealth-color-line);
  border-radius: var(--jdwealth-radius-control);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-canvas) 36%,
    var(--jdwealth-color-surface)
  );
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-option {
  position: relative;
  min-height: var(--jdwealth-control-minimum-target);
  justify-content: center;
  border: 0;
  border-radius: var(--jdwealth-radius-control);
  background: transparent;
  color: var(--jdwealth-color-muted);
  padding: var(--jdwealth-space-2) var(--jdwealth-space-2-5);
  font-weight: var(--jdwealth-font-weight-semibold);
  transition:
    background-color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    transform var(--jdwealth-motion-quick) var(--jdwealth-motion-ease);
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-option
  input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-option:has(input:checked) {
  background: var(--jdwealth-color-surface);
  color: var(--jdwealth-color-accent-text);
  box-shadow: var(--jdwealth-shadow-soft);
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-option:has(input:focus-visible) {
  box-shadow: var(--jdwealth-shadow-focus);
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-option:active {
  transform: scale(0.98);
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  > .lu-form-actions {
  padding: var(--jdwealth-space-3-5) var(--jdwealth-space-5);
  border-top: 1px solid var(--jdwealth-color-line);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-canvas) 26%,
    var(--jdwealth-color-surface)
  );
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-buttons
  :is(.lu-primary-button, .lu-secondary-button) {
  min-height: var(--jdwealth-control-minimum-target);
  border-radius: var(--jdwealth-radius-pill);
  padding-inline: var(--jdwealth-space-4);
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-statuses
  > span {
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
  line-height: var(--jdwealth-font-line-height-snug);
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-statuses
  > span:last-child:not(:first-child) {
  display: none;
}

/* Keep automatic draft feedback available to assistive technology without
 * making technical persistence copy part of the visual form hierarchy. */
.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-statuses {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  > .lu-form-actions,
.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-buttons {
  justify-content: flex-end;
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-buttons {
  margin-left: auto;
}

/* Preserve the descriptive accessible label while clipping the already-present
 * leading words so the visual action reads simply as Continue. */
.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  .lu-form-buttons
  > .lu-primary-button[type="button"] {
  width: 5.25rem;
  overflow: hidden;
  direction: rtl;
  padding-inline: var(--jdwealth-space-3);
  text-align: right;
  text-transform: capitalize;
  white-space: nowrap;
}

@media (min-width: 901px) {
  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    .lu-form-section:has([name="australian-resident"])
    .lu-form-fields {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    .lu-form-section:has([name="australian-resident"])
    :is(.lu-form-field, .lu-form-choice-group) {
    grid-column: span 3;
  }

  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    .lu-form-section:has([name="australian-resident"])
    :is(
      .lu-form-choice-group:has([name="australian-resident"]),
      .lu-form-field:has([name="citizenship"]),
      .lu-form-field:has([name="tax-residency"])
    ) {
    grid-column: span 2;
  }

  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    .lu-form-section:has([name="australian-resident"])
    .lu-form-choice-group:has([name="australian-resident"]) {
    grid-column: 1 / span 2;
  }
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  > .lu-form-history {
  padding: var(--jdwealth-space-3) var(--jdwealth-space-5);
  border: 0;
  border-top: 1px solid var(--jdwealth-color-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  > .lu-form-history:not(:has(.lu-form-history-list))
  > div {
  display: none;
}

.lu-portal-page[data-portal-feature="fact-find"]
  .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
  > .lu-form-history:not(:has(.lu-form-history-list))
  > p:last-child {
  margin: 0;
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
}

@media (max-width: 900px) {
  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    > .lu-form-page-progress {
    position: sticky;
    z-index: 3;
    top: var(--jdwealth-space-1);
    padding: var(--jdwealth-space-2);
    background: color-mix(
      in srgb,
      var(--jdwealth-color-surface) 92%,
      transparent
    );
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
  }

  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    .lu-form-page-progress
    ol {
    display: block;
  }

  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    .lu-form-page-progress
    ol::before,
  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    .lu-form-page-progress
    li {
    display: none;
  }

  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    .lu-form-page-progress
    li:has(button[aria-current="step"]) {
    display: block;
  }

  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    .lu-form-page-progress
    button[aria-current="step"] {
    min-height: var(--jdwealth-control-minimum-target);
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: var(--jdwealth-space-1);
    padding: var(--jdwealth-space-2-5) var(--jdwealth-space-3);
    background: var(--jdwealth-color-action-soft);
    text-align: left;
  }

  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    button[aria-current="step"]
    .lu-form-page-number {
    display: inline-flex;
    width: auto;
    height: auto;
    align-items: baseline;
    gap: 0.25em;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--jdwealth-color-accent-text);
    font-size: var(--jdwealth-font-size-label);
    white-space: nowrap;
    box-shadow: none;
  }

  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    button[aria-current="step"]
    .lu-form-page-number::before {
    content: "Step ";
  }

  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    button[aria-current="step"]
    .lu-form-page-number::after {
    content: " of 10";
  }

  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    button[aria-current="step"]
    .lu-form-page-copy
    strong {
    display: block;
    overflow: visible;
    color: var(--jdwealth-color-text);
    font-size: var(--jdwealth-font-size-body-small);
    -webkit-line-clamp: initial;
  }
}

@media (max-width: 760px) {
  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    > .lu-form-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--jdwealth-space-1-5);
    padding: var(--jdwealth-space-4) var(--jdwealth-space-3)
      var(--jdwealth-space-3);
  }

  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    .lu-form-section {
    padding: 0 var(--jdwealth-space-3) var(--jdwealth-space-4);
  }

  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    .lu-form-fields {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--jdwealth-space-3-5);
  }

  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    > :is(.lu-form-actions, .lu-form-history) {
    padding-inline: var(--jdwealth-space-3);
  }

  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    > .lu-form-actions {
    display: flex;
    justify-content: flex-end;
  }

  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    .lu-form-buttons {
    width: auto;
    justify-content: flex-end;
  }

  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    .lu-form-statuses
    > span {
    text-align: left;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    > .lu-form-page-progress {
    background: var(--jdwealth-color-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"],
  .lu-portal-page[data-portal-feature="fact-find"]
    .lu-journey-form[data-journey-id="fact-find"][data-journey-presentation="standard"]
    :is(
      .lu-form-field :is(input, select, textarea),
      .lu-form-options,
      .lu-form-option
    ) {
    border-color: var(--jdwealth-color-text);
  }
}
body[data-tenant="jd-wealth"] .lu-form-submission-confirmation {
  display: grid;
  gap: var(--jdwealth-space-3);
  padding: var(--jdwealth-space-5);
}

body[data-tenant="jd-wealth"]
  .lu-form-submission-confirmation
  > .lu-primary-button {
  justify-self: start;
  margin-top: var(--jdwealth-space-2);
}

/* Use the supplied JD Wealth pictograms only where they carry meaning. The
 * onboarding summary is the one client surface where review, progress and
 * privacy are separate concepts that benefit from an immediate visual cue. */
.lu-journey-welcome-highlights > .lu-feature-editorial-card > span {
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto 1.45rem;
  color: transparent;
  font-size: 0;
}

.lu-journey-welcome-highlights
  > .lu-feature-editorial-card:nth-child(1)
  > span {
  background-image: url("/consumer/assets/journey-review.svg");
}

.lu-journey-welcome-highlights
  > .lu-feature-editorial-card:nth-child(2)
  > span {
  background-image: url("/consumer/assets/journey-progress.svg");
}

.lu-journey-welcome-highlights
  > .lu-feature-editorial-card:nth-child(3)
  > span {
  background-image: url("/consumer/assets/journey-security.svg");
}

/* Source: consumer/styles/portal/90-responsive.css */
/* Cross-route responsive composition only. Component-specific adaptations
 * stay with their owning route fragment so this final stylesheet does not
 * silently override Profile, Goals, financial, booking, vault or journey UI. */

@media (min-width: 621px) and (max-width: 1279px) {
  .lu-dashboard-page[data-dashboard-layout="hero-action"] {
    width: calc(100% - var(--jdwealth-space-8));
    margin-inline: auto;
  }
}

@media (max-width: 1080px) {
  .lu-dashboard-page[data-dashboard-layout="hero-action"]
    .lu-dashboard-goal-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1023px) {
  /* Preserve the platform dialog, focus trap and sign-out while presenting it
   * as a compact account/navigation surface anchored below the header. */
  .lu-portal-sheet {
    top: calc(var(--jdwealth-space-18) + var(--jdwealth-space-4));
    right: var(--jdwealth-space-4);
    width: min(calc(100vw - var(--jdwealth-space-8)), 22rem);
    height: auto;
    max-height: calc(100dvh - var(--jdwealth-space-18) - var(--jdwealth-space-8));
    padding: var(--jdwealth-space-3);
    border: 1px solid var(--jdwealth-color-line);
    border-radius: var(--jdwealth-radius-panel);
    background: var(--jdwealth-color-surface);
    box-shadow: var(--jdwealth-shadow-modal);
  }

  .lu-portal-sheet-title {
    height: auto;
  }

  .lu-portal-sheet-title button {
    top: auto;
    right: auto;
    width: var(--jdwealth-control-minimum-target);
    min-height: var(--jdwealth-control-minimum-target);
  }

  .lu-portal-current-panel {
    padding: var(--jdwealth-space-3);
    border-color: var(--jdwealth-color-line);
    border-radius: var(--jdwealth-radius-control);
    background: var(--jdwealth-color-action-soft);
  }

  .lu-portal-current-panel strong {
    margin-top: var(--jdwealth-space-1);
    font-family: var(--jdwealth-font-display);
    font-size: var(--jdwealth-font-size-lead);
    letter-spacing: var(--jdwealth-font-tracking-heading);
  }

  .lu-portal-current-panel p,
  .lu-portal-sheet-copy small,
  .lu-portal-sheet-copy > span {
    display: none;
  }

  .lu-portal-sheet nav,
  .lu-portal-sheet-account {
    gap: var(--jdwealth-space-1-5);
    margin-top: var(--jdwealth-space-2);
    padding-top: 0;
  }

  .lu-portal-sheet-link,
  .lu-portal-sheet-account > a,
  .lu-portal-sheet-signout {
    min-height: var(--jdwealth-control-minimum-target);
    align-items: center;
    gap: var(--jdwealth-space-2-5);
    padding: var(--jdwealth-space-2-5) var(--jdwealth-space-3);
    border-color: transparent;
    border-radius: var(--jdwealth-radius-control);
    background: transparent;
  }

  .lu-portal-sheet-link[data-active="true"] {
    border-color: color-mix(
      in srgb,
      var(--jdwealth-color-action) 36%,
      var(--jdwealth-color-line)
    );
    background: var(--jdwealth-color-action-soft);
  }

  .lu-portal-sheet-copy strong {
    margin-top: 0;
    font-size: var(--jdwealth-font-size-body-small);
    letter-spacing: var(--jdwealth-font-tracking-normal);
  }

  .lu-portal-sheet-icon {
    width: var(--jdwealth-space-9);
    height: var(--jdwealth-space-9);
  }
}

@media (max-width: 820px) {
  .lu-dashboard-page[data-dashboard-layout="hero-action"] .lu-dashboard-hero,
  .lu-dashboard-page[data-dashboard-layout="hero-action"]
    .lu-dashboard-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lu-dashboard-page[data-dashboard-layout="hero-action"] .lu-dashboard-hero {
    min-height: 0;
  }

  .lu-portal-page:is(
    [data-portal-feature="goals"],
    [data-portal-feature="assets-liabilities"],
    [data-portal-feature="cashflow"],
    [data-portal-feature="vault-documents"]
  ) {
    grid-template-columns: minmax(0, 1fr);
  }

  .lu-portal-page:is(
      [data-portal-feature="goals"],
      [data-portal-feature="assets-liabilities"],
      [data-portal-feature="cashflow"],
      [data-portal-feature="vault-documents"]
    )
    > .lu-feature-editorial-header {
    grid-column: 1;
    grid-row: 1;
  }

  .lu-portal-page[data-portal-feature="goals"] .lu-goals-heading,
  .lu-portal-page:is(
      [data-portal-feature="assets-liabilities"],
      [data-portal-feature="cashflow"]
    )
    .lu-financial-combined-add,
  .lu-portal-page[data-portal-feature="vault-documents"] .lu-vault-intro {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
  }

  .lu-portal-page:is(
      [data-portal-feature="assets-liabilities"],
      [data-portal-feature="cashflow"]
    )
    .lu-financial-summary {
    grid-row: 3;
  }
}

@media (max-width: 620px) {
  .lu-app[data-shell-variant="portal-card"] .lu-main {
    padding-inline: var(--jdwealth-space-2-5);
  }

  .lu-portal-page:is(
    [data-portal-feature="goals"],
    [data-portal-feature="assets-liabilities"],
    [data-portal-feature="cashflow"],
    [data-portal-feature="booking"],
    [data-portal-feature="vault-documents"],
    [data-portal-feature="profile"],
    [data-portal-feature="fact-find"],
    [data-portal-feature="annual-review"]
  ) {
    width: calc(100% - var(--jdwealth-space-3));
    margin-inline: auto;
  }

  .lu-dashboard-page[data-dashboard-layout="hero-action"] {
    width: calc(100% - var(--jdwealth-space-3));
    margin-inline: auto;
  }

  .lu-feature-editorial-header,
  .lu-dashboard-page[data-dashboard-layout="hero-action"] .lu-dashboard-hero {
    padding: var(--jdwealth-space-4-5);
  }

  .lu-dashboard-hero-action > .lu-primary-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .lu-portal-card-header .lu-variant-topbar {
    background: var(--jdwealth-color-surface);
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .lu-panel,
  .lu-feature-editorial-card,
  .lu-financial-collection,
  .lu-form-section {
    border-color: currentColor;
  }
}
