/* Shared app remains the Android UI; only web capabilities differ. */
#ledger {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scroll-padding-block-end: 90px;
}
#capari-budget-preview { min-height: 100%; display: flex; flex-direction: column; }
#ledger .phone { min-height: 0; flex: 1; }
#ledger :is(button,input,textarea) { scroll-margin-block: 24px 82px; }
#ledger .head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
#ledger .profile-trigger {
  position: relative;
  max-width: 115px;
}
#active-profile {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#ledger .profile-trigger[data-sync-notice]::after {
  content: '';
  position: absolute;
  inset: 6px 6px auto auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warm);
}
@media (max-width: 360px) {
  #ledger .profile-trigger { max-width: 84px; padding-inline: 8px; }
}
/* A stable compose layout prevents taps moving when keyboard focus changes. */
#cb-entry-welcome{display:none!important}
#cb-reminder{display:none!important}
[data-readonly=true] #cb-plan-settings,[data-readonly=true] #cb-coverage-form,
[data-readonly=true] #cb-category-form,[data-readonly=true] #cb-limit-select,
[data-readonly=true] #cb-pocket-target,[data-readonly=true] [data-log-category],
[data-readonly=true] [aria-label="Cadangan data"]{display:none!important}
[data-readonly=true] .nav [data-go=entry]{opacity:.45;pointer-events:none}
