/* The account-gated shell uses the same scroll owner, safe area and four destinations as the H5. */
.shell.finance-shell {
  max-width: 1360px;
  margin-inline: auto;
  padding-top: max(0px, var(--safe-top));
}
.finance-masthead {
  min-height: 48px;
  display: flex;
  gap: 16px;
  align-items: center;
  padding-block: 8px;
  margin-block-end: 18px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.finance-masthead strong { color: var(--deep); font-size: 17px; white-space: nowrap; }
.finance-masthead span { border-inline-start: 1px solid var(--border); padding-inline-start: 16px; font-size: 14px; }
.finance-masthead small { margin-inline-start: auto; white-space: nowrap; }
.finance-shell .finance-page-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  min-height: 0;
  padding: 20px 26px;
  border-radius: 12px;
  margin: 0 0 18px;
  background: var(--deep);
  background: color-mix(in srgb, var(--deep) 76%, var(--accent));
  color: white;
}
.finance-page-heading::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(26%, 230px);
  background: repeating-linear-gradient(132deg, transparent 0 12px, #ffffff1a 12px 13px);
  clip-path: polygon(64% 0, 100% 0, 46% 100%, 10% 100%);
  pointer-events: none;
}
.finance-shell .finance-page-heading h1 {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px;
  color: inherit; font-size: 30px; line-height: 1.3; letter-spacing: 0;
}
.finance-page-heading .finance-home-balance {
  padding-inline-start: 17px; border-inline-start: 1px solid #ffffff40;
  font-size: 16px; line-height: 1.2;
}
.finance-home-balance strong { font-size: 1.4em; font-variant-numeric: tabular-nums; }
.finance-shell .finance-page-heading p { margin: 8px 0 0; color: inherit; opacity: .9; font-size: 15px; }
.finance-mobile-caption { display: none; }
@media (max-width:759px) {
  .finance-masthead { justify-content: space-between; }
  .finance-masthead small,.finance-desktop-caption { display: none; }
  .finance-masthead span { border: 0; text-align: end; }
  .finance-mobile-caption { display: block; }
  .finance-shell .finance-page-heading { padding: 3px 0 8px; background: none; color: var(--deep); }
  .finance-page-heading::after { content: none; }
  .finance-shell .finance-page-heading h1 { font-size: clamp(24px,7vw,28px); }
  .finance-page-heading .finance-home-balance { padding: 0; border: 0; font-size: 15px; color: var(--accent-foreground,var(--accent)); }
  .finance-home-balance strong { font-size: 1.1em; }
}
.finance-home-balance strong.negative {
  display: inline-block;
  padding-inline: 4px;
  border-radius: 4px;
  background: white;
}
