/* Growth page styles.
   Keep growth/curve UI work here so it can be migrated independently. */

#curveView {
  --growth-bg: #eef7f6;
  --growth-card: rgba(255, 255, 255, 0.96);
  --growth-text: #07153a;
  --growth-muted: #60718a;
  --growth-primary: #12bfa8;
  --growth-primary-dark: #007468;
  --growth-mint: #dff8f3;
  --growth-orange: #ff7a1a;
  width: 100%;
  min-height: 100vh;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
  align-content: start;
  gap: 15px;
  background:
    radial-gradient(circle at 96% 3%, rgba(18, 191, 168, 0.12), transparent 22%),
    linear-gradient(180deg, #f4fbfa 0%, #eef7f6 100%);
}

#curveView .curve-mobile-stack {
  display: grid;
  gap: 15px;
  margin-top: 0;
}

#curveView .curve-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--growth-card);
  border: 1px solid rgba(18, 191, 168, 0.08);
  box-shadow: 0 14px 34px rgba(32, 64, 79, 0.1);
}

#curveView .growth-journey-banner,
#curveView .heat-card-mobile,
#curveView .mastery-carousel-card,
#curveView .loss-trend-section {
  width: 100%;
  margin-inline: 0;
}

/* Top journey banner */
#curveView .growth-journey-banner {
  position: relative;
  height: 293px;
  min-height: 293px;
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #eef8fa;
  border: 1px solid rgba(18, 191, 168, 0.08);
  box-shadow: 0 16px 36px rgba(38, 72, 87, 0.14);
}

#curveView .growth-journey-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
  filter: saturate(1.02) contrast(1.02);
}

#curveView .growth-journey-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 254, 253, 0.98) 0%, rgba(247, 254, 253, 0.86) 34%, rgba(247, 254, 253, 0.28) 58%, rgba(247, 254, 253, 0.02) 100%),
    linear-gradient(180deg, rgba(247, 254, 253, 0.2) 0%, rgba(247, 254, 253, 0.02) 48%, rgba(238, 248, 250, 0.94) 100%);
}

#curveView .growth-journey-copy {
  position: absolute;
  z-index: 4;
  left: 20px;
  top: 26px;
  width: 156px;
}

#curveView .growth-journey-copy h1 {
  color: #063834;
  font-size: 26px;
  line-height: 34px;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

#curveView .weekly-chip {
  width: max-content;
  height: 16px;
  margin-top: 8px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(18, 191, 168, 0.15);
  color: var(--growth-primary-dark);
  font-size: 10px;
  line-height: 16px;
  font-weight: 900;
}

#curveView .weekly-rate {
  margin-top: 7px;
  color: #0aa98e;
  font-size: 40px;
  line-height: 40px;
  font-weight: 950;
}

#curveView .weekly-rate span {
  margin-left: 2px;
  font-size: 27px;
  font-weight: 900;
}

#curveView .weekly-caption {
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #1f3146;
  font-size: 10px;
  line-height: 14px;
  font-weight: 850;
  white-space: nowrap;
}

#curveView .weekly-caption img {
  width: 14px;
  height: 14px;
}

#curveView .target-score-card {
  position: absolute;
  z-index: 5;
  top: 41px;
  right: 14px;
  width: 56px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 4px 5px;
  border: 1px solid #fcce96;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(36, 65, 86, 0.14);
}

#curveView .target-score-card span {
  color: #1f3146;
  font-size: 10px;
  line-height: 13px;
  font-weight: 850;
  white-space: nowrap;
}

#curveView .target-score-card strong {
  color: var(--growth-primary-dark);
  font-size: 16px;
  line-height: 20px;
  font-weight: 950;
  white-space: nowrap;
}

#curveView .target-score-card small {
  margin-left: 2px;
  color: #1f3146;
  font-size: 11px;
  font-weight: 850;
}

#curveView .growth-stage-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

#curveView .stage-pin,
#curveView .stage-card {
  position: absolute;
}

#curveView .stage-pin {
  z-index: 7;
}

#curveView .stage-card {
  z-index: 6;
}

#curveView .stage-pin img {
  width: 22px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(7, 59, 52, 0.12));
}

#curveView .stage-pin-1 { left: 135px; top: 195px; }
#curveView .stage-pin-2 { left: 218px; top: 153px; }
#curveView .stage-pin-3 { left: 240px; top: 89px; }

#curveView .stage-card {
  min-width: 75px;
  min-height: 35px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  padding: 5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(36, 65, 86, 0.12);
}

#curveView .stage-card-1 { left: 57px; top: 177px; }
#curveView .stage-card-2 { left: 143px; top: 135px; }
#curveView .stage-card-3 { left: 165px; top: 72px; }

#curveView .stage-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #20bfa4, #0f9d87);
}

#curveView .stage-card.current .stage-icon {
  background: linear-gradient(135deg, #ff9a1a, #ff7a00);
}

#curveView .stage-card.locked .stage-icon {
  background: linear-gradient(135deg, #20bfa4, #0f9d87);
}

#curveView .stage-icon img {
  width: 13px;
  height: 13px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

#curveView .stage-card h2 {
  color: var(--growth-text);
  font-size: 10px;
  line-height: 12px;
  font-weight: 900;
  white-space: nowrap;
}

#curveView .stage-card p {
  margin-top: 1px;
  color: var(--growth-primary-dark);
  font-size: 8px;
  line-height: 12px;
  font-weight: 850;
}

#curveView .stage-card.current p {
  color: #ff7a00;
}

#curveView .stage-card.locked p {
  color: #879b97;
}

#curveView .growth-hero-stats {
  position: absolute;
  z-index: 6;
  left: 16px;
  right: 16px;
  top: 223px;
  height: 59px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  align-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 26px rgba(36, 65, 86, 0.13);
}

#curveView .growth-stat-item {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  border-right: 1px solid rgba(20, 50, 70, 0.12);
}

#curveView .growth-stat-item:last-child {
  border-right: 0;
}

#curveView .growth-stat-item span {
  color: #1f3146;
  font-size: 13px;
  line-height: 17px;
  font-weight: 850;
}

#curveView .growth-stat-item strong {
  color: var(--growth-primary-dark);
  font-size: 24px;
  line-height: 24px;
  font-weight: 950;
}

#curveView .growth-stat-item.orange strong {
  color: #ff7a00;
}

#curveView .growth-stat-item small {
  margin-left: 2px;
  font-size: 14px;
  font-weight: 850;
}

/* Heatmap card */
#curveView .heat-card-mobile {
  padding: 18px 12px 11px;
  min-height: 0;
}

#curveView .heat-card-mobile::before {
  content: "";
  position: absolute;
  right: -38px;
  top: -18px;
  width: 82px;
  height: 72px;
  border-radius: 50%;
  background: rgba(210, 248, 242, 0.62);
}

#curveView .heat-card-mobile::after {
  content: "";
  position: absolute;
  left: -28px;
  bottom: 12px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(200, 246, 238, 0.44);
}

#curveView .heat-card-heading,
#curveView .curve-section-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#curveView .heat-title-wrap,
#curveView .curve-section-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

#curveView .heat-title-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}

#curveView .heat-card-heading h2,
#curveView .curve-section-head h2 {
  color: var(--growth-text);
  font-size: 18px;
  line-height: 22px;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

#curveView .heat-card-heading > span,
#curveView .curve-section-head > span,
#curveView .curve-section-head button {
  border: 0;
  background: transparent;
  color: #7a8ba3;
  font-size: 11px;
  line-height: 15px;
  font-weight: 700;
  white-space: nowrap;
}

#curveView .section-title-svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}

#curveView .heat-summary {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#curveView .heat-stat {
  height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: 19px 25px;
  column-gap: 7px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 9px;
  background: rgba(252, 255, 254, 0.92);
  border: 1px solid rgba(18, 191, 168, 0.2);
  box-shadow: 0 7px 15px rgba(15, 75, 89, 0.05);
}

#curveView .heat-stat-icon {
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e0f8f3;
  box-shadow: inset 0 0 0 1px rgba(18, 191, 168, 0.08);
}

#curveView .heat-stat-icon img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

#curveView .heat-stat > span:not(.heat-stat-icon) {
  align-self: end;
  color: #56677f;
  font-size: 8.2px;
  line-height: 12px;
  font-weight: 850;
  white-space: nowrap;
}

#curveView .heat-stat strong {
  align-self: start;
  color: var(--growth-primary-dark);
  font-size: 18px;
  line-height: 22px;
  font-weight: 950;
  white-space: nowrap;
}

#curveView .heatmap {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  padding: 10px 8px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px 7px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid #e5edf1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46);
}

#curveView .heat-day {
  min-width: 0;
  height: 64px;
  padding: 5px 2px 6px;
  display: grid;
  grid-template-rows: 12px 28px 11px;
  gap: 4px;
  justify-items: center;
  align-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(216, 226, 233, 0.9);
  box-shadow: 0 5px 12px rgba(20, 50, 70, 0.05);
}

#curveView .heat-day.is-best {
  border-color: rgba(18, 191, 168, 0.5);
}

#curveView .heat-day > span {
  color: #42546d;
  font-size: 8px;
  line-height: 12px;
  font-weight: 850;
  white-space: nowrap;
}

#curveView .heat-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #c9eee7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

#curveView .heat-box.high {
  background: linear-gradient(145deg, #13c2ad, #00998d);
}

#curveView .heat-box.mid {
  background: linear-gradient(145deg, #86dfcf, #61cdbc);
}

#curveView .heat-box.low {
  background: linear-gradient(145deg, #e3f8f4, #caeee7);
}

#curveView .heat-box.none {
  background: linear-gradient(145deg, #f6f8f9, #edf1f3);
  border: 1px solid #d8e1e7;
}

#curveView .heat-meta {
  color: #60718a;
  font-size: 7.8px;
  line-height: 11px;
  font-weight: 850;
  white-space: nowrap;
}

#curveView .heat-legend {
  position: relative;
  z-index: 2;
  --heat-legend-gap: clamp(8px, 2.35vw, 11px);
  --heat-legend-edge: clamp(10px, 2.85vw, 13px);
  --heat-legend-square-width: clamp(18px, 5vw, 20px);
  min-height: 32px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: var(--heat-legend-gap);
  padding: 6px var(--heat-legend-edge);
  color: #60718a;
  font-size: 5.7px;
  line-height: 8px;
}

#curveView .legend-title {
  flex: 0 0 auto;
  min-width: clamp(45px, 12.2vw, 54px);
  font-size: clamp(5.7px, 1.6vw, 6.6px);
  line-height: 1.35;
  font-weight: 750;
  text-align: center;
}

#curveView .legend-scale {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, var(--heat-legend-square-width));
  align-items: end;
  gap: var(--heat-legend-gap);
}

#curveView .legend-level {
  min-width: 0;
  width: var(--heat-legend-square-width);
  display: grid;
  justify-items: center;
  gap: clamp(2px, 0.9vw, 3px);
  color: #60718a;
  font-size: clamp(5.3px, 1.48vw, 6.2px);
  line-height: 8px;
  font-weight: 650;
  text-align: center;
  white-space: nowrap;
}

#curveView .legend-square {
  width: var(--heat-legend-square-width);
  height: clamp(8px, 2.3vw, 10px);
  border-radius: 3px;
  background: #91e5d6;
}

#curveView .legend-square.none {
  background: #eef2f4;
  border: 1px solid #d9e1e6;
}

#curveView .legend-square.low { background: #d9f5f0; }
#curveView .legend-square.mid { background: #79d8c8; }
#curveView .legend-square.high { background: #00a996; }

#curveView .legend-note {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  grid-template-columns: clamp(10px, 3vw, 13px) minmax(0, 1fr);
  align-items: center;
  gap: var(--heat-legend-gap);
  padding-left: var(--heat-legend-gap);
  border-left: 1px solid rgba(96, 113, 138, 0.22);
}

#curveView .legend-note span {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  text-wrap: balance;
}

#curveView .legend-sprout {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

/* Mastery carousel */
#curveView .mastery-carousel-card {
  height: auto;
  min-height: 0;
  padding: 17px 0 16px;
  overflow: hidden;
}

#curveView .mastery-carousel-card .curve-section-head,
#curveView .loss-trend-section .curve-section-head {
  padding: 0 16px;
}

#curveView .mastery-carousel {
  display: flex;
  align-items: stretch;
  gap: 8px;
  height: auto;
  min-height: 366px;
  margin: 6px 0 0;
  padding: 22px clamp(48px, 15vw, 68px) 18px;
  box-sizing: border-box;
  overflow-x: auto;
  scroll-padding-inline: clamp(56px, 18vw, 96px);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

#curveView .mastery-carousel::-webkit-scrollbar {
  display: none;
}

#curveView .mastery-slide {
  position: relative;
  flex: 0 0 clamp(160px, 48vw, 180px);
  height: auto;
  min-height: 318px;
  box-sizing: border-box;
  padding: 12px 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--accent) 4%, #fff) 100%);
  border: 1px solid rgba(20, 50, 70, 0.11);
  text-align: center;
  opacity: 0.5;
  transform: scale(0.82);
  transform-origin: center center;
  transition:
    flex-basis 180ms ease,
    transform 180ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  scroll-snap-align: center;
  z-index: 1;
}

#curveView .mastery-slide.is-active {
  flex-basis: clamp(184px, 55vw, 210px);
  height: auto;
  min-height: 348px;
  opacity: 1;
  transform: translateY(-4px) scale(1);
  border-color: color-mix(in srgb, var(--accent) 72%, #fff);
  box-shadow:
    0 18px 38px color-mix(in srgb, var(--accent) 18%, transparent),
    0 12px 28px rgba(20, 50, 70, 0.11);
  z-index: 3;
}

#curveView .mastery-slide-title {
  height: 26px;
  color: #142033;
  font-size: 16px;
  line-height: 26px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#curveView .mastery-slide.is-active .mastery-slide-title {
  height: 29px;
  font-size: 20px;
  line-height: 29px;
}

#curveView .mastery-slide-rate {
  margin-top: 8px;
  color: var(--accent);
  font-size: 42px;
  line-height: 1;
  font-weight: 950;
}

#curveView .mastery-slide.is-active .mastery-slide-rate {
  margin-top: 10px;
  font-size: 50px;
}

#curveView .mastery-slide-rate span {
  font-size: 20px;
}

#curveView .mastery-slide.is-active .mastery-slide-rate span {
  font-size: 24px;
}

#curveView .mastery-slide-label {
  margin-top: 4px;
  color: #687789;
  font-size: 14px;
  font-weight: 800;
}

#curveView .mastery-slide-divider {
  height: 1px;
  margin: 10px 2px 9px;
  background: linear-gradient(90deg, transparent, rgba(20, 50, 70, 0.16), transparent);
}

#curveView .mastery-slide.is-active .mastery-slide-divider {
  margin: 13px 2px 10px;
}

#curveView .mastery-art {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 7%, #fff);
  color: var(--accent);
}

#curveView .mastery-slide.is-active .mastery-art {
  height: 126px;
}

#curveView .mastery-art > span {
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
}

#curveView .mastery-art.is-loaded > span {
  display: none;
}

#curveView .chapter-art-svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

#curveView .mastery-progress {
  height: 8px;
  margin: 10px 6px 0;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, #edf1f3);
}

#curveView .mastery-slide.is-active .mastery-progress {
  margin-top: 12px;
}

#curveView .mastery-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
}

#curveView .mastery-slide p {
  margin: 10px 0 0;
  color: #687789;
  font-size: 12px;
  line-height: 1.45;
}

#curveView .mastery-slide.is-active p {
  margin-top: 12px;
  font-size: 13px;
}

#curveView .carousel-dots {
  height: 6px;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding-inline: 16px;
}

#curveView .carousel-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d5dce2;
  transition: width 160ms ease, background 160ms ease;
}

#curveView .carousel-dots .active {
  width: 14px;
  border-radius: 999px;
  background: #ff8a24;
}

/* Loss diagnosis */
#curveView .loss-trend-section {
  height: auto;
  min-height: 0;
  padding: 14px 0 18px;
}

#curveView .loss-trend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(5px, 1.7vw, 8px);
  padding: 12.67px 12px 0;
}

#curveView .loss-trend-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  height: auto;
  min-height: 148px;
  border-radius: 12px;
  padding: 10px 5px 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(18, 191, 168, 0.3);
  color: var(--trend);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
  --trend: var(--growth-primary);
  --trend-soft: #bfeee5;
  --trend-rgb: 18, 191, 168;
}

#curveView .loss-trend-card.purple {
  --trend: #8b5cf6;
  --trend-soft: #d8c8ff;
  --trend-rgb: 139, 92, 246;
  border-color: rgba(139, 92, 246, 0.3);
}

#curveView .loss-trend-card.green {
  --trend: var(--growth-primary);
  --trend-soft: #bfeee5;
  --trend-rgb: 18, 191, 168;
  border-color: rgba(18, 191, 168, 0.3);
}

#curveView .loss-trend-card.orange {
  --trend: var(--growth-orange);
  --trend-soft: #ffd0ad;
  --trend-rgb: 255, 122, 26;
  border-color: rgba(255, 122, 26, 0.3);
}

#curveView .loss-trend-card.blue {
  --trend: #1677ff;
  --trend-soft: #bcd8ff;
  --trend-rgb: 22, 119, 255;
  border-color: rgba(22, 119, 255, 0.3);
}

#curveView .loss-trend-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  background: linear-gradient(180deg, rgba(var(--trend-rgb), 0.2) 0%, rgba(var(--trend-rgb), 0) 100%);
  pointer-events: none;
}

#curveView .loss-trend-top {
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#curveView .loss-trend-top strong {
  color: var(--trend);
  font-size: 19px;
  line-height: 19px;
  font-weight: 700;
}

#curveView .loss-trend-name-row {
  height: 45px;
  margin-top: 0;
  padding: 7px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

#curveView .loss-trend-name-row h3 {
  margin: 0;
  color: #173f3a;
  font-size: 8.5px;
  line-height: 10px;
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: center;
}

#curveView .loss-trend-name-row > span {
  position: static;
  top: auto;
  right: auto;
  width: min(40px, 100%);
  min-width: 0;
  height: 13px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--trend);
  background: rgba(var(--trend-rgb), 0.1);
  font-size: 8px;
  line-height: 13px;
  font-weight: 700;
  white-space: nowrap;
}

#curveView .loss-trend-name-row > span.up {
  color: var(--trend);
}

#curveView .loss-trend-name-row > span.down {
  color: var(--trend);
}

#curveView .trend-bars {
  height: 43px;
  display: flex;
  align-items: end;
  gap: clamp(3px, 1.2vw, 5px);
  margin-top: 0;
  padding: 5px 0 0;
}

#curveView .trend-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--trend) 0%, var(--trend-soft) 100%);
}

#curveView .trend-bars i:nth-child(2) {
  opacity: 0.78;
}

#curveView .trend-bars i:nth-child(3) {
  opacity: 0.56;
}

#curveView .trend-bars i:nth-child(4) {
  opacity: 0.32;
}

#curveView .loss-trend-card p {
  margin: 0;
  padding-top: 7px;
  color: #142033;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
}

@media (max-width: 374px) {
  #curveView {
    padding-inline: 0;
  }

  #curveView .heatmap {
    gap: 7px 8px;
    padding-inline: 8px;
  }

  #curveView .heat-stat {
    column-gap: 5px;
    padding-inline: 6px;
  }

  #curveView .heat-stat strong {
    font-size: 15px;
  }
}
