/* Final visual layer for the BMI daily streak. */
body.bmi-page #results-section > .streak-spotlight .streak-spotlight__body {
  align-self: center;
  text-align: left !important;
}

body.bmi-page #results-section > .streak-spotlight .streak-spotlight__eyebrow,
body.bmi-page #results-section > .streak-spotlight .streak-spotlight__eyebrow::after {
  text-align: left;
}

body.bmi-page #results-section > .streak-spotlight .streak-spotlight__flames {
  justify-content: flex-start;
}

body.bmi-page #results-section > .streak-spotlight .streak-spotlight__flames .streak-flame-icon {
  display: block;
  width: 29px;
  height: 29px;
  color: #697170;
  fill: currentColor !important;
  stroke: none !important;
}

body.bmi-page #results-section > .streak-spotlight .streak-spotlight__flames .streak-flame-icon path {
  fill: currentColor !important;
  stroke: none !important;
}

body.bmi-page #results-section > .streak-spotlight .streak-flame-icon__core {
  fill: #fff0a8 !important;
  opacity: 0.78;
}

body.bmi-page #results-section > .streak-spotlight .streak-flame-icon:not(.is-lit) .streak-flame-icon__core {
  fill: #9ca5a2 !important;
  opacity: 0.38;
}

body.bmi-page #results-section > .streak-spotlight .streak-spotlight__flames .streak-flame-icon.is-lit:nth-child(1) {
  color: #ffda72;
}

body.bmi-page #results-section > .streak-spotlight .streak-spotlight__flames .streak-flame-icon.is-lit:nth-child(2) {
  color: #ffc654;
}

body.bmi-page #results-section > .streak-spotlight .streak-spotlight__flames .streak-flame-icon.is-lit:nth-child(3) {
  color: #ffad42;
}

body.bmi-page #results-section > .streak-spotlight .streak-spotlight__flames .streak-flame-icon.is-lit:nth-child(4) {
  color: #f69539;
}

body.bmi-page #results-section > .streak-spotlight .streak-spotlight__flames .streak-flame-icon:not(.is-lit):nth-child(5) {
  color: #707877;
}

body.bmi-page #results-section > .streak-spotlight .streak-spotlight__flames .streak-flame-icon:not(.is-lit):nth-child(6) {
  color: #555e5d;
}

body.bmi-page #results-section > .streak-spotlight .streak-spotlight__count:not([hidden]) {
  align-self: center;
  transform: translateY(6px);
}

body.bmi-page #results-section > .streak-spotlight .streak-spotlight__count b {
  font-size: 2.05rem;
  font-weight: 550;
  line-height: 0.8;
}

body.bmi-page #results-section > .streak-spotlight .streak-spotlight__count small {
  font-size: 0.72rem;
  line-height: 1.1;
}

body.bmi-page #results-section > .streak-spotlight .streak-spotlight__count small::after {
  content: " подряд";
}

@media (max-width: 560px) {
  body.bmi-page #results-section > .streak-spotlight .streak-spotlight__flames .streak-flame-icon {
    width: 25px;
    height: 25px;
  }
}

/* The result value is the focal point; supporting result elements stay unchanged. */
body.bmi-page #results-section > h2 #bmi-value {
  font-size: clamp(5.6rem, 8vw, 6.75rem) !important;
  letter-spacing: -0.065em;
}

/* WHO scale: individual value bands with real gaps, not one continuous gradient. */
body.bmi-page #bmi-reference-section #bmi-scale {
  display: flex;
  gap: 3px;
  height: 7px;
  align-items: stretch;
  overflow: visible;
  border-radius: 0;
  background: transparent !important;
}

body.bmi-page #bmi-reference-section #bmi-scale::before {
  display: none;
}

body.bmi-page #bmi-reference-section #bmi-scale .bmi-scale-segment {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  border-radius: 999px;
}

body.bmi-page #bmi-reference-section #bmi-scale .bmi-scale-segment--under { background: #62a7ea; }
body.bmi-page #bmi-reference-section #bmi-scale .bmi-scale-segment--normal { background: #4bb0a1; }
body.bmi-page #bmi-reference-section #bmi-scale .bmi-scale-segment--over { background: #edc44d; }
body.bmi-page #bmi-reference-section #bmi-scale .bmi-scale-segment--obese-one { background: #ed9a4b; }
body.bmi-page #bmi-reference-section #bmi-scale .bmi-scale-segment--obese-two { background: #ea6d5a; }
body.bmi-page #bmi-reference-section #bmi-scale .bmi-scale-segment--obese-three { background: #e24d64; }

/* The history clear control draws its mark in the button background, independent of child layout. */
body.bmi-page #clear-history-btn {
  position: absolute;
  line-height: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 3 13 13M13 3 3 13' stroke='%23c74839' stroke-width='2.25' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 15px 15px !important;
}

body.bmi-page #clear-history-btn::before {
  content: none;
  display: none;
}
