/* TorresFit V62 */
.content-update-light {
  position: relative;
}
.content-update-light::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e3342f;
  box-shadow: 0 0 0 4px rgb(227 52 47 / 18%), 0 0 9px #e3342f;
}
.media-viewer-dialog {
  width: min(920px, 94vw);
  max-height: 92dvh;
  border: 0;
  border-radius: 8px;
  padding: 0;
}
.media-viewer-dialog::backdrop { background: rgb(5 18 24 / 70%); }
.media-viewer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.media-viewer-content {
  padding: 12px;
  overflow: auto;
  max-height: calc(92dvh - 64px);
}
.media-viewer-content iframe {
  width: 100%;
  height: 76dvh;
  border: 0;
}
.media-viewer-content video,
.media-viewer-content img {
  display: block;
  max-width: 100%;
  max-height: 76dvh;
  margin: auto;
}
.food-log-form,
.food-log-list,
.challenge-board {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.food-log-item,
.challenge-entry {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #fff;
}
.challenge-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}
.challenge-entry strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.challenge-entry span {
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
  background: #eaf8f1;
  color: var(--primary);
  font-weight: 800;
}
.food-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}
.food-photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}
.challenge-score {
  font-size: 34px;
  color: var(--primary);
}
.challenge-hero {
  padding: 18px;
  margin-bottom: 12px;
  border: 1px solid #b9ddcd;
  border-left: 5px solid var(--primary);
  border-radius: 7px;
  background: #f2fbf6;
}
.challenge-hero h3 { margin: 4px 0 10px; }
.challenge-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.challenge-stats span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 700;
}
.challenge-progress {
  height: 12px;
  margin: 12px 0;
  overflow: hidden;
  border-radius: 6px;
  background: #dfe9e4;
}
.challenge-progress i {
  display: block;
  height: 100%;
  background: var(--primary);
}
.challenge-entry small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
.challenge-leader {
  border-color: #64b88c;
  background: #e9f8ef;
  box-shadow: 0 4px 14px rgb(20 120 70 / 12%);
}
