/* GovtSave: My Savings Goals */
.savings-goals-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: start;
}
.savings-goal-form,
.savings-goals-panel {
  min-width: 0;
  padding: 24px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #dbe7e1);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(15, 70, 49, 0.06);
}
.savings-goal-form h3,
.savings-goals-panel h3 {
  margin: 0 0 8px;
  color: var(--heading, #123b2d);
}
.savings-goal-intro,
.savings-goals-help {
  margin: 0 0 18px;
  color: var(--muted, #64748b);
  font-size: 0.92rem;
  line-height: 1.55;
}
.savings-goal-fields {
  display: grid;
  gap: 14px;
}
.savings-goal-fields .field {
  margin: 0;
}
.savings-goal-fields label,
.savings-goal-edit-form label,
.savings-goal-deposit-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 650;
}
.savings-goal-fields input,
.savings-goal-fields select,
.savings-goal-edit-form input,
.savings-goal-edit-form select,
.savings-goal-deposit-form input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.savings-goal-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  padding: 12px 16px;
  color: #fff;
  background: #047857;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.savings-goal-submit:hover {
  background: #065f46;
  transform: translateY(-1px);
}
.savings-goal-submit:focus-visible,
.savings-goal-action:focus-visible,
.savings-goal-delete:focus-visible {
  outline: 3px solid #34d399;
  outline-offset: 3px;
}
.savings-goal-local-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--muted, #64748b);
  font-size: 0.8rem;
  line-height: 1.5;
}
.savings-goal-local-note i {
  margin-top: 2px;
  color: #047857;
}
.savings-goal-status {
  min-height: 1.3em;
  margin: 12px 0 0;
  color: #047857;
  font-size: 0.9rem;
  font-weight: 600;
}
.savings-goal-status.is-error {
  color: #b91c1c;
}
.savings-goals-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.savings-goal-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 8px;
  color: #065f46;
  background: #d1fae5;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}
.savings-goal-list {
  display: grid;
  gap: 14px;
}
.savings-goal-empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--muted, #64748b);
  background: var(--surface-muted, #f8fafc);
  border: 1px dashed var(--border, #cbd5e1);
  border-radius: 14px;
}
.savings-goal-empty i {
  display: block;
  margin-bottom: 10px;
  color: #047857;
  font-size: 1.7rem;
}
.savings-goal-empty strong {
  display: block;
  margin-bottom: 6px;
  color: var(--heading, #123b2d);
}
.savings-goal-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border, #dbe7e1);
  border-radius: 14px;
  background: var(--surface, #fff);
}
.savings-goal-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.savings-goal-card h4 {
  margin: 0 0 5px;
  color: var(--heading, #123b2d);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}
.savings-goal-card-subtitle {
  margin: 0;
  color: var(--muted, #64748b);
  font-size: 0.82rem;
}
.savings-goal-delete {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #b91c1c;
  background: transparent;
  border: 1px solid var(--border, #dbe7e1);
  border-radius: 9px;
  cursor: pointer;
}
.savings-goal-delete:hover {
  background: #fef2f2;
}
.savings-goal-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 9px;
}
.savings-goal-amount-row span {
  color: var(--muted, #64748b);
  font-size: 0.82rem;
}
.savings-goal-amount-row strong {
  color: var(--heading, #123b2d);
  text-align: right;
  font-size: 1rem;
}
.savings-goal-progress-track {
  height: 9px;
  overflow: hidden;
  background: #e2e8f0;
  border-radius: 999px;
}
.savings-goal-progress {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #059669, #34d399);
  border-radius: inherit;
  transition: width .25s ease;
}
.savings-goal-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  color: var(--muted, #64748b);
  font-size: 0.8rem;
}
.savings-goal-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.savings-goal-stat {
  min-width: 0;
  padding: 11px 12px;
  background: var(--surface-muted, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
}
.savings-goal-stat span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted, #64748b);
  font-size: 0.77rem;
}
.savings-goal-stat strong {
  display: block;
  color: var(--heading, #123b2d);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}
.savings-goal-deposit-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--border, #e2e8f0);
}
.savings-goal-deposit-form label {
  grid-column: 1 / -1;
  margin-bottom: -4px;
}
.savings-goal-deposit-form input {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 9px;
  background: var(--surface, #fff);
  color: var(--text, #0f172a);
}
.savings-goal-action {
  min-height: 42px;
  padding: 9px 12px;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  border-radius: 9px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.savings-goal-action:hover {
  background: #a7f3d0;
}
.savings-goal-details {
  margin-top: 13px;
  border-top: 0;
  padding-top: 0;
}
.savings-goal-details summary {
  color: #047857;
  font-size: 0.86rem;
}
.savings-goal-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.savings-goal-edit-form input,
.savings-goal-edit-form select {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 9px;
  background: var(--surface, #fff);
  color: var(--text, #0f172a);
}
.savings-goal-edit-form .savings-goal-action {
  grid-column: 1 / -1;
}
.savings-goal-history {
  margin: 10px 0 0;
  color: var(--muted, #64748b);
  font-size: 0.79rem;
  line-height: 1.5;
}
@media (max-width: 850px) {
  .savings-goals-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .savings-goal-form,
  .savings-goals-panel {
    padding: 17px;
  }
  .savings-goal-stats,
  .savings-goal-edit-form {
    grid-template-columns: 1fr;
  }
  .savings-goal-card {
    padding: 14px;
  }
  .savings-goal-amount-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .savings-goal-amount-row strong {
    text-align: left;
  }
}
/* Dark mode follows the site's existing theme toggle. */
html.dark-mode .savings-goal-form,
html.dark-mode .savings-goals-panel,
html.dark-mode .savings-goal-card {
  background: #111f1a;
  border-color: #2f463c;
}
html.dark-mode .savings-goal-form h3,
html.dark-mode .savings-goals-panel h3,
html.dark-mode .savings-goal-card h4,
html.dark-mode .savings-goal-empty strong,
html.dark-mode .savings-goal-amount-row strong,
html.dark-mode .savings-goal-stat strong {
  color: #ecfdf5;
}
html.dark-mode .savings-goal-intro,
html.dark-mode .savings-goals-help,
html.dark-mode .savings-goal-local-note,
html.dark-mode .savings-goal-card-subtitle,
html.dark-mode .savings-goal-amount-row span,
html.dark-mode .savings-goal-progress-label,
html.dark-mode .savings-goal-stat span,
html.dark-mode .savings-goal-history {
  color: #b7c9c0;
}
html.dark-mode .savings-goal-empty,
html.dark-mode .savings-goal-stat {
  background: #172821;
  border-color: #2f463c;
}
html.dark-mode .savings-goal-deposit-form input,
html.dark-mode .savings-goal-edit-form input,
html.dark-mode .savings-goal-edit-form select {
  background: #13231c;
  color: #f0fdf4;
  border-color: #3b5549;
}
html.dark-mode .savings-goal-progress-track {
  background: #33483e;
}

/* GovtSave: Savings Goals visual polish v2
   Visual-only layer: keeps existing markup and tracker interactions unchanged. */
#savings-goals.section-muted {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 3%, rgba(16, 185, 129, 0.10), transparent 24rem),
    radial-gradient(circle at 95% 70%, rgba(20, 184, 166, 0.08), transparent 22rem),
    linear-gradient(180deg, #f7fcf9 0%, #f5faf8 100%);
}
#savings-goals .section-heading {
  margin-bottom: clamp(26px, 4vw, 42px);
}
#savings-goals .section-heading .pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #047857;
  background: rgba(236, 253, 245, 0.9);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
#savings-goals .section-heading h2 {
  margin-top: 14px;
  margin-bottom: 12px;
  color: #102f25;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  letter-spacing: -0.045em;
}
#savings-goals .section-heading p {
  max-width: 660px;
  margin-inline: auto;
  color: #5b7067;
  font-size: clamp(0.94rem, 1.5vw, 1.04rem);
  line-height: 1.75;
}
.savings-goals-layout {
  gap: clamp(16px, 2.5vw, 28px);
  align-items: stretch;
}
.savings-goal-form,
.savings-goals-panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid #dbece3;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 42px rgba(15, 70, 49, 0.075), 0 2px 8px rgba(15, 70, 49, 0.035);
}
.savings-goal-form::before,
.savings-goals-panel::before {
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 99px 99px;
  background: linear-gradient(90deg, #059669, #34d399, #99f6e4);
  content: "";
}
.savings-goal-form h3,
.savings-goals-panel h3 {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.savings-goal-form h3 i {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 6px;
  border-radius: 11px;
  color: #047857;
  background: #d1fae5;
  font-size: 0.92rem;
}
.savings-goal-intro,
.savings-goals-help {
  color: #60776c;
  font-size: 0.9rem;
  line-height: 1.65;
}
.savings-goal-fields {
  gap: 16px;
}
.savings-goal-fields label,
.savings-goal-edit-form label,
.savings-goal-deposit-form label {
  color: #30483d;
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.005em;
}
.savings-goal-fields input,
.savings-goal-fields select,
.savings-goal-edit-form input,
.savings-goal-edit-form select,
.savings-goal-deposit-form input {
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid #d5e3dc;
  border-radius: 11px;
  background-color: #fbfefc;
  color: #142f24;
  box-shadow: 0 1px 2px rgba(16, 45, 34, 0.025);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.savings-goal-fields input::placeholder,
.savings-goal-deposit-form input::placeholder {
  color: #94a79d;
}
.savings-goal-fields input:hover,
.savings-goal-fields select:hover,
.savings-goal-edit-form input:hover,
.savings-goal-edit-form select:hover,
.savings-goal-deposit-form input:hover {
  border-color: #9fcab5;
}
.savings-goal-fields input:focus,
.savings-goal-fields select:focus,
.savings-goal-edit-form input:focus,
.savings-goal-edit-form select:focus,
.savings-goal-deposit-form input:focus {
  outline: none;
  border-color: #10a36f;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.13);
}
.savings-goal-submit {
  min-height: 49px;
  margin-top: 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #047857 0%, #059669 58%, #0d9488 100%);
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.19);
  letter-spacing: 0.01em;
}
.savings-goal-submit:hover {
  background: linear-gradient(135deg, #065f46 0%, #047857 58%, #0f766e 100%);
  box-shadow: 0 10px 22px rgba(5, 150, 105, 0.24);
  transform: translateY(-2px);
}
.savings-goal-local-note {
  gap: 10px;
  margin-top: 13px;
  padding: 10px 11px;
  border: 1px solid #e4f1e9;
  border-radius: 11px;
  background: #f8fcf9;
  color: #5f766a;
  font-size: 0.76rem;
  line-height: 1.55;
}
.savings-goal-local-note i {
  flex: 0 0 auto;
  margin-top: 2px;
}
.savings-goal-status {
  padding: 3px 2px;
  font-size: 0.84rem;
}
.savings-goal-status.is-error {
  padding: 9px 11px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff7f7;
}
.savings-goals-panel-head {
  align-items: center;
  margin-bottom: 22px;
}
.savings-goals-panel-head h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}
.savings-goals-help {
  max-width: 34rem;
  margin-bottom: 0;
  font-size: 0.85rem;
}
.savings-goal-count {
  min-width: 38px;
  min-height: 38px;
  border: 1px solid #a7f3d0;
  color: #047857;
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
}
.savings-goal-list {
  gap: 17px;
}
.savings-goal-empty {
  padding: 36px 20px;
  border-color: #c7e5d5;
  background:
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08), transparent 15rem),
    #fbfefc;
}
.savings-goal-empty i {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 13px;
  border: 1px solid #bbf7d0;
  border-radius: 17px;
  background: #ecfdf5;
  font-size: 1.3rem;
}
.savings-goal-empty p {
  margin-bottom: 0;
  font-size: 0.88rem;
}
.savings-goal-card {
  overflow: hidden;
  padding: clamp(16px, 2vw, 21px);
  border-color: #dcece3;
  border-radius: 18px;
  box-shadow: 0 7px 22px rgba(15, 70, 49, 0.045);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.savings-goal-card::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #059669, #34d399 60%, #99f6e4);
  content: "";
}
@media (hover: hover) and (pointer: fine) {
  .savings-goal-card:hover {
    transform: translateY(-2px);
    border-color: #b7ddc9;
    box-shadow: 0 13px 30px rgba(15, 70, 49, 0.085);
  }
}
.savings-goal-card h4 {
  margin-bottom: 6px;
  color: #163c2c;
  font-size: 1.1rem;
  letter-spacing: -0.025em;
}
.savings-goal-card-subtitle {
  font-size: 0.78rem;
}
.savings-goal-delete {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #fff;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.savings-goal-delete:hover {
  border-color: #fecaca;
  color: #991b1b;
  background: #fff1f2;
}
.savings-goal-amount-row {
  align-items: center;
  margin-top: 20px;
  margin-bottom: 10px;
}
.savings-goal-amount-row span {
  font-size: 0.8rem;
  font-weight: 650;
}
.savings-goal-amount-row strong {
  color: #143d2c;
  font-size: clamp(0.97rem, 2vw, 1.12rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.savings-goal-progress-track {
  height: 11px;
  background: #e8f1eb;
  box-shadow: inset 0 1px 2px rgba(15, 70, 49, 0.06);
}
.savings-goal-progress {
  min-width: 0;
  background: linear-gradient(90deg, #059669 0%, #10b981 62%, #5eead4 100%);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}
.savings-goal-progress-label {
  margin-top: 9px;
  color: #64786d;
  font-size: 0.77rem;
  font-weight: 650;
}
.savings-goal-stats {
  gap: 11px;
  margin-top: 18px;
}
.savings-goal-stat {
  padding: 13px;
  border-color: #e1eee6;
  border-radius: 12px;
  background: linear-gradient(145deg, #fbfefc, #f4faf6);
}
.savings-goal-stat span {
  font-size: 0.75rem;
  font-weight: 650;
}
.savings-goal-stat strong {
  color: #174331;
  font-size: 0.96rem;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.savings-goal-deposit-form {
  gap: 10px;
  margin-top: 17px;
  padding: 15px;
  border: 1px solid #e0eee6;
  border-radius: 13px;
  background: #f8fcf9;
}
.savings-goal-deposit-form label {
  margin-bottom: 0;
}
.savings-goal-deposit-form input {
  min-height: 44px;
  background: #fff;
}
.savings-goal-action {
  min-height: 44px;
  padding-inline: 15px;
  border-color: #a7f3d0;
  border-radius: 11px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  box-shadow: 0 2px 5px rgba(5, 150, 105, 0.04);
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.savings-goal-action:hover {
  background: #bbf7d0;
  box-shadow: 0 5px 12px rgba(5, 150, 105, 0.1);
  transform: translateY(-1px);
}
.savings-goal-details {
  margin-top: 14px;
  padding: 0;
  border-radius: 12px;
}
.savings-goal-details summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  color: #047857;
  font-weight: 750;
  cursor: pointer;
}
.savings-goal-details[open] summary {
  margin-bottom: 3px;
}
.savings-goal-edit-form {
  padding: 14px;
  border: 1px solid #e1eee6;
  border-radius: 12px;
  background: #f8fcf9;
}
.savings-goal-edit-form .savings-goal-action {
  margin-top: 2px;
}
.savings-goal-history {
  color: #64786d;
  font-size: 0.78rem;
  line-height: 1.65;
}
.savings-goal-card > p.savings-goal-history {
  padding: 10px 12px;
  border-left: 3px solid #6ee7b7;
  border-radius: 0 9px 9px 0;
  background: #f5fbf7;
}
html.dark-mode #savings-goals.section-muted {
  background:
    radial-gradient(circle at 8% 3%, rgba(16, 185, 129, 0.09), transparent 24rem),
    linear-gradient(180deg, #0e1a15 0%, #111f19 100%);
}
html.dark-mode #savings-goals .section-heading h2 {
  color: #f0fdf4;
}
html.dark-mode #savings-goals .section-heading p {
  color: #b7c9c0;
}
html.dark-mode #savings-goals .section-heading .pill {
  border-color: #285744;
  color: #a7f3d0;
  background: #142b20;
}
html.dark-mode .savings-goal-form,
html.dark-mode .savings-goals-panel,
html.dark-mode .savings-goal-card {
  background: #13221b;
  border-color: #2d493b;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.17);
}
html.dark-mode .savings-goal-form h3,
html.dark-mode .savings-goals-panel h3,
html.dark-mode .savings-goal-card h4,
html.dark-mode .savings-goal-amount-row strong,
html.dark-mode .savings-goal-stat strong {
  color: #ecfdf5;
}
html.dark-mode .savings-goal-intro,
html.dark-mode .savings-goals-help,
html.dark-mode .savings-goal-card-subtitle,
html.dark-mode .savings-goal-amount-row span,
html.dark-mode .savings-goal-progress-label,
html.dark-mode .savings-goal-history {
  color: #afc6ba;
}
html.dark-mode .savings-goal-fields label,
html.dark-mode .savings-goal-edit-form label,
html.dark-mode .savings-goal-deposit-form label {
  color: #d5e9de;
}
html.dark-mode .savings-goal-fields input,
html.dark-mode .savings-goal-fields select,
html.dark-mode .savings-goal-edit-form input,
html.dark-mode .savings-goal-edit-form select,
html.dark-mode .savings-goal-deposit-form input {
  border-color: #355646;
  color: #ecfdf5;
  background: #102019;
}
html.dark-mode .savings-goal-fields input:focus,
html.dark-mode .savings-goal-fields select:focus,
html.dark-mode .savings-goal-edit-form input:focus,
html.dark-mode .savings-goal-edit-form select:focus,
html.dark-mode .savings-goal-deposit-form input:focus {
  border-color: #34d399;
  background: #142a20;
}
html.dark-mode .savings-goal-local-note,
html.dark-mode .savings-goal-stat,
html.dark-mode .savings-goal-deposit-form,
html.dark-mode .savings-goal-edit-form,
html.dark-mode .savings-goal-card > p.savings-goal-history {
  border-color: #2c4939;
  background: #172a20;
}
html.dark-mode .savings-goal-count {
  border-color: #286547;
  color: #a7f3d0;
  background: #173c2a;
}
html.dark-mode .savings-goal-empty {
  border-color: #345b45;
  background: #14251c;
}
html.dark-mode .savings-goal-empty strong {
  color: #ecfdf5;
}
html.dark-mode .savings-goal-progress-track {
  background: #263d31;
}
html.dark-mode .savings-goal-delete {
  border-color: #355646;
  color: #fda4af;
  background: #14251c;
}
html.dark-mode .savings-goal-action {
  border-color: #286547;
  color: #bbf7d0;
  background: #173c2a;
}
html.dark-mode .savings-goal-action:hover {
  background: #205238;
}
@media (max-width: 850px) {
  .savings-goals-layout {
    gap: 18px;
  }
}
@media (max-width: 480px) {
  #savings-goals .section-heading {
    margin-bottom: 24px;
  }
  #savings-goals .section-heading h2 {
    font-size: 1.95rem;
  }
  .savings-goal-form,
  .savings-goals-panel {
    padding: 19px 16px;
    border-radius: 18px;
  }
  .savings-goal-form::before,
  .savings-goals-panel::before {
    left: 16px;
    right: 16px;
  }
  .savings-goal-form h3 {
    display: flex;
    align-items: center;
    font-size: 1.03rem;
  }
  .savings-goal-form h3 i {
    flex: 0 0 auto;
  }
  .savings-goals-panel-head {
    align-items: flex-start;
    gap: 9px;
  }
  .savings-goal-count {
    min-width: 34px;
    min-height: 34px;
  }
  .savings-goal-deposit-form {
    grid-template-columns: minmax(0, 1fr);
    padding: 13px;
  }
  .savings-goal-deposit-form label {
    grid-column: auto;
  }
  .savings-goal-deposit-form .savings-goal-action {
    width: 100%;
  }
  .savings-goal-progress-label {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .savings-goal-submit,
  .savings-goal-action,
  .savings-goal-card,
  .savings-goal-progress {
    transition: none !important;
  }
}



/* Savings Goals Dashboard: keep home compact and organize the full tracker. */
.savings-goal-dashboard-shortcut {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border: 1px solid #dbece3;
  border-radius: 18px;
  background: var(--surface, #fff);
  box-shadow: 0 10px 28px rgba(15, 70, 49, 0.06);
}
.savings-goal-dashboard-icon {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: #d1fae5;
  color: #047857;
  font-size: 1.4rem;
}
.savings-goal-dashboard-copy {
  flex: 1;
  min-width: 0;
}
.savings-goal-dashboard-copy h3 {
  margin: 0 0 6px;
  color: var(--heading, #123b2d);
}
.savings-goal-dashboard-copy p {
  margin: 0;
  color: var(--muted, #64748b);
  line-height: 1.6;
}
.savings-goal-dashboard-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 12px 18px;
  border-radius: 10px;
  background: #047857;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.savings-goal-dashboard-link:hover {
  background: #065f46;
}
html.dark-mode .savings-goal-dashboard-shortcut {
  background: #13221b;
  border-color: #2d493b;
}
html.dark-mode .savings-goal-dashboard-copy h3 {
  color: #ecfdf5;
}
html.dark-mode .savings-goal-dashboard-copy p {
  color: #b7c9c0;
}

.savings-goals-dashboard-page #savings-goals .savings-goals-layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}
.savings-goals-dashboard-page #savings-goals .savings-goal-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.savings-goals-dashboard-page #savings-goals .savings-goal-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.savings-goals-dashboard-page .savings-goal-manage {
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid var(--border, #dbe7e1);
}
.savings-goals-dashboard-page .savings-goal-manage > summary {
  padding: 8px 0;
  color: #047857;
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
}
.savings-goals-dashboard-page .savings-goal-manage[open] > summary {
  margin-bottom: 4px;
}
html.dark-mode .savings-goals-dashboard-page .savings-goal-manage {
  border-color: #2d493b;
}
html.dark-mode .savings-goals-dashboard-page .savings-goal-manage > summary {
  color: #6ee7b7;
}
@media (max-width: 900px) {
  .savings-goals-dashboard-page #savings-goals .savings-goal-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .savings-goals-dashboard-page #savings-goals .savings-goal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .savings-goal-dashboard-shortcut {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 18px;
  }
  .savings-goal-dashboard-copy {
    flex-basis: calc(100% - 80px);
  }
  .savings-goal-dashboard-link {
    width: 100%;
    box-sizing: border-box;
  }
  .savings-goals-dashboard-page #savings-goals .savings-goal-fields,
  .savings-goals-dashboard-page #savings-goals .savings-goal-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
