.app-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(19, 35, 30, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
}

.app-nav a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

.app-nav a:hover {
  background: var(--forest);
  color: var(--mint);
}

.finance-hub {
  margin: 0 0 46px;
  scroll-margin-top: 20px;
}

.finance-hub-heading {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  padding: 28px 30px;
  border-radius: 27px 27px 0 0;
  background:
    radial-gradient(circle at 87% 8%, rgba(184, 243, 107, .2), transparent 17rem),
    var(--forest);
  color: var(--white);
}

.finance-hub-heading::after {
  position: absolute;
  top: -55px;
  right: 8%;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(184, 243, 107, .18);
  border-radius: 50%;
  content: '';
}

.finance-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.finance-hub-heading h2,
.debt-header h2 {
  margin: 0 0 8px;
  font-size: clamp(25px, 3vw, 39px);
  letter-spacing: -.045em;
}

.finance-hub-heading p,
.debt-header p {
  max-width: 720px;
  margin: 0;
  color: #bdccc4;
  font-size: 14px;
  line-height: 1.65;
}

.finance-save-state {
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  color: #dce6e1;
  font-size: 11px;
  font-weight: 700;
}

.finance-save-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(184, 243, 107, .1);
}

.finance-save-state.saving i {
  background: var(--orange);
}

.finance-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #eeeee7;
}

.finance-tabs,
.finance-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.finance-tab,
.finance-action {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.finance-tab {
  padding: 10px 14px;
  background: transparent;
  color: #68776f;
}

.finance-tab.active {
  background: var(--forest);
  color: var(--mint);
  box-shadow: 0 8px 20px rgba(16, 38, 31, .12);
}

.finance-action {
  padding: 9px 11px;
  border: 1px solid #ccd2ce;
  background: var(--white);
  color: var(--forest);
}

.finance-action.muted {
  background: transparent;
  color: #76837c;
}

.finance-panel {
  padding: 23px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 27px 27px;
  background: rgba(251, 250, 245, .94);
  box-shadow: var(--shadow);
}

.finance-panel[hidden] {
  display: none !important;
}

.finance-input-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.finance-form-card,
.allocation-card,
.debt-editor,
.strategy-comparison-wrap,
.debt-payoff-card,
.debt-schedule-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.finance-form-card {
  padding: 22px;
}

.goal-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.goal-entry-guide {
  margin-bottom: 14px;
  padding: 15px 16px;
  border: 1px solid #b8d9c5;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0f8f3, #fbfdf9);
}

.goal-entry-guide > strong,
.goal-entry-guide > small {
  display: block;
}

.goal-entry-guide > strong {
  margin-bottom: 10px;
  color: var(--forest);
  font-size: 12px;
}

.goal-entry-guide > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 9px;
}

.goal-entry-guide > div span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #4f6258;
  font-size: 9px;
  font-weight: 700;
}

.goal-entry-guide > div b {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: var(--forest);
  color: var(--mint);
  font-size: 9px;
}

.goal-entry-guide > small {
  color: #718078;
  font-size: 9px;
  line-height: 1.5;
}

.cashflow-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.cashflow-fields .finance-field.full {
  grid-column: span 2;
}

.cashflow-card {
  background:
    linear-gradient(110deg, rgba(232, 251, 207, .2), transparent 45%),
    var(--white);
}

.goals-card {
  background: #fcfcf9;
}

.goal-block {
  padding: 16px;
  border: 1px solid #e0e4df;
  border-radius: 13px;
  background: #fafbf9;
}

.goal-block.emergency-goal {
  background: #f1f8f4;
}

.goal-block.savings-goal {
  background: #fff8ef;
}

.goal-block.investment-goal {
  background: #f3f6ef;
}

.goal-block.risk-goal {
  border-color: #dfd1ec;
  background: #f8f2fc;
}

.goal-block.risk-goal .goal-block-head span {
  color: #74429e;
}

.goal-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.goal-block-head span,
.goal-block-head strong {
  display: block;
}

.goal-block-head span {
  margin-bottom: 2px;
  color: var(--green);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.goal-block-head strong {
  color: var(--forest);
  font-size: 14px;
}

.goal-block-head small {
  color: #7a8981;
  font-size: 9px;
}

.finance-card-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}

.finance-card-title > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: var(--mint-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
}

.finance-card-title strong,
.finance-card-title small {
  display: block;
}

.finance-card-title strong {
  margin-bottom: 3px;
  font-size: 16px;
}

.finance-card-title small {
  color: #819087;
  font-size: 10px;
}

.finance-fields {
  display: grid;
  gap: 13px;
}

.finance-fields.two-columns {
  grid-template-columns: 1fr 1fr;
}

.finance-field.full {
  grid-column: 1 / -1;
}

.finance-field {
  display: block;
  margin: 0;
}

.goal-target-field > span:first-child {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--forest) !important;
  font-weight: 850 !important;
}

.goal-target-field em {
  padding: 4px 6px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--mint);
  font-size: 7px;
  font-style: normal;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.goal-target-field .finance-input-wrap {
  border: 2px solid var(--green);
  background: #fff;
  box-shadow: 0 5px 14px rgba(27, 118, 85, .08);
}

.goal-target-field input {
  color: var(--green);
  font-size: 15px;
  font-weight: 850;
}

.goal-example {
  display: block;
  margin-top: 5px;
  color: #74837b;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.45;
}

.auto-debt-sweep {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid #bfe2a0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f2f9e9, #e2f7c9);
  color: var(--forest);
}

.auto-debt-sweep > span {
  font-size: 10px;
  font-weight: 800;
}

.auto-debt-sweep strong {
  color: var(--green);
  font-size: 19px;
}

.auto-debt-sweep small {
  grid-column: 1 / -1;
  color: #6f7f75;
  font-size: 9px;
}

.finance-field > span:not(.finance-input-wrap) {
  display: block;
  margin: 0 0 6px 2px;
  color: #67766e;
  font-size: 10px;
  font-weight: 700;
}

.finance-input-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 0;
  border: 1px solid #d9ddd8;
  border-radius: 10px;
  background: #fafbf9;
}

.finance-field input {
  min-width: 0;
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--forest);
  font-size: 13px;
  font-weight: 750;
}

.finance-field input[readonly] {
  color: var(--green);
  cursor: default;
}

.auto-field .finance-input-wrap {
  border-color: #b8d4c4;
  background: var(--mint-soft);
}

.finance-input-wrap:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(27, 118, 85, .08);
}

.finance-field b {
  flex: 0 0 auto;
  padding-right: 10px;
  color: #8a978f;
  font-size: 9px;
  font-weight: 750;
}

.finance-metric-grid,
.debt-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.finance-metric-grid article,
.debt-metric-grid article {
  min-height: 132px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
}

.finance-metric-grid span,
.finance-metric-grid strong,
.finance-metric-grid small,
.debt-metric-grid span,
.debt-metric-grid strong,
.debt-metric-grid small {
  display: block;
}

.finance-metric-grid span,
.debt-metric-grid span {
  margin-bottom: 13px;
  color: #77867e;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.finance-metric-grid strong,
.debt-metric-grid strong {
  margin-bottom: 5px;
  color: var(--forest);
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -.04em;
}

.finance-metric-grid small,
.debt-metric-grid small {
  color: #7d8b83;
  font-size: 10px;
  line-height: 1.5;
}

.finance-metric-grid strong.negative-value {
  color: var(--red);
}

.fund-balance-card {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 14px 35px rgba(16, 38, 31, .06);
}

.fund-balance-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.fund-balance-head span,
.fund-balance-head h3,
.fund-balance-head small {
  display: block;
}

.fund-balance-head span {
  margin-bottom: 4px;
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fund-balance-head h3 {
  margin: 0;
  color: var(--forest);
  font-size: 20px;
}

.fund-balance-head small {
  color: #7d8b83;
  font-size: 10px;
  text-align: right;
}

.fund-balance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fund-balance-grid article {
  --fund-accent: #1b7655;
  --fund-soft: #edf8f2;
  min-width: 0;
  padding: 18px;
  border: 1px solid #e2e6e1;
  border-radius: 17px;
  background: linear-gradient(145deg, var(--fund-soft), #fff 72%);
}

.fund-balance-grid article.savings {
  --fund-accent: #b47a29;
  --fund-soft: #fff6e7;
}

.fund-balance-grid article.long-term {
  --fund-accent: #10261f;
  --fund-soft: #edf2ec;
}

.fund-balance-grid article.risk {
  --fund-accent: #7f4bb2;
  --fund-soft: #f5edfb;
}

.fund-balance-grid header {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.fund-balance-grid header > i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--fund-accent);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.fund-balance-grid header span,
.fund-balance-grid header small,
.fund-balance-grid > article > strong,
.fund-balance-grid footer span,
.fund-balance-grid footer small,
.fund-balance-grid footer b {
  display: block;
}

.fund-balance-grid header span {
  margin-bottom: 3px;
  color: var(--forest);
  font-size: 10px;
  font-weight: 800;
}

.fund-balance-grid header small {
  color: #7d8a83;
  font-size: 9px;
}

.fund-balance-grid header > b {
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--fund-soft);
  color: var(--fund-accent);
  font-size: 10px;
}

.fund-balance-grid > article > strong {
  overflow: hidden;
  margin-bottom: 12px;
  color: var(--forest);
  font-size: clamp(21px, 2.2vw, 30px);
  letter-spacing: -.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fund-progress {
  height: 7px;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(16, 38, 31, .09);
}

.fund-progress i {
  display: block;
  width: var(--fund-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--fund-accent);
  transition: width .35s ease;
}

.fund-balance-grid footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding-top: 13px;
  border-top: 1px solid rgba(16, 38, 31, .09);
}

.fund-balance-grid footer span:last-child {
  text-align: right;
}

.fund-balance-grid footer small {
  margin-bottom: 4px;
  color: #7d8a83;
  font-size: 8px;
}

.fund-balance-grid footer b {
  overflow: hidden;
  color: var(--fund-accent);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.pillar {
  position: relative;
  min-height: 206px;
  overflow: hidden;
  padding: 20px;
  border-radius: 18px;
}

.pillar::after {
  position: absolute;
  right: -36px;
  bottom: -49px;
  width: 130px;
  height: 130px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .12;
  content: '';
}

.pillar.obligation {
  background: #f7e9df;
  color: #813f20;
}

.pillar.safety {
  background: var(--mint-soft);
  color: var(--green);
}

.pillar.growth {
  background: var(--forest);
  color: var(--white);
}

.pillar-index {
  display: block;
  margin-bottom: 26px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pillar h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.pillar > strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(22px, 3vw, 33px);
  letter-spacing: -.05em;
}

.pillar p {
  max-width: 230px;
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  opacity: .75;
}

.pillar-share {
  position: absolute;
  right: 16px;
  bottom: 15px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  font-size: 10px;
  font-weight: 800;
}

.pillar.growth .pillar-share {
  background: rgba(255, 255, 255, .1);
  color: var(--mint);
}

.allocation-card {
  margin-top: 16px;
  padding: 24px;
}

.allocation-card-head,
.debt-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.allocation-card-head span,
.debt-section-head span {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.allocation-card-head h3,
.debt-section-head h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -.025em;
}

.allocation-card-head > strong {
  color: #718078;
  font-size: 11px;
}

.budget-bar {
  display: flex;
  width: 100%;
  height: 18px;
  overflow: hidden;
  margin: 17px 0 14px;
  border-radius: 999px;
  background: #ecefea;
}

.budget-bar > span {
  min-width: 0;
  transition: width 240ms ease;
}

.budget-bar > span:hover {
  filter: brightness(.93);
}

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

.budget-legend div {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  color: #75837b;
  font-size: 10px;
  line-height: 1.4;
}

.budget-legend i {
  width: 8px;
  height: 8px;
  margin-top: 1px;
  border-radius: 3px;
}

.budget-legend strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
}

.finance-recommendation {
  display: grid;
  grid-template-columns: 125px minmax(0, .7fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 13px;
  padding: 20px 22px;
  border-left: 4px solid var(--orange);
  border-radius: 0 15px 15px 0;
  background: #fff6ed;
}

.finance-recommendation span {
  color: #9b5a2e;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.finance-recommendation strong {
  color: #713817;
  font-size: 15px;
}

.finance-recommendation p {
  margin: 0;
  color: #72533f;
  font-size: 11px;
  line-height: 1.55;
}

.finance-recommendation.good {
  border-color: var(--green);
  background: #eff9f3;
}

.finance-recommendation.good span,
.finance-recommendation.good strong {
  color: var(--green);
}

.debt-header {
  padding: 7px 4px 20px;
}

.debt-header h2 {
  color: var(--forest);
}

.debt-header p {
  color: var(--ink-2);
}

.strategy-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.strategy-switcher button {
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.strategy-switcher button:hover,
.strategy-switcher button.active {
  border-color: var(--forest);
}

.strategy-switcher button.active {
  background: var(--forest);
  color: var(--white);
}

.strategy-switcher span,
.strategy-switcher strong,
.strategy-switcher small {
  display: block;
}

.strategy-switcher span {
  margin-bottom: 16px;
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.strategy-switcher button.active span {
  color: var(--mint);
}

.strategy-switcher strong {
  margin-bottom: 5px;
  font-size: 16px;
}

.strategy-switcher small {
  color: #7a8981;
  font-size: 10px;
  line-height: 1.5;
}

.strategy-switcher button.active small {
  color: #bdccc4;
}

.debt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, .8fr);
  gap: 12px;
  margin-top: 13px;
}

.debt-editor,
.strategy-comparison-wrap,
.debt-payoff-card,
.debt-schedule-card {
  padding: 18px;
}

.debt-section-head button {
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: var(--forest);
  color: var(--mint);
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
}

.debt-list-head,
.debt-row {
  display: grid;
  grid-template-columns: minmax(125px, 1.2fr) minmax(100px, 1fr) minmax(95px, .9fr) minmax(100px, .95fr) 92px 92px 30px;
  gap: 8px;
  align-items: center;
}

.debt-list-head {
  margin-top: 17px;
  padding: 0 7px 7px;
  color: #7d8b84;
  font-size: 7px;
  font-weight: 750;
}

.debt-list {
  display: grid;
  gap: 7px;
}

.debt-row {
  padding: 8px;
  border: 1px solid #e0e3df;
  border-radius: 11px;
  background: #fafbf9;
}

.debt-row input {
  min-width: 0;
  width: 100%;
  height: 35px;
  padding: 0 8px;
  border: 1px solid #d9ddd8;
  border-radius: 8px;
  outline: 0;
  background: var(--white);
  color: var(--forest);
  font-size: 9px;
  font-weight: 700;
}

.debt-row input:focus {
  border-color: var(--green);
}

.debt-derived {
  display: block;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 8px;
  background: #edf3ef;
}

.debt-derived small,
.debt-derived strong {
  display: block;
}

.debt-derived small {
  display: none;
  margin-bottom: 3px;
  color: #7b8981;
  font-size: 7px;
}

.debt-derived strong {
  overflow: hidden;
  color: var(--green);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.debt-derived-total {
  background: var(--mint-soft);
}

.remove-debt {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #f5e5e2;
  color: var(--red);
  cursor: pointer;
  font-size: 14px;
}

.debt-editor-note {
  margin: 12px 0 0;
  color: #87948d;
  font-size: 8px;
  line-height: 1.5;
}

.strategy-comparison {
  display: grid;
  gap: 8px;
  margin-top: 17px;
}

.comparison-card {
  padding: 13px;
  border: 1px solid #e0e4e0;
  border-radius: 11px;
  background: #fafbf9;
  cursor: pointer;
}

.comparison-card.active {
  border-color: var(--green);
  background: var(--mint-soft);
}

.comparison-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.comparison-card header strong {
  font-size: 11px;
}

.comparison-card header span {
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
}

.comparison-card div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.comparison-card small,
.comparison-card b {
  display: block;
}

.comparison-card small {
  margin-bottom: 3px;
  color: #849189;
  font-size: 7px;
}

.comparison-card b {
  color: var(--forest);
  font-size: 9px;
}

.debt-payoff-card,
.debt-schedule-card {
  margin-top: 13px;
}

.debt-section-head > strong {
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--green);
  font-size: 8px;
}

.debt-section-head > small {
  color: #86938c;
  font-size: 8px;
}

.debt-payoff-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.payoff-event {
  position: relative;
  padding: 14px;
  border-radius: 12px;
  background: #f1f4f1;
}

.payoff-event:first-child {
  background: #fff0e5;
}

.payoff-event:last-child {
  background: var(--mint-soft);
}

.payoff-event span,
.payoff-event strong,
.payoff-event small {
  display: block;
}

.payoff-event span {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 8px;
  font-weight: 850;
}

.payoff-event strong {
  margin-bottom: 4px;
  font-size: 12px;
}

.payoff-event small {
  color: #7a8780;
  font-size: 8px;
  line-height: 1.45;
}

.debt-table-wrap {
  overflow-x: auto;
  margin-top: 15px;
}

.debt-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.debt-table-wrap th,
.debt-table-wrap td {
  padding: 10px;
  border-bottom: 1px solid #e7e9e6;
  font-size: 8px;
  text-align: right;
  white-space: nowrap;
}

.debt-table-wrap th {
  color: #75837b;
  font-weight: 750;
}

.debt-table-wrap th:first-child,
.debt-table-wrap th:nth-child(2),
.debt-table-wrap td:first-child,
.debt-table-wrap td:nth-child(2) {
  text-align: left;
}

.debt-table-wrap td:nth-child(2) {
  color: var(--green);
  font-weight: 750;
}

.debt-empty {
  padding: 28px 16px;
  border: 1px dashed #ccd4cf;
  border-radius: 12px;
  color: #7d8a83;
  font-size: 9px;
  text-align: center;
}

@media (max-width: 1000px) {
  .app-nav {
    display: none;
  }

  .finance-input-grid,
  .debt-layout {
    grid-template-columns: 1fr;
  }

  .finance-metric-grid,
  .debt-metric-grid,
  .fund-balance-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 720px) {
  .finance-hub-heading {
    align-items: flex-start;
    flex-direction: column;
    padding: 23px 21px;
  }

  .finance-toolbar,
  .finance-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .finance-toolbar {
    padding: 12px;
  }

  .finance-tabs,
  .finance-actions {
    width: 100%;
  }

  .finance-tab,
  .finance-action {
    flex: 1;
  }

  .finance-panel {
    padding: 13px;
  }

  .finance-fields.two-columns,
  .goal-stack,
  .pillar-grid,
  .strategy-switcher,
  .debt-payoff-timeline {
    grid-template-columns: 1fr;
  }

  .cashflow-fields {
    grid-template-columns: 1fr !important;
  }

  .cashflow-fields .finance-field.full {
    grid-column: 1 / -1;
  }

  .goal-entry-guide > div {
    grid-template-columns: 1fr;
  }

  .finance-metric-grid,
  .debt-metric-grid,
  .fund-balance-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fund-balance-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .fund-balance-head small {
    text-align: left;
  }

  .finance-metric-grid article,
  .debt-metric-grid article {
    min-height: 106px;
    padding: 13px;
  }

  .pillar {
    min-height: 180px;
  }

  .budget-legend {
    grid-template-columns: 1fr 1fr;
  }

  .finance-recommendation {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .debt-list-head {
    display: none;
  }

  .debt-row {
    grid-template-columns: 1fr 1fr;
    margin-top: 9px;
  }

  .debt-row .debt-name {
    grid-column: 1 / -1;
  }

  .debt-derived small {
    display: block;
  }

  .remove-debt {
    grid-column: 2;
    justify-self: end;
  }
}

@media (max-width: 430px) {
  .finance-metric-grid,
  .debt-metric-grid,
  .fund-balance-grid {
    grid-template-columns: 1fr;
  }

  .budget-legend {
    grid-template-columns: 1fr;
  }
}

@media print {
  .finance-toolbar,
  .finance-actions,
  .remove-debt,
  #addDebtButton {
    display: none !important;
  }

  .finance-hub,
  .finance-panel {
    box-shadow: none;
  }
}
