/* Goals page: countdowns, progress goals, and their form-specific controls. */

.goal-section {
  margin: var(--space-12) auto 0;
  padding: var(--space-6) var(--space-8) var(--space-8);
  scroll-margin-top: var(--space-6);
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 249, .96);
  box-shadow: var(--shadow-card);
}

.goal-section + .space-section {
  margin-top: var(--space-10);
}

.goal-section-head,
.progress-goal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-5);
}

.goal-section-head > div,
.progress-goal-head > div {
  min-width: 0;
}

.goal-section-head h2,
.progress-goal-head h3 {
  margin: var(--space-2) 0 var(--space-1);
  color: var(--color-ink);
  line-height: 1.08;
  text-wrap: balance;
}

.goal-section-head h2 {
  font-size: var(--title-md);
}

.progress-goal-head h3 {
  font-size: clamp(30px, 3vw, 38px);
}

.goal-section-head p,
.progress-goal-head p {
  max-width: 42rem;
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.goal-section-actions,
.progress-goal-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
}

.goal-section-actions > span,
.progress-goal-actions > span {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 800;
  white-space: nowrap;
}

.goal-section-actions button,
.progress-goal-actions button {
  min-height: var(--control-md);
  font-size: var(--text-sm);
  font-weight: 800;
}

.goal-section-actions button:disabled,
.progress-goal-actions button:disabled {
  opacity: .42;
  transform: none;
  cursor: not-allowed;
}

.goal-section-actions .order-button,
.progress-goal-actions .order-button {
  min-width: auto;
  padding-inline: var(--space-3);
  border-color: rgba(87, 102, 144, .14);
  color: var(--member-eileen);
  background: rgba(247, 246, 252, .88);
}

.goal-section-actions .order-button:not(:disabled):hover,
.progress-goal-actions .order-button:not(:disabled):hover {
  border-color: rgba(87, 102, 144, .28);
  background: #f1f0f7;
}

.goal-list,
.progress-goal-list {
  display: grid;
  min-width: 0;
  gap: var(--space-3);
}

.goal-list {
  margin-top: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.goal-list[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.goal-list[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.goal-list[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.goal-list--single {
  width: min(100%, 58rem);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr);
}

.goal-card,
.progress-goal-card {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font: inherit;
  box-shadow: var(--shadow-soft);
}

.goal-card {
  --goal-color: var(--member-eileen);
  display: grid;
  min-height: 11.75rem;
  padding: var(--space-6) var(--space-4) var(--space-4);
  grid-template-columns: clamp(3.5rem, 6vw, 4.75rem) minmax(0, 1fr) minmax(4.25rem, auto);
  grid-template-areas:
    "date date date"
    "sticker copy countdown";
  align-items: center;
  gap: var(--space-2) var(--space-3);
  border: 1px solid color-mix(in srgb, var(--goal-color) 30%, white);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--goal-color) 4%, white);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.goal-card::before,
.progress-goal-card::before {
  display: none;
}

.goal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised);
}

.goal-card.is-selected {
  border-color: color-mix(in srgb, var(--goal-color) 58%, white);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--goal-color) 10%, transparent),
    var(--shadow-card);
}

.goal-card.is-selected::after,
.progress-goal-card.is-selected::after {
  position: absolute;
  z-index: 2;
  top: var(--space-3);
  right: var(--space-3);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  color: var(--goal-color, var(--progress-color));
  background: color-mix(in srgb, var(--goal-color, var(--progress-color)) 9%, white);
  content: "当前选择";
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: .04em;
}

.goal-card--tone-0 { --goal-color: var(--member-eileen); }
.goal-card--tone-1 { --goal-color: var(--member-diana); }
.goal-card--tone-2 { --goal-color: var(--accent-mint); }
.goal-card--tone-3 { --goal-color: var(--member-bella); }
.goal-card--past { opacity: .78; }

.goal-card-sticker,
.progress-goal-sticker {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--goal-color, var(--progress-color));
  background: color-mix(in srgb, var(--goal-color, var(--progress-color)) 8%, white);
  font-weight: 900;
}

.goal-card-sticker {
  grid-area: sticker;
  width: clamp(3.5rem, 6vw, 4.75rem);
  height: clamp(3.5rem, 6vw, 4.75rem);
  border: 1px solid color-mix(in srgb, var(--goal-color) 18%, white);
  border-radius: var(--radius-md);
  font-size: var(--text-xl);
}

.goal-card-sticker.has-sticker,
.progress-goal-sticker.has-sticker {
  background: #fff;
}

.goal-card-sticker img,
.progress-goal-sticker img {
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
  background: #fff;
}

.goal-card-date {
  grid-area: date;
  padding-right: 5rem;
  overflow: hidden;
  color: var(--goal-color);
  font-size: var(--text-xs);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-card-copy {
  display: grid;
  min-width: 0;
  grid-area: copy;
  align-content: center;
  gap: 3px;
}

.goal-card-copy strong,
.progress-goal-copy strong {
  overflow: hidden;
  color: var(--color-ink);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.25;
  text-overflow: ellipsis;
}

.goal-card-copy small {
  display: -webkit-box;
  margin-top: 2px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.goal-card-copy em,
.progress-goal-copy > span {
  width: fit-content;
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: color-mix(in srgb, var(--goal-color, var(--progress-color)) 74%, var(--color-muted));
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-card-countdown {
  display: grid;
  min-width: 4.25rem;
  padding: var(--space-2);
  grid-area: countdown;
  align-content: center;
  justify-items: center;
  color: var(--goal-color);
  background: transparent;
  border-radius: var(--radius-md);
}

.goal-card-countdown b {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.goal-card-countdown span {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 900;
}

.goal-card--today .goal-card-countdown b {
  font-size: var(--text-xl);
}

.goal-empty,
.progress-goal-empty {
  display: flex;
  min-height: 5rem;
  margin-top: var(--space-4);
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px dashed rgba(87, 102, 144, .2);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  background: rgba(255, 255, 255, .55);
}

.goal-empty[hidden],
.progress-goal-empty[hidden] {
  display: none;
}

.goal-empty span,
.progress-goal-empty span {
  color: var(--accent-violet);
  font-size: var(--text-xl);
}

.goal-empty p,
.progress-goal-empty p {
  margin: 0;
  font-size: var(--text-sm);
}

.progress-goal-section {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px dashed rgba(87, 102, 144, .14);
}

.progress-goal-list {
  margin-top: var(--space-4);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.progress-goal-list[data-count="1"] {
  width: min(100%, 58rem);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr);
}

.progress-goal-list[data-count="2"],
.progress-goal-list[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.progress-goal-card {
  --progress-color: var(--member-eileen);
  border: 1px solid color-mix(in srgb, var(--progress-color) 28%, white);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--progress-color) 3.5%, white);
}

.progress-goal-card::before {
  background: var(--progress-color);
}

.progress-goal-card--tone-0 { --progress-color: var(--member-eileen); }
.progress-goal-card--tone-1 { --progress-color: var(--member-diana); }
.progress-goal-card--tone-2 { --progress-color: var(--accent-mint); }
.progress-goal-card--tone-3 { --progress-color: var(--member-bella); }

.progress-goal-card.is-selected {
  border-width: 2px;
  border-color: color-mix(in srgb, var(--progress-color) 58%, white);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--progress-color) 9%, transparent),
    var(--shadow-card);
}

.progress-goal-card.is-complete {
  background: color-mix(in srgb, var(--progress-color) 6%, white);
}

.progress-goal-main {
  display: grid;
  width: 100%;
  min-height: 12.5rem;
  padding: var(--space-6) var(--space-5);
  grid-template-columns: clamp(3.75rem, 6vw, 5rem) minmax(0, 1fr) auto;
  grid-template-areas:
    "progress-sticker progress-copy progress-value"
    "progress-bar progress-bar progress-bar";
  align-items: center;
  gap: var(--space-3) var(--space-4);
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.progress-goal-sticker {
  width: clamp(3.75rem, 6vw, 5rem);
  height: clamp(3.75rem, 6vw, 5rem);
  grid-area: progress-sticker;
  border: 1px solid color-mix(in srgb, var(--progress-color) 20%, white);
  border-radius: var(--radius-md);
  color: var(--progress-color);
  background: color-mix(in srgb, var(--progress-color) 8%, white);
  font-size: var(--text-xl);
}

.progress-goal-copy {
  display: grid;
  min-width: 0;
  grid-area: progress-copy;
  align-content: center;
  gap: 3px;
}

.progress-goal-copy small {
  color: var(--progress-color);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.progress-goal-copy strong {
  white-space: nowrap;
}

.progress-goal-copy em {
  overflow: hidden;
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-goal-value {
  display: flex;
  min-width: 0;
  grid-area: progress-value;
  align-items: baseline;
  justify-content: end;
  gap: var(--space-1);
  color: var(--progress-color);
  font-variant-numeric: lining-nums tabular-nums;
}

.progress-goal-value b {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.progress-goal-value i {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.progress-goal-bar {
  position: relative;
  display: block;
  width: 100%;
  height: 10px;
  margin: var(--space-3) 0 var(--space-2);
  grid-area: progress-bar;
  border-radius: var(--radius-pill);
  background: rgba(87, 102, 144, .09);
}

.progress-goal-bar i {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: var(--progress-color);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--progress-color) 23%, transparent);
  transition: width .3s ease;
}

.progress-goal-bar > b {
  position: absolute;
  top: 50%;
  left: clamp(25px, var(--progress), calc(100% - 25px));
  min-width: 43px;
  padding: 4px 7px;
  border: 2px solid #fff;
  border-radius: var(--radius-pill);
  color: #fff;
  background: var(--progress-color);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--progress-color) 28%, transparent);
  font-size: 10px;
  line-height: 1;
  text-align: center;
  transform: translate(-50%, -50%);
}

.progress-goal-add {
  display: grid;
  padding: var(--space-3) var(--space-4) var(--space-4);
  grid-template-columns: minmax(7.5rem, 1fr) auto;
  gap: var(--space-2);
  border-top: 1px solid rgba(87, 102, 144, .08);
  background: rgba(255, 255, 255, .58);
}

.progress-goal-add label {
  display: grid;
  padding: 0 var(--space-3);
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2);
  border: 1px solid rgba(87, 102, 144, .13);
  border-radius: var(--radius-sm);
  background: #fff;
}

.progress-goal-add label span {
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 800;
  white-space: nowrap;
}

.progress-goal-add input {
  min-width: 0;
  height: var(--control-sm);
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--color-ink-soft);
  background: transparent;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 800;
}

.progress-goal-add button {
  min-height: var(--control-sm);
  padding: 0 var(--space-3);
  border: 1px solid color-mix(in srgb, var(--progress-color) 27%, white);
  border-radius: var(--radius-sm);
  color: color-mix(in srgb, var(--progress-color) 82%, var(--color-ink));
  background: color-mix(in srgb, var(--progress-color) 8%, white);
  font-size: var(--text-xs);
  font-weight: 900;
  cursor: pointer;
}

.progress-goal-add > small {
  grid-column: 1 / -1;
  color: var(--color-muted);
  font-size: 11px;
}

.goal-card:focus:not(:focus-visible),
.progress-goal-main:focus:not(:focus-visible) {
  outline: none;
}

/* Goal dialog content; the dialog shell remains a shared component. */
#goalForm,
#progressGoalForm {
  overflow-x: hidden;
}

#progressGoalForm .dialog-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

#progressGoalForm .dialog-fields > .field--wide {
  grid-column: 1 / -1;
}

.goal-space-picker {
  min-width: 0;
  margin: var(--space-4) 0 0;
  padding: var(--space-3);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

.goal-space-picker legend {
  padding: 0;
  color: var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 900;
}

.goal-space-picker > p {
  margin: var(--space-1) 0 var(--space-2);
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.goal-space-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--space-2);
}

.goal-space-option {
  position: relative;
  display: grid;
  min-width: 0;
  padding: var(--space-2) var(--space-3);
  grid-template-columns: 2.25rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px var(--space-2);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  background: rgba(255, 255, 255, .78);
  cursor: pointer;
  transition: border-color .17s ease, background .17s ease, box-shadow .17s ease, transform .17s ease;
}

.goal-space-option:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 122, 234, .28);
}

.goal-space-option:has(input:checked) {
  border-color: rgba(143, 122, 234, .38);
  color: #57438f;
  background: linear-gradient(135deg, #f3efff, #fff7fa);
  box-shadow: var(--shadow-soft);
}

.goal-space-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.goal-space-option-icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  grid-column: 1;
  grid-row: 1 / 3;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-sm);
  color: #fff;
  background: linear-gradient(135deg, var(--member-diana), var(--accent-violet));
  font-size: var(--text-lg);
  font-weight: 900;
}

.goal-space-option-icon img {
  width: 100%;
  height: 100%;
  padding: 2px;
  object-fit: contain;
  background: #fff;
}

.goal-space-option strong {
  min-width: 0;
  overflow: hidden;
  font-size: var(--text-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-space-option small {
  color: var(--color-muted);
  font-size: 10px;
}

.goal-space-options-empty {
  margin: 0;
  padding: var(--space-3);
  grid-column: 1 / -1;
  border: 1px dashed rgba(143, 122, 234, .22);
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  background: rgba(255, 255, 255, .66);
  font-size: var(--text-sm);
}

.goal-sticker-grid {
  max-height: min(23.75rem, 48vh);
  overflow-y: auto;
}

@media (min-width: 1100px) and (max-width: 1439px) {
  .goal-list[data-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1440px) {
  .goal-card-copy em,
  .progress-goal-copy > span,
  .progress-goal-copy small,
  .progress-goal-add > small {
    font-size: 12px;
  }

  .progress-goal-bar > b { font-size: 11px; }
}

@media (min-width: 700px) and (max-width: 1099px) {
  .goal-section {
    margin: var(--space-5) var(--space-4);
    padding: var(--space-6);
  }

  .goal-list[data-count],
  .progress-goal-list[data-count] {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goal-list[data-count="1"],
  .progress-goal-list[data-count="1"] {
    width: min(100%, 42.5rem);
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .goal-list[data-count="3"] .goal-card:last-child,
  .progress-goal-list[data-count="3"] .progress-goal-card:last-child {
    grid-column: 1 / -1;
    width: min(100%, 34rem);
    justify-self: center;
  }

  .goal-card {
    grid-template-columns: 4rem minmax(0, 1fr) 4.5rem;
  }

  .progress-goal-main {
    min-height: 11.5rem;
    grid-template-columns: 4rem minmax(0, 1fr);
    grid-template-areas:
      "progress-sticker progress-copy"
      "progress-value progress-value"
      "progress-bar progress-bar";
  }

  .progress-goal-value {
    justify-content: start;
  }
}

@media (max-width: 699px) {
  .goal-section {
    width: auto;
    max-width: none;
    margin: var(--space-3) 8px;
    padding: 17px 13px;
    overflow: hidden;
    border-color: rgba(71, 60, 79, .07);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 249, 251, .97), rgba(255, 254, 251, .96));
    box-shadow: 0 12px 34px rgba(69, 52, 65, .055);
  }

  .goal-section-head,
  .progress-goal-head {
    min-height: 0;
    margin: 0 0 9px;
    align-items: end;
    gap: 9px;
  }

  .goal-section-head h2,
  .progress-goal-head h3 {
    margin: 0;
    font-size: clamp(26px, 7.2vw, 31px);
  }

  .goal-section-head p,
  .progress-goal-head p,
  .goal-section-actions > span,
  .progress-goal-actions > span {
    display: none;
  }

  .goal-section-actions,
  .progress-goal-actions {
    align-self: end;
    gap: 6px;
  }

  .goal-section-head .section-add-button,
  .goal-section-head .section-action-menu > summary {
    color: #c96884;
  }

  .progress-goal-head .section-add-button,
  .progress-goal-head .section-action-menu > summary {
    color: var(--member-eileen);
  }

  .progress-goal-section {
    margin-top: var(--space-6);
    padding-top: var(--space-5);
  }

  .goal-list,
  .progress-goal-list {
    margin-top: var(--space-4);
  }

  .goal-list:not([data-count="1"]),
  .progress-goal-list:not([data-count="1"]) {
    display: flex;
    width: auto;
    margin-inline: -13px;
    padding: 4px 13px 8px;
    gap: 10px;
    overflow-x: auto;
    scroll-padding-inline: 13px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }

  .goal-list:not([data-count="1"])::-webkit-scrollbar,
  .progress-goal-list:not([data-count="1"])::-webkit-scrollbar {
    display: none;
  }

  .goal-list:not([data-count="1"]) .goal-card,
  .progress-goal-list:not([data-count="1"]) .progress-goal-card {
    width: calc(100% - 20px);
    min-width: calc(100% - 20px);
    flex: 0 0 calc(100% - 20px);
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .goal-list[data-count="1"],
  .progress-goal-list[data-count="1"] {
    display: grid;
    width: 100%;
    padding: 0;
    overflow: visible;
    grid-template-columns: minmax(0, 1fr);
  }

  .goal-card {
    min-height: 12rem;
    padding: 22px 14px 16px;
    grid-template-columns: 58px minmax(0, 1fr) 62px;
    align-content: center;
    gap: 8px 10px;
    border-radius: 22px;
  }

  .goal-card-sticker {
    width: 58px;
    height: 58px;
    border-radius: 17px;
  }

  .goal-card-date {
    padding-right: 4.5rem;
    font-size: 11px;
  }

  .goal-card-copy strong,
  .progress-goal-copy strong {
    font-size: 18px;
  }

  .goal-card-copy small,
  .progress-goal-copy em {
    font-size: 11px;
  }

  .goal-card-countdown {
    min-width: 58px;
    padding-inline: 4px;
  }

  .goal-card-countdown b {
    font-size: 34px;
  }

  .progress-goal-card {
    border-radius: 22px;
  }

  .progress-goal-main {
    min-height: 0;
    padding: 22px 16px 18px;
    grid-template-columns: 62px minmax(0, 1fr);
    grid-template-areas:
      "progress-sticker progress-copy"
      "progress-value progress-value"
      "progress-bar progress-bar";
    align-items: center;
    gap: 8px 12px;
  }

  .progress-goal-sticker {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .progress-goal-value {
    justify-content: start;
  }

  .progress-goal-value b {
    font-size: 34px;
  }

  .progress-goal-bar {
    margin-top: var(--space-4);
  }

  .progress-goal-add {
    padding: var(--space-3);
    grid-template-columns: minmax(0, 1fr);
  }

  .progress-goal-add > small {
    grid-column: 1;
  }

  .progress-goal-add button {
    width: 100%;
  }

  .goal-space-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 379px) {
  .goal-card {
    min-height: 11.5rem;
    grid-template-columns: 52px minmax(0, 1fr) 54px;
    gap: 7px 8px;
  }

  .goal-card-sticker {
    width: 52px;
    height: 52px;
  }

  .goal-card-copy strong,
  .progress-goal-copy strong {
    font-size: 17px;
  }

  .goal-card-countdown {
    min-width: 52px;
  }

  .goal-card-countdown b,
  .progress-goal-value b {
    font-size: 30px;
  }

  .progress-goal-main {
    padding-inline: 13px;
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .progress-goal-sticker {
    width: 56px;
    height: 56px;
  }

  .goal-space-options {
    grid-template-columns: minmax(0, 1fr);
  }

  #progressGoalForm .dialog-fields > .field {
    min-width: 0;
  }
}
