.recipe-glucose-snapshot {
  --snapshot-ink: #173438;
  --snapshot-muted: #587073;
  --snapshot-teal: #087d80;
  --snapshot-green: #15936c;
  --snapshot-amber: #f7931e;
  --snapshot-blue: #2d9fe8;
  width: min(100%, 720px);
  margin-inline: auto;
  color: var(--snapshot-ink);
  border: 1px solid rgba(8, 125, 128, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 248, 0.98)),
    #ffffff;
  box-shadow: 0 24px 60px rgba(23, 52, 56, 0.15);
  overflow: hidden;
}

.recipe-glucose-snapshot.export-ready {
  max-width: 680px;
}

.snapshot-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 24px 24px 14px;
}

.snapshot-kicker {
  display: inline-flex;
  width: fit-content;
  color: var(--snapshot-teal);
  background: #e2f6f2;
  border: 1px solid rgba(8, 125, 128, 0.16);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.snapshot-title {
  margin: 12px 0 0;
  color: var(--snapshot-ink);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.06;
}

.snapshot-score {
  min-width: 116px;
  padding: 13px 14px;
  border: 1px solid rgba(21, 147, 108, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, #f4fff9, #e9f9f1);
  text-align: center;
}

.snapshot-score strong {
  display: block;
  color: var(--snapshot-green);
  font-size: 2.1rem;
  line-height: 1;
}

.snapshot-score span {
  display: block;
  color: var(--snapshot-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-top: 4px;
  text-transform: uppercase;
}

.snapshot-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 16px;
}

.snapshot-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(8, 125, 128, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #276064;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 10px;
}

.snapshot-chart-card {
  margin: 0 18px;
  border: 1px solid #dbe9e6;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8, 125, 128, 0.08), rgba(255, 255, 255, 0) 48%),
    #ffffff;
  overflow: hidden;
}

.snapshot-chart-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px 0;
}

.snapshot-chart-header h4 {
  color: var(--snapshot-ink);
  font-size: 1rem;
  margin: 0 0 4px;
}

.snapshot-chart-header p,
.snapshot-legend {
  color: var(--snapshot-muted);
  font-size: 0.84rem;
  margin: 0;
}

.snapshot-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  font-weight: 800;
}

.snapshot-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.snapshot-legend span::before {
  content: "";
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: var(--snapshot-teal);
}

.snapshot-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 235px;
}

.snapshot-axis-text {
  fill: #6d8587;
  font: 700 12px Arial, sans-serif;
}

.snapshot-grid-line {
  stroke: #dcebe8;
  stroke-width: 1;
}

.snapshot-target-band {
  fill: rgba(21, 147, 108, 0.08);
}

.snapshot-area {
  fill-opacity: 1;
}

.snapshot-line {
  fill: none;
  stroke: var(--snapshot-teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.snapshot-peak-ring {
  fill: #ffffff;
  stroke: var(--snapshot-teal);
  stroke-width: 4;
}

.snapshot-peak-callout rect {
  fill: #173438;
  rx: 8;
}

.snapshot-peak-callout text {
  fill: #ffffff;
  font: 800 12px Arial, sans-serif;
}

.snapshot-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 18px;
  background: #dbe9e6;
  border-top: 1px solid #dbe9e6;
}

.snapshot-stat {
  min-height: 72px;
  padding: 13px 12px;
  background: #ffffff;
}

.snapshot-stat span {
  display: block;
  color: var(--snapshot-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.snapshot-stat strong {
  display: block;
  color: var(--snapshot-ink);
  font-size: 1.08rem;
  line-height: 1.18;
  margin-top: 5px;
}

.snapshot-footnote {
  color: #6a7e80;
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0;
  padding: 13px 18px 18px;
}

.dish-snapshot {
  border: 1px solid #cbe7e4;
  border-radius: 8px;
  margin: 16px 0;
  overflow: hidden;
  background: #fbfffe;
}

.dish-snapshot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  background: #eef8f6;
  border-bottom: 1px solid #cbe7e4;
}

.dish-snapshot-top span {
  color: #087d80;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dish-score {
  color: #15936c;
  font-size: 1.28rem;
  font-weight: 900;
}

.dish-chart {
  width: 100%;
  height: auto;
  min-height: 138px;
  display: block;
  background:
    linear-gradient(180deg, transparent 0 30%, rgba(21, 147, 108, 0.08) 30% 64%, transparent 64%),
    #ffffff;
}

.dish-chart .grid {
  stroke: #dbe9e6;
  stroke-width: 1;
}

.dish-chart .area {
  fill: rgba(8, 125, 128, 0.12);
}

.dish-chart .line {
  fill: none;
  stroke: #087d80;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.dish-chart .peak {
  fill: #ffffff;
  stroke: #087d80;
  stroke-width: 4;
}

.dish-chart .axis,
.dish-chart .axis-label {
  fill: #6d8587;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
}

.dish-chart .axis-label {
  fill: #4f686b;
  font-size: 9px;
  text-transform: uppercase;
}

.dish-snapshot-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #dbe9e6;
  border-top: 1px solid #dbe9e6;
}

.dish-snapshot-stats div {
  min-height: 58px;
  padding: 10px;
  background: #ffffff;
}

.dish-snapshot-stats span {
  display: block;
  color: #687d7f;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dish-snapshot-stats strong {
  display: block;
  color: #173438;
  font-size: 0.96rem;
  line-height: 1.2;
  margin-top: 4px;
}

.dish-snapshot-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 14px 0;
}

.dish-snapshot-badges span {
  border-radius: 999px;
  background: #e2f6f2;
  color: #276064;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 9px;
}

.dish-snapshot-note {
  color: #687d7f;
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0;
  padding: 12px 14px 14px;
}

.rating-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.rating-guide-item {
  border: 1px solid #dbe9e6;
  border-radius: 8px;
  background: #f8fcfb;
  padding: 16px;
}

.rating-guide-item strong {
  display: block;
  color: #087d80;
  font-size: 1rem;
  margin-bottom: 6px;
}

.rating-guide-item span {
  color: #586b6f;
  display: block;
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 680px) {
  .snapshot-top {
    grid-template-columns: 1fr;
  }

  .snapshot-score {
    width: 100%;
  }

  .snapshot-chart-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .snapshot-legend {
    justify-content: flex-start;
  }

  .snapshot-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dish-snapshot-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .rating-guide {
    grid-template-columns: 1fr;
  }

  .snapshot-stat {
    min-height: 68px;
  }
}
