.growth-page {
  display: grid;
  gap: 24px;
}

.growth-page-heading {
  padding-bottom: 0;
}

.growth-page-heading .eyebrow {
  color: var(--accent-dark);
}

.growth-notice {
  border-left: 4px solid #25855a;
  padding: 11px 14px;
  background: #edf7f1;
  color: #205c3f;
  font-size: 14px;
  font-weight: 700;
}

.growth-notice.is-error {
  border-left-color: #b84b3b;
  background: #fff1ef;
  color: #8f3025;
}

.growth-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: #ffffff;
}

.growth-metrics.has-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.growth-metric {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 18px 20px;
}

.growth-metric + .growth-metric {
  border-left: 1px solid var(--line);
}

.growth-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.growth-metric strong {
  font-size: 28px;
  line-height: 1;
}

.growth-metric.primary strong { color: var(--accent-dark); }
.growth-metric.earned strong { color: var(--green); }
.growth-metric.deducted strong { color: #9f3f37; }

.growth-rule-groups {
  display: grid;
  gap: 22px;
}

.growth-rule-group {
  min-width: 0;
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}

.growth-rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.growth-rule-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  min-width: 0;
  padding: 9px 11px;
  text-align: left;
}

.growth-rule-button span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.growth-rule-button strong {
  flex: 0 0 auto;
  white-space: nowrap;
}

.growth-rule-button.earn {
  border-left: 3px solid var(--green);
  color: #315f18;
}

.growth-rule-button.deduct {
  border-left: 3px solid #9f3f37;
  color: #87362f;
}

.growth-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.growth-tool {
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  background: #ffffff;
}

.growth-tool label {
  text-transform: none;
}

.growth-tool > button {
  justify-self: start;
  min-width: 120px;
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #ffffff;
}

.growth-form-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.reward-form-row {
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 0.65fr);
}

.growth-section {
  min-width: 0;
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}

.growth-section-heading {
  margin-bottom: 14px;
}

.growth-section-heading h3 {
  margin: 0;
  font-size: 17px;
}

.growth-section-heading p {
  max-width: 720px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.growth-request-list,
.growth-record-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.growth-request {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 16px;
}

.growth-request + .growth-request,
.growth-record-row + .growth-record-row {
  border-top: 1px solid var(--line);
}

.growth-request h4,
.growth-reward h4 {
  margin: 5px 0 3px;
  font-size: 15px;
}

.growth-request p,
.growth-reward p,
.growth-record-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.growth-request-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.growth-request-actions button:first-child {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #ffffff;
}

.growth-request-actions .secondary {
  color: var(--muted);
}

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

.growth-reward {
  display: flex;
  min-width: 0;
  min-height: 142px;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: #ffffff;
}

.growth-reward.is-archived {
  background: var(--surface-subtle);
  opacity: 0.78;
}

.growth-reward-main .growth-tag + .growth-tag {
  margin-left: 5px;
}

.growth-tag.archived {
  background: #eee7e7;
  color: #704949;
}

.growth-reward-action {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.growth-reward-action strong {
  color: var(--accent-dark);
  font-size: 22px;
}

.growth-reward-action small {
  color: var(--muted);
  font-size: 11px;
}

.growth-reward-action button {
  max-width: 65%;
}

.growth-reward-action button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.growth-link-action {
  border: 0;
  padding: 4px 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.growth-tag,
.growth-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--surface-subtle);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.growth-status.pending { background: #fff6df; color: #8a5b00; }
.growth-status.approved { background: #eaf6ee; color: #246640; }
.growth-status.rejected { background: #f4eeee; color: #7c4141; }

.growth-history-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
}

.growth-category-list {
  display: grid;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: #ffffff;
}

.growth-category-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 13px;
}

.growth-category-row strong {
  text-align: right;
}

.growth-category-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-subtle);
}

.growth-category-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.growth-record-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 11px 14px;
}

.growth-record-row time {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.growth-record-sign {
  font-size: 16px;
  font-weight: 800;
}

.growth-record-sign.earn { color: var(--green); }
.growth-record-sign.deduct,
.growth-record-sign.spend { color: #9f3f37; }

.growth-redemption-row {
  grid-template-columns: 70px minmax(0, 1fr) auto;
}

.growth-empty {
  margin: 0;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  padding: 20px;
  color: var(--muted);
  background: rgb(255 255 255 / 55%);
  font-size: 13px;
}

@media (max-width: 900px) {
  .growth-tools,
  .growth-history-grid {
    grid-template-columns: 1fr;
  }

  .growth-reward-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .growth-rule-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .growth-form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .growth-page {
    gap: 20px;
  }

  .growth-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .growth-metrics.has-five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .growth-metric:nth-child(odd) {
    border-left: 0;
  }

  .growth-metric:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .growth-tools,
  .growth-reward-grid,
  .growth-rule-grid,
  .growth-form-row,
  .reward-form-row {
    grid-template-columns: 1fr;
  }

  .growth-request,
  .growth-reward-action {
    align-items: stretch;
    flex-direction: column;
  }

  .growth-request-actions button,
  .growth-reward-action button {
    width: 100%;
    max-width: none;
  }

  .growth-record-row,
  .growth-redemption-row {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .growth-record-row time {
    grid-column: 2;
  }
}
