.wellbeing-dashboard {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.wellbeing-heading {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.wellbeing-heading h2,
.wellbeing-heading p {
  margin: 0;
}

.wellbeing-heading h2 {
  margin-top: 3px;
}

.wellbeing-heading > div > p:last-child {
  margin-top: 6px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}

.allocation-target-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.allocation-target-card {
  padding: 15px 16px;
  display: grid;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.allocation-target-card > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
}

.allocation-target-card > strong {
  font-size: 1.25rem;
}

.allocation-target-card > small {
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.4;
}

.allocation-hard {
  border-left: 4px solid #b93838;
}

.allocation-recommended {
  border-left: 4px solid #c5902d;
}

.wellbeing-sleep-card {
  border-left: 4px solid #5d6eb4;
}

.wellbeing-walk-card {
  border-left: 4px solid #2d7c67;
}

.allocation-note {
  margin: 0;
  padding: 11px 13px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid #e6ebf2;
  border-radius: 11px;
  font-size: .74rem;
  line-height: 1.45;
}

.wellbeing-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wellbeing-panel {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.wellbeing-panel-heading {
  padding: 16px 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf1f6;
}

.wellbeing-panel-heading h3,
.wellbeing-panel-heading span {
  margin: 0;
}

.wellbeing-panel-heading h3 {
  font-size: .95rem;
}

.wellbeing-panel-heading span {
  color: var(--muted);
  font-size: .7rem;
}

.allocation-day-list {
  padding: 14px 18px 17px;
  display: grid;
  gap: 10px;
}

.allocation-day-row {
  display: grid;
  grid-template-columns: 90px 86px 1fr;
  align-items: center;
  gap: 10px;
}

.allocation-day-row span,
.allocation-day-row strong {
  font-size: .74rem;
}

.allocation-day-row i {
  height: 7px;
  overflow: hidden;
  background: #edf1f6;
  border-radius: 999px;
}

.allocation-day-row i em {
  height: 100%;
  display: block;
  background: #2f6faf;
  border-radius: 999px;
}

.wellbeing-cues {
  padding: 14px 18px 17px;
  display: grid;
  gap: 9px;
}

.wellbeing-cues p {
  margin: 0;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  font-size: .74rem;
  line-height: 1.45;
}

.wellbeing-log-heading {
  align-items: center;
}

.wellbeing-log-heading > div {
  display: grid;
  gap: 3px;
}

.wellbeing-day-list {
  padding: 15px 18px 18px;
  display: grid;
  gap: 10px;
}

.wellbeing-day-row {
  padding: 12px;
  display: grid;
  grid-template-columns: 130px 110px minmax(160px, 1fr) 90px auto;
  align-items: end;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
}

.wellbeing-day-name {
  align-self: center;
  display: grid;
  gap: 2px;
}

.wellbeing-day-name strong {
  font-size: .78rem;
}

.wellbeing-day-name span {
  color: var(--muted);
  font-size: .68rem;
}

.wellbeing-day-row label {
  display: grid;
  gap: 4px;
}

.wellbeing-day-row label > span {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 750;
}

.wellbeing-day-row input,
.wellbeing-day-row select {
  min-width: 0;
  width: 100%;
}

.wellbeing-walks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wellbeing-walk-chip,
.wellbeing-no-walk {
  font-size: .66rem;
}

.wellbeing-walk-chip {
  padding: 5px 7px 5px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef6f2;
  border: 1px solid #d5e8df;
  border-radius: 999px;
}

.wellbeing-walk-chip button {
  width: 17px;
  height: 17px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #5c6d65;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: .8rem;
}

.wellbeing-no-walk {
  color: var(--muted);
}

@media (max-width: 980px) {
  .allocation-target-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wellbeing-day-row {
    grid-template-columns: 120px 100px minmax(140px, 1fr) 80px;
  }

  .wellbeing-day-row > .secondary-button {
    grid-column: 4;
  }
}

@media (max-width: 760px) {
  .wellbeing-heading,
  .wellbeing-panel-heading,
  .wellbeing-log-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .wellbeing-heading > button,
  .wellbeing-log-heading > button {
    width: 100%;
  }

  .allocation-target-grid,
  .wellbeing-two-column {
    grid-template-columns: 1fr;
  }

  .allocation-day-row {
    grid-template-columns: 78px 76px 1fr;
  }

  .wellbeing-day-row {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .wellbeing-day-name,
  .wellbeing-walks {
    grid-column: 1 / -1;
  }

  .wellbeing-day-row > .secondary-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
