/* v31.4 — Global button sizing + spacing standard. Visual consistency only. */
:root{
  --btn-h-main:50px;
  --btn-h-small:38px;
  --btn-radius-main:14px;
  --btn-radius-small:12px;
  --btn-font-main:15px;
  --btn-font-small:12.5px;
  --btn-action-gap:7px;
}

/* Main action buttons across forms/settings/modals. */
.primary,
.secondary,
button.danger,
.settings-list button,
.file-label,
#addAccountBtn,#addAssetBtn,#addCommitmentBtn,
.modal-actions button,
.investment-action-picker button,
#modalBody > button,
#modalBody .form-grid > button,
#modalBody .tn-form-actions > button,
#ckNew,#ckClose,#ckSave,#ckDelete,#ckBack{
  min-height:var(--btn-h-main)!important;
  height:var(--btn-h-main)!important;
  padding:0 16px!important;
  border-radius:var(--btn-radius-main)!important;
  font-size:var(--btn-font-main)!important;
  line-height:1!important;
  box-sizing:border-box!important;
}

/* Full-width form actions stay aligned, but not oversized. */
#modalBody .form-grid > .primary,
#modalBody .form-grid > .secondary,
#modalBody .form-grid > .danger,
#modalBody .tn-form-actions > button,
.settings-list button,
.file-label{
  width:100%!important;
  max-width:100%!important;
}

/* One compact vertical rhythm for action stacks across the app. */
#modalBody .tn-form-actions,
#modalBody .modal-actions,
#modalBody .form-actions,
.settings-list,
.investment-action-picker{
  gap:var(--btn-action-gap)!important;
}
#modalBody .tn-form-actions > button,
#modalBody .modal-actions > button,
#modalBody .form-actions > button,
.settings-list > button,
.settings-list > .file-label,
.investment-action-picker > button{
  margin-top:0!important;
  margin-bottom:0!important;
}

/* Compact utility buttons. */
.section-title button,
.mini-row button,
.tn-all,
.home-widget-settings button,
.ck-report-btn,
.ck-card{
  min-height:var(--btn-h-small)!important;
  height:auto!important;
  padding:8px 12px!important;
  border-radius:var(--btn-radius-small)!important;
  font-size:var(--btn-font-small)!important;
  line-height:1.45!important;
}

/* Quick-register tiles: consistent, still easy to tap. */
.quick{
  min-height:52px!important;
  height:52px!important;
  padding:0 12px!important;
  border-radius:14px!important;
  font-size:14px!important;
  line-height:1.2!important;
}

/* Tasks home buttons: compact but distinct. */
#homeTasksNotes .tn-tabs button{
  min-height:48px!important;
  height:48px!important;
  padding:0 12px!important;
  border-radius:14px!important;
  font-size:14px!important;
}
#homeTasksNotes .tn-check,
#modalBody .tn-check{
  min-height:40px!important;
  height:40px!important;
  border-radius:13px!important;
}

/* Segmented controls keep their own compact geometry. */
.segmented button{
  min-height:42px!important;
  height:42px!important;
  padding:0 12px!important;
  font-size:13px!important;
}

/* Do not change top icons or bottom navigation footprint. */
.icon-btn{min-height:unset!important;height:unset!important;padding:0!important}
.bottom-nav button{min-height:unset!important;height:auto!important;padding:0!important}
.bottom-nav .fab{height:auto!important;min-height:unset!important}

/* Keep everything inside iPhone width. */
button,.file-label{box-sizing:border-box;max-width:100%;min-width:0}
