/* Settings screen styles (js/screens/settings.js). */
.settings-row { margin-bottom: 4px; }

/* Holiday switches: two columns, one compact cell each. */
.switch-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.switch-cell { gap: 8px; border-bottom: 1px solid var(--rule-soft); min-height: 48px; }
.switch-cell > span { font-size: var(--fs-md); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Monthly budget: one row, a small $ box on the right. */
.set-gap { margin-top: 18px; }
.set-budget { gap: 8px; border-bottom: 1px solid var(--rule-soft); min-height: 52px; }
.set-budget > .set-money {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
  width: 112px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink-faint);
  font-size: var(--fs-lg);
}
.set-money:focus-within { border-color: var(--accent); }
.set-money input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
  -webkit-appearance: none;
  appearance: none;
}
.set-money input::placeholder { color: var(--ink-faint); }
.set-money input:focus { outline: none; }

/* Backup: Download and Restore side by side; the file picker hides inside Restore. */
.set-backup { margin-top: 10px; }
.set-restore { position: relative; overflow: hidden; cursor: pointer; }
.set-restore input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.set-restore.is-disabled, .set-backup .btn:disabled { opacity: .5; }
.set-backup-msg { margin-top: 6px; }

/* Build stamp: small and quiet, so Tim can tell which build the phone runs. */
.set-build { margin-top: 18px; color: var(--ink-faint); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }

@media (min-width: 860px) {
  .screen-settings .pane > * { max-width: 640px; }
  .switch-cell > span { font-size: var(--fs-lg); }
}
