/* Account pages (app.html #page-account*, js/ui-extras.js showAccount,
   js/connections-settings.js). Laid out like Settings → Users
   (css/team-settings.css): the canon .page-head, .card, .card-head, .field,
   .input and .btn from app-shell.css, with only the spacing they need here.
   App-shell tokens only. */
.acct-card { max-width: 720px; margin-bottom: 18px; }
.card + .acct-card { margin-top: 0; }
.acct-body { padding: 18px 22px 20px; }
.acct-note { font-size: 13.5px; color: var(--text-3); line-height: 1.5; margin: 0 0 14px; }
.acct-actions { margin-top: 4px; }
.acct-body > .field + .acct-actions { margin-top: 16px; }
.account-msg:empty { display: none; }

/* Connected accounts: one row per provider, the Users page's row shape. */
.acct-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.acct-row-who { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; font-size: 15px; color: var(--text); font-weight: 500; }
.acct-pill {
  display: inline-block; font-size: 13px; font-weight: 500; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 999px;
  padding: 5px 12px; white-space: nowrap;
}

/* Claude & AI connections */
.acct-connect-lede { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.acct-connect-mark {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.acct-connect-lede p { margin: 0; font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.acct-connect-btn.btn { font-size: 15px; padding: 13px 22px; min-height: 48px; text-decoration: none; }
.acct-connect-btn.btn:hover { text-decoration: none; }
.acct-small { margin: 10px 0 0; font-size: 13px; color: var(--text-3); line-height: 1.5; }
.acct-divider { border: 0; border-top: 1px solid var(--border-soft); margin: 22px 0 18px; }
.acct-sub-h { font-size: 14px; font-weight: 600; color: var(--text); margin: 0 0 4px; }
.acct-copy-row { display: flex; gap: 8px; margin-top: 8px; }
.acct-copy-row .input { flex: 1 1 auto; min-width: 0; font-family: "JetBrains Mono", monospace; font-size: 12.5px; background: var(--surface-2); }
.acct-copy-row .btn { flex: 0 0 auto; }
.acct-steps { margin: 12px 0 0; padding-left: 20px; font-size: 13.5px; color: var(--text-3); line-height: 1.8; }
.acct-steps strong, .acct-small strong { color: var(--text); font-weight: 500; }
.acct-list { padding: 4px 22px 8px; }
.acct-conn-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border-soft); }
.acct-conn-row:first-child { border-top: 0; }
.acct-conn-who { flex: 1 1 auto; min-width: 0; }
.acct-conn-name { font-size: 15px; color: var(--text); font-weight: 500; overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acct-conn-when { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.acct-empty { padding: 14px 0; font-size: 14px; color: var(--text-3); }

/* The top-right corner belongs to the hamburger at <=1100px (fixed, 12px in;
   app-styles-v2.css). A long heading like "Claude & AI connections" ran under
   it at 390px, so the head reserves the corner, the way .cc-bar does. */
@media (max-width: 1100px) {
  #page-account .page-head, [id^="page-account-"] .page-head { padding-right: 56px; }
}

@media (max-width: 560px) {
  .acct-body { padding: 16px 16px 18px; }
  .acct-list { padding: 4px 16px 8px; }
  .acct-actions .btn, .acct-connect-btn.btn { width: 100%; justify-content: center; }
  .acct-conn-row { flex-wrap: wrap; }
  .acct-conn-who { flex-basis: 100%; }
}

/* Date style (round 6): the same two choices as Maya's settings, as a pair of
   buttons. The chosen one is filled, so it reads without a legend. */
.acc-date-row { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-date-row .btn { min-height: 44px; }
.acc-date-row .btn[aria-pressed="true"] { background: var(--accent, #4f46e5); color: #fff; border-color: var(--accent, #4f46e5); }
@media (max-width: 560px) { .acc-date-row .btn { width: 100%; justify-content: center; } }
