/* 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/admin/00-foundations.css */
/* JD Wealth admin presentation layer. Loaded through the bounded consumer stylesheet extension. */

:root {
  --jdwealth-admin-accent: var(--jdwealth-color-data);
  --jdwealth-admin-ink: var(--jdwealth-color-text);
  --jdwealth-admin-shadow: var(--jdwealth-shadow-raised);
  --jdwealth-admin-control-height: var(--jdwealth-control-minimum-target);
  --jdwealth-admin-control-inner-height: calc(
    var(--jdwealth-control-minimum-target) - (2 * var(--jdwealth-space-1)) - 2px
  );
}

/* Admin is intentionally light-only. The shell no longer offers an appearance
 * control; these aliases also migrate staff who previously saved Dark mode. */
:root[data-lu-appearance="dark"] body[data-tenant="jd-wealth"] {
  --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"]
  body[data-tenant="jd-wealth"]
  .lu-app {
  color-scheme: light;
}

/* The client dashboard is the colour source of truth. Admin interactions and
 * Present use the same teal-blue accent family in both appearances. */
body[data-tenant="jd-wealth"] .lu-app {
  --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-data) 9%,
    var(--jdwealth-color-surface)
  );
  --jdwealth-shadow-action: 0 0.45rem 1rem
    color-mix(in srgb, var(--jdwealth-color-data-strong) 24%, transparent);
}

/* Source: consumer/styles/admin/05-auth.css */
/* Admin authentication: the same warm materials, editorial heading and
 * teal-blue action language as the signed-in JD Wealth admin portal. Authentication
 * targets and provider behaviour remain owned by the platform. */
body[data-tenant="jd-wealth"] main[class*="staffLoginShell"] {
  --staff-accent: var(--jdwealth-color-data-strong);
  --staff-text: var(--jdwealth-color-text);
  --staff-muted: var(--jdwealth-color-muted);
  --staff-border: var(--jdwealth-color-border-soft);
  min-height: 100dvh;
  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);
}

body[data-tenant="jd-wealth"] [class*="staffLoginBackdrop"] {
  background:
    radial-gradient(
      circle at 80% 14%,
      color-mix(in srgb, var(--jdwealth-color-data) 15%, transparent),
      transparent 30%
    ),
    radial-gradient(
      circle at 12% 88%,
      color-mix(in srgb, var(--jdwealth-color-surface-strong) 72%, transparent),
      transparent 34%
    );
}

body[data-tenant="jd-wealth"] [class*="staffLoginRings"] {
  display: none;
}

body[data-tenant="jd-wealth"] [class*="staffLoginFrame"] {
  width: min(100%, 36rem);
  padding: max(var(--jdwealth-space-10), env(safe-area-inset-top))
    max(var(--jdwealth-space-5), env(safe-area-inset-right))
    max(var(--jdwealth-space-10), env(safe-area-inset-bottom))
    max(var(--jdwealth-space-5), env(safe-area-inset-left));
}

body[data-tenant="jd-wealth"] [class*="staffBrand"] {
  margin-bottom: var(--jdwealth-space-4-5);
}

body[data-tenant="jd-wealth"] [class*="staffBrand"] .lu-brand {
  gap: 0;
}

body[data-tenant="jd-wealth"] [class*="staffBrand"] .lu-brand::before {
  width: 10rem;
  height: 2.75rem;
  background: url("/consumer/assets/jd-wealth-logo.svg") left center / contain
    no-repeat;
  content: "";
}

body[data-tenant="jd-wealth"] [class*="staffBrand"] .lu-brand strong {
  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"]
  [class*="staffBrand"]
  :is(.lu-brand small, p) {
  display: none;
}

:root[data-lu-appearance="dark"]
  body[data-tenant="jd-wealth"]
  [class*="staffBrand"]
  .lu-brand::before {
  background-image: url("/consumer/assets/jd-wealth-logo.svg");
}

body[data-tenant="jd-wealth"] [class*="staffLoginCard"] {
  min-height: 0;
  border: 1px solid var(--jdwealth-color-border-soft);
  border-radius: var(--jdwealth-radius-card);
  background: color-mix(in srgb, var(--jdwealth-color-surface) 94%, transparent);
  box-shadow: var(--jdwealth-shadow-modal);
  color: var(--jdwealth-color-text);
  padding: clamp(var(--jdwealth-space-6), 3vw, var(--jdwealth-space-9));
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
}

body[data-tenant="jd-wealth"] [class*="staffLoginHighlight"] {
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--jdwealth-color-data) 30%, transparent),
    transparent
  );
}

body[data-tenant="jd-wealth"] [class*="staffLoginTop"] > span {
  min-height: 1.9rem;
  border: 1px solid
    color-mix(
      in srgb,
      var(--jdwealth-color-data) 28%,
      var(--jdwealth-color-border-soft)
    );
  border-radius: var(--jdwealth-radius-pill);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-data) 9%,
    var(--jdwealth-color-surface)
  );
  color: var(--jdwealth-color-accent-text);
  font-family: var(--jdwealth-font-interface);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: 700;
  letter-spacing: var(--jdwealth-font-tracking-label);
  padding: var(--jdwealth-space-1-5) var(--jdwealth-space-3);
}

body[data-tenant="jd-wealth"] [class*="staffLoginTop"] {
  justify-content: flex-start;
}

body[data-tenant="jd-wealth"] [class*="staffLoginTop"] > span svg {
  width: 0.9rem;
  height: 0.9rem;
}

body[data-tenant="jd-wealth"] [class*="staffLoginTop"] > svg {
  display: none;
}

body[data-tenant="jd-wealth"] [class*="staffLoginCopy"] {
  margin-top: var(--jdwealth-space-6);
}

body[data-tenant="jd-wealth"] [class*="staffLoginCopy"] h1 {
  color: var(--jdwealth-color-text);
  font-family: var(--jdwealth-font-display);
  font-size: var(--jdwealth-font-size-page);
  font-weight: var(--jdwealth-font-weight-regular);
  letter-spacing: var(--jdwealth-font-tracking-display);
  line-height: var(--jdwealth-font-line-height-solid);
}

body[data-tenant="jd-wealth"] [class*="staffLoginCopy"] p {
  max-width: 38ch;
  margin-top: var(--jdwealth-space-3);
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-body-small);
  line-height: var(--jdwealth-font-line-height-relaxed);
}

body[data-tenant="jd-wealth"] [class*="staffLoginError"] {
  margin-top: var(--jdwealth-space-5);
  border-color: color-mix(in srgb, var(--jdwealth-color-danger) 34%, transparent);
  border-radius: var(--jdwealth-radius-control);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-danger) 10%,
    var(--jdwealth-color-surface)
  );
  color: var(--jdwealth-color-text);
  font-size: var(--jdwealth-font-size-body-small);
  padding: var(--jdwealth-space-3-5) var(--jdwealth-space-3-5);
}

body[data-tenant="jd-wealth"] [class*="staffLoginAction"] {
  margin-top: var(--jdwealth-space-5-5);
}

body[data-tenant="jd-wealth"]
  [class*="staffLoginAction"]
  .lu-primary-link {
  min-height: 3rem;
  border: 1px solid var(--jdwealth-color-data-strong);
  border-radius: var(--jdwealth-radius-control);
  background: var(--jdwealth-color-data-strong);
  box-shadow: var(--jdwealth-shadow-action);
  color: var(--jdwealth-color-on-solid);
  font-family: var(--jdwealth-font-interface);
  font-size: var(--jdwealth-font-size-body-small);
  font-weight: 750;
  letter-spacing: var(--jdwealth-font-tracking-normal);
}

body[data-tenant="jd-wealth"]
  [class*="staffLoginAction"]
  .lu-primary-link:focus-visible {
  outline-color: var(--jdwealth-color-data);
}

body[data-tenant="jd-wealth"]
  :is([class*="staffLoginFooter"], [class*="staffLoginNote"]) {
  display: none;
}

@media (max-width: 620px) {
  body[data-tenant="jd-wealth"] [class*="staffLoginFrame"] {
    justify-content: center;
    padding-inline: max(var(--jdwealth-space-4), env(safe-area-inset-left));
    transform: none;
  }

  body[data-tenant="jd-wealth"] [class*="staffLoginCard"] {
    border-radius: var(--jdwealth-radius-card);
  }
}

@media (prefers-reduced-transparency: reduce) {
  body[data-tenant="jd-wealth"] [class*="staffLoginCard"] {
    background: var(--jdwealth-color-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Source: consumer/styles/admin/10-shell.css */
/* The admin shell carries the same quiet editorial signature as the client portal. */

body[data-tenant="jd-wealth"]
  .lu-admin-bar-header
  .lu-admin-logo-shell {
  flex: 0 0 9rem;
  width: 9rem;
  min-width: 9rem;
  background-image: url("/consumer/assets/jd-wealth-logo.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: calc(100% - var(--jdwealth-space-5)) auto;
}

body[data-tenant="jd-wealth"]
  .lu-admin-bar-header
  .lu-admin-word-logo {
  display: none;
}

body[data-tenant="jd-wealth"]
  .lu-admin-bar-header
  .lu-variant-brand
  > span:last-child
  strong {
  display: none;
}

body[data-tenant="jd-wealth"]
  .lu-admin-bar-header
  .lu-variant-brand
  > span:last-child {
  position: absolute;
  width: auto;
  height: auto;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

:root[data-lu-appearance="dark"]
  body[data-tenant="jd-wealth"]
  .lu-admin-bar-header
  .lu-admin-logo-shell {
  background-image: url("/consumer/assets/jd-wealth-logo.svg");
}

body[data-tenant="jd-wealth"]
  .lu-admin-bar-header
  .lu-variant-brand
  strong {
  font-family: var(--jdwealth-font-display);
  font-size: var(--jdwealth-font-size-lead);
  font-style: normal;
  font-weight: var(--jdwealth-font-weight-bold);
  letter-spacing: var(--jdwealth-font-tracking-heading);
}

body[data-tenant="jd-wealth"]
  .lu-appearance-control[data-variant="admin-toggle"] {
  height: var(--jdwealth-admin-control-height);
  gap: var(--jdwealth-space-1);
  border: 1px solid var(--jdwealth-color-border-soft);
  border-radius: var(--jdwealth-radius-pill);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-surface) 82%,
    transparent
  );
  padding: var(--jdwealth-space-1);
}

body[data-tenant="jd-wealth"]
  .lu-appearance-control[data-variant="admin-toggle"]
  .admin-mode-toggle__button {
  width: var(--jdwealth-admin-control-inner-height);
  min-width: var(--jdwealth-admin-control-inner-height);
  height: var(--jdwealth-admin-control-inner-height);
  font-family: var(--jdwealth-font-interface);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: 650;
  letter-spacing: var(--jdwealth-font-tracking-label);
  border-radius: var(--jdwealth-radius-pill);
  color: var(--jdwealth-color-muted);
  padding: 0;
  transition:
    background var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    color var(--jdwealth-motion-quick) var(--jdwealth-motion-ease),
    box-shadow var(--jdwealth-motion-quick) var(--jdwealth-motion-ease);
}

body[data-tenant="jd-wealth"]
  .lu-appearance-control[data-variant="admin-toggle"]
  .admin-mode-toggle__button[data-active="true"] {
  background: color-mix(
    in srgb,
    var(--jdwealth-color-action) 20%,
    var(--jdwealth-color-surface-strong)
  );
  box-shadow: 0 1px 2px
    color-mix(in srgb, var(--jdwealth-color-text) 10%, transparent);
  color: var(--jdwealth-color-text);
}

body[data-tenant="jd-wealth"]
  .lu-appearance-control[data-variant="admin-toggle"]
  .admin-mode-toggle__button:hover {
  color: var(--jdwealth-color-accent-text);
}

body[data-tenant="jd-wealth"]
  .lu-appearance-control[data-variant="admin-toggle"]
  .admin-mode-toggle__button
  svg {
  width: 1rem;
  height: 1rem;
}

body[data-tenant="jd-wealth"] .lu-admin-avatar {
  width: var(--jdwealth-admin-control-height);
  min-width: var(--jdwealth-admin-control-height);
  min-height: var(--jdwealth-admin-control-height);
  height: var(--jdwealth-admin-control-height);
  font-family: var(--jdwealth-font-interface);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: 650;
  letter-spacing: var(--jdwealth-font-tracking-label);
}

/* Workflow and Calculations are the two daily adviser destinations. The avatar
   popover keeps Templates, product information and session controls nearby. */
body[data-tenant="jd-wealth"]
  .lu-admin-bar-header
  .lu-variant-primary {
  min-width: 0;
  gap: var(--jdwealth-space-0-5);
}

body[data-tenant="jd-wealth"]
  .lu-admin-bar-header
  .lu-variant-primary-link {
  min-height: var(--jdwealth-control-minimum-target);
  padding-inline: var(--jdwealth-space-3);
  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);
}

body[data-tenant="jd-wealth"]
  .lu-admin-bar-header
  :where(.lu-variant-primary-link, .lu-admin-menu-link, .lu-admin-mobile-link):active {
  transform: scale(0.97);
}

@media (min-width: 1121px) and (max-width: 1240px) {
  body[data-tenant="jd-wealth"]
    .lu-admin-bar-header
    .lu-variant-primary-link {
    font-size: var(--jdwealth-font-size-caption);
    padding-inline: var(--jdwealth-space-2);
  }

}

@media (max-width: 1120px) {
  body[data-tenant="jd-wealth"]
    .lu-admin-bar-header
    .lu-variant-primary,
  body[data-tenant="jd-wealth"]
    .lu-admin-bar-header
    .lu-variant-actions
    > .lu-appearance-control[data-variant="admin-toggle"] {
    display: none;
  }

  body[data-tenant="jd-wealth"] .lu-admin-mobile-trigger {
    display: inline-flex;
  }

  body[data-tenant="jd-wealth"]:has(.lu-admin-mobile-panel:not([hidden])) {
    overflow: hidden;
  }

  body[data-tenant="jd-wealth"] .lu-admin-mobile-panel:not([hidden]) {
    position: fixed;
    z-index: 80;
    top: calc(var(--jdwealth-space-18) + var(--jdwealth-space-3));
    right: var(--jdwealth-space-3);
    display: grid;
    width: min(22rem, calc(100vw - var(--jdwealth-space-6)));
    max-height: calc(
      100dvh - var(--jdwealth-space-18) - var(--jdwealth-space-6)
    );
    gap: var(--jdwealth-space-3);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--jdwealth-color-border-soft);
    border-radius: var(--jdwealth-radius-panel);
    background: color-mix(
      in srgb,
      var(--jdwealth-color-nav) 94%,
      transparent
    );
    box-shadow: var(--jdwealth-shadow-modal);
    padding: var(--jdwealth-space-3);
    transform-origin: top right;
    animation: jdwealth-admin-menu-in var(--jdwealth-motion-standard)
      var(--jdwealth-motion-ease) both;
  }

  body[data-tenant="jd-wealth"] .lu-admin-mobile-panel::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background: color-mix(
      in srgb,
      var(--jdwealth-color-text) 18%,
      transparent
    );
    content: "";
  }

  body[data-tenant="jd-wealth"]
    .lu-admin-mobile-panel
    :where(nav, .lu-admin-mobile-account) {
    gap: var(--jdwealth-space-1);
  }

  body[data-tenant="jd-wealth"] .lu-admin-mobile-link {
    min-height: var(--jdwealth-control-minimum-target);
    border-radius: var(--jdwealth-radius-control);
    font-weight: 600;
    padding: var(--jdwealth-space-2-5) var(--jdwealth-space-3);
  }

  body[data-tenant="jd-wealth"]
    .lu-admin-mobile-link[aria-current="page"] {
    background: var(--jdwealth-color-action);
    color: var(--jdwealth-color-on-solid);
  }
}

@keyframes jdwealth-admin-menu-in {
  from {
    opacity: 0;
    transform: translateY(calc(var(--jdwealth-space-2) * -1)) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body[data-tenant="jd-wealth"]
  .lu-appearance-control[data-variant="admin-toggle"]
  .admin-mode-toggle__button
  > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Source: consumer/styles/admin/20-workspaces.css */
/* Generic workspaces should enter directly into the task, without an oversized banner. */
body[data-tenant="jd-wealth"]
  section[aria-labelledby="admin-page-title"] {
  min-height: 0;
  align-items: center;
  padding: clamp(var(--jdwealth-space-5), 2.6vw, var(--jdwealth-space-8));
}

body[data-tenant="jd-wealth"] #admin-page-title {
  font-size: var(--jdwealth-font-size-title);
  line-height: var(--jdwealth-font-line-height-solid);
  letter-spacing: var(--jdwealth-font-tracking-display);
}

body[data-tenant="jd-wealth"]
  section[aria-labelledby="admin-page-title"]
  > :last-child {
  align-self: center;
}

body[data-tenant="jd-wealth"]
  :where(
    [class*="admin-dashboard_operationsPanel"],
    [class*="admin-dashboard_directoryPanel"],
    [class*="activity-directory_panel"],
    .lu-work-queue-manager > section,
    .lu-present-section,
    .lu-present-workspace-panel
  ) {
  border-radius: var(--jdwealth-radius-panel);
  box-shadow: var(--jdwealth-admin-shadow);
}

/* Source: consumer/styles/admin/30-operations.css */
/* Operations dashboard: one quiet overview, four useful measures, then the working list. */
body[data-tenant="jd-wealth"] [class*="admin-dashboard_dashboard"] {
  gap: var(--jdwealth-space-4);
}

body[data-tenant="jd-wealth"]
  [class*="admin-dashboard_operationsPanel"]::before {
  opacity: 0.35;
}

body[data-tenant="jd-wealth"]
  [class*="admin-dashboard_operationsContent"] {
  padding: clamp(var(--jdwealth-space-4), 2.4vw, var(--jdwealth-space-6));
}

body[data-tenant="jd-wealth"] [class*="admin-dashboard_pageHeading"] h1,
body[data-tenant="jd-wealth"] [class*="activity-directory_pageTitle"] {
  font-size: var(--jdwealth-font-size-title);
  line-height: var(--jdwealth-font-line-height-solid);
}

body[data-tenant="jd-wealth"] [class*="admin-dashboard_summary"] {
  gap: var(--jdwealth-space-3-5);
  margin-top: var(--jdwealth-space-4-5);
}

body[data-tenant="jd-wealth"] [class*="admin-dashboard_dashboardGrid"] {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--jdwealth-space-3-5);
}

body[data-tenant="jd-wealth"] [class*="admin-dashboard_statsGrid"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--jdwealth-space-3);
}

body[data-tenant="jd-wealth"] [class*="admin-dashboard_metricCard"] {
  min-height: 8rem;
  border-radius: var(--jdwealth-radius-control);
  box-shadow: none;
  padding: var(--jdwealth-space-4);
}

body[data-tenant="jd-wealth"] [class*="admin-dashboard_windowPanel"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--jdwealth-space-3-5);
  border-radius: var(--jdwealth-radius-control);
  box-shadow: none;
  padding: var(--jdwealth-space-3) var(--jdwealth-space-3-5);
}

body[data-tenant="jd-wealth"] [class*="admin-dashboard_windowHeading"] h2,
body[data-tenant="jd-wealth"]
  [class*="admin-dashboard_windowHeading"]
  > div
  > p:last-child,
body[data-tenant="jd-wealth"] [class*="admin-dashboard_windowMetrics"] {
  display: none;
}

body[data-tenant="jd-wealth"] [class*="admin-dashboard_windowHeading"] {
  align-items: center;
}

body[data-tenant="jd-wealth"] [class*="admin-dashboard_compactMetric"] {
  min-width: 7rem;
  border: 0;
  box-shadow: none;
  padding: 0;
}

body[data-tenant="jd-wealth"]
  [class*="dashboard-household-directory_shell"],
body[data-tenant="jd-wealth"] [class*="household-directory_shell"] {
  border-radius: var(--jdwealth-radius-panel);
}

body[data-tenant="jd-wealth"]
  :where(
    [class*="dashboard-household-directory_primaryButton"],
    [class*="dashboard-household-directory_secondaryButton"],
    [class*="household-directory_primaryButton"],
    [class*="household-directory_secondaryButton"]
  ) {
  min-height: var(--jdwealth-control-minimum-target);
  border-radius: var(--jdwealth-radius-control);
}

body[data-tenant="jd-wealth"]
  main
  a[href^="/clients/"][aria-label^="View "] {
  min-width: var(--jdwealth-control-minimum-target);
}

/* Source: consumer/styles/admin/60-present-foundations.css */
/* Present keeps its anchored agenda rail and gives the household the visual priority. */
body[data-tenant="jd-wealth"] .lu-present-shell {
  min-height: calc(100dvh - 7rem);
  border: 1px solid var(--jdwealth-color-border);
  border-radius: var(--jdwealth-radius-card);
  background: var(--jdwealth-color-surface);
  box-shadow: var(--jdwealth-admin-shadow);
  overflow: clip;
}

body[data-tenant="jd-wealth"] .lu-present-sidebar {
  width: 17rem;
  border-right: 1px solid var(--jdwealth-color-border);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-canvas) 82%,
    var(--jdwealth-color-surface)
  );
}

body[data-tenant="jd-wealth"] .lu-present-nav button {
  min-height: var(--jdwealth-control-minimum-target);
  border-radius: var(--jdwealth-radius-control);
}

body[data-tenant="jd-wealth"] .lu-present-client > h1 {
  display: none;
}

body[data-tenant="jd-wealth"] .lu-present-nav-active {
  background: color-mix(
    in srgb,
    var(--jdwealth-color-action) 14%,
    var(--jdwealth-color-surface)
  );
}

body[data-tenant="jd-wealth"] .lu-present-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  align-items: center;
  border-bottom: 1px solid var(--jdwealth-color-border);
  background: color-mix(in srgb, var(--jdwealth-color-surface) 88%, transparent);
  backdrop-filter: blur(20px) saturate(1.15);
}

body[data-tenant="jd-wealth"] .lu-present-topbar h1 {
  margin: 0;
  font-family: var(--jdwealth-font-display);
  font-size: var(--jdwealth-font-size-page);
  font-weight: var(--jdwealth-font-weight-regular);
  letter-spacing: var(--jdwealth-font-tracking-display);
  line-height: var(--jdwealth-font-line-height-solid);
}

body[data-tenant="jd-wealth"]
  :where(.lu-present-live-badge, .lu-present-topbar-actions a) {
  min-height: var(--jdwealth-admin-control-height);
  border-radius: var(--jdwealth-radius-pill);
  font-family: var(--jdwealth-font-interface);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: 650;
  letter-spacing: var(--jdwealth-font-tracking-label);
  line-height: var(--jdwealth-font-line-height-solid);
  text-transform: uppercase;
}

body[data-tenant="jd-wealth"] .lu-present-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-tenant="jd-wealth"] .lu-present-metrics article {
  border-radius: var(--jdwealth-radius-control);
  box-shadow: none;
}

/* Source: consumer/styles/admin/70-households.css */
/* Household surfaces share the same calm hierarchy and touch targets. */
body[data-tenant="jd-wealth"]
  :where(.lu-admin-detail, .lu-household-summary) {
  display: grid;
  gap: var(--jdwealth-space-4);
}

body[data-tenant="jd-wealth"]
  [class*="dashboard-directory_search"]
  input {
  padding-left: var(--jdwealth-space-10);
}

body[data-tenant="jd-wealth"] [class*="dashboard-directory_searchIcon"] {
  left: 0.85rem;
  width: 1rem;
  justify-content: flex-start;
}

body[data-tenant="jd-wealth"] :where(.lu-panel, .lu-admin-section) {
  border-radius: var(--jdwealth-radius-panel);
}

body[data-tenant="jd-wealth"]
  main
  [class*="dashboard-directory_primaryButton"][href^="/present"] {
  border-color: transparent;
  background: var(--jdwealth-color-action-strong);
  box-shadow: var(--jdwealth-shadow-action);
  color: var(--jdwealth-color-on-solid);
}

/* The shared directory currently renders placeholder workflow and access
 * labels for every record. Keep the real actions, but do not present those
 * labels as household or portal-contact state. */
body[data-tenant="jd-wealth"]
  [class*="dashboard-directory_householdSummary"]
  > [class*="dashboard-directory_actions"]
  > [class*="dashboard-directory_statusChip"],
body[data-tenant="jd-wealth"]
  [class*="dashboard-directory_contactPanel"]
  [class*="dashboard-directory_contact__"]
  > [class*="dashboard-directory_actions"]
  > [class*="dashboard-directory_statusChip"] {
  display: none;
}

/* Household detail is a staff-facing client record, not a provider-contract
 * diagnostic. Preserve failure notices and real statuses while removing
 * implementation jargon and capabilities JD Wealth does not offer. */
body[data-tenant="jd-wealth"]
  [class*="admin-surface_surface"]:has(#household-overview)
  [class*="admin-surface_headerSummary"],
body[data-tenant="jd-wealth"]
  [class*="admin-surface_surface"]:has(#household-overview)
  [class*="admin-surface_headerMeta"]
  > .lu-pill:first-child,
body[data-tenant="jd-wealth"] #household-overview > .lu-panel .lu-copy,
body[data-tenant="jd-wealth"]
  #household-overview
  > .lu-panel:nth-child(3)
  .lu-metric
  small,
body[data-tenant="jd-wealth"]
  #household-overview
  + .lu-panel
  + .lu-panel
  .lu-copy,
body[data-tenant="jd-wealth"]
  #household-overview
  + .lu-panel
  + .lu-panel
  .lu-metric
  small,
body[data-tenant="jd-wealth"]
  #household-overview
  + .lu-panel
  + .lu-panel
  + .lu-panel
  .lu-copy,
body[data-tenant="jd-wealth"]
  #household-overview
  + .lu-panel
  + .lu-panel
  + .lu-panel
  .lu-metric
  small,
body[data-tenant="jd-wealth"]
  :is(#household-invitations, #household-evidence, #household-documents)
  .lu-copy {
  display: none;
}

body[data-tenant="jd-wealth"]
  #household-overview
  > .lu-panel:first-child
  .lu-list-row:nth-child(3),
body[data-tenant="jd-wealth"]
  #household-overview
  + .lu-panel
  .lu-list-row
  > .lu-pill,
body[data-tenant="jd-wealth"]
  #household-overview
  + .lu-panel
  + .lu-panel
  .lu-metrics
  > .lu-metric:nth-child(4) {
  display: none;
}

body[data-tenant="jd-wealth"] [class*="dashboard-directory_disclosure"] {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid
    color-mix(in srgb, var(--jdwealth-color-data) 22%, var(--jdwealth-color-border));
  background: color-mix(
    in srgb,
    var(--jdwealth-color-data) 6%,
    var(--jdwealth-color-surface)
  );
  color: var(--jdwealth-color-accent-text);
}

body[data-tenant="jd-wealth"]
  [class*="dashboard-directory_disclosure"]:hover {
  background: color-mix(
    in srgb,
    var(--jdwealth-color-data) 16%,
    var(--jdwealth-color-surface)
  );
}

:root[data-lu-appearance="dark"]
  body[data-tenant="jd-wealth"]
  main
  [class*="dashboard-directory_primaryButton"][href^="/present"] {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-present) 68%,
    var(--jdwealth-color-on-solid)
  );
  background: var(--jdwealth-color-present);
  box-shadow: var(--jdwealth-shadow-present);
  color: var(--jdwealth-color-present-ink);
}

/* Source: consumer/styles/admin/80-dashboard.css */
/* Dashboard: one compact command surface, then metrics and a table-like directory. */
body[data-tenant="jd-wealth"]
  [class*="admin-dashboard_operationsPanel"]::before {
  display: none;
}

body[data-tenant="jd-wealth"]
  :where(
    [class*="admin-dashboard_successChip"],
    [class*="admin-dashboard_accentChip"]
  ) {
  border-color: var(--jdwealth-color-border);
  background: var(--jdwealth-color-surface);
  color: var(--jdwealth-color-muted);
}

/* Provider branding is implementation detail. Keep only actionable degraded
   state beside Refresh. */
body[data-tenant="jd-wealth"]
  [class*="admin-dashboard_headerActions"]
  [class*="admin-dashboard_successChip"] {
  display: none;
}

body[data-tenant="jd-wealth"]
  :where(
    [class*="admin-dashboard_headerActions"] > *,
    [class*="admin-dashboard_segmented"]
  ) {
  height: var(--jdwealth-admin-control-height);
  min-height: var(--jdwealth-admin-control-height);
  border-radius: var(--jdwealth-radius-pill);
  font-family: var(--jdwealth-font-interface);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: 650;
  letter-spacing: var(--jdwealth-font-tracking-label);
  line-height: var(--jdwealth-font-line-height-solid);
  text-transform: uppercase;
}

body[data-tenant="jd-wealth"]
  [class*="admin-dashboard_headerActions"]
  > * {
  padding-block: 0;
}

body[data-tenant="jd-wealth"] [class*="admin-dashboard_segmented"] {
  padding: var(--jdwealth-space-1);
  overflow: hidden;
}

body[data-tenant="jd-wealth"]
  [class*="admin-dashboard_segmented"]
  button {
  height: calc(
    var(--jdwealth-admin-control-height) - (2 * var(--jdwealth-space-1)) - 2px
  );
  min-height: var(--jdwealth-admin-control-inner-height);
  font-family: var(--jdwealth-font-interface);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: 650;
  letter-spacing: var(--jdwealth-font-tracking-label);
  line-height: var(--jdwealth-font-line-height-solid);
  padding-block: 0;
}

body[data-tenant="jd-wealth"] [class*="dashboard-directory_empty"] {
  width: 100%;
}

body[data-tenant="jd-wealth"]
  [class*="dashboard-directory_directoryHeader"]
  :where([class*="kicker"], p:last-child) {
  display: none;
}

/* The dashboard is an adviser workspace, so provider and access-control
   implementation language does not belong in its visible summary. */
body[data-tenant="jd-wealth"] [class*="admin-dashboard_metricCard"] small,
body[data-tenant="jd-wealth"] [class*="dashboard-directory_truncated"] {
  display: none;
}

body[data-tenant="jd-wealth"]
  [class*="admin-dashboard_metricCard"]:last-child
  [class*="admin-dashboard_metricHeader"]
  p {
  font-size: 0;
}

body[data-tenant="jd-wealth"]
  [class*="admin-dashboard_metricCard"]:last-child
  [class*="admin-dashboard_metricHeader"]
  p::after {
  content: "Portal access";
  font-size: var(--jdwealth-font-size-caption);
}

/* Make the household and contact actions self-describing while preserving the
   existing links, buttons, query strings and server-backed workflows. */
body[data-tenant="jd-wealth"]
  article[class*="dashboard-directory_household__"]
  :where(
    [class*="dashboard-directory_iconButton"],
    [class*="dashboard-directory_disclosure"],
    [class*="dashboard-directory_secondaryIconButton"],
    [class*="dashboard-directory_primaryIconButton"]
  ) {
  width: auto;
  min-width: var(--jdwealth-control-minimum-target);
  min-height: var(--jdwealth-control-minimum-target);
  gap: var(--jdwealth-space-1-5);
  padding-inline: var(--jdwealth-space-3);
  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);
}

body[data-tenant="jd-wealth"]
  article[class*="dashboard-directory_household__"]
  :where(
    [class*="dashboard-directory_iconButton"],
    [class*="dashboard-directory_disclosure"],
    [class*="dashboard-directory_secondaryIconButton"],
    [class*="dashboard-directory_primaryIconButton"]
  ):active {
  transform: scale(0.97);
}

body[data-tenant="jd-wealth"]
  [class*="dashboard-directory_householdSummary"]
  [class*="dashboard-directory_iconButton"],
body[data-tenant="jd-wealth"]
  [class*="dashboard-directory_contact__"]
  [class*="dashboard-directory_iconButton"] {
  display: none;
}

body[data-tenant="jd-wealth"]
  [class*="dashboard-directory_householdSummary"]
  [class*="dashboard-directory_disclosure"]::after {
  content: "Invite";
}

body[data-tenant="jd-wealth"]
  [class*="dashboard-directory_contact__"]
  [class*="dashboard-directory_secondaryIconButton"]::after {
  content: "Invite";
}

body[data-tenant="jd-wealth"]
  [class*="dashboard-directory_contact__"]
  [class*="dashboard-directory_primaryIconButton"]::after {
  content: "Present";
}

@media (min-width: 900px) {
  body[data-tenant="jd-wealth"] [class*="admin-dashboard_dashboard"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--jdwealth-space-3-5) var(--jdwealth-space-4);
  }

  body[data-tenant="jd-wealth"]
    :where(
      [class*="admin-dashboard_operationsPanel"],
      [class*="admin-dashboard_operationsContent"],
      [class*="admin-dashboard_summary"],
      [class*="admin-dashboard_dashboardGrid"],
      [class*="admin-dashboard_directoryPanel"],
      .lu-household-directory,
      [class^="dashboard-directory_directory__"]
    ) {
    display: contents;
  }

  /* The shared dashboard grid has its own class-level display rule. Keep its
     children on the JD Wealth page grid so the header controls remain compact. */
  body[data-tenant="jd-wealth"] [class*="admin-dashboard_dashboardGrid"] {
    display: contents;
  }

  body[data-tenant="jd-wealth"]
    [class*="admin-dashboard_operationsHeader"] {
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    padding: var(--jdwealth-space-1) 0;
  }

  body[data-tenant="jd-wealth"]
    [class*="admin-dashboard_pageHeading"]
    [class*="kicker"],
  body[data-tenant="jd-wealth"]
    [class*="admin-dashboard_pageHeading"]
    > p:last-child,
  body[data-tenant="jd-wealth"] [class*="admin-dashboard_metaChips"] {
    display: none;
  }

  body[data-tenant="jd-wealth"]
    [class*="admin-dashboard_pageHeading"]
    h1 {
    margin: 0;
    font-family: var(--jdwealth-font-display);
    font-size: var(--jdwealth-font-size-page);
    font-weight: var(--jdwealth-font-weight-regular);
    letter-spacing: var(--jdwealth-font-tracking-display);
    line-height: var(--jdwealth-font-line-height-solid);
    white-space: nowrap;
  }

  body[data-tenant="jd-wealth"]
    [class*="admin-dashboard_pageHeading"]
    h1
    em {
    color: var(--jdwealth-color-accent-text);
    font-style: italic;
  }

  body[data-tenant="jd-wealth"] [class*="admin-dashboard_headerActions"] {
    flex-wrap: nowrap;
    margin-left: auto;
  }

  body[data-tenant="jd-wealth"]
    :where(
      [class*="admin-dashboard_headerActions"] > *,
      [class*="admin-dashboard_segmented"]
    ) {
    min-height: var(--jdwealth-admin-control-height);
  }

  body[data-tenant="jd-wealth"] [class*="dashboard-directory_search"] {
    grid-column: 1 / 3;
    grid-row: 2;
    width: 100%;
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_search"]
    input {
    height: 2.65rem;
    background: color-mix(
      in srgb,
      var(--jdwealth-color-surface) 82%,
      transparent
    );
    padding-left: var(--jdwealth-space-10);
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_searchIcon"] {
    left: 0.85rem;
    width: 1rem;
    justify-content: flex-start;
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_searchStatus"] {
    display: none;
  }

  body[data-tenant="jd-wealth"] [class*="admin-dashboard_statsGrid"] {
    grid-column: 1 / 3;
    grid-row: 3;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--jdwealth-color-border-soft);
    border-radius: var(--jdwealth-radius-panel);
    background: color-mix(
      in srgb,
      var(--jdwealth-color-surface) 88%,
      transparent
    );
  }

  body[data-tenant="jd-wealth"] [class*="admin-dashboard_metricCard"] {
    min-height: 5.75rem;
    border: 0;
    border-right: 1px solid var(--jdwealth-color-border-soft);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: var(--jdwealth-space-3) var(--jdwealth-space-4);
  }

  body[data-tenant="jd-wealth"]
    [class*="admin-dashboard_metricCard"]:last-child {
    border-right: 0;
  }

  body[data-tenant="jd-wealth"]
    [class*="admin-dashboard_metricCard"]
    small {
    display: none;
  }

  body[data-tenant="jd-wealth"] [class*="admin-dashboard_metricHeader"] {
    align-items: center;
  }

  body[data-tenant="jd-wealth"]
    [class*="admin-dashboard_metricHeader"]
    > span {
    width: 1.75rem;
    height: 1.75rem;
    background: color-mix(
      in srgb,
      var(--jdwealth-color-action) 12%,
      transparent
    );
  }

  body[data-tenant="jd-wealth"] [class*="admin-dashboard_windowPanel"] {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: auto;
    border: 0;
    background: transparent;
    padding: 0;
  }

  body[data-tenant="jd-wealth"]
    :where(
      [class*="admin-dashboard_windowHeading"],
      [class*="admin-dashboard_windowMetrics"]
    ) {
    display: none;
  }

  body[data-tenant="jd-wealth"] [class*="admin-dashboard_segmented"] {
    grid-column: 1 / -1;
    height: var(--jdwealth-admin-control-height);
    min-height: var(--jdwealth-admin-control-height);
    gap: var(--jdwealth-space-1);
    border: 1px solid var(--jdwealth-color-border-soft);
    background: color-mix(
      in srgb,
      var(--jdwealth-color-surface) 78%,
      transparent
    );
    padding: var(--jdwealth-space-1);
  }

  body[data-tenant="jd-wealth"]
    [class*="admin-dashboard_segmented"]
    button {
    height: calc(
      var(--jdwealth-admin-control-height) - (2 * var(--jdwealth-space-1)) - 2px
    );
    min-height: 0;
    font-size: var(--jdwealth-font-size-caption);
    border-radius: var(--jdwealth-radius-pill);
    padding: 0 var(--jdwealth-space-3);
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_directoryHeader"] {
    grid-column: 1 / 3;
    grid-row: 4;
    align-items: center;
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_directoryHeader"]
    [class*="kicker"],
  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_directoryHeader"]
    p:last-child {
    display: none;
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_directoryHeader"]
    h2 {
    margin: 0;
    font-family: var(--jdwealth-font-display);
    font-size: var(--jdwealth-font-size-subheading);
    font-weight: var(--jdwealth-font-weight-bold);
    line-height: var(--jdwealth-font-line-height-tight);
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_households"] {
    grid-column: 1 / 3;
    grid-row: 5;
    gap: var(--jdwealth-space-3);
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body[data-tenant="jd-wealth"] [class*="dashboard-directory_empty"] {
    grid-column: 1 / 3;
    grid-row: 5;
  }

  body[data-tenant="jd-wealth"]
    article[class*="dashboard-directory_household__"] {
    border: 1px solid
      color-mix(in srgb, var(--jdwealth-color-border) 78%, transparent);
    border-radius: var(--jdwealth-radius-control);
    background: var(--jdwealth-color-surface);
    box-shadow: none;
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_householdSummary"] {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--jdwealth-space-4);
    min-height: 4.15rem;
    padding: var(--jdwealth-space-2-5) var(--jdwealth-space-3)
      var(--jdwealth-space-2-5) var(--jdwealth-space-3-5);
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_householdName"] {
    flex: 1 1 auto;
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_householdToggle"] {
    align-items: center;
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_householdTitle"] {
    font-size: var(--jdwealth-font-size-body-small);
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_householdSubtitle"] {
    margin-top: var(--jdwealth-space-0-5);
    font-size: var(--jdwealth-font-size-caption);
  }

  body[data-tenant="jd-wealth"] [class*="dashboard-directory_actions"] {
    flex: 0 0 auto;
    gap: var(--jdwealth-space-1-5);
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_contactPanel"] {
    gap: 0;
    border-color: color-mix(
      in srgb,
      var(--jdwealth-color-border) 72%,
      transparent
    );
    background: color-mix(in srgb, var(--jdwealth-color-canvas) 42%, transparent);
    padding: var(--jdwealth-space-1) var(--jdwealth-space-3-5)
      var(--jdwealth-space-2-5);
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_contactPanel"]
    > article[class*="dashboard-directory_contact__"] {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: var(--jdwealth-space-3) var(--jdwealth-space-0-5);
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_contactPanel"]
    > article[class*="dashboard-directory_contact__"]
    + article[class*="dashboard-directory_contact__"] {
    border-top: 1px solid
      color-mix(in srgb, var(--jdwealth-color-border) 72%, transparent);
  }

}

/* Make the provider-backed Jobs Family test journey unmistakable whenever it
   is returned by full-directory search. */
body[data-tenant="jd-wealth"]
  article[class*="dashboard-directory_household__"]:has(
    a[href="/clients/acce3e3c-1160-f111-a826-7c1e522af591"]
  ) {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-action) 48%,
    var(--jdwealth-color-border)
  );
  box-shadow: var(--jdwealth-shadow-accent-edge);
}

body[data-tenant="jd-wealth"]
  article[class*="dashboard-directory_household__"]:has(
    a[href="/clients/acce3e3c-1160-f111-a826-7c1e522af591"]
  )
  [class*="dashboard-directory_householdTitle"]::after {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  margin-left: var(--jdwealth-space-2);
  border-radius: var(--jdwealth-radius-pill);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-action) 17%,
    transparent
  );
  color: var(--jdwealth-color-accent-text);
  content: "Test household";
  font-size: var(--jdwealth-font-size-caption);
  font-weight: var(--jdwealth-font-weight-semibold);
  letter-spacing: var(--jdwealth-font-tracking-label);
  padding: 0 var(--jdwealth-space-2);
  vertical-align: middle;
}

@media (max-width: 899px) {
  body[data-tenant="jd-wealth"] [class*="admin-dashboard_segmented"] {
    width: fit-content;
    border: 1px solid var(--jdwealth-color-border-soft);
    border-radius: var(--jdwealth-radius-pill);
    padding: var(--jdwealth-space-1);
  }
}

/* Source: consumer/styles/admin/85-opportunities.css */
/* JD Wealth's primary workflow is the financial-planning opportunity board.
 * Presentation changes remain outside provider reads and governed stage moves. */
body[data-tenant="jd-wealth"]
  main
  [class*="opportunity-client_manager"] {
  width: 100%;
  max-width: var(--jdwealth-control-content-maximum);
  margin-inline: auto;
  display: grid;
  gap: var(--jdwealth-space-4);
}

body[data-tenant="jd-wealth"]
  main:has([class*="opportunity-client_manager"])
  [class*="admin-surface_pageHeader"] {
  align-items: end;
  border: 0;
  border-bottom: 1px solid var(--jdwealth-color-border-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 0 var(--jdwealth-space-4);
}

body[data-tenant="jd-wealth"]
  main:has([class*="opportunity-client_manager"])
  [class*="admin-surface_headerTitle"] {
  font-size: var(--jdwealth-font-size-page);
  letter-spacing: var(--jdwealth-font-tracking-display);
  line-height: var(--jdwealth-font-line-height-solid);
}

body[data-tenant="jd-wealth"]
  main:has([class*="opportunity-client_manager"])
  :where(.lu-kicker, [class*="admin-surface_headerAside"]) {
  display: none;
}

body[data-tenant="jd-wealth"]
  main
  [class*="opportunity-client_summary"] {
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body[data-tenant="jd-wealth"]
  main
  [class*="opportunity-client_summary"]
  > div {
  display: none;
}

body[data-tenant="jd-wealth"]
  main
  [class*="opportunity-client_summary"]
  > p {
  margin: 0;
  border: 1px solid var(--jdwealth-color-border-soft);
  border-radius: var(--jdwealth-radius-pill);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-surface) 82%,
    transparent
  );
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-label);
  font-weight: var(--jdwealth-font-weight-semibold);
  padding: var(--jdwealth-space-2) var(--jdwealth-space-3);
}

body[data-tenant="jd-wealth"]
  main
  [class*="opportunity-client_actions"] {
  border: 1px solid var(--jdwealth-color-border-soft);
  border-radius: var(--jdwealth-radius-panel);
  background: var(--jdwealth-color-surface);
  box-shadow: var(--jdwealth-shadow-soft);
  padding: var(--jdwealth-space-5);
}

body[data-tenant="jd-wealth"]
  main
  [class*="opportunity-client_board"] {
  display: grid;
  grid-template-columns: repeat(4, minmax(18rem, 1fr));
  align-items: start;
  gap: var(--jdwealth-space-4);
  overflow-x: auto;
  padding: var(--jdwealth-space-1) 0 var(--jdwealth-space-3);
}

body[data-tenant="jd-wealth"]
  main
  [class*="opportunity-client_column"] {
  min-width: 0;
  border: 0;
  border-top: 3px solid color-mix(
    in srgb,
    var(--jdwealth-color-action) 78%,
    var(--jdwealth-color-border)
  );
  border-radius: var(--jdwealth-radius-control);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-canvas) 66%,
    var(--jdwealth-color-surface)
  );
  padding: var(--jdwealth-space-3) var(--jdwealth-space-2-5);
}

body[data-tenant="jd-wealth"]
  main
  [class*="opportunity-client_column"]
  > header {
  margin-bottom: var(--jdwealth-space-2-5);
  padding-inline: var(--jdwealth-space-1);
}

body[data-tenant="jd-wealth"]
  main
  [class*="opportunity-client_column"]
  > header
  h3 {
  font-size: var(--jdwealth-font-size-body-small);
  letter-spacing: var(--jdwealth-font-tracking-subtle);
}

body[data-tenant="jd-wealth"]
  main
  [class*="opportunity-client_column"]
  > header
  span {
  min-width: 1.65rem;
  min-height: 1.65rem;
  background: color-mix(
    in srgb,
    var(--jdwealth-color-action) 18%,
    var(--jdwealth-color-surface)
  );
  color: var(--jdwealth-color-accent-text);
}

body[data-tenant="jd-wealth"]
  main
  [class*="opportunity-client_cards"] {
  max-height: min(66vh, 46rem);
  gap: var(--jdwealth-space-2);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: var(--jdwealth-space-1);
  scrollbar-gutter: stable;
}

body[data-tenant="jd-wealth"] [data-opportunity-id] {
  gap: var(--jdwealth-space-1-5);
  min-width: 0;
  border: 0;
  border-left: 3px solid color-mix(
    in srgb,
    var(--jdwealth-color-action) 64%,
    var(--jdwealth-color-border)
  );
  border-radius: var(--jdwealth-radius-control);
  background: var(--jdwealth-color-surface-strong);
  box-shadow: 0 1px 2px
    color-mix(in srgb, var(--jdwealth-color-text) 7%, transparent);
  color: var(--jdwealth-color-text);
  padding: var(--jdwealth-space-4);
}

body[data-tenant="jd-wealth"] [data-opportunity-id] strong {
  font-size: var(--jdwealth-font-size-body-small);
  line-height: var(--jdwealth-font-line-height-snug);
}

body[data-tenant="jd-wealth"] [data-opportunity-id] > span {
  color: var(--jdwealth-color-muted);
  font-size: var(--jdwealth-font-size-caption);
  line-height: var(--jdwealth-font-line-height-normal);
}

body[data-tenant="jd-wealth"]
  [data-opportunity-id]
  [class*="opportunity-client_contact"] {
  color: var(--jdwealth-color-muted);
}

body[data-tenant="jd-wealth"]
  [data-opportunity-id]
  [class*="opportunity-client_cardDetails"] {
  border-color: var(--jdwealth-color-border-soft);
}

body[data-tenant="jd-wealth"]
  [data-opportunity-id]
  [class*="opportunity-client_cardDetails"]
  dt {
  color: var(--jdwealth-color-muted);
}

body[data-tenant="jd-wealth"]
  [data-opportunity-id]
  [class*="opportunity-client_updated"] {
  margin-top: var(--jdwealth-space-1);
  color: var(--jdwealth-color-accent-text);
  font-size: var(--jdwealth-font-size-caption);
  font-weight: var(--jdwealth-font-weight-semibold);
  line-height: var(--jdwealth-font-line-height-normal);
  padding-top: var(--jdwealth-space-2);
}

body[data-tenant="jd-wealth"]
  [data-opportunity-id]
  :where(button, a) {
  min-height: var(--jdwealth-control-minimum-target);
}

@media (max-width: 900px) {
  body[data-tenant="jd-wealth"]
    main
    [class*="opportunity-client_board"] {
    grid-template-columns: repeat(4, minmax(17rem, 82vw));
    scroll-snap-type: x proximity;
  }

  body[data-tenant="jd-wealth"]
    main
    [class*="opportunity-client_column"] {
    scroll-snap-align: start;
  }

  body[data-tenant="jd-wealth"]
    main
    [class*="opportunity-client_cards"] {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }
}

/* Source: consumer/styles/admin/90-calculations.css */
/* Calculations is a focused JD Wealth adviser workspace: warm working surfaces,
 * deep-navy hierarchy and compact controls. Model maths and household reads
 * remain platform-owned. */
body[data-tenant="jd-wealth"]
  :where(.lu-calc-household-switcher, .lu-calculations) {
  --calc-ink: var(--jdwealth-color-text);
  --calc-muted: var(--jdwealth-color-muted);
  --calc-accent: var(--jdwealth-color-action);
  --calc-accent-strong: var(--jdwealth-color-accent-text);
  --calc-surface: var(--jdwealth-color-surface-strong);
  --calc-background: var(--jdwealth-color-canvas);
  --calc-border: var(--jdwealth-color-border-soft);
  --calc-positive: var(--jdwealth-color-data-strong);
  --calc-warning: var(--jdwealth-color-action-strong);
  font-family: var(--jdwealth-font-interface);
}

body[data-tenant="jd-wealth"]
  main:has(.lu-calculations)
  [class*="admin-surface_pageHeader"] {
  align-items: end;
  border: 0;
  border-bottom: 1px solid var(--jdwealth-color-border-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 0 var(--jdwealth-space-4);
}

body[data-tenant="jd-wealth"]
  main:has(.lu-calculations)
  [class*="admin-surface_headerTitle"] {
  font-size: var(--jdwealth-font-size-page);
  letter-spacing: var(--jdwealth-font-tracking-display);
  line-height: var(--jdwealth-font-line-height-solid);
}

body[data-tenant="jd-wealth"]
  :where(
    .lu-calc-household-switcher,
    .lu-calc-section-nav,
    .lu-calc-control-centre,
    .lu-calc-source-panel,
    .lu-calc-comparison,
    .lu-calc-review-panel,
    .lu-calc-hero-results,
    .lu-calc-presentation-panel,
    .lu-calc-model-card,
    .lu-calc-cashflow-strip
  ) {
  border-radius: var(--jdwealth-radius-card);
  box-shadow: var(--jdwealth-shadow-soft);
}

body[data-tenant="jd-wealth"]
  :where(.lu-calc-field, .lu-calc-household-search)
  :where(input, select, button),
body[data-tenant="jd-wealth"] .lu-calc-section-nav button {
  min-height: var(--jdwealth-control-minimum-target);
  border-radius: var(--jdwealth-radius-control);
}

body[data-tenant="jd-wealth"]
  :where(
    .lu-calc-section-nav button[aria-pressed="true"],
    .lu-calc-primary-action
  ) {
  background: var(--jdwealth-color-action-strong);
  color: var(--jdwealth-color-on-solid);
}

body[data-tenant="jd-wealth"]
  :where(.lu-calc-household-option[aria-current="true"], .lu-calc-metric[data-tone="positive"]) {
  border-color: color-mix(
    in srgb,
    var(--jdwealth-color-action) 54%,
    var(--jdwealth-color-border-soft)
  );
}

body[data-tenant="jd-wealth"]
  .lu-calc-model-card
  > header {
  padding: var(--jdwealth-space-4) var(--jdwealth-space-5);
}

body[data-tenant="jd-wealth"] .lu-calc-model-card[data-expanded="false"] {
  background: color-mix(
    in srgb,
    var(--jdwealth-color-surface-strong) 94%,
    var(--jdwealth-color-canvas)
  );
}

body[data-tenant="jd-wealth"]
  .lu-calc-two-up
  > .lu-calc-model-card[data-expanded="true"] {
  grid-column: 1 / -1;
}

body[data-tenant="jd-wealth"]
  .lu-calc-model-card
  > header
  p:not(.lu-calc-eyebrow),
body[data-tenant="jd-wealth"] .lu-calc-source-note {
  display: none;
}

body[data-tenant="jd-wealth"] .lu-calc-household-switcher {
  box-shadow: none;
}

body[data-tenant="jd-wealth"] .lu-calc-household-results {
  box-shadow: var(--jdwealth-shadow-raised);
}

body[data-tenant="jd-wealth"]
  :where(.lu-calc-fields, .lu-calc-output) {
  padding: var(--jdwealth-space-5) var(--jdwealth-space-6)
    var(--jdwealth-space-6);
}

body[data-tenant="jd-wealth"] .lu-calc-chart .primary {
  stroke: var(--jdwealth-color-data);
}

body[data-tenant="jd-wealth"]
  :where(.lu-calc-control-centre, .lu-calc-comparison, .lu-calc-review-panel) {
  background-color: var(--jdwealth-color-surface-strong);
}

body[data-tenant="jd-wealth"]
  :where(.lu-calc-export-actions button, .lu-calc-secondary-action, .lu-calc-model-actions button) {
  border-color: var(--jdwealth-color-border-soft);
  color: var(--jdwealth-color-text);
}

@media (max-width: 760px) {
  body[data-tenant="jd-wealth"]
    :where(.lu-calc-model-card > header, .lu-calc-fields, .lu-calc-output) {
    padding-inline: var(--jdwealth-space-4);
  }
}

/* Source: consumer/styles/admin/100-templates.css */
/* Email templates follow the focused legacy JD Wealth editor: scenarios on the left, copy on the right. */
body[data-tenant="jd-wealth"] [data-email-template-editor] {
  display: grid;
  grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr);
  gap: var(--jdwealth-space-4);
  max-width: 78rem;
  margin: 0 auto;
}

body[data-tenant="jd-wealth"] [data-email-template-editor] > .lu-panel {
  margin: 0;
  border-radius: var(--jdwealth-radius-control);
  box-shadow: none;
  padding: clamp(var(--jdwealth-space-4), 2vw, var(--jdwealth-space-5-5));
}

body[data-tenant="jd-wealth"]
  [data-email-template-editor]
  > .lu-panel:first-child {
  align-self: start;
  position: sticky;
  top: 6rem;
}

body[data-tenant="jd-wealth"]
  [data-email-template-editor]
  > .lu-panel:first-child
  .lu-section-header {
  display: grid;
  gap: var(--jdwealth-space-3);
}

body[data-tenant="jd-wealth"]
  [data-email-template-editor]
  > .lu-panel:first-child
  .lu-pill-row {
  display: grid;
  gap: var(--jdwealth-space-2);
  margin-top: var(--jdwealth-space-4);
}

body[data-tenant="jd-wealth"]
  [data-email-template-editor]
  > .lu-panel:first-child
  .lu-pill-row
  button {
  width: 100%;
  min-height: 3rem;
  justify-content: flex-start;
  border-radius: var(--jdwealth-radius-control);
  padding: var(--jdwealth-space-3) var(--jdwealth-space-3-5);
  text-align: left;
}

body[data-tenant="jd-wealth"]
  [data-email-template-editor]
  .lu-form-fields {
  gap: var(--jdwealth-space-4);
}

body[data-tenant="jd-wealth"] [data-email-template-editor] textarea {
  min-height: 26rem;
  resize: vertical;
  line-height: var(--jdwealth-font-line-height-relaxed);
}

body[data-tenant="jd-wealth"]
  [data-email-template-editor]
  .lu-form-actions {
  justify-content: flex-end;
}

body[data-tenant="jd-wealth"] [data-email-template-editor] .lu-pill {
  border-color: var(--jdwealth-color-border);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-text) 5%,
    var(--jdwealth-color-surface)
  );
  color: var(--jdwealth-color-muted);
}

/* A contact email action opens a dedicated, calm composer instead of adding a
 * modal or a second scroll region to the dashboard. */
body[data-tenant="jd-wealth"]
  .lu-household-directory[data-focused-invitation="true"] {
  max-width: 72rem;
  margin-inline: auto;
}

body[data-tenant="jd-wealth"]
  .lu-household-directory[data-focused-invitation="true"]
  .lu-invite-confirmation {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  gap: var(--jdwealth-space-4) var(--jdwealth-space-5);
  border: 1px solid var(--jdwealth-color-border);
  border-radius: var(--jdwealth-radius-card);
  background: var(--jdwealth-color-surface);
  box-shadow: var(--jdwealth-shadow-panel);
  padding: clamp(var(--jdwealth-space-4-5), 2.8vw, var(--jdwealth-space-8));
}

body[data-tenant="jd-wealth"]
  .lu-household-directory[data-focused-invitation="true"]
  :where(
    .lu-invite-confirmation-heading,
    .lu-invite-confirmation > p,
    .lu-auth-status
  ) {
  grid-column: 1 / -1;
}

body[data-tenant="jd-wealth"]
  .lu-household-directory[data-focused-invitation="true"]
  .lu-invite-confirmation-heading {
  align-items: center;
  padding-bottom: var(--jdwealth-space-4);
  border-bottom: 1px solid var(--jdwealth-color-border);
}

body[data-tenant="jd-wealth"]
  .lu-household-directory[data-focused-invitation="true"]
  .lu-invite-confirmation-heading
  h3 {
  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);
}

body[data-tenant="jd-wealth"]
  .lu-household-directory[data-focused-invitation="true"]
  .lu-invite-confirmation
  > p {
  margin: 0;
  border: 1px solid
    color-mix(in srgb, var(--jdwealth-color-data) 24%, var(--jdwealth-color-border));
  border-radius: var(--jdwealth-radius-control);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-data) 8%,
    var(--jdwealth-color-surface)
  );
  color: var(--jdwealth-color-muted);
  padding: var(--jdwealth-space-3-5) var(--jdwealth-space-4);
  line-height: var(--jdwealth-font-line-height-relaxed);
}

body[data-tenant="jd-wealth"]
  .lu-household-directory[data-focused-invitation="true"]
  .lu-invite-confirmation
  > p
  strong {
  color: var(--jdwealth-color-text);
}

body[data-tenant="jd-wealth"]
  .lu-household-directory[data-focused-invitation="true"]
  .lu-invite-history {
  grid-column: 2;
  grid-row: span 3;
  align-self: start;
  border: 1px solid var(--jdwealth-color-border);
  border-radius: var(--jdwealth-radius-control);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-surface) 94%,
    var(--jdwealth-color-canvas)
  );
  padding: var(--jdwealth-space-4);
}

body[data-tenant="jd-wealth"]
  .lu-household-directory[data-focused-invitation="true"]
  .lu-directory-status:last-child {
  grid-column: 1 / -1;
}

/* Source: consumer/styles/admin/110-about.css */
/* The interactive guide is platform-rendered from JD Wealth-owned walkthrough content. */
body[data-tenant="jd-wealth"]
  main:has([aria-label="JD Wealth Portal guide"])
  [class*="admin-surface_headerSummary"] {
  width: 100%;
  max-width: 48rem;
}

body[data-tenant="jd-wealth"]
  main:has([aria-label="JD Wealth Portal guide"])
  [class*="admin-surface_pageHeader"]
  .lu-kicker {
  color: var(--jdwealth-color-muted);
}

/* Source: consumer/styles/admin/120-present.css */
/* Present is the meeting: full-screen, one scroll surface, and no secondary workspace clutter. */
body[data-tenant="jd-wealth"]:has(.lu-present-root) {
  overflow: hidden;
}

body[data-tenant="jd-wealth"]:has(.lu-present-root) .lu-admin-bar-header {
  display: none;
}

body[data-tenant="jd-wealth"]:has(.lu-present-root) .lu-layout {
  min-height: 100dvh;
}

body[data-tenant="jd-wealth"]:has(.lu-present-root) .lu-main {
  height: 100dvh;
  padding: 0;
}

body[data-tenant="jd-wealth"] .lu-present-shell {
  height: 100dvh;
  min-height: 100dvh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-tenant="jd-wealth"] .lu-present-main {
  min-height: 0;
}

body[data-tenant="jd-wealth"] .lu-present-live-badge {
  display: none;
}

/* Present keeps household identity in the meeting header. The agenda rail is
 * reduced to the JD Wealth mark, agenda navigation and a compact return icon. */
body[data-tenant="jd-wealth"] .lu-present-sidebar {
  position: relative;
}

body[data-tenant="jd-wealth"] .lu-present-sidebar > div:first-child {
  min-height: 5.75rem;
}

body[data-tenant="jd-wealth"] .lu-present-brand {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 5.75rem;
  box-sizing: border-box;
  padding-right: calc(var(--jdwealth-space-18) + var(--jdwealth-space-2));
}

body[data-tenant="jd-wealth"] .lu-present-brand::before {
  width: 9.75rem;
  height: 2.5rem;
  background: url("/consumer/assets/jd-wealth-logo.svg") left center / contain
    no-repeat;
  content: "";
}

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

body[data-tenant="jd-wealth"] .lu-present-brand > :is(p, span) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body[data-tenant="jd-wealth"] .lu-present-client,
body[data-tenant="jd-wealth"] .lu-present-sidebar-footer p {
  display: none;
}

body[data-tenant="jd-wealth"] .lu-present-sidebar-footer {
  position: absolute;
  top: 0;
  right: var(--jdwealth-space-4);
  z-index: 1;
  margin: 0;
  border: 0;
  padding: var(--jdwealth-space-5) 0 0;
}

body[data-tenant="jd-wealth"] .lu-present-back-link {
  width: var(--jdwealth-control-minimum-target);
  min-width: var(--jdwealth-control-minimum-target);
  height: var(--jdwealth-control-minimum-target);
  min-height: var(--jdwealth-control-minimum-target);
  justify-content: center;
  gap: 0;
  padding: 0;
  font-size: 0;
}

body[data-tenant="jd-wealth"] .lu-present-back-link svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* The meeting toolbar keeps only the durable actions. Reversible utilities are
 * icon controls; publishing remains the labelled primary decision. */
body[data-tenant="jd-wealth"]
  .lu-present-topbar-actions
  a[href^="/api/present/workbook"] {
  display: none;
}

body[data-tenant="jd-wealth"]
  .lu-present-topbar-actions
  :is(
    a[href^="/present?householdId="],
    a[href^="/api/present/pdf"],
    a[href^="/present/edit"]
  ) {
  width: var(--jdwealth-control-minimum-target);
  min-width: var(--jdwealth-control-minimum-target);
  justify-content: center;
  gap: 0;
  padding-inline: 0;
  font-size: 0;
}

body[data-tenant="jd-wealth"] .lu-present-topbar-actions svg {
  width: 1.1rem;
  height: 1.1rem;
}

body[data-tenant="jd-wealth"] .lu-present-topbar {
  min-height: 5.75rem;
  box-sizing: border-box;
  padding-block: var(--jdwealth-space-5);
}

body[data-tenant="jd-wealth"] .lu-present-goals {
  grid-template-columns: minmax(0, 1fr);
}

body[data-tenant="jd-wealth"] .lu-present-goal-link article {
  border-radius: var(--jdwealth-radius-control);
}

body[data-tenant="jd-wealth"] .lu-present-goal-edit {
  border-color: var(--jdwealth-color-border);
  background: var(--jdwealth-color-surface-strong);
}

body[data-tenant="jd-wealth"] .lu-present-cashflow-lists > section,
body[data-tenant="jd-wealth"] .lu-present-list li {
  border-color: var(--jdwealth-color-border);
  border-radius: var(--jdwealth-radius-control);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-surface) 94%,
    var(--jdwealth-color-canvas)
  );
}

/* The JD provider's formatted frequency labels do not use the same option-set
 * labels as the governed source editor. Keep Present focused on the exact
 * recorded amount and its correctly normalised monthly equivalent. */
body[data-tenant="jd-wealth"] .lu-present-cashflow-table-row small {
  display: none;
}

body[data-tenant="jd-wealth"] .lu-present-list {
  gap: var(--jdwealth-space-2-5);
}

body[data-tenant="jd-wealth"] .lu-present-list li {
  border: 1px solid var(--jdwealth-color-border);
  padding: var(--jdwealth-space-4);
}

@media (min-width: 1101px) {
  body[data-tenant="jd-wealth"] .lu-present-goal-link article,
  body[data-tenant="jd-wealth"] .lu-present-goal-static article {
    grid-template-columns: minmax(0, 1fr) minmax(27rem, 0.8fr);
    align-items: center;
  }
}

body[data-tenant="jd-wealth"] .lu-present-root {
  --agenda-accent: var(--jdwealth-color-action) !important;
  --agenda-accent-strong: var(--jdwealth-color-action-strong) !important;
  --agenda-accent-label: color-mix(
    in srgb,
    var(--jdwealth-color-action) 64%,
    var(--jdwealth-color-muted)
  ) !important;
  --agenda-accent-soft: color-mix(
    in srgb,
    var(--jdwealth-color-action) 6%,
    transparent
  ) !important;
  --agenda-accent-border: color-mix(
    in srgb,
    var(--jdwealth-color-action) 20%,
    var(--jdwealth-color-border)
  ) !important;
}

:root[data-lu-appearance="dark"]
  body[data-tenant="jd-wealth"]
  .lu-present-root {
  --agenda-accent: var(--jdwealth-color-present) !important;
  --agenda-accent-strong: var(--jdwealth-color-present-strong) !important;
  --agenda-accent-label: color-mix(
    in srgb,
    var(--jdwealth-color-present) 70%,
    var(--jdwealth-color-text)
  ) !important;
  --agenda-accent-soft: color-mix(
    in srgb,
    var(--jdwealth-color-present) 12%,
    transparent
  ) !important;
  --agenda-accent-border: color-mix(
    in srgb,
    var(--jdwealth-color-present) 30%,
    var(--jdwealth-color-border)
  ) !important;
}

/* Keep meeting controls close to the agenda stage they support. Source editing
 * remains a dedicated route; notes live with Current work and publishing opens
 * only when requested from the top bar. */
body[data-tenant="jd-wealth"] #present-source,
body[data-tenant="jd-wealth"] #present-publish {
  display: none;
}

body[data-tenant="jd-wealth"]
  .lu-present-topbar-actions
  a[href="#present-source"] {
  display: none;
}

body[data-tenant="jd-wealth"]
  .lu-present-root:has(.lu-present-nav button:last-child.lu-present-nav-active)
  #present-source,
body[data-tenant="jd-wealth"] #present-publish:target {
  display: block;
}

body[data-tenant="jd-wealth"] .lu-present-quick-notes {
  border-color: var(--agenda-accent-border);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-action) 7%,
    var(--jdwealth-color-surface)
  );
}

body[data-tenant="jd-wealth"] .lu-present-quick-notes > div {
  min-width: 0;
}

body[data-tenant="jd-wealth"] .lu-present-quick-notes > button {
  flex: 0 0 auto;
  white-space: nowrap;
}

body[data-tenant="jd-wealth"] .lu-present-notes-dialog {
  border-color: var(--jdwealth-color-border);
  border-radius: var(--jdwealth-radius-card);
  background: var(--jdwealth-color-surface-strong);
  color: var(--jdwealth-color-text);
  box-shadow: var(--jdwealth-shadow-modal);
}

body[data-tenant="jd-wealth"] .lu-present-notes-dialog::backdrop {
  background: color-mix(in srgb, var(--jdwealth-color-text) 46%, transparent);
}

body[data-tenant="jd-wealth"]
  :where(.lu-present-notes-header, .lu-present-notes-actions) {
  border-color: var(--jdwealth-color-border);
}

body[data-tenant="jd-wealth"] .lu-present-notes-dialog textarea,
body[data-tenant="jd-wealth"] .lu-present-notes-list article {
  border-color: var(--jdwealth-color-border);
  background: var(--jdwealth-color-surface);
}

body[data-tenant="jd-wealth"] .lu-present-notes-actions button,
body[data-tenant="jd-wealth"] .lu-present-quick-notes > button {
  min-height: var(--jdwealth-control-minimum-target);
  background: var(--jdwealth-color-action-strong);
  color: var(--jdwealth-color-on-solid);
}

body[data-tenant="jd-wealth"] .lu-present-notes-header button {
  min-width: var(--jdwealth-control-minimum-target);
  min-height: var(--jdwealth-control-minimum-target);
  border-color: var(--jdwealth-color-border);
}

/* The dedicated source editor is a control surface, so its five household
 * totals read as one compact strip instead of an oversized two-column mosaic. */
body[data-tenant="jd-wealth"]
  .lu-main:has(.lu-financial-collections)
  .lu-financial-summary
  .lu-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--jdwealth-space-3);
}

body[data-tenant="jd-wealth"]
  .lu-main:has(.lu-financial-collections)
  .lu-financial-summary
  .lu-metric {
  align-content: space-between;
  min-width: 0;
  min-height: 7rem;
  border-radius: var(--jdwealth-radius-control);
  background: color-mix(
    in srgb,
    var(--jdwealth-color-surface) 94%,
    var(--jdwealth-color-canvas)
  );
  box-shadow: none;
}

body[data-tenant="jd-wealth"]
  .lu-main:has(.lu-financial-collections)
  .lu-financial-summary
  .lu-metric[data-financial-outcome] {
  background: color-mix(
    in srgb,
    var(--jdwealth-color-action-soft) 52%,
    var(--jdwealth-color-surface)
  );
}

body[data-tenant="jd-wealth"]
  .lu-main:has(.lu-financial-collections)
  .lu-financial-summary
  .lu-metric
  strong {
  font-size: var(--jdwealth-font-size-section);
}

@media (max-width: 1100px) {
  body[data-tenant="jd-wealth"]
    .lu-main:has(.lu-financial-collections)
    .lu-financial-summary
    .lu-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-tenant="jd-wealth"]
    .lu-main:has(.lu-financial-collections)
    .lu-financial-summary
    .lu-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  body[data-tenant="jd-wealth"]
    .lu-main:has(.lu-financial-collections)
    .lu-financial-summary
    .lu-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
}

body[data-tenant="jd-wealth"] .lu-present-back-link {
  border: 1px solid var(--jdwealth-color-border);
  border-radius: var(--jdwealth-radius-pill);
}

/* Source: consumer/styles/admin/130-transitions.css */
/* Route changes use a quiet textual handoff instead of the old skeleton card. */
body[data-tenant="jd-wealth"] [class*="admin-state_loadingLine"],
body[data-tenant="jd-wealth"] [class*="admin-state_loadingTitle"],
body[data-tenant="jd-wealth"] [class*="admin-state_loadingBlock"] {
  display: none;
}

body[data-tenant="jd-wealth"] [class*="admin-state_loadingCard"] {
  min-height: 12rem;
  align-content: center;
  justify-items: center;
  box-shadow: none;
}

/* Source: consumer/styles/admin/140-responsive.css */
@media (max-width: 1180px) {
  body[data-tenant="jd-wealth"] .lu-work-queue-manager > header {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-tenant="jd-wealth"] .lu-work-columns {
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
}

@media (max-width: 899px) {
  body[data-tenant="jd-wealth"]
    .lu-work-queue-manager
    [aria-label="Accounting workflow totals"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-tenant="jd-wealth"]
    .lu-work-queue-manager
    [aria-label="Accounting workflow totals"]
    > span:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 740px) {
  body[data-tenant="jd-wealth"] .lu-work-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-tenant="jd-wealth"] .lu-work-column {
    min-height: 0;
  }
}

@media (max-width: 1080px) {
  body[data-tenant="jd-wealth"] [class*="admin-dashboard_statsGrid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-tenant="jd-wealth"] [class*="admin-dashboard_windowPanel"] {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body[data-tenant="jd-wealth"]
    [class*="admin-dashboard_windowPanel"]
    > :last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) and (max-width: 1080px) {
  body[data-tenant="jd-wealth"] [class*="admin-dashboard_dashboard"] {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-tenant="jd-wealth"]
    [class*="admin-dashboard_operationsHeader"] {
    grid-column: 1;
    grid-row: 1;
  }

  body[data-tenant="jd-wealth"] [class*="admin-dashboard_windowPanel"] {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: 22rem;
  }

  body[data-tenant="jd-wealth"] [class*="dashboard-directory_search"] {
    grid-row: 3;
  }

  body[data-tenant="jd-wealth"] [class*="admin-dashboard_statsGrid"] {
    grid-row: 4;
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_directoryHeader"] {
    grid-row: 5;
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_households"] {
    grid-row: 6;
  }
}

@media (max-width: 820px) {
  body[data-tenant="jd-wealth"]
    .lu-admin-bar-header
    .lu-variant-brand
    > span:last-child {
    width: auto;
    overflow: visible;
  }

  body[data-tenant="jd-wealth"]
    [class*="admin-dashboard_operationsHeader"],
  body[data-tenant="jd-wealth"] [class*="activity-directory_pageHeader"] {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-tenant="jd-wealth"] [class*="admin-dashboard_headerActions"] {
    justify-content: flex-start;
  }

  body[data-tenant="jd-wealth"] [class*="activity-directory_filters"] {
    align-items: stretch;
    flex-wrap: wrap;
  }

  body[data-tenant="jd-wealth"] [class*="activity-directory_search"] {
    flex-basis: 100%;
  }

  body[data-tenant="jd-wealth"] [class*="activity-directory_typeSelect"],
  body[data-tenant="jd-wealth"]
    [class*="activity-directory_timeframeSelect"] {
    width: auto;
    flex: 1 1 11rem;
  }

  body[data-tenant="jd-wealth"] .lu-present-shell {
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
  }

  body[data-tenant="jd-wealth"]
    :where(.lu-present-root, .lu-present-main) {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  body[data-tenant="jd-wealth"] .lu-present-sidebar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    position: relative;
    top: 0;
    z-index: 20;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--jdwealth-color-border);
  }

  body[data-tenant="jd-wealth"] .lu-present-brand,
  body[data-tenant="jd-wealth"] .lu-present-client,
  body[data-tenant="jd-wealth"] .lu-present-sidebar-footer p {
    display: none;
  }

  body[data-tenant="jd-wealth"] .lu-present-sidebar > div:first-child {
    display: none;
  }

  body[data-tenant="jd-wealth"] .lu-present-sidebar-footer {
    margin-top: 0;
  }

  body[data-tenant="jd-wealth"] .lu-present-nav {
    display: flex;
    gap: var(--jdwealth-space-1-5);
    overflow-x: auto;
    padding: var(--jdwealth-space-2) var(--jdwealth-space-2-5)
      var(--jdwealth-space-2) 0;
    scrollbar-width: none;
  }

  body[data-tenant="jd-wealth"] .lu-present-nav::-webkit-scrollbar {
    display: none;
  }

  body[data-tenant="jd-wealth"] .lu-present-nav button {
    flex: 0 0 auto;
    width: auto;
    min-height: var(--jdwealth-control-minimum-target);
    border: 1px solid transparent;
    border-radius: var(--jdwealth-radius-pill);
    padding: var(--jdwealth-space-2) var(--jdwealth-space-3);
    white-space: nowrap;
  }

  body[data-tenant="jd-wealth"] .lu-present-nav .lu-present-nav-active {
    border-color: var(--jdwealth-color-border);
  }

  body[data-tenant="jd-wealth"] .lu-present-sidebar-footer {
    display: block;
    grid-column: 1;
    grid-row: 1;
    border-top: 0;
    border-right: 1px solid var(--jdwealth-color-border);
    position: static;
    padding: var(--jdwealth-space-2-5);
  }

  body[data-tenant="jd-wealth"] .lu-present-back-link {
    min-height: var(--jdwealth-control-minimum-target);
    white-space: nowrap;
  }

  body[data-tenant="jd-wealth"] .lu-present-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-tenant="jd-wealth"] .lu-present-main {
    height: 100%;
  }
}

@media (max-width: 760px) {
  body[data-tenant="jd-wealth"] [data-email-template-editor] {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-tenant="jd-wealth"]
    [data-email-template-editor]
    > .lu-panel:first-child {
    position: static;
  }

  body[data-tenant="jd-wealth"]
    .lu-household-directory[data-focused-invitation="true"]
    .lu-invite-confirmation {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-tenant="jd-wealth"]
    .lu-household-directory[data-focused-invitation="true"]
    .lu-invite-history {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  /* Mobile Overview is task-first: greeting, household controls and records,
     then a horizontally browsable summary. display:contents keeps the shared
     behaviour intact while JD Wealth owns the responsive composition. */
  body[data-tenant="jd-wealth"] [class*="admin-dashboard_dashboard"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--jdwealth-space-3);
  }

  body[data-tenant="jd-wealth"]
    :where(
      [class*="admin-dashboard_operationsPanel"],
      [class*="admin-dashboard_operationsContent"],
      [class*="admin-dashboard_summary"],
      [class*="admin-dashboard_dashboardGrid"],
      [class*="admin-dashboard_directoryPanel"],
      .lu-household-directory,
      [class^="dashboard-directory_directory__"]
    ) {
    display: contents;
  }

  body[data-tenant="jd-wealth"] [class*="admin-dashboard_dashboardGrid"] {
    display: contents;
  }

  body[data-tenant="jd-wealth"]
    [class*="admin-dashboard_operationsHeader"] {
    grid-row: 1;
    align-items: center;
    flex-direction: row;
    gap: var(--jdwealth-space-3);
    border: 1px solid var(--jdwealth-color-border-soft);
    border-radius: var(--jdwealth-radius-panel);
    background: var(--jdwealth-color-surface);
    box-shadow: var(--jdwealth-shadow-raised);
    padding: var(--jdwealth-space-4);
  }

  body[data-tenant="jd-wealth"]
    [class*="admin-dashboard_pageHeading"]
    [class*="kicker"],
  body[data-tenant="jd-wealth"]
    [class*="admin-dashboard_pageHeading"]
    > p:last-child,
  body[data-tenant="jd-wealth"] [class*="admin-dashboard_metaChips"],
  body[data-tenant="jd-wealth"]
    [class*="admin-dashboard_headerActions"]
    [class*="statusChip"] {
    display: none;
  }

  body[data-tenant="jd-wealth"]
    [class*="admin-dashboard_pageHeading"]
    h1 {
    margin: 0;
    font-size: var(--jdwealth-font-size-section);
    line-height: var(--jdwealth-font-line-height-tight);
  }

  body[data-tenant="jd-wealth"]
    [class*="admin-dashboard_headerActions"] {
    width: auto;
    margin-left: auto;
  }

  body[data-tenant="jd-wealth"]
    [class*="admin-dashboard_headerActions"]
    > * {
    min-width: var(--jdwealth-control-minimum-target);
    flex: 0 0 auto;
    padding-inline: var(--jdwealth-space-3);
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_directoryHeader"] {
    grid-row: 2;
    gap: var(--jdwealth-space-3);
    border: 1px solid var(--jdwealth-color-border-soft);
    border-radius: var(--jdwealth-radius-panel);
    background: var(--jdwealth-color-surface);
    box-shadow: var(--jdwealth-shadow-raised);
    padding: var(--jdwealth-space-4);
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_directoryHeader"]
    > div {
    flex: 1 1 auto;
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_directoryHeader"]
    h2 {
    margin-top: var(--jdwealth-space-1);
    font-family: var(--jdwealth-font-display);
    font-size: var(--jdwealth-font-size-subheading);
    line-height: var(--jdwealth-font-line-height-tight);
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_directoryHeader"]
    p:last-child {
    margin-top: var(--jdwealth-space-2);
    font-size: var(--jdwealth-font-size-body-small);
    line-height: var(--jdwealth-font-line-height-normal);
  }

  body[data-tenant="jd-wealth"] [class*="admin-dashboard_windowPanel"] {
    grid-row: 3;
    display: block;
    height: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  body[data-tenant="jd-wealth"]
    :where(
      [class*="admin-dashboard_windowHeading"],
      [class*="admin-dashboard_windowMetrics"]
    ) {
    display: none;
  }

  body[data-tenant="jd-wealth"] [class*="admin-dashboard_segmented"] {
    width: 100%;
    min-height: var(--jdwealth-control-minimum-target);
    border-color: var(--jdwealth-color-border-soft);
    background: var(--jdwealth-color-surface);
    box-shadow: var(--jdwealth-shadow-raised);
  }

  body[data-tenant="jd-wealth"] [class*="dashboard-directory_search__"] {
    grid-row: 4;
    width: 100%;
  }

  body[data-tenant="jd-wealth"] [class*="dashboard-directory_searchStatus"] {
    grid-row: 5;
    min-height: 0;
    margin: 0;
  }

  body[data-tenant="jd-wealth"] [class*="dashboard-directory_households"] {
    grid-row: 6;
  }

  body[data-tenant="jd-wealth"] [class*="admin-dashboard_statsGrid"] {
    grid-row: 7;
    display: flex;
    gap: var(--jdwealth-space-3);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-block: var(--jdwealth-space-1);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  body[data-tenant="jd-wealth"]
    [class*="admin-dashboard_statsGrid"]::-webkit-scrollbar {
    display: none;
  }

  body[data-tenant="jd-wealth"] [class*="admin-dashboard_metricCard"] {
    min-width: min(72vw, 15rem);
    min-height: 6.75rem;
    flex: 0 0 min(72vw, 15rem);
    border-radius: var(--jdwealth-radius-panel);
    box-shadow: var(--jdwealth-shadow-raised);
    padding: var(--jdwealth-space-4);
    scroll-snap-align: start;
  }

  body[data-tenant="jd-wealth"]
    [class*="admin-dashboard_metricCard"]
    small {
    display: none;
  }

  body[data-tenant="jd-wealth"] .lu-present-topbar-actions > div {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  body[data-tenant="jd-wealth"] .lu-present-topbar-actions a {
    justify-content: center;
    text-align: center;
  }

  body[data-tenant="jd-wealth"]
    .lu-present-topbar-actions
    .lu-present-action-primary {
    flex: 1 1 auto;
  }

  body[data-tenant="jd-wealth"] [class*="admin-dashboard_segmented"] {
    display: flex;
  }

  body[data-tenant="jd-wealth"]
    article[class*="dashboard-directory_household__"]
    [class*="dashboard-directory_actions"] {
    width: 100%;
  }

  body[data-tenant="jd-wealth"]
    article[class*="dashboard-directory_household__"]
    :where(
      [class*="dashboard-directory_iconButton"],
      [class*="dashboard-directory_disclosure"],
      [class*="dashboard-directory_secondaryIconButton"],
      [class*="dashboard-directory_primaryIconButton"]
    ) {
    min-height: var(--jdwealth-control-minimum-target);
  }

  body[data-tenant="jd-wealth"]
    [class*="dashboard-directory_contactIdentity"]
    :where(span, small) {
    overflow-wrap: normal;
    word-break: normal;
  }

  body[data-tenant="jd-wealth"] [class*="activity-directory_rowLink"] {
    min-height: 88px;
    padding-inline: var(--jdwealth-space-3-5);
  }

  body[data-tenant="jd-wealth"] .lu-work-queue-manager > header {
    position: static;
  }

  body[data-tenant="jd-wealth"]
    .lu-work-queue-manager
    [aria-label="Accounting workflow totals"] {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-tenant="jd-wealth"] .lu-present-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-tenant="jd-wealth"] .lu-present-list li {
    align-items: flex-start;
  }

  body[data-tenant="jd-wealth"] .lu-present-list li > small {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  body[data-tenant="jd-wealth"] .lu-present-quick-notes {
    align-items: stretch;
    flex-direction: column;
    gap: var(--jdwealth-space-4);
    margin-inline: var(--jdwealth-space-4);
  }

  body[data-tenant="jd-wealth"] .lu-present-quick-notes > button {
    width: 100%;
    border-radius: var(--jdwealth-radius-control);
  }
}

@media (max-width: 430px) {
  body[data-tenant="jd-wealth"] .lu-present-back-link {
    gap: 0;
    min-width: var(--jdwealth-control-minimum-target);
    font-size: 0;
  }

  body[data-tenant="jd-wealth"] .lu-present-sidebar-footer {
    padding-inline: var(--jdwealth-space-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-tenant="jd-wealth"] *,
  body[data-tenant="jd-wealth"] *::before,
  body[data-tenant="jd-wealth"] *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body[data-tenant="jd-wealth"]
    :where(.lu-present-topbar, [class*="client_toolbar"]) {
    background: var(--jdwealth-color-surface);
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  body[data-tenant="jd-wealth"]
    :where(
      [class*="admin-dashboard_metricCard"],
      [class*="activity-directory_panel"],
      .lu-present-section
    ) {
    border-color: currentColor;
  }
}
