.account-summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; width: 100%; padding: 10px 12px; border: 2px solid var(--ink);
  border-radius: 14px; background: #fff; box-shadow: 0 3px 0 var(--ink);
}
.account-summary-text { min-width: 0; display: grid; gap: 3px; }
#account-user { font-size: 14px; overflow-wrap: anywhere; }
#account-sync-status {
  padding: 0; border: 0; background: none; text-align: left;
  color: #52617a; font-size: 11px; line-height: 1.4;
}
#account-sync-status[data-status="offline"], #account-sync-status[data-status="conflict"],
#account-sync-status[data-status="signed-out"] { color: #ad3c22; }
#account-open { border: 0; border-radius: 9px; padding: 9px 12px; background: var(--blue-soft); white-space: nowrap; font-size: 13px; }
.account-dialog {
  position: fixed; inset: 0; z-index: 100; margin: auto;
  width: min(420px, calc(100% - 24px)); max-height: calc(100dvh - 32px);
  padding: 24px; border: 3px solid #1b1d4d; border-radius: 22px;
  background: #fff8ec; color: #1b1d4d; box-shadow: 0 8px 0 #1b1d4d;
  overflow-y: auto; font-family: var(--round); font-weight: 700; user-select: text;
  -webkit-user-select: text;
}
.account-dialog::backdrop { background: rgba(27, 29, 77, .66); }
.account-dialog h2 { margin: 0 0 12px; font-size: 23px; }
.account-dialog p { line-height: 1.6; }
.account-description { font-size: 14px; margin: 0 0 16px; color: #52617a; }
.account-dialog label { display: grid; gap: 7px; margin-bottom: 15px; font-size: 14px; }
.account-dialog input {
  display: block; width: 100%; padding: 12px; border: 2px solid #c1c7da;
  border-radius: 11px; background: white; color: #1b1d4d; font: inherit; font-size: 16px;
  user-select: text; -webkit-user-select: text;
}
.account-dialog input:focus { outline: 3px solid #ffd23f; border-color: #3b6bff; }
.account-dialog button { padding: 12px; border: 2px solid #1b1d4d; border-radius: 11px; background: white; font: inherit; font-size: 14px; }
.account-dialog button:disabled { opacity: .6; cursor: wait; }
.account-dialog button.account-primary { width: 100%; background: #3b6bff; color: white; }
.account-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.account-actions > button { flex: 1; }
.account-actions.account-stacked { display: grid; }
.account-error { color: #b52f34; min-height: 22px; margin: 10px 0; font-size: 13px; }
.account-footnote { color: #647086; margin: 16px 0 0; font-size: 12px; }
.account-name { font-size: 20px; overflow-wrap: anywhere; }
.account-back { margin-top: 12px; width: 100%; }
.account-startup-error { position: fixed; inset: 20px; z-index: 100; padding: 24px; background: white; }
@media (max-height: 600px) { .account-dialog { padding: 18px; } .account-dialog label { margin-bottom: 10px; } }
