/* Patrimonio — dashboard conectado al modelo real de activos y pasivos. */
#networth-view {
  --nw-panel: rgba(13, 16, 15, 0.94);
  --nw-panel-strong: rgba(16, 20, 18, 0.98);
  --nw-panel-soft: rgba(255, 255, 255, 0.025);
  --nw-line: rgba(255, 255, 255, 0.085);
  --nw-line-strong: rgba(255, 255, 255, 0.14);
  --nw-copy: #f1f5f3;
  --nw-muted: #98a29d;
  --nw-dim: #69736e;
  --nw-green: #4be6b0;
  --nw-green-soft: rgba(45, 222, 152, 0.12);
  --nw-coral: #ff765e;
  --nw-coral-soft: rgba(255, 118, 94, 0.12);
  width: 100%;
  min-height: calc(100vh - var(--v2-topbar-height));
  padding: 26px clamp(22px, 2.8vw, 42px) 48px;
}

#networth-view .mv7-networth-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 22px;
}

#networth-view .mv7-networth-heading > div:first-child {
  min-width: 0;
}

#networth-view .mv7-networth-heading .mv7-eyebrow {
  margin: 0 0 6px;
  color: var(--nw-green);
}

#networth-view .mv7-networth-heading h2 {
  margin: 0;
  color: var(--nw-copy);
  font-size: clamp(25px, 2.2vw, 33px);
  font-weight: 630;
  letter-spacing: -0.045em;
}

#networth-view .mv7-networth-heading > div > p:last-child {
  margin: 7px 0 0;
  color: var(--nw-muted);
  font-size: var(--v2-text-sm);
}

#networth-view .mv7-tx-heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

#networth-view .mv7-networth-heading :is(.mv7-primary-button, .mv7-secondary-button) {
  min-height: 42px;
  padding-inline: 16px;
  border-radius: 10px;
  white-space: nowrap;
}

#networth-view .mv7-networth-heading .mv7-secondary-button {
  border-color: var(--nw-line-strong);
  background: rgba(255, 255, 255, 0.035);
}

#networth-view .mv7-networth-heading svg {
  width: 15px;
  height: 15px;
}

#networth-view .mv7-networth-section {
  position: relative;
  overflow: visible;
  display: block;
  min-height: 0;
  grid-template-columns: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#networth-view .mv7-networth-section::before {
  display: none;
}

#networth-view .mv7-networth-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(218px, 0.28fr);
  gap: 14px;
}

#networth-view .mv7-networth-hero,
#networth-view .mv7-networth-insights,
#networth-view .mv7-networth-composition {
  border: 1px solid var(--nw-line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 52%), var(--nw-panel);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.025);
}

#networth-view .mv7-networth-hero {
  min-width: 0;
  padding: clamp(20px, 2.2vw, 30px);
}

#networth-view .mv7-networth-summary {
  position: relative;
  z-index: auto;
  display: flex;
  min-height: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 0;
  border: 0;
}

#networth-view .mv7-networth-primary .mv7-eyebrow {
  margin: 0 0 10px;
  color: var(--nw-muted);
}

#networth-view .mv7-networth-value-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}

#networth-view .mv7-networth-primary h3 {
  margin: 0;
  color: var(--nw-copy);
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 570;
  letter-spacing: -0.06em;
  line-height: 1;
}

#networth-view #networth-history-change {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(75, 230, 176, 0.15);
  border-radius: 8px;
  background: var(--nw-green-soft);
  color: var(--nw-green);
  font-size: var(--v2-text-xs);
  font-weight: 740;
}

#networth-view #networth-history-change.is-negative {
  border-color: rgba(255, 118, 94, 0.18);
  background: var(--nw-coral-soft);
  color: var(--nw-coral);
}

#networth-view .mv7-networth-primary > span {
  display: block;
  margin-top: 9px;
  color: var(--nw-green);
  font-size: var(--v2-text-xs);
  font-weight: 600;
}

#networth-view .mv7-networth-primary > span.is-negative {
  color: var(--nw-coral);
}

#networth-view .mv7-networth-asof {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--nw-dim);
  font-size: var(--v2-text-micro);
}

#networth-view .mv7-networth-history {
  min-width: 0;
  margin-top: 28px;
  padding: 20px 0 0;
  border-top: 1px solid var(--nw-line);
}

#networth-view .mv7-networth-history header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

#networth-view .mv7-networth-history header div {
  display: grid;
  gap: 4px;
}

#networth-view .mv7-networth-history header span {
  color: var(--nw-muted);
  font-size: var(--v2-text-micro);
  font-weight: 760;
  letter-spacing: 0.13em;
}

#networth-view .mv7-networth-history header small {
  color: var(--nw-dim);
  font-size: var(--v2-text-micro);
}

#networth-view .mv7-networth-chart-shell {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
}

#networth-view .mv7-networth-chart-axis {
  display: flex;
  height: 210px;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 1px;
}

#networth-view .mv7-networth-chart-axis span {
  color: var(--nw-dim);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

#networth-view .mv7-networth-chart-plot {
  position: relative;
  min-width: 0;
  padding-bottom: 28px;
}

#networth-view .mv7-networth-history svg {
  display: block;
  width: 100%;
  height: 210px;
  margin: 0;
  overflow: visible;
}

#networth-view .mv7-networth-chart-grid path {
  fill: none;
  stroke: var(--nw-line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

#networth-view .mv7-networth-history-path {
  fill: none;
  stroke: var(--nw-green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(75, 230, 176, 0.2));
}

#networth-view .mv7-networth-history-area {
  fill: url(#networth-history-fill);
}

#networth-view .mv7-networth-history-guide {
  stroke: rgba(75, 230, 176, 0.42);
  stroke-dasharray: 3 4;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

#networth-view .mv7-networth-history-point {
  fill: var(--nw-panel-strong);
  stroke: var(--nw-green);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

#networth-view .mv7-networth-chart-tooltip {
  position: absolute;
  z-index: 2;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--nw-line-strong);
  border-radius: 8px;
  background: rgba(18, 22, 20, 0.96);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  color: var(--nw-muted);
  font-size: 10px;
  pointer-events: none;
  transform: translateY(-120%);
}

#networth-view .mv7-networth-chart-tooltip strong {
  color: var(--nw-copy);
  font-size: 10px;
  font-weight: 680;
}

#networth-view .mv7-networth-chart-months {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
}

#networth-view .mv7-networth-chart-months span {
  color: var(--nw-dim);
  font-size: 9px;
  text-align: center;
}

#networth-view .mv7-networth-insights {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 21px 18px 0;
}

#networth-view .mv7-networth-insights > header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--nw-line);
}

#networth-view .mv7-networth-insight-mark {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(75, 230, 176, 0.16);
  border-radius: 10px;
  background: var(--nw-green-soft);
  color: var(--nw-green);
}

#networth-view .mv7-networth-insight-mark svg {
  width: 16px;
  height: 16px;
}

#networth-view .mv7-networth-insights h3 {
  margin: 2px 0 0;
  color: var(--nw-copy);
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -0.025em;
}

#networth-view .mv7-networth-insights article {
  display: flex;
  gap: 11px;
  padding: 20px 0;
  border-bottom: 1px solid var(--nw-line);
}

#networth-view .mv7-networth-insights article > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--nw-green-soft);
  color: var(--nw-green);
}

#networth-view .mv7-networth-insights article > span svg {
  width: 17px;
  height: 17px;
}

#networth-view .mv7-networth-insights article.is-growth.is-negative > span,
#networth-view .mv7-networth-insights article.is-debt > span {
  background: var(--nw-coral-soft);
  color: var(--nw-coral);
}

#networth-view .mv7-networth-insights article p {
  display: grid;
  min-width: 0;
  gap: 3px;
  margin: 0;
  color: var(--nw-muted);
  font-size: var(--v2-text-xs);
  line-height: 1.4;
}

#networth-view .mv7-networth-insights article p b {
  color: var(--nw-copy);
  font-weight: 600;
}

#networth-view .mv7-networth-insights article p strong {
  color: var(--nw-green);
  font-size: 19px;
  font-weight: 680;
}

#networth-view .mv7-networth-insights article.is-growth.is-negative p strong,
#networth-view .mv7-networth-insights article.is-debt p strong {
  color: var(--nw-coral);
}

#networth-view .mv7-networth-insights article p small {
  color: var(--nw-dim);
  font-size: 10px;
}

#networth-view #networth-view-detail {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 16px 0;
  border: 0;
  background: transparent;
  color: var(--nw-green);
  cursor: pointer;
  font: inherit;
  font-size: var(--v2-text-xs);
  font-weight: 650;
}

#networth-view #networth-view-detail svg {
  width: 14px;
  height: 14px;
}

#networth-view .mv7-networth-insights > footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline: -18px;
  padding: 13px 18px;
  border-top: 1px solid var(--nw-line);
  color: var(--nw-dim);
  font-size: 10px;
}

#networth-view .mv7-networth-insights > footer svg {
  width: 14px;
  height: 14px;
}

#networth-view .mv7-networth-insights > footer span,
#networth-view .mv7-networth-insights > footer strong {
  display: block;
}

#networth-view .mv7-networth-insights > footer strong {
  margin-top: 2px;
  color: var(--nw-muted);
  font-weight: 570;
}

#networth-view .mv7-networth-composition {
  margin-top: 14px;
  padding: clamp(20px, 2.2vw, 28px);
  scroll-margin-top: 100px;
}

#networth-view .mv7-networth-composition > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

#networth-view .mv7-networth-composition > header .mv7-eyebrow {
  margin: 0 0 5px;
  color: var(--nw-muted);
}

#networth-view .mv7-networth-composition > header h3 {
  margin: 0;
  color: var(--nw-copy);
  font-size: 21px;
  font-weight: 630;
  letter-spacing: -0.035em;
}

#networth-view .mv7-networth-composition > header > p {
  max-width: 390px;
  margin: 0;
  color: var(--nw-muted);
  font-size: var(--v2-text-xs);
  line-height: 1.5;
  text-align: right;
}

#networth-view .mv7-networth-balance-bar {
  display: flex;
  height: 34px;
  gap: 3px;
  margin: 21px 0 18px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--nw-panel-soft);
}

#networth-view .mv7-networth-balance-bar > div {
  display: flex;
  min-width: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 11px;
  transition: flex-basis 420ms var(--v2-motion-ease-out);
}

#networth-view .mv7-networth-balance-bar > div.is-empty {
  display: none;
}

#networth-view .mv7-networth-balance-bar span,
#networth-view .mv7-networth-balance-bar strong {
  font-size: 10px;
  font-weight: 720;
}

#networth-view .mv7-networth-balance-bar .is-assets {
  background: linear-gradient(90deg, rgba(45, 222, 152, 0.72), rgba(75, 230, 176, 0.9));
  color: #06150f;
}

#networth-view .mv7-networth-balance-bar .is-liabilities {
  background: linear-gradient(90deg, rgba(255, 118, 94, 0.88), rgba(255, 142, 92, 0.88));
  color: #25100c;
}

#networth-view .mv7-networth-composition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--nw-line);
  border-radius: 12px;
}

#networth-view .mv7-networth-breakdown {
  min-width: 0;
  background: var(--nw-panel-soft);
}

#networth-view .mv7-networth-breakdown + .mv7-networth-breakdown {
  border-left: 1px solid var(--nw-line);
}

#networth-view .mv7-networth-breakdown > header,
#networth-view .mv7-networth-breakdown > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
}

#networth-view .mv7-networth-breakdown > header {
  border-bottom: 1px solid var(--nw-line);
}

#networth-view .mv7-networth-breakdown > header div {
  display: grid;
  gap: 3px;
}

#networth-view .mv7-networth-breakdown > header span {
  color: var(--nw-green);
  font-size: var(--v2-text-micro);
  font-weight: 780;
  letter-spacing: 0.12em;
}

#networth-view .mv7-networth-breakdown.is-liabilities > header span {
  color: var(--nw-coral);
}

#networth-view .mv7-networth-breakdown > header small {
  color: var(--nw-dim);
  font-size: 10px;
}

#networth-view .mv7-networth-breakdown > header > strong {
  color: var(--nw-copy);
  font-size: var(--v2-text-sm);
  font-weight: 640;
  white-space: nowrap;
}

#networth-view .mv7-networth-layers {
  display: flex;
  width: 100%;
  min-height: 168px;
  flex-direction: column;
  justify-content: flex-start;
}

#networth-view .mv7-networth-layer {
  position: relative;
  z-index: auto;
  width: 100%;
  margin: 0;
  color: var(--nw-copy);
  cursor: pointer;
  outline: none;
  transition: background 180ms ease;
}

#networth-view .mv7-networth-layer + .mv7-networth-layer {
  margin-top: 0;
  border-top: 1px solid var(--nw-line);
}

#networth-view .mv7-networth-layer:hover,
#networth-view .mv7-networth-layer:focus-visible,
#networth-view .mv7-networth-layer.is-selected {
  z-index: auto;
  width: 100%;
  margin: 0;
  background: color-mix(in srgb, var(--layer-tone) 6%, transparent);
  filter: none;
}

#networth-view .mv7-networth-layer:focus-visible {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--layer-tone) 55%, transparent);
}

#networth-view .mv7-networth-layer-surface,
#networth-view .mv7-networth-layer.is-selected .mv7-networth-layer-surface,
#networth-view .mv7-networth-layer-liability .mv7-networth-layer-surface {
  position: relative;
  display: grid;
  min-height: 62px;
  grid-template-columns: 36px minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 11px;
  padding: 10px 15px;
  border: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
  transform: none;
}

#networth-view .mv7-networth-layer-surface::before,
#networth-view .mv7-networth-layer-surface::after {
  display: none;
}

#networth-view .mv7-networth-layer-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--layer-tone) 22%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--layer-tone) 13%, transparent);
  color: var(--layer-tone);
}

#networth-view .mv7-networth-layer-icon svg {
  width: 16px;
  height: 16px;
}

#networth-view .mv7-networth-layer-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

#networth-view .mv7-networth-layer-copy strong {
  overflow: hidden;
  color: var(--nw-copy);
  font-size: var(--v2-text-xs);
  font-weight: 610;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#networth-view .mv7-networth-layer-copy small {
  overflow: hidden;
  color: var(--nw-dim);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#networth-view .mv7-networth-layer-amount {
  display: grid;
  justify-items: end;
  gap: 3px;
}

#networth-view .mv7-networth-layer-amount strong {
  color: var(--nw-copy);
  font-size: var(--v2-text-xs);
  font-weight: 620;
  white-space: nowrap;
}

#networth-view .mv7-networth-layer-amount b {
  color: var(--layer-tone);
  font-size: 10px;
  font-weight: 720;
}

#networth-view .mv7-networth-layer-arrow {
  width: 13px;
  height: 13px;
  color: var(--nw-dim);
  transition: transform 180ms ease;
}

#networth-view .mv7-networth-layer.is-selected .mv7-networth-layer-arrow {
  transform: rotate(90deg);
}

#networth-view .mv7-networth-layer-detail {
  display: flex;
  width: auto;
  min-height: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 15px 10px 62px;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--layer-tone) 13%, transparent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
}

#networth-view .mv7-networth-layer-detail > span {
  display: grid;
  min-width: 0;
  grid-template-columns: auto auto;
  gap: 2px 9px;
}

#networth-view .mv7-networth-layer-detail small {
  grid-column: 1 / -1;
  color: var(--nw-dim);
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.11em;
}

#networth-view .mv7-networth-layer-detail strong,
#networth-view .mv7-networth-layer-detail em {
  color: var(--nw-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 520;
}

#networth-view .mv7-networth-edit {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--layer-tone) 32%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--layer-tone) 8%, transparent);
  color: var(--layer-tone);
  font: inherit;
  font-size: 9px;
  font-weight: 650;
}

#networth-view .mv7-networth-empty-layer {
  display: flex;
  width: auto;
  min-height: 116px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 16px;
  padding: 18px;
  border: 1px dashed var(--nw-line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--nw-muted);
  font: inherit;
  text-align: left;
}

#networth-view button.mv7-networth-empty-layer {
  cursor: pointer;
}

#networth-view .mv7-networth-empty-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--nw-green-soft);
  color: var(--nw-green);
  font-size: 18px;
}

#networth-view .mv7-networth-empty-copy,
#networth-view .mv7-networth-empty-layer strong,
#networth-view .mv7-networth-empty-layer small {
  display: block;
  margin: 0;
}

#networth-view .mv7-networth-empty-layer strong {
  color: var(--nw-copy);
  font-size: var(--v2-text-xs);
  font-weight: 610;
}

#networth-view .mv7-networth-empty-layer small {
  margin-top: 4px;
  color: var(--nw-dim);
  font-size: 9px;
  line-height: 1.4;
}

#networth-view .mv7-networth-breakdown > footer {
  border-top: 1px solid var(--nw-line);
  color: var(--nw-muted);
  font-size: var(--v2-text-xs);
}

#networth-view .mv7-networth-breakdown > footer strong {
  color: var(--nw-copy);
  font-size: var(--v2-text-xs);
  font-weight: 650;
}

#networth-view .mv7-networth-footer {
  position: relative;
  z-index: auto;
  display: grid;
  min-height: 0;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  border: 0;
}

#networth-view .mv7-networth-footer > article {
  position: static;
  z-index: auto;
  display: flex;
  width: auto;
  min-width: 0;
  min-height: 0;
  align-items: center;
  flex-direction: row;
  gap: 11px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--nw-line);
  border-radius: 10px;
  background: var(--nw-panel-soft);
  box-shadow: none;
  backdrop-filter: none;
  inset: auto;
}

#networth-view .mv7-networth-footer > article > span {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--nw-green-soft);
  color: var(--nw-green);
}

#networth-view .mv7-networth-footer > article > span svg {
  width: 15px;
  height: 15px;
}

#networth-view .mv7-networth-footer p {
  display: grid;
  min-width: 0;
  gap: 3px;
  margin: 0;
}

#networth-view .mv7-networth-footer small {
  color: var(--nw-dim);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

#networth-view .mv7-networth-footer strong {
  overflow: hidden;
  margin: 0;
  color: var(--nw-muted);
  font-size: 10px;
  font-weight: 560;
  line-height: 1.4;
  text-overflow: ellipsis;
}

:root[data-resolved-theme='light'] #networth-view {
  --nw-panel: rgba(255, 255, 255, 0.94);
  --nw-panel-strong: #ffffff;
  --nw-panel-soft: rgba(18, 31, 40, 0.027);
  --nw-line: rgba(18, 31, 40, 0.09);
  --nw-line-strong: rgba(18, 31, 40, 0.15);
  --nw-copy: #172027;
  --nw-muted: #65717a;
  --nw-dim: #879199;
  --nw-green: #078967;
  --nw-green-soft: rgba(9, 164, 123, 0.1);
  --nw-coral: #d85843;
  --nw-coral-soft: rgba(216, 88, 67, 0.1);
}

:root[data-resolved-theme='light'] #networth-view .mv7-networth-section {
  background: #f4f6f8;
}

:root[data-resolved-theme='light'] #networth-view .mv7-networth-hero,
:root[data-resolved-theme='light'] #networth-view .mv7-networth-insights,
:root[data-resolved-theme='light'] #networth-view .mv7-networth-composition {
  box-shadow:
    0 16px 38px rgba(28, 45, 57, 0.07),
    inset 0 1px rgba(255, 255, 255, 0.8);
}

:root[data-resolved-theme='light'] #networth-view .mv7-networth-chart-tooltip {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 26px rgba(28, 45, 57, 0.12);
}

:root[data-resolved-theme='light'] #networth-view .mv7-networth-layer-icon,
:root[data-resolved-theme='light'] #networth-view .mv7-networth-layer-amount b {
  color: color-mix(in srgb, var(--layer-tone) 45%, #087a65 55%);
}

@media (max-width: 1100px) {
  #networth-view .mv7-networth-overview {
    grid-template-columns: minmax(0, 1fr) 205px;
  }

  #networth-view .mv7-networth-insights {
    padding-inline: 15px;
  }

  #networth-view .mv7-networth-insights > footer {
    margin-inline: -15px;
    padding-inline: 15px;
  }
}

@media (max-width: 900px) {
  #networth-view .mv7-networth-overview {
    grid-template-columns: 1fr;
  }

  #networth-view .mv7-networth-insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
  }

  #networth-view .mv7-networth-insights > header,
  #networth-view .mv7-networth-insights > footer,
  #networth-view #networth-view-detail {
    grid-column: 1 / -1;
  }

  #networth-view .mv7-networth-insights article {
    border-bottom: 0;
  }

  #networth-view #networth-view-detail {
    border-top: 1px solid var(--nw-line);
  }
}

@media (max-width: 768px) {
  #networth-view {
    min-height: 0;
    padding: 16px 14px calc(96px + env(safe-area-inset-bottom));
  }

  #networth-view .mv7-networth-heading {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
  }

  #networth-view .mv7-networth-heading h2 {
    font-size: 25px;
  }

  #networth-view .mv7-networth-heading > div > p:last-child {
    max-width: 310px;
    line-height: 1.45;
  }

  #networth-view .mv7-tx-heading-actions {
    display: grid;
    grid-template-columns: 42px 1fr 1fr;
    width: 100%;
  }

  #networth-view .mv7-networth-heading :is(.mv7-primary-button, .mv7-secondary-button) {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding-inline: 10px;
    font-size: 11px;
  }

  #networth-view .mv7-networth-heading .mv7-secondary-button svg {
    display: block;
  }

  #networth-view .mv7-networth-heading .mv7-secondary-button::after {
    display: none;
    content: none;
  }

  #networth-view .mv7-networth-hero,
  #networth-view .mv7-networth-composition {
    padding: 18px 15px;
  }

  #networth-view .mv7-networth-summary {
    display: block;
  }

  #networth-view .mv7-networth-primary h3 {
    font-size: clamp(31px, 10.5vw, 42px);
  }

  #networth-view .mv7-networth-asof {
    display: block;
    margin-top: 10px;
  }

  #networth-view .mv7-networth-history {
    margin-top: 22px;
  }

  #networth-view .mv7-networth-chart-shell {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 6px;
  }

  #networth-view .mv7-networth-chart-axis,
  #networth-view .mv7-networth-history svg {
    height: 178px;
  }

  #networth-view .mv7-networth-chart-months span:nth-child(even) {
    visibility: hidden;
  }

  #networth-view .mv7-networth-chart-tooltip {
    right: 3px;
    padding: 6px;
  }

  #networth-view .mv7-networth-insights {
    display: block;
    padding-inline: 16px;
  }

  #networth-view .mv7-networth-insights article {
    border-bottom: 1px solid var(--nw-line);
  }

  #networth-view .mv7-networth-insights > footer {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  #networth-view .mv7-networth-composition > header {
    display: block;
  }

  #networth-view .mv7-networth-composition > header > p {
    margin-top: 8px;
    text-align: left;
  }

  #networth-view .mv7-networth-balance-bar span {
    display: none;
  }

  #networth-view .mv7-networth-balance-bar > div {
    justify-content: center;
  }

  #networth-view .mv7-networth-composition-grid {
    grid-template-columns: 1fr;
  }

  #networth-view .mv7-networth-breakdown + .mv7-networth-breakdown {
    border-top: 1px solid var(--nw-line);
    border-left: 0;
  }

  #networth-view .mv7-networth-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  #networth-view .mv7-networth-heading .mv7-secondary-button span {
    overflow: hidden;
    max-width: 86px;
    text-overflow: ellipsis;
  }

  #networth-view .mv7-networth-value-row {
    align-items: flex-end;
  }

  #networth-view .mv7-networth-primary h3 {
    width: 100%;
  }

  #networth-view .mv7-networth-layer-surface,
  #networth-view .mv7-networth-layer.is-selected .mv7-networth-layer-surface {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 9px;
    padding-inline: 11px;
  }

  #networth-view .mv7-networth-layer-arrow {
    display: none;
  }

  #networth-view .mv7-networth-layer-copy small {
    max-width: 112px;
  }

  #networth-view .mv7-networth-layer-detail {
    margin-left: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #networth-view .mv7-networth-balance-bar > div,
  #networth-view .mv7-networth-layer,
  #networth-view .mv7-networth-layer-arrow {
    transition: none;
  }
}
