/* Siegel Financial v518 — Net Worth entrance, compact latest change, and retirement gold orbit. */

.networth-page .history-inline-inspector {
  position: relative;
  isolation: isolate;
}

.networth-page .history-inline-inspector::after {
  position: absolute;
  z-index: 4;
  left: clamp(18px, 3.2vw, 38px);
  top: 58%;
  width: min(48%, 330px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 214, 124, .95), rgba(126, 221, 176, .54), transparent);
  box-shadow: 0 0 12px rgba(241, 207, 112, .34);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-20%) scaleX(.3);
  transform-origin: left;
}

.networth-page .history-inline-inspector.is-networth-entering::after {
  animation: networth-value-sweep 1.05s cubic-bezier(.18, .76, .22, 1) .12s both;
}

.networth-page .history-inline-inspector.is-networth-entering .history-current-copy,
.networth-page .history-inline-inspector.is-networth-entering .history-current-chip,
.networth-page .history-inline-inspector.is-networth-entering .history-current-meta {
  animation: networth-detail-enter .56s cubic-bezier(.18, .76, .22, 1) both;
}

.networth-page .history-inline-inspector.is-networth-entering .history-current-value {
  animation: networth-value-enter .88s cubic-bezier(.16, .82, .22, 1) both;
}

.networth-page .history-inline-inspector.is-networth-entering .history-latest-change {
  animation: networth-change-enter .72s cubic-bezier(.16, .78, .22, 1) .2s both;
}

@keyframes networth-detail-enter {
  0% { opacity: 0; transform: translateY(5px); }
  100% { opacity: 1; transform: none; }
}

@keyframes networth-value-enter {
  0% { opacity: .2; filter: blur(2px); transform: translateY(8px) scale(.985); }
  62% { opacity: 1; filter: none; }
  100% { opacity: 1; filter: none; transform: none; }
}

@keyframes networth-change-enter {
  0% { opacity: 0; transform: translateX(9px); }
  100% { opacity: 1; transform: none; }
}

@keyframes networth-value-sweep {
  0% { opacity: 0; transform: translateX(-20%) scaleX(.3); }
  25% { opacity: .84; }
  100% { opacity: 0; transform: translateX(118%) scaleX(.86); }
}

.networth-page .history-latest-change {
  min-height: 0;
  padding: 15px 18px 14px;
}

.networth-page .history-latest-change-head {
  align-items: center;
  gap: 10px;
}

.networth-page .history-latest-change-head > span {
  gap: 2px;
}

.networth-page .history-latest-change-head b {
  font-size: 8.5px;
  letter-spacing: .115em;
}

.networth-page .history-latest-change-head small {
  font-size: 8.5px;
}

.networth-page .history-latest-change-icon {
  flex-basis: 24px;
  width: 24px;
  height: 24px;
}

.networth-page .history-latest-change-icon::before {
  left: 7px;
  top: 8px;
  width: 7px;
  height: 5px;
}

.networth-page .history-latest-change.neutral .history-latest-change-icon::before,
.networth-page .history-latest-change.is-empty .history-latest-change-icon::before {
  left: 7px;
  top: 11px;
  width: 8px;
}

.networth-page .history-latest-change-value {
  max-width: 100%;
  margin-top: 8px;
  overflow: visible;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1;
  text-overflow: clip;
}

.networth-page .history-latest-change-subline {
  margin-top: 4px;
}

.networth-page .history-latest-change-period {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  padding-top: 7px;
}

.networth-page .history-latest-change-period > span {
  width: 15px;
  flex: 0 0 15px;
  background: none;
}

.networth-page .history-latest-change-period > span::before {
  display: block;
  position: static;
  width: auto;
  height: auto;
  border: 0;
  background: none;
  color: rgba(241, 214, 137, .72);
  content: "→";
  font-size: 10px;
  line-height: 1;
  transform: none;
}

.networth-page .history-latest-change-period > span::after {
  display: none;
}

.projection-page-wrap .projection-celebration {
  display: none;
}

.projection-page-wrap .projection-retirement-callout .projection-gold-orbit {
  fill: none;
  stroke: #f6d779;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-dasharray: .13 .87;
  stroke-dashoffset: 0;
  opacity: 0;
  filter: drop-shadow(0 0 3px rgba(246, 215, 121, .9)) drop-shadow(0 0 8px rgba(230, 190, 90, .42));
  pointer-events: none;
}

.projection-page-wrap .projection-retirement-callout.projection-is-celebrating {
  animation: projection-result-settle .72s cubic-bezier(.16, .82, .22, 1) both;
}

.projection-page-wrap .projection-retirement-callout.projection-is-celebrating > rect:not(.projection-gold-orbit) {
  stroke: #e8c668;
  stroke-width: 1.35;
  filter: drop-shadow(0 0 5px rgba(240, 210, 124, .26)) drop-shadow(0 10px 20px rgba(1, 8, 15, .34));
}

.projection-page-wrap .projection-retirement-callout.projection-is-celebrating .projection-gold-orbit {
  opacity: 1;
  animation: projection-gold-orbit 3.25s linear .25s infinite;
}

.projection-page-wrap .projection-retirement-callout.projection-is-celebrating .projection-callout-value {
  animation: projection-result-value 1.05s cubic-bezier(.16, .82, .22, 1) both;
}

@keyframes projection-result-settle {
  0% { filter: brightness(.98); transform: scale(.985); }
  42% { filter: brightness(1.12); transform: scale(1.014); }
  100% { filter: none; transform: none; }
}

@keyframes projection-result-value {
  0% { opacity: .6; filter: blur(1px); }
  46% { opacity: 1; filter: drop-shadow(0 0 7px rgba(246, 215, 121, .72)); }
  100% { opacity: 1; filter: none; }
}

@keyframes projection-gold-orbit {
  to { stroke-dashoffset: -1; }
}

@media (max-width: 700px) {
  .networth-page .history-latest-change {
    min-height: 0;
    padding: 12px 14px 11px;
  }

  .networth-page .history-latest-change-value {
    width: 100%;
    font-size: clamp(25px, 8.4vw, 34px);
  }

  .networth-page .history-latest-change-period {
    margin-top: 7px;
  }
}

@media (max-width: 380px) {
  .networth-page .history-latest-change {
    padding-inline: 12px;
  }

  .networth-page .history-latest-change-value {
    font-size: clamp(24px, 8vw, 30px);
    letter-spacing: -.035em;
  }

  .networth-page .history-latest-change-head small {
    display: none;
  }

  .networth-page .history-latest-change-period time {
    font-size: 7.8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .networth-page .history-inline-inspector.is-networth-entering *,
  .networth-page .history-inline-inspector.is-networth-entering::after,
  .projection-page-wrap .projection-retirement-callout.projection-is-celebrating,
  .projection-page-wrap .projection-retirement-callout.projection-is-celebrating * {
    animation: none !important;
  }

  .projection-page-wrap .projection-retirement-callout.projection-is-celebrating .projection-gold-orbit {
    opacity: 0;
  }
}
