/* Account and member layouts build on the main Diary stylesheet. */
.account-shell { max-width: 1080px; }
.account-shell p { line-height: 1.6; }
.account-shell a:not(.button-link):not(.diary-brand) { color: #276b4c; text-underline-offset: 3px; }
.diary-brand { color: #18201c; font-size: 32px; font-weight: 700; text-decoration: none; }
.account-shell .topbar { padding-bottom: 22px; border-bottom: 1px solid #e4ded2; margin-bottom: 30px; }
.account-shell [aria-current="page"] { background: #18201c; color: #fff; }
.account-heading h1 { margin: 0; font-size: 30px; letter-spacing: -.6px; }
.page-description { margin: 8px 0 26px; color: #667069; }
.account-grid { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 1.8fr); gap: 22px; align-items: start; }
.account-sidebar { display: grid; gap: 22px; min-width: 0; }
.account-card { padding: 26px; }
.account-card h2 { margin-bottom: 10px; }
.profile-avatar { width: 52px; height: 52px; display: grid; place-items: center; background: #e6f0e9; color: #25885f; border-radius: 50%; font-size: 23px; font-weight: 700; margin-bottom: 24px; }
.account-card .profile-email { font-size: 17px; overflow-wrap: anywhere; }
.profile-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0; font-size: 13px; }
.muted { color: #667069; }
.small { font-size: 13px; }
.connection-guide { background: #f4f1ea; border-radius: 8px; padding: 16px 18px; margin: 22px 0; font-size: 14px; }
.connection-guide p { margin: 0 0 12px; }
.connection-guide details p { margin: 12px 0 0; }
.connection-guide summary { cursor: pointer; color: #276b4c; font-weight: 600; }
.connection-card label { display: block; font-size: 14px; font-weight: 600; margin: 20px 0 8px; }
.connection-card input[type="file"] { padding: 10px; border-style: dashed; }
.connection-card input::file-selector-button { border: 0; border-radius: 5px; background: #ebe6db; color: #18201c; font: inherit; padding: 8px 12px; margin-right: 10px; cursor: pointer; }
.connection-card textarea { box-sizing: border-box; width: 100%; padding: 12px; border: 1px solid #d6cec0; border-radius: 8px; background: #fbfaf6; color: #18201c; font: inherit; font-size: 14px; line-height: 1.5; resize: vertical; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.connection-status { border-top: 1px solid #e4ded2; padding-top: 16px; margin-top: 24px; font-size: 14px; font-weight: 600; }
.status-badge, .count-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.status-badge.approved { color: #236044; background: #e6f0e9; }
.status-badge.pending { color: #805e16; background: #f8efd6; }
.status-badge.rejected { color: #8b3a31; background: #f9e6e1; }
.count-badge { color: #59665f; background: #ebe6db; }
.members-panel { padding: 0; margin-bottom: 24px; overflow: hidden; }
.members-heading { padding: 22px 24px; }
.members-heading h2 { margin: 0; }
.table-scroll { overflow-x: auto; }
.member-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.member-table th { color: #667069; background: #f4f1ea; font-size: 12px; font-weight: 600; }
.member-table th, .member-table td { padding: 16px 24px; border-top: 1px solid #e4ded2; }
.member-table td:first-child { max-width: 360px; }
.member-email { display: block; overflow-wrap: anywhere; font-weight: 600; }
.member-detail { display: block; color: #667069; font-size: 12px; margin-top: 6px; }
.member-actions { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.member-actions button { font-size: 13px; min-height: 36px; }
.actions-heading { text-align: right; }
.danger-button { color: #8b3a31; background: #f9e6e1; }
.danger-button:hover { background: #f1d3cb; }
.empty-state { padding: 16px 24px 32px; margin: 0; color: #667069; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.account-shell :focus-visible { outline: 2px solid #25885f; outline-offset: 3px; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-shell .topbar { align-items: flex-start; gap: 18px; }
  .account-shell .topbar-actions { gap: 6px; }
  .account-shell .topbar-actions .button-link { padding: 0 10px; font-size: 13px; }
  .account-card { padding: 22px; }
  .member-table thead { display: none; }
  .member-table tr { display: grid; grid-template-columns: 1fr auto; padding: 18px 22px; gap: 14px; border-top: 1px solid #e4ded2; }
  .member-table td { border: 0; padding: 0; }
  .member-table td:first-child { grid-column: 1 / -1; max-width: none; }
  .member-table td:last-child { align-self: center; }
  .member-actions { flex-wrap: wrap; }
}
