/* Financial pulse: individual particles drift through a softly breathing cloud. */
.ff-studio #tabDashboard .dash-hero-cell:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.ff-wealth-main {
  min-width: 0;
}
.ff-studio #dashPatTotal {
  font-size: clamp(34px, 4.2vw, 58px) !important;
  white-space: normal;
  overflow-wrap: anywhere;
}
.ff-health {
  --pulse: #c8ef80;
  --pulse-rgb: 200, 239, 128;
  min-width: 0;
  text-align: center;
  padding-left: 24px;
  border-left: 1px solid var(--ff-line);
}
.ff-health[data-tone="attention"] {
  --pulse: #f1c67c;
  --pulse-rgb: 241, 198, 124;
}
.ff-health[data-tone="critical"] {
  --pulse: #f397a3;
  --pulse-rgb: 243, 151, 163;
}
.ff-health[data-tone="partial"] {
  --pulse: #9fbbcb;
  --pulse-rgb: 159, 187, 203;
}
.ff-health-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px;
  color: var(--ff-muted);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}
.ff-health-demo {
  padding: 3px 6px;
  border: 1px solid var(--ff-line);
  border-radius: 5px;
  font-size: 8px;
  letter-spacing: 0.3px;
}
.ff-health-orb {
  width: 180px;
  max-width: 100%;
  height: 136px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  position: relative;
}
.ff-health-orb::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(var(--pulse-rgb), 0.13),
    transparent 68%
  );
}
.ff-health-orb svg {
  height: 146px;
  width: 170px;
  max-width: 100%;
  overflow: visible;
}
.ff-health-particles {
  fill: var(--pulse);
  transform-origin: 100px 86px;
  animation: ff-pulse-drift 18s ease-in-out infinite alternate;
}
.ff-health-particle {
  transform-box: fill-box;
  transform-origin: center;
  opacity: var(--dot-alpha);
  animation: ff-particle-float var(--float-time) ease-in-out var(--float-delay)
    infinite;
}
.ff-health-layer-1 {
  animation-duration: 23s;
  animation-delay: -8s;
}
.ff-health-layer-2 {
  animation-duration: 17s;
  animation-delay: -4s;
}
.ff-health-halo {
  fill: none;
  stroke: var(--pulse);
  stroke-width: 0.5;
  opacity: 0.13;
  transform-origin: 100px 86px;
  animation: ff-pulse-breathe 6.8s ease-in-out infinite;
}
.ff-health-orbit {
  fill: var(--pulse);
  transform-origin: 100px 86px;
  animation: ff-pulse-orbit 28s linear infinite;
}
.ff-health-orbit ellipse {
  fill: none;
  stroke: var(--pulse);
  stroke-width: 0.6;
  opacity: 0.25;
}
.ff-health-core {
  fill: var(--ff-surface);
  stroke: var(--pulse);
  stroke-opacity: 0.25;
  stroke-width: 0.7;
}
.ff-health-symbol {
  fill: none;
  stroke: var(--pulse);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ff-health .ff-health-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--pulse);
  margin: 0 0 8px;
}
.ff-health .ff-health-message {
  font-size: 11px;
  line-height: 1.65;
  color: var(--ff-muted);
  margin: 0 auto 9px;
  max-width: 260px;
  text-wrap: pretty;
}
.ff-health .ff-health-action {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
  background: rgba(var(--pulse-rgb), 0.06);
  border: 1px solid rgba(var(--pulse-rgb), 0.17);
  color: var(--text);
  border-radius: 10px;
}
.ff-health-action:hover {
  background: rgba(var(--pulse-rgb), 0.13);
}
.ff-health-details {
  margin-top: 4px;
  text-align: left;
}
.ff-health-details summary {
  font-size: 10px;
  color: var(--ff-muted);
  text-align: center;
  cursor: pointer;
  padding: 10px 0;
  min-height: 36px;
  line-height: 1.6;
}
.ff-health-details dl {
  margin: 0;
}
.ff-health-details dl > div {
  border-top: 1px solid var(--ff-line);
  padding: 9px 0;
}
.ff-health-details dt {
  font-size: 11px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}
.ff-health-details dt::before {
  content: "";
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ff-muted);
}
.ff-health-details [data-tone="positive"] dt::before {
  background: var(--ff-positive);
}
.ff-health-details [data-tone="attention"] dt::before {
  background: #f1c67c;
}
.ff-health-details [data-tone="critical"] dt::before {
  background: var(--ff-negative);
}
.ff-health-details dd {
  margin: 5px 0 0 12px;
  color: var(--ff-muted);
  font-size: 10px;
  line-height: 1.5;
}
.ff-health-details p {
  color: var(--ff-muted);
  font-size: 9px;
  line-height: 1.6;
  margin-top: 7px;
}
.ff-health:not(.is-moving)
  :is(
    .ff-health-particles,
    .ff-health-particle,
    .ff-health-orbit,
    .ff-health-halo
  ) {
  animation-play-state: paused;
}
.ff-studio:is([data-theme="light"], [data-theme="lpink"]) .ff-health {
  --pulse: #3b743a;
  --pulse-rgb: 59, 116, 58;
}
.ff-studio:is([data-theme="light"], [data-theme="lpink"])
  .ff-health[data-tone="attention"] {
  --pulse: #96611b;
  --pulse-rgb: 150, 97, 27;
}
.ff-studio:is([data-theme="light"], [data-theme="lpink"])
  .ff-health[data-tone="critical"] {
  --pulse: #ae3954;
  --pulse-rgb: 174, 57, 84;
}
.ff-studio:is([data-theme="light"], [data-theme="lpink"])
  .ff-health[data-tone="partial"] {
  --pulse: #577582;
  --pulse-rgb: 87, 117, 130;
}
@keyframes ff-pulse-drift {
  from {
    transform: translateY(-3px) rotate(-8deg);
  }
  to {
    transform: translateY(3px) rotate(12deg);
  }
}
@keyframes ff-particle-float {
  0%,
  100% {
    transform: translate(0, 0) scale(0.85);
    opacity: calc(var(--dot-alpha) * 0.65);
  }
  30% {
    transform: translate(var(--drift-x), var(--drift-y)) scale(1.2);
    opacity: var(--dot-alpha);
  }
  65% {
    transform: translate(var(--arc-x), var(--arc-y)) scale(0.75);
    opacity: calc(var(--dot-alpha) * 0.55);
  }
}
@keyframes ff-pulse-breathe {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.08;
  }
  50% {
    transform: scale(1.09);
    opacity: 0.22;
  }
}
@keyframes ff-pulse-orbit {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1000px) and (min-width: 601px) {
  .ff-studio .dash-grid > .ff-wealth {
    grid-column: span 12;
  }
  .ff-studio .dash-grid > .ff-flow {
    grid-column: span 12;
  }
}
@media (max-width: 600px) {
  .ff-studio #tabDashboard .dash-hero-cell:first-child {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .ff-studio #dashPatTotal {
    font-size: clamp(32px, 9vw, 49px) !important;
  }
  .ff-health {
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid var(--ff-line);
  }
  .ff-health-orb {
    height: 130px;
  }
  .ff-health .ff-health-message {
    max-width: 290px;
    font-size: 12px;
  }
  .ff-health .ff-health-action {
    max-width: 300px;
    margin-inline: auto;
    font-size: 12px;
  }
  .ff-health-details summary {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ff-health
    :is(
      .ff-health-particles,
      .ff-health-particle,
      .ff-health-orbit,
      .ff-health-halo
    ) {
    animation: none;
  }
}
