/* Financial workspaces share color roles with the account summary. Charts and
   provider artwork retain their own encodings. */
.client-finance-shell #page {
  --finance-ink:var(--visu-text); --finance-muted:var(--visu-muted);
  --finance-paper:var(--visu-surface); --finance-soft:var(--visu-surface-2);
  --finance-line:var(--visu-divider); --finance-accent:var(--visu-primary);
  --finance-on-accent:var(--visu-on-primary); --finance-tint:var(--visu-action-soft);
  --finance-depth:var(--visu-shadow-card);
}
.client-finance-shell #page :is(.wealth-client,.period-insights,.planning-canvas,.vb,.skills-hub,.vw-sim) {
  font-family:var(--visu-font,system-ui);
  color:var(--finance-ink);
}
.client-finance-shell #page :is(.w-header,.pi-header,.vb-head,.skl-heading) h1 {
  font-size:clamp(1.75rem,3.2vw,2.25rem);
  font-weight:600;
  line-height:1.12;
  letter-spacing:-.045em;
}
.client-finance-shell #page :is(.pi-header,.vb-head,.skl-heading) p:not(.ed-eyebrow) {
  color:var(--finance-muted);
  font-size:.95rem;
  line-height:1.55;
}
.client-finance-shell #page :is(.w-surface,.vw-evolution,.pi-card,.vb-card,.skl-course-card,.sim-card) {
  background-color:var(--finance-paper);
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  border:1px solid var(--finance-line);
  border-radius:var(--visu-radius-card);
  box-shadow:var(--finance-depth);
}
.client-finance-shell #page :is(.vw-filters,.w-portfolio-controls,.skl-filters) :is(input,select) {
  min-height:44px;
  max-width:100%;
  color:var(--finance-ink);
  background-color:var(--finance-paper);
  border:1px solid var(--visu-control);
  border-radius:12px;
  font-size:.875rem;
}
.client-finance-shell #page :is(.vw-filters,.w-portfolio-controls,.skl-filters) label {
  color:var(--finance-muted);
  font-size:.8125rem;
  font-weight:600;
}
.client-finance-shell #page :is(.wealth-client,.period-insights,.vb,.skills-hub,.vw-sim,.planning-canvas)
  :is(button,a,summary,select,input):focus-visible {
  outline:3px solid var(--visu-focus);
  outline-offset:3px;
}

/* Investments: the portfolio total is the leading figure on this page. */
.client-finance-shell #page .wealth-client {
  --w-ink:var(--finance-ink);
  --w-muted:var(--finance-muted);
  --w-surface:var(--finance-paper);
  --w-glass:var(--finance-paper);
  --w-line:var(--finance-line);
}
.client-finance-shell #page .vw-evolution {
  --vw-ink:var(--finance-ink);
  --vw-muted:var(--finance-muted);
  --vw-surface:var(--finance-paper);
  --vw-line:var(--finance-line);
  --vw-accent:var(--finance-accent);
  --vw-tint:var(--finance-soft);
}
.client-finance-shell #page .wealth-client .w-portfolio-summary {
  color:var(--finance-ink);
  background:var(--finance-paper);
  padding:clamp(20px,3vw,36px);
}
.client-finance-shell #page .wealth-client .w-portfolio-summary :is(.w-eyebrow,.w-muted,small,.w-total>span) {
  color:var(--finance-muted);
}
.client-finance-shell #page .wealth-client .w-total strong {
  color:var(--finance-ink);
  font-variant-numeric:tabular-nums;
  line-height:1.22;
}
.client-finance-shell #page .wealth-client .w-header .w-button,
.client-finance-shell #page .vw-evolution .vw-filters button[type=submit] {
  background:var(--finance-accent);
  color:var(--finance-on-accent);
  border-color:transparent;
  border-radius:var(--visu-radius-control);
  min-height:44px;
}
.client-finance-shell #page .vw-evolution :is(.vw-label,.vw-note,small,figcaption) {color:var(--finance-muted)}
.client-finance-shell #page .vw-evolution :is(th,td) {padding-block:9px;border-color:var(--finance-line)}
.client-finance-shell #page .vw-evolution th {background:var(--finance-soft);color:var(--finance-muted)}

/* Insights: keep evidence and unavailable data legible beside the mascot. */
.client-finance-shell #page .period-insights .pi-waiting {
  background:var(--finance-paper);
}
.client-finance-shell #page .period-insights .pi-segments {background:var(--finance-soft);border-color:transparent;border-radius:999px}
.client-finance-shell #page .period-insights .pi-segments span {color:var(--finance-muted);border-radius:999px}
.client-finance-shell #page .period-insights .pi-segments input:checked + span {
  color:var(--finance-on-accent);
  background:var(--finance-accent);
  border-color:transparent;
}
.client-finance-shell #page .period-insights .pi-refresh {border-radius:999px}
.client-finance-shell #page .period-insights :is(.pi-footnote,.pi-label) {color:var(--finance-muted)}

/* Canva: give the tools their own surface while the editable map keeps its colors. */
.client-finance-shell #page .planning-canvas.pc-workspace {
  --pc-ink:var(--finance-ink);
  --pc-muted:var(--finance-muted);
  --pc-surface:var(--finance-paper);
  --pc-soft:var(--finance-soft);
  --pc-line:var(--finance-line);
  --pc-accent:var(--finance-accent);
}
.client-finance-shell #page .planning-canvas :is(.pc-toolbar,.pc-zoom,.pc-chat-toggle) {
  background:var(--finance-paper);
  color:var(--finance-ink);
  border-radius:16px;
  box-shadow:var(--finance-depth);
}
.client-finance-shell #page .planning-canvas :is(.pc-topbar,.pc-toolbar,.pc-mode-switch,.pc-zoom) button {font-family:inherit}
.client-finance-shell #page .planning-canvas .pc-button {background:var(--finance-accent);color:var(--finance-on-accent)!important}
.client-finance-shell #page .planning-canvas .pc-mode-switch button[aria-pressed=true] {background:var(--finance-accent);color:var(--finance-on-accent)}
.client-finance-shell #page .planning-canvas .pc-toolbar button[aria-pressed=true] {background:var(--finance-tint);color:var(--finance-accent)}

/* An opaque fallback remains when blur, contrast or transparency preferences demand it. */
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  @media (not (prefers-reduced-transparency:reduce)) and (forced-colors:none) {
    .client-finance-shell #page .planning-canvas :is(.pc-toolbar,.pc-zoom) {
      background:var(--visu-glass-fill);
      backdrop-filter:var(--visu-glass-blur);
      -webkit-backdrop-filter:var(--visu-glass-blur);
      border:1px solid var(--visu-glass-edge);
      box-shadow:var(--visu-shadow-float),var(--visu-glass-reflection);
    }
  }
}

/* Behavior: equivalent tests share a surface and a clearly visible action. */
.client-finance-shell #page .vb {
  --vb-ink:var(--finance-ink);
  --vb-muted:var(--finance-muted);
  --vb-surface:var(--finance-paper);
  --vb-soft:var(--finance-soft);
  --vb-rule:var(--finance-line);
  --vb-accent:var(--finance-accent);
  --vb-tint:var(--finance-tint);
}
.client-finance-shell #page .vb .vb-test {background:var(--finance-soft);border-color:transparent}
.client-finance-shell #page .vb .vb-action {min-height:44px;border-radius:999px;background:var(--finance-accent);color:var(--finance-on-accent)}
.client-finance-shell #page .vb :is(.vb-note,.vb-count) {color:var(--finance-muted)}

/* Education: align cards, labels and filters with the other account pages. */
.client-finance-shell #page .skills-hub {
  --skl-ink:var(--finance-ink);
  --skl-muted:var(--finance-muted);
  --skl-surface:var(--finance-paper);
  --skl-blue:var(--finance-accent);
  --skl-tint:var(--finance-tint);
  --skl-line:var(--finance-line);
}
.client-finance-shell #page .skills-hub .skl-course-copy>p {color:var(--finance-muted);line-height:1.55}
.client-finance-shell #page .skills-hub .skl-course-copy>.ed-secondary {
  border:0;
  border-radius:999px;
  color:var(--finance-accent);
  background:var(--finance-tint);
}
.client-finance-shell #page .skills-hub .skl-course-meta {color:var(--finance-muted);font-size:.8125rem}

/* The product catalog leads with its available categories and real simulators. */
.client-finance-shell #page .vw-sim {
  --sim-ink:var(--finance-ink);
  --sim-muted:var(--finance-muted);
  --sim-action:var(--finance-accent);
  --sim-act-ink:var(--finance-on-accent);
  --sim-surface:var(--finance-paper);
  --sim-soft:var(--finance-soft);
  --sim-edge:var(--finance-line);
  --sim-control:var(--md-sys-color-outline);
}
.client-finance-shell #page .vw-sim :is(.sim-catalog-intro h1,.sim-picker h2,.sim-offers h2,.sim-filters button,.sim-card-link,.sim-card h3) {font-family:inherit}
.vw-sim .sim-catalog-intro {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0 0 clamp(20px,3vw,32px)}
.vw-sim .sim-catalog-intro h1 {margin:0;color:var(--sim-ink);font-size:clamp(1.85rem,3vw,2.65rem);line-height:1.13;letter-spacing:-.045em}
.vw-sim .sim-catalog-intro p {margin:7px 0 0;color:var(--sim-muted);font-size:1rem;line-height:1.5}
.vw-sim .sim-picker h2,.vw-sim .sim-offers h2 {margin:0;font-size:clamp(1.13rem,1.65vw,1.42rem)}
.vw-sim .sim-picker .sim-filters {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(138px,100%),1fr));gap:10px;margin:14px 0 clamp(22px,3vw,34px)}
.vw-sim .sim-picker .sim-filters button {
  position:relative;display:grid;align-content:start;grid-template-rows:auto 1fr auto;gap:0;min-width:0;min-height:44px;
  overflow:hidden;padding:0 0 12px;border:1px solid var(--sim-edge);border-radius:16px;
  color:var(--sim-ink);background:var(--sim-surface);text-align:left;cursor:pointer;box-shadow:var(--sim-shadow);
}
.vw-sim .sim-picker .sim-filters button[aria-pressed=true] {background:var(--sim-soft);border-color:var(--sim-action);box-shadow:inset 0 0 0 1px var(--sim-action)}
.vw-sim .sim-picker .sim-filters button:focus-visible {outline:3px solid var(--sim-action);outline-offset:3px}
.vw-sim .sim-category-photo {display:grid;place-items:center;height:clamp(54px,6vw,78px);margin:0 0 10px;background:var(--sim-soft);color:var(--sim-action);overflow:hidden}
.vw-sim .sim-category-photo img {width:100%;height:100%;object-fit:cover}
.vw-sim .sim-category-photo svg {width:28px;height:28px}
.vw-sim .sim-category-name,.vw-sim .sim-category-count {margin-inline:11px;overflow-wrap:anywhere}
.vw-sim .sim-category-name {white-space:normal;min-width:0;font-size:.9rem;line-height:1.22;font-weight:650}
.vw-sim .sim-category-count,.vw-sim .sim-count {color:var(--sim-muted);font-size:.76rem}
.vw-sim .sim-category-count {margin-top:4px}
.vw-sim .sim-offers-heading {display:flex;align-items:baseline;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.vw-sim .sim-catalog-empty {display:grid;justify-items:start;gap:10px;padding:22px;background:var(--sim-soft);border-radius:18px}
.vw-sim .sim-catalog-empty p {margin:0;color:var(--sim-muted)}
.client-finance-shell #page .vw-sim .sim-card {background:var(--finance-paper)}
.client-finance-shell #page .vw-sim .sim-card[hidden] {display:none}
.client-finance-shell #page .vw-sim .sim-card h3 {margin:14px 0 6px;font-size:clamp(1.04rem,1.5vw,1.32rem)}
.client-finance-shell #page .vw-sim .sim-card-link p {color:var(--finance-muted);line-height:1.5}
@media(max-width:700px) {
  .vw-sim .sim-picker .sim-filters {grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .vw-sim .sim-picker .sim-filters button {grid-template-columns:42px minmax(0,1fr);grid-template-rows:1fr auto;align-items:center;align-content:center;padding:7px;border-radius:12px;column-gap:8px}
  .vw-sim .sim-category-photo {grid-row:span 2;height:100%;min-height:40px;border-radius:7px;margin:0}
  .vw-sim .sim-category-photo svg {width:20px;height:20px}
  .vw-sim .sim-category-name,.vw-sim .sim-category-count {margin:0}
  .vw-sim .sim-category-name {align-self:end;font-size:.8rem}
  .vw-sim .sim-category-count {align-self:start;font-size:.7rem}
}
@media(forced-colors:active) {
  .vw-sim .sim-picker .sim-filters button[aria-pressed=true] {border:2px solid Highlight}
}
@media(prefers-reduced-transparency:reduce) {
  .client-finance-shell #page :is(.w-surface,.vw-evolution,.pi-card,.vb-card,.skl-course-card,.sim-card) {
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
}
@media(forced-colors:active) {
  .client-finance-shell #page :is(.w-surface,.vw-evolution,.pi-card,.vb-card,.skl-course-card,.sim-card,.pc-toolbar,.pc-zoom) {
    border:1px solid CanvasText;
    box-shadow:none;
  }
}
