.member-lifecycle { margin-block: 24px; }
.member-lifecycle > h2 { margin-block: 0 14px; }
.member-lifecycle-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.member-lifecycle-option { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid; border-radius: 14px; }
.member-lifecycle-option h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.member-lifecycle-option p { margin: 0; line-height: 1.8; }
.member-lifecycle-option form, .member-lifecycle-option > a { margin-block-start: auto; align-self: flex-start; }
.member-lifecycle-archive { background: #fffbeb; border-color: #e6b85c; color: #794608; }
.member-lifecycle-delete { background: #fff5f5; border-color: #f0a4a4; color: #991b1b; }
.workspace-console .content #member-archive-submit { background: #945208; color: #fff; border: 1px solid #945208; }
.workspace-console .content #member-delete-open,
.workspace-console .content #member-delete-confirmation .member-delete-button { background: #b91c1c; color: #fff; border: 1px solid #b91c1c; }
.member-delete-dialog { width: min(640px,calc(100% - 40px)); max-height: calc(100dvh - 48px); padding: 28px; color: var(--text); background: var(--surface,#fff); border: 1px solid #e6a1a1; border-block-start: 5px solid #b91c1c; border-radius: 18px; box-shadow: 0 24px 80px #0004; overflow-y: auto; }
.member-delete-dialog::backdrop { background: #0f172aa6; backdrop-filter: blur(3px); }
.member-delete-dialog:not(:modal)[open] { position: relative; margin: 24px auto; }
.member-delete-dialog h2 { margin: 10px 0; color: #b91c1c; }
.member-delete-dialog p { line-height: 1.8; }
.member-delete-symbol { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: #b91c1c; background: #fee2e2; }
.member-delete-target strong { display: inline; font-size: 17px; }
.member-delete-target > span { white-space: nowrap; color: var(--muted); }
.member-delete-finance { padding: 12px 14px; background: #fff1f2; border-inline-start: 3px solid #b91c1c; border-radius: 6px; color: #991b1b; }
.member-delete-dialog label { display: block; margin-block: 16px 8px; font-weight: 700; }
.member-delete-dialog input[name=confirmation_name] { width: 100%; }
.member-delete-dialog .member-delete-acknowledgement { display: flex; align-items: flex-start; gap: 10px; line-height: 1.8; }
.member-delete-acknowledgement input { width: 18px; height: 18px; flex: 0 0 18px; margin-block-start: 4px; accent-color: #b91c1c; }
.member-delete-backups { display: block; color: var(--muted); line-height: 1.7; }
.member-delete-actions { display: flex; justify-content: flex-end; gap: 10px; margin-block-start: 22px; }
.member-delete-actions button:disabled { opacity: .45; cursor: not-allowed; }
html[data-theme=dark] .member-lifecycle-archive { background: #2e2514; color: #f6d18d; border-color: #836129; }
html[data-theme=dark] .member-lifecycle-delete { background: #321c20; color: #fda4af; border-color: #99454d; }
html[data-theme=dark] .member-delete-dialog { background: #17242a; }
html[data-theme=dark] .member-delete-dialog h2 { color: #fda4af; }
html[data-theme=dark] .member-delete-finance { background: #321c20; color: #fecdd3; }
@media (max-width: 700px) {
  .member-lifecycle-options { grid-template-columns: 1fr; }
  .member-delete-dialog { padding: 20px; }
  .member-delete-actions { flex-wrap: wrap; }
}
