/* ---------- compte / connexion ---------- */
.account-card {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; box-shadow: var(--shadow);
}
.account-card.guest { background: var(--surface-2); box-shadow: none; }
.account-card .account-txt { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.account-card .account-txt strong { font-family: "Bricolage Grotesque", sans-serif; font-size: 1rem; }
.account-name { display: flex; align-items: center; gap: 8px; }
.owner-badge {
  font-family: "IBM Plex Mono", monospace; font-size: .58rem; font-weight: 600;
  letter-spacing: .12em; padding: 2px 6px; border-radius: 4px;
  background: var(--gold); color: #3a2a08;
}
.account-card .account-txt span { font-size: .82rem; color: var(--ink-soft); }
.account-av { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; border: 1px solid var(--border); }
.account-av-fallback { display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-family: "Bricolage Grotesque", sans-serif; }
.sync-state { font-family: "IBM Plex Mono", monospace; font-size: .74rem !important; color: var(--ink-soft); }
.sync-state.ok { color: var(--good); }
.account-out {
  background: none; border: 1px solid var(--border-strong); color: var(--ink-soft);
  border-radius: 9px; padding: 8px 14px; font-size: .8rem;
}
.account-out:hover { color: var(--accent); border-color: var(--accent); }
.account-err { flex-basis: 100%; font-size: .8rem; color: var(--bad); }

.google-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #1f2937; border: 1px solid #dadce0;
  border-radius: 10px; padding: 10px 16px; font-weight: 600; font-size: .88rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.google-btn:hover { background: #f7f8f8; }
.google-btn .g-logo { display: inline-flex; }

.profbtn .prof-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; }
.profbtn.signed { border-color: var(--good); }

/* ---------- état de synchronisation ---------- */
.sync-state.bad { color: var(--bad); font-weight: 600; }
.account-retry {
  grid-column: 1 / -1; justify-self: start; margin-top: 8px;
  background: var(--accent); color: var(--accent-ink); border: 0;
  border-radius: 9px; padding: 8px 15px; font-size: .84rem; font-weight: 600;
}
.account-retry:hover { filter: brightness(1.08); }
.owner-note {
  grid-column: 1 / -1; margin-top: 8px; font-size: .78rem; color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
}
