:root {
  color-scheme: light;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: #20251f;
  background: #f6f5f1;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --green: #286545;
  --green-dark: #1e5037;
  --muted: #777c74;
  --line: #e9e8e1;
}

.safe-to-spend-card {
  margin-top: 10px;
  padding: 15px 18px 13px;
  border: 1px solid #e4e8dc;
  border-radius: 16px;
  background: #fffefa;
}

.safe-to-spend-card.has-bills-due {
  border-color: #cbdcc8;
  background: #f7faf4;
}

.safe-spend-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.safe-spend-label {
  margin: 0 0 3px;
  color: #687667;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.safe-spend-amount,
.bill-total {
  margin: 0;
  color: var(--green-dark);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.9px;
  line-height: 1.25;
}

.safe-to-spend-card.has-bills-due .safe-spend-amount {
  font-size: 30px;
}

.safe-spend-amount.safe-spend-negative,
.insight-value.safe-spend-negative {
  color: #a24e42;
}

.safe-spend-reserve {
  margin: 0;
  color: #445b49;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  text-align: right;
}

.safe-spend-reserve br + span {
  color: #7b887b;
  font-size: 10px;
  font-weight: 500;
}

.safe-spend-hint {
  margin: 8px 0 0;
  color: #788276;
  font-size: 10px;
  line-height: 1.45;
}

.safe-spend-hint.over-budget {
  color: #a24e42;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(218, 230, 208, 0.38), transparent 34rem),
    #f6f5f1;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
}

.topbar,
.brand,
.privacy-note,
.section-heading,
.summary-top,
.category-row,
.add-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar {
  margin-bottom: 39px;
}

.app-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: -22px 0 28px;
  padding: 4px;
  border: 1px solid #e9e8e1;
  border-radius: 13px;
  background: rgba(255, 255, 253, 0.78);
}

.nav-tab {
  display: flex;
  min-width: 0;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 5px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #7b8177;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.nav-tab > span:first-child {
  font-size: 14px;
}

.nav-tab.active {
  background: #eaf1e7;
  color: var(--green-dark);
}

.nav-tab:focus-visible,
.goal-primary-button:focus-visible,
.goal-edit-button:focus-visible,
.goal-remove-button:focus-visible,
.delete-category:focus-visible {
  outline: 2px solid #78a187;
  outline-offset: 2px;
}

.app-view[hidden] {
  display: none;
}

.brand {
  justify-content: flex-start;
  gap: 9px;
  color: #27382c;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.8px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 10px;
  background: var(--green);
  color: white;
  font-size: 16px;
}

.privacy-note {
  gap: 6px;
  color: #747a71;
  font-size: 11px;
  font-weight: 600;
}

.privacy-note span {
  color: #62906f;
  font-size: 9px;
}

.intro {
  margin-bottom: 29px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #7d857a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.35px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 11px;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: clamp(34px, 10vw, 43px);
  font-weight: 800;
  letter-spacing: -2.2px;
  line-height: 1.08;
}

h1 span {
  color: var(--green);
}

.intro-copy {
  max-width: 330px;
  margin-bottom: 0;
  color: #747a71;
  font-size: 14px;
  line-height: 1.55;
}

.paycheck-card,
.category-list,
.summary-card {
  border: 1px solid rgba(226, 226, 217, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 253, 0.82);
  box-shadow: 0 8px 24px rgba(41, 48, 35, 0.035);
}

.paycheck-card {
  padding: 20px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading .eyebrow {
  margin-bottom: 4px;
}

h2 {
  margin-bottom: 0;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.45px;
}

.step-check {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #e5e8df;
  border-radius: 50%;
  color: #7d857a;
  font-size: 11px;
  font-weight: 700;
}

.money-input {
  display: flex;
  height: 59px;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid #e8e9e2;
  border-radius: 12px;
  background: #fff;
  color: var(--green);
  font-family: Manrope, sans-serif;
  font-size: 25px;
  font-weight: 700;
}

.money-input:focus-within {
  border-color: #78a187;
  box-shadow: 0 0 0 3px rgba(40, 101, 69, 0.1);
}

.money-input input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #252b25;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.money-input input::placeholder {
  color: #c3c8bf;
}

.money-input input::-webkit-inner-spin-button,
.money-input input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.helper-text {
  margin: 9px 0 0;
  color: #92968e;
  font-size: 11px;
}

.next-payday-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
  color: #687166;
  font-size: 11px;
  font-weight: 600;
}

.next-payday-field input {
  width: 150px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #e8e9e2;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: #343a34;
  font-size: 11px;
}

.next-payday-field input:focus,
.bill-form-card input:focus {
  border-color: #78a187;
  box-shadow: 0 0 0 2px rgba(40, 101, 69, 0.08);
}

.allocation-section {
  margin-top: 31px;
}

.allocation-heading {
  margin-bottom: 14px;
}

.savings-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: #e9f0e5;
  color: var(--green);
  font-size: 17px;
}

.goal-card {
  padding: 17px;
  border: 1px solid #dce7dc;
  border-radius: 18px;
  background: rgba(255, 255, 253, 0.88);
  box-shadow: 0 8px 24px rgba(41, 48, 35, 0.035);
}

.view-intro {
  margin: -3px 0 17px;
  color: #747a71;
  font-size: 12px;
  line-height: 1.55;
}

.bill-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
  padding: 15px 17px;
  border: 1px solid #dce7dc;
  border-radius: 16px;
  background: #edf3e9;
}

.bill-total {
  font-size: 25px;
}

.bill-count {
  color: #647361;
  font-size: 10px;
  font-weight: 600;
  text-align: right;
}

.form-card-title {
  margin: 0 0 13px;
  color: #303930;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.bill-form-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 10px;
}

.bill-form-card input,
.bill-form-card select {
  min-width: 0;
  border: 1px solid #e8e9e2;
  border-radius: 10px;
  outline: 0;
  background: #fff;
}

.bill-form-card input[type="text"] {
  height: 42px;
  padding: 0 11px;
  font-size: 12px;
}

.bill-form-card input[type="date"] {
  height: 42px;
  padding: 0 7px;
  color: #29332b;
  font-size: 10px;
}

.bill-form-card .goal-money-input input {
  padding: 0;
  border: 0;
}

.list-heading {
  margin: 22px 2px 10px;
  color: #535c51;
  font-size: 11px;
  font-weight: 700;
}

.empty-state {
  padding: 18px 16px;
  border: 1px dashed #dcdfd5;
  border-radius: 14px;
  color: #7f857a;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.bill-list,
.savings-goal-list {
  display: grid;
  gap: 9px;
}

.bill-row {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e9e8e1;
  border-radius: 13px;
  background: rgba(255, 255, 253, 0.88);
}

.bill-paid {
  background: #f0f2eb;
}

.bill-info {
  min-width: 0;
}

.bill-name {
  overflow: hidden;
  margin: 0 0 4px;
  color: #343a34;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bill-due {
  margin: 0;
  color: #81877e;
  font-size: 10px;
}

.bill-due.bill-overdue {
  color: #a24e42;
  font-weight: 700;
}

.bill-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.bill-amount {
  color: #29332b;
  font-size: 11px;
  font-weight: 700;
}

.bill-paid-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #747a71;
  cursor: pointer;
  font-size: 9px;
}

.bill-paid-toggle input {
  width: 14px;
  height: 14px;
  accent-color: var(--green);
}

.bill-explainer {
  margin: 12px 2px 0;
  color: #81877e;
  font-size: 10px;
  line-height: 1.5;
}

.goal-setup-card {
  margin-top: 13px;
}

.goal-setup-card form {
  display: grid;
}

.goal-setup-card .goal-field {
  margin-bottom: 13px;
}

.goal-form-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.goal-form-actions .goal-cancel-button {
  margin: 0;
}

.new-goal-button {
  width: 100%;
  margin-bottom: 12px;
}

.goal-remove-button {
  display: grid;
  width: 26px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  background: transparent;
  color: #a2a69e;
  cursor: pointer;
  font-size: 18px;
}

.goal-remove-button:hover {
  color: #a24e42;
}

.goal-progress-card {
  padding: 16px;
}

.goal-progress-card.goal-complete-card {
  border-color: #b9d6bd;
  background: #f3f8f1;
}

.goal-progress-heading {
  align-items: center;
}

.goal-progress-heading > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.goal-progress-heading > .goal-edit-button {
  padding: 6px 0;
}

.goal-progress-card .goal-hint {
  margin-bottom: 0;
}

.contribution-form {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
}

.contribution-money-input {
  display: flex;
  height: 42px;
  flex: 1 1 auto;
  min-width: 75px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #e8e9e2;
  border-radius: 10px;
  background: #fff;
  color: var(--green);
}

.contribution-money-input:focus-within {
  border-color: #78a187;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(40, 101, 69, 0.08);
}

.contribution-money-input input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #29332b;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.contribution-money-input input::-webkit-inner-spin-button,
.contribution-money-input input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.contribution-form .goal-primary-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 11px;
  font-size: 10px;
}

.savings-goal-list .goal-form-error {
  margin: 0;
}

.insight-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.insight-card {
  min-width: 0;
  padding: 14px 13px;
  border: 1px solid #e6e7df;
  border-radius: 14px;
  background: rgba(255, 255, 253, 0.85);
}

.featured-insight-card {
  border-color: #dce7dc;
  background: #edf3e9;
}

.insight-label {
  margin: 0 0 6px;
  color: #788276;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.75px;
}

.insight-value {
  overflow-wrap: anywhere;
  margin: 0;
  color: #303930;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.insight-panel {
  margin-top: 13px;
  padding: 16px;
  border: 1px solid #e6e7df;
  border-radius: 16px;
  background: rgba(255, 255, 253, 0.85);
}

.reset-budget-copy {
  margin: 0 0 12px;
  color: #747a71;
  font-size: 11px;
  line-height: 1.5;
}

.reset-budget-button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #e0c9c3;
  border-radius: 10px;
  background: #fff9f7;
  color: #8b493e;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
}

.reset-budget-button:hover {
  background: #f9eeeb;
}

.reset-budget-button:focus-visible {
  outline: 2px solid #a96a5f;
  outline-offset: 2px;
}

.reset-budget-status {
  margin: 9px 0 0;
  color: #657361;
  font-size: 10px;
  line-height: 1.4;
}

.insight-category-list {
  display: grid;
  gap: 12px;
}

.insight-category-copy {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  color: #4d554b;
  font-size: 10px;
}

.insight-track {
  height: 5px;
  background: #ebece5;
}

.insight-track span {
  background: #4f8c61;
}

.insight-empty {
  margin: 0;
  color: #81877e;
  font-size: 11px;
  line-height: 1.5;
}

.insight-savings-copy,
.insight-next-step {
  margin: 0;
  color: #737b70;
  font-size: 11px;
  line-height: 1.55;
}

.insight-next-step {
  margin-top: 8px;
  color: #405943;
  font-weight: 600;
}

.goal-field {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
  color: #50584e;
  font-size: 11px;
  font-weight: 600;
}

.goal-field > input,
.goal-money-input,
.contribution-money-input {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #e8e9e2;
  border-radius: 10px;
  background: #fff;
  color: var(--green);
}

.goal-field > input:focus,
.goal-field > select:focus,
.goal-money-input:focus-within,
.contribution-money-input:focus-within {
  border-color: #78a187;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(40, 101, 69, 0.08);
}

.goal-field > input,
.goal-field > select,
.goal-money-input input,
.contribution-money-input input {
  min-width: 0;
  color: #29332b;
  font-size: 12px;
  font-weight: 600;
}

.goal-field > input,
.goal-field > select {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  border: 1px solid #e8e9e2;
  border-radius: 10px;
  outline: 0;
  background: #fff;
}

.goal-money-input input,
.contribution-money-input input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: right;
}

.goal-money-input input::-webkit-inner-spin-button,
.goal-money-input input::-webkit-outer-spin-button,
.contribution-money-input input::-webkit-inner-spin-button,
.contribution-money-input input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.optional-label {
  color: #93988f;
  font-weight: 400;
}

.goal-primary-button {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.goal-primary-button:hover {
  background: var(--green-dark);
}

.goal-cancel-button,
.goal-edit-button {
  border: 0;
  background: transparent;
  color: #657361;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.goal-cancel-button {
  margin: 10px 0 0 10px;
}

.goal-progress-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.goal-progress-label {
  margin: 0 0 5px;
  color: #748071;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.goal-progress-label.goal-complete-label {
  color: var(--green-dark);
}

.goal-name {
  margin: 0;
  color: #303930;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.goal-edit-button {
  flex: 0 0 auto;
  padding: 3px 0 3px 8px;
}

.goal-current-amount {
  margin: 14px 0 0;
  color: var(--green-dark);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.2;
}

.goal-current-amount.goal-complete-amount {
  color: var(--green);
}

.goal-target-copy {
  margin: 2px 0 12px;
  color: #798174;
  font-size: 11px;
}

.goal-progress-track {
  background: #dce8d8;
}

.goal-progress-track span {
  background: #4f8c61;
}

.goal-hint {
  margin-top: 9px;
}

.goal-hint.goal-complete-hint {
  padding: 9px 11px;
  border-radius: 9px;
  background: #e5f0e2;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
}

.goal-helper-text {
  margin: 10px 0 0;
  color: #858a81;
  font-size: 10px;
  line-height: 1.45;
}

.goal-form-error {
  margin: 0 0 10px;
  color: #a24e42;
  font-size: 11px;
}

.summary-card {
  padding: 17px 18px 14px;
  border-color: #dce7dc;
  background: #edf3e9;
  box-shadow: none;
}

.summary-top {
  align-items: flex-start;
  margin-bottom: 13px;
}

.summary-label {
  margin-bottom: 3px;
  color: #687667;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.remaining-amount {
  margin: 0;
  color: var(--green-dark);
  font-family: Manrope, sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.2;
}

.remaining-amount.has-bills-due {
  font-size: 24px;
}

.remaining-amount.over-budget,
.summary-hint.over-budget {
  color: #a24e42;
}

.amount-definition {
  margin: 5px 0 0;
  color: #748071;
  font-size: 10px;
  line-height: 1.45;
}

.safe-spend-definition {
  margin-top: 2px;
}

.payday-checklist {
  margin-top: 14px;
  padding: 15px 16px;
  border: 1px solid #e6e7df;
  border-radius: 14px;
  background: #fffefa;
}

.payday-checklist-title {
  margin: 0 0 10px;
  color: #303930;
  font-size: 13px;
  font-weight: 700;
}

.payday-checklist-items {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist-item {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 9px;
}

.checklist-item-status {
  flex: 0 0 auto;
  min-width: 39px;
  padding: 3px 5px;
  border-radius: 7px;
  background: #f5eddf;
  color: #795d2c;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.checklist-item-complete .checklist-item-status {
  background: #e7f0e4;
  color: var(--green-dark);
}

.checklist-item-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.checklist-item-title,
.checklist-item-detail {
  margin: 0;
}

.checklist-item-title {
  color: #384238;
  font-size: 11px;
  font-weight: 700;
}

.checklist-item-detail {
  margin-top: 2px;
  color: #748071;
  font-size: 10px;
  line-height: 1.4;
}

.checklist-action {
  flex: 0 0 auto;
  padding: 3px 0 3px 5px;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.checklist-action:focus-visible {
  border-radius: 3px;
  outline: 2px solid #78a187;
  outline-offset: 2px;
}

.allocated-total {
  margin: 1px 0 0;
  color: #445b49;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: right;
}

.allocated-total br + span {
  color: #7b887b;
  font-size: 10px;
  font-weight: 500;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 8px;
  background: #d9e4d5;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #4f8c61;
  transition: width 180ms ease;
}

.summary-hint {
  margin: 9px 0 0;
  color: #768373;
  font-size: 10px;
}

.category-list {
  margin-top: 13px;
  overflow: hidden;
}

.category-row {
  min-height: 63px;
  gap: 10px;
  padding: 9px 13px;
}

.category-row + .category-row {
  border-top: 1px solid #efefe9;
}

.category-info {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.category-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: #f0f2eb;
  font-size: 15px;
}

.category-name {
  overflow: hidden;
  color: #343a34;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.category-amount {
  width: 99px;
  height: 36px;
  padding: 0 9px;
  border: 1px solid #ecece6;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: #29332b;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.category-amount:focus {
  border-color: #78a187;
  box-shadow: 0 0 0 2px rgba(40, 101, 69, 0.08);
}

.category-amount::-webkit-inner-spin-button,
.category-amount::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.delete-category {
  display: grid;
  width: 27px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  background: transparent;
  color: #a2a69e;
  cursor: pointer;
  font-size: 18px;
}

.delete-category:hover {
  color: #a24e42;
}

.add-category {
  gap: 10px;
  margin-top: 11px;
  padding: 4px;
}

.add-category input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #e7e8e0;
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 253, 0.8);
  font-size: 12px;
}

.add-category input:focus {
  border-color: #78a187;
}

.add-category button {
  height: 40px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.add-category button:hover {
  background: var(--green-dark);
}

.add-category button span {
  margin-left: 4px;
  font-size: 15px;
}

.footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 21px 0 0;
  color: #858a81;
  font-size: 10px;
  text-align: center;
}

.lock-icon {
  color: #78917a;
  font-size: 11px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (min-width: 600px) {
  .app-shell {
    padding-top: 35px;
  }

  .topbar {
    margin-bottom: 48px;
  }

  .app-nav {
    margin-top: -29px;
  }
}

@media (max-width: 380px) {
  .app-shell {
    padding-right: 15px;
    padding-left: 15px;
  }

  .nav-tab {
    gap: 4px;
    font-size: 10px;
  }

  .bill-controls {
    gap: 5px;
  }

  .goal-progress-card {
    padding: 13px;
  }

  .contribution-form {
    gap: 6px;
  }

  .contribution-form .goal-primary-button {
    padding: 0 8px;
    font-size: 9px;
  }
}
