/* Trang Ngân sách & đồng bộ */
.budget-page h1 { font-size: 30px; font-weight: 800; }
.setting { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.setting h2 { font-size: calc(17rem / 17); font-weight: 800; }
.setting .budget-input { max-width: none; padding: 10px 16px; justify-content: flex-start; }
.setting .budget-input input { text-align: left; }
.setting .chips { justify-content: flex-start; }
/* Nút dài (đăng nhập / tạo tài khoản) tự xuống dòng và trải hết chiều ngang */
.sync-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sync-row .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: var(--c); flex: none; }
.sync-row p { flex: 1 1 150px; font-weight: 700; }
.sync-row .btn { flex: 1 0 auto; min-height: 44px; padding: 0 16px; font-size: calc(15rem / 17); }

/* Trạng thái trống dùng chung */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 12px; text-align: center; font-weight: 700; color: var(--muted); }
.diag { white-space: pre-wrap; word-break: break-all; font: 600 12px/1.4 ui-monospace, monospace; background: var(--card); border: 2px solid var(--ink); border-radius: 12px; padding: 10px; -webkit-user-select: text; user-select: text; }

/* ===== Tài khoản ===== */
.account-row { display: flex; align-items: center; gap: 14px; }
.avatar-btn { position: relative; flex: none; padding: 0; border: 0; background: none; border-radius: 50%; }
.avatar-btn img { display: block; width: 64px; height: 64px; }
.avatar-edit {
  position: absolute; right: -4px; bottom: -2px; width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; background: var(--card); border: 2px solid var(--ink); font-size: 13px; font-weight: 800;
}
.account-name { min-width: 0; }
.account-name h2 { font-size: calc(20rem / 17); overflow-wrap: anywhere; }
.account-note:empty { display: none; }
.account-note { font-weight: 700; color: var(--orange-ink); }
.signout { min-height: 44px; color: #B3261E; }
.avatar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-bottom: 8px; }
.avatar-pick { padding: 4px; border: 3px solid transparent; border-radius: 50%; background: none; aspect-ratio: 1; }
.avatar-pick img { display: block; width: 100%; height: 100%; }
.avatar-pick[aria-pressed="true"] { border-color: var(--orange); }
