/* Account V1: reuse existing routes, forms and native dialogs. */
.account-hub { padding: 0; }
.account-hub > h1 { margin: 0 0 20px; font-size: 1.6rem; text-wrap: balance; }
.account-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.account-avatar { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 50%; background: var(--espresso-900); color: var(--surface); font-weight: 750; }
.account-identity > div { flex: 1; min-width: 0; }
.account-identity h2 { margin: 0; font-size: 1.1rem; line-height: 1.5; text-wrap: balance; }
.account-identity p, .account-identity small { display: block; margin: 4px 0 0; color: var(--cement-700); font-size: .75rem; line-height: 1.5; }
.account-identity > button { flex-shrink: 0; min-width: 44px; min-height: 44px; }
.account-menu-section > h2 { margin: 0 0 12px; font-size: .875rem; color: var(--cement-700); }
.account-menu-group { overflow: hidden; border: 1px solid var(--cement-200); border-radius: 16px; background: var(--surface); margin: 0 0 24px; }
.account-menu-group .settings-row { display: flex; gap: 12px; align-items: center; width: 100%; min-height: 72px; margin: 0; padding: 16px; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: left; color: var(--espresso-950); }
.account-menu-group .settings-row + .settings-row { border-top: 1px solid var(--cement-100); }
.account-menu-group .settings-row > svg { flex-shrink: 0; }
.account-menu-group .settings-row > .feather-icon:first-child { box-sizing: border-box; width: 36px; height: 36px; padding: 8px; }
.account-menu-group .settings-row > .feather-icon:last-child { width: 20px; height: 20px; padding: 0; }
.account-menu-group .settings-row > span { flex: 1; display: grid; gap: 3px; min-width: 0; }
.account-menu-group .settings-row strong { font-size: .875rem; line-height: 1.5; }
.account-menu-group .settings-row small { color: var(--cement-700); font-size: .75rem; line-height: 1.5; }
.account-badge { display: inline-block; width: fit-content; color: var(--espresso-900); background: var(--caramel-200); padding: 2px 8px; border-radius: 12px; font-weight: 700; }
.account-logout { display: block; width: 100%; min-height: 48px; border: 1px solid var(--cement-200); border-radius: 12px; color: var(--danger); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.account-footnote { margin: 10px 0 0; color: var(--cement-700); font-size: .75rem; line-height: 1.6; text-wrap: pretty; }
.account-hub > .account-footnote { text-align: center; }
.account-menu-group .settings-row:focus-visible, .account-logout:focus-visible { outline: 3px solid var(--espresso-900); outline-offset: -3px; }
.account-sheet { width: min(100%, 480px); max-width: 100%; max-height: 90dvh; padding: 0; margin: auto auto 0; border: 1px solid var(--cement-200); border-radius: 24px 24px 0 0; background: var(--surface); color: var(--espresso-950); overflow: auto; overscroll-behavior: contain; box-shadow: var(--shadow-md); }
.account-sheet::backdrop { background: rgb(29 23 20 / 45%); }
body:has(.account-sheet[open]) { overflow: hidden; }
.member-v1-view:has(.account-sheet) { transform: none !important; opacity: 1 !important; }
.account-sheet-header { display: flex; align-items: center; gap: 12px; justify-content: space-between; position: sticky; top: 0; z-index: 1; padding: 18px 20px 14px; border-bottom: 1px solid var(--cement-100); background: var(--surface); }
.account-sheet-header h2 { margin: 0; font-size: 1.15rem; line-height: 1.4; text-wrap: balance; }
.account-sheet-header button { flex-shrink: 0; min-height: 44px; min-width: 44px; }
.account-sheet-content { padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
.account-sheet-note { margin: 0 0 20px; color: var(--cement-700); font-size: .875rem; line-height: 1.6; text-wrap: pretty; }
.account-sheet fieldset { min-width: 0; padding: 0; margin: 0 0 20px; border: 0; }
.account-sheet legend { margin-bottom: 10px; font-size: .875rem; font-weight: 750; }
.account-sheet .notification-switch-row { grid-template-columns: minmax(0, 1fr) 52px; gap: 12px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--cement-100); border-radius: 0; background: none; }
.account-sheet .notification-choice-copy strong { font-size: .875rem; }
.account-sheet .notification-choice-copy small { font-size: .75rem; color: var(--cement-700); }
.account-sheet .notification-quiet-group { display: grid; grid-template-columns: 1fr; gap: 8px; }
.account-sheet .notification-quiet-group label { min-height: 48px; }
.account-sheet .notification-actions { margin: 16px 0 0; display: grid; gap: 8px; }
.account-sheet .notification-edit-status { margin: 12px 0 0; color: var(--espresso-900); font-size: .875rem; line-height: 1.6; }
.account-preference-summary { padding: 12px; background: var(--paper); border-radius: 12px; font-size: .75rem; line-height: 1.6; }
.account-preference-summary p { margin: 4px 0 0; }
.account-sheet .v45-profile-form { margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.account-sheet .v45-profile-boundary { display: block; margin: 16px 0 0; padding: 12px; }
.account-sheet input { scroll-margin-block: 90px; }
.account-device-section > p { font-size: .875rem; line-height: 1.6; }
.account-device-list { list-style: none; padding: 0; margin: 20px 0; border: 1px solid var(--cement-200); border-radius: 16px; background: var(--surface); }
.account-device-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; }
.account-device-list li + li { border-top: 1px solid var(--cement-100); }
.account-device-list li > svg { flex-shrink: 0; }
.account-device-list li > div { flex: 1 1 120px; min-width: 0; }
.account-device-list strong { display: block; font-size: .875rem; }
.account-device-list small { display: block; margin-top: 6px; font-size: .75rem; color: var(--cement-700); }
.account-device-current { color: var(--success); font-size: .75rem; font-weight: 750; }
.account-all-sessions { margin-top: 20px; color: var(--danger); }
.member-v1-view .account-inbox-overview { margin: 0 0 16px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--cement-200); color: var(--espresso-950); border-radius: 16px; box-shadow: none; }
.account-inbox-overview::after { display: none; }
.account-inbox-overview .inbox-overview-count h2 { font-size: 1.4rem; color: inherit; }
.account-inbox-overview .inbox-overview-count span { color: var(--cement-700); }
.account-inbox-overview .inbox-mark-all { color: var(--espresso-900); background: var(--paper); }
.member-v1-view[data-app-view="activity"] .points-statement-strip, .member-v1-view[data-app-view="activity"] .points-recap-entry { display: none; }
body[data-member-v1="true"] .account-hub > h1 { margin-bottom: 24px; }
body[data-member-v1="true"] .account-identity { align-items: center; }
body[data-member-v1="true"] .account-identity p { font-size: .75rem; line-height: 1.5; }
body[data-member-v1="true"] .account-sheet-header { padding: 16px 20px; }
body[data-member-v1="true"] .account-sheet-header h2 { font-size: 1.25rem; }
body[data-member-v1="true"] .account-sheet :is(p, small) { text-wrap: pretty; }
@media (min-width: 640px) { .account-sheet { margin: auto; border-radius: 24px; } }
@media (forced-colors: active) { .account-sheet, .account-sheet-header, .account-menu-group, .account-preference-summary { background: Canvas; color: CanvasText; border-color: CanvasText; } }
