/* Financial Health pop-up (owner's handoff, 2026-10-18). Atlas Money colors. */
.fhs-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.32);
  animation: fhs-fade 0.25s ease;
}
.fhs-sheet {
  touch-action: pan-y;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 201;
  height: 75vh; display: flex; flex-direction: column; overflow: hidden;
  background: #F2F2F7;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
  font-family: "Inter Tight", system-ui, sans-serif;
  color: #1C1C1E;
  animation: fhs-up 0.38s cubic-bezier(0.22, 0.8, 0.24, 1);
}
.fhs-grabber { flex-shrink: 0; width: 38px; height: 5px; border-radius: 3px; background: #D1D1D6; margin: 8px auto 0; }
.fhs-top { flex-shrink: 0; display: flex; justify-content: flex-end; padding: 6px 18px 0; }
.fhs-close {
  width: 40px; height: 40px; border: none; border-radius: 20px; background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.fhs-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 16px;
  padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 28px);
}
.fhs-body > * { flex-shrink: 0; }

.fhs-head { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: -6px; }
.fhs-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6E6E73; }
.fhs-scoreRow { display: flex; align-items: baseline; gap: 6px; }
.fhs-score { font-size: 76px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #000000; font-variant-numeric: tabular-nums; }
.fhs-outof { font-size: 18px; font-weight: 600; color: #6E6E73; }
.fhs-sub { display: flex; align-items: center; gap: 8px; }
.fhs-tier { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 12px; }
.fhs-tier-good { background: #EBFAE6; color: #259200; }
.fhs-tier-fair { background: #FFF4C7; color: #3D2E00; }
.fhs-tier-low { background: #FFE3D6; color: #E5383B; }
.fhs-change { font-size: 14px; font-weight: 500; color: #1C1C1E; }

.fhs-card { margin: 0 16px; background: #FFFFFF; border-radius: 26px; padding: 20px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.fhs-h3 { margin: 0; font-size: 20px; font-weight: 700; color: #1C1C1E; }
.fhs-pad { padding: 4px 20px 0; font-size: 19px; }
.fhs-muted { font-size: 13px; font-weight: 500; color: #6E6E73; }
.fhs-bars {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  align-items: end; height: 250px; margin-top: 14px;
}
.fhs-bar {
  border-radius: 999px; box-sizing: border-box;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px;
  transition: height 0.6s cubic-bezier(0.22, 0.8, 0.24, 1);
}
.fhs-bar span { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fhs-labels {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px;
  text-align: center; font-size: 14px; font-weight: 600; color: #1C1C1E;
}

.fhs-list { margin: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.fhs-item { background: #FFFFFF; border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.fhs-itemTop { display: flex; justify-content: space-between; align-items: center; }
.fhs-itemName { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.fhs-dot { width: 12px; height: 12px; border-radius: 6px; }
.fhs-itemScore { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fhs-yours { font-size: 14px; font-weight: 500; line-height: 1.35; }
.fhs-tip { margin-top: 4px; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 12px; color: #1C1C1E; }

@keyframes fhs-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fhs-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fhs-sheet, .fhs-backdrop, .fhs-bar { animation: none; transition: none; } }
