.goals-heading {
  gap: 24px;
  align-items: center;
}
.goals-search {
  width: min(410px, 50%);
  margin-left: auto;
}
.goals-program-links {
  margin-bottom: 24px;
}
.goals-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 20px;
}
.goals-toolbar .program-filters {
  margin: 0;
}
.goals-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.goals-selects label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.goals-selects select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy);
  padding: 8px 12px;
  font-size: 13px;
  max-width: 240px;
  min-width: 0;
}
.goal-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.goal-status-row .program-filters {
  margin: 0;
}
.goal-status-row .history-filter {
  background: transparent;
  border: 1px solid var(--line);
}
.goal-status-row .history-filter.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.goals-section {
  margin-bottom: 32px;
}
.goals-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.goals-section-heading > span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  min-width: 26px;
  height: 26px;
  background: #eeeaf7;
  font-size: 13px;
  color: var(--navy);
}
.goals-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.goal-row {
  min-width: 0;
  padding: 24px;
  border-radius: 20px;
  background: #f1eef8;
  border: 1px solid #e7e1f0;
  display: flex;
  flex-direction: column;
}
.goal-row.completed {
  background: #fff4f9;
  border-color: #f9d3e6;
}
.goal-row.locked {
  background: #f6f5f9;
}
.goal-row-organizer {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 13px;
  color: var(--muted);
}
.goal-row-organizer > span:not(.goal-organizer-mark) {
  overflow-wrap: anywhere;
}
.goal-organizer-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  background: white;
  object-fit: contain;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}
.goal-organizer-mark.nch {
  background: var(--pink);
  color: white;
}
.goal-row-region {
  margin-left: auto;
  font-size: 12px;
}
.goal-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 12px;
}
.goal-row-tags > span {
  padding: 4px 8px;
  border-radius: 7px;
  background: white;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.goal-row-tags > .goal-state {
  color: var(--navy);
  background: #e4def0;
}
.goal-row-tags > .goal-occasion {
  color: var(--pink-dark);
  background: #ffe6f1;
}
.goal-row h3 {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.goal-row-description {
  font-size: 14px;
  color: var(--muted);
  margin: 9px 0 20px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.goal-row-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-top: auto;
}
.goal-row-meta strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
.goal-row-action {
  border-top: 1px solid #ded8e9;
  padding-top: 16px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.goal-row-action .primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  white-space: normal;
  font-size: 13px;
  padding: 10px 16px;
  min-height: 44px;
}
.goal-result {
  color: var(--pink-dark);
}
.goal-partner-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.goal-partner-action p {
  flex: 1;
  min-width: 160px;
  overflow-wrap: anywhere;
}
.goal-daily-details {
  margin-top: 12px;
  color: var(--navy);
  font-size: 13px;
}
.goal-daily-details > summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.goal-daily-details > summary:after {
  content: '＋';
  margin-left: auto;
}
.goal-daily-details[open] > summary:after {
  content: '−';
}
.goal-daily-details .daily-panel {
  margin: 12px 0 0;
  padding: 16px;
  background: white;
}
.goal-daily-details .daily-heading {
  flex-wrap: wrap;
  gap: 10px;
}
.goal-daily-details h2 {
  font-size: 18px;
}
.goal-daily-details .daily-days {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 16px 0;
}
.goal-daily-details .daily-day {
  min-height: 94px;
  padding: 10px 5px;
  font-size: 10px;
  gap: 5px;
}
.goal-daily-details .daily-day strong {
  font-size: 20px;
}
.goal-daily-details .daily-bottom {
  flex-wrap: wrap;
  gap: 10px;
}
.goals-partners-empty {
  border: 1px dashed #d9d3e6;
  border-radius: 18px;
  background: #faf9fc;
  padding: 24px;
}
.goals-partners-empty h2 {
  font-size: 21px;
}
.goals-partners-empty p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .goals-toolbar {
    display: block;
  }
  .goals-selects {
    margin-top: 16px;
  }
  .goals-list {
    grid-template-columns: 1fr;
  }
  .goal-daily-details .daily-days {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .goals-heading {
    flex-wrap: wrap;
    gap: 16px;
  }
  .goals-search {
    width: 100%;
    max-width: none;
  }
  .goals-selects {
    gap: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .goals-selects label {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    font-size: 12px;
    min-width: 0;
  }
  .goals-selects select {
    width: 100%;
    max-width: 100%;
    font-size: 12px;
  }
  .goal-status-row {
    gap: 12px;
    margin-bottom: 22px;
  }
  .goal-status-row .history-filter {
    font-size: 12px;
    padding: 8px 10px;
  }
  .goal-row {
    padding: 20px;
    border-radius: 17px;
  }
  .goal-row h3 {
    font-size: 18px;
  }
  .goal-row-description {
    font-size: 13px;
  }
  .goal-row-organizer {
    font-size: 12px;
    flex-wrap: wrap;
  }
  .goal-row-region {
    margin-left: 39px;
    width: 100%;
  }
  .goal-row-meta {
    align-items: flex-start;
    gap: 8px;
  }
  .goal-row-meta strong {
    font-size: 15px;
  }
  .goals-section-heading h2 {
    font-size: 22px;
  }
  .goal-daily-details .daily-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .goals-partners-empty {
    padding: 20px;
  }
}
