:root{color-scheme:light}
:root[data-theme=dark]{color-scheme:dark;--ink:#e2e6ea;--muted:#9faebc;--paper:#0f1c27;--white:#142636;--green:#8b9eaf;--sage:#1c3449;--gold:#d3b47d;--line:#2a3f52}
[data-theme=dark] body{background:var(--paper);color:var(--ink)}
[data-theme=dark] .admin-permission-nav a:hover,[data-theme=dark] .admin-permission-nav a.active{border-color:#42637f;background:#42637f;color:#fff}
[data-theme=dark] .site-header{background:rgba(27,36,32,.96);border-color:#ffffff12}
[data-theme=dark] .nav-links{color:#b9c5cf}
[data-theme=dark] .nav-cta{background:#42637f;color:#fff}
[data-theme=dark] .brand-mark:not(.brand-mark-logo){background:#42637f;color:#fff}
[data-theme=dark] .hero{background:#11202e}
[data-theme=dark] .hero h1 em,[data-theme=dark] .section h2 em,[data-theme=dark] .privacy-copy h2 em,[data-theme=dark] .form-aside h1 em,[data-theme=dark] .dashboard h1 em,[data-theme=dark] .not-found h1 em,[data-theme=dark] .legal-page h1 em{color:#a2b1bf}
[data-theme=dark] .eyebrow{color:#abb9c5}
[data-theme=dark] .art-halo{background:#1a3044}
[data-theme=dark] .art-card,[data-theme=dark] .floating-note{background:#182d3f;color:var(--ink);box-shadow:0 24px 70px #0005}
[data-theme=dark] .card-kicker,[data-theme=dark] .card-sign{color:#a4b2bf}
[data-theme=dark] .promise-strip{background:#152839}
[data-theme=dark] .promise-strip small,[data-theme=dark] .hero-index{color:#9eaebc}
[data-theme=dark] .section-intro>p,[data-theme=dark] .steps p,[data-theme=dark] .privacy-copy>p,[data-theme=dark] .hero-copy>p,[data-theme=dark] .form-aside>p{color:var(--muted)}
[data-theme=dark] .steps,[data-theme=dark] .steps article+article,[data-theme=dark] .steps article:nth-child(3),[data-theme=dark] .steps article{border-color:#2b4052}
[data-theme=dark] .privacy-card,[data-theme=dark] .form-aside .fee-card,[data-theme=dark] .empty-state,[data-theme=dark] .disclaimer,[data-theme=dark] .bank-box{background:#172a3b;color:#bac5cf}
[data-theme=dark] .privacy-art{background:#1b3247}
[data-theme=dark] .privacy-copy li span{color:#a3c2a6}
[data-theme=dark] .closing-cta{background:#192f43}
[data-theme=dark] .site-footer{background:#0b151e}
[data-theme=dark] .alert.success{background:#1a3145;color:#b4d4b7}
[data-theme=dark] .alert.error{background:#422c28;color:#edb6a7}
[data-theme=dark] .fee-card>span,[data-theme=dark] .fee-card small,[data-theme=dark] .bank-box small{color:#a8b6c3}
[data-theme=dark] .form-panel,[data-theme=dark] .memory-card,[data-theme=dark] .feature-grid>a,[data-theme=dark] .table-wrap,[data-theme=dark] .legal-copy{background:#142636;border-color:#2b4052;box-shadow:0 10px 35px #0002}
[data-theme=dark] .form-panel label,[data-theme=dark] .memory-card p,[data-theme=dark] .legal-copy p{color:#bec9d2}
[data-theme=dark] .form-panel input:not([type=checkbox]):not([type=file]),[data-theme=dark] .form-panel select,[data-theme=dark] .form-panel textarea,[data-theme=dark] .review-form input{background:#0f1c27;border-color:#30495e;color:#e2e6ea}
[data-theme=dark] .review-form select{background:#0f1c27;border-color:#30495e;color:#e2e6ea}
[data-theme=dark] .form-panel input::placeholder,[data-theme=dark] .review-form input::placeholder{color:#8599aa}
[data-theme=dark] .button{background:#426481;color:#fff}
[data-theme=dark] .button:hover{background:#4e7598}
[data-theme=dark] .button-outline{background:transparent;border-color:#5580a5;color:#d6dde3}
[data-theme=dark] .text-link,[data-theme=dark] .form-foot a,[data-theme=dark] .memory-actions a,[data-theme=dark] .memory-actions button{color:#afcdb4}
[data-theme=dark] .status-banner{background:#1a3145}
[data-theme=dark] .status-banner.pending{background:#393329}
[data-theme=dark] .status-icon{background:#142636;color:#b4d4b7}
[data-theme=dark] .status-banner small,[data-theme=dark] .feature-grid small,[data-theme=dark] .form-foot{color:#a9b7c3}
[data-theme=dark] .feature-grid>a>span{color:#d3b47d}
[data-theme=dark] .memory-actions,[data-theme=dark] .table-wrap th,[data-theme=dark] .table-wrap td{border-color:#2b4052}
[data-theme=dark] .table-wrap th{background:#182d3f;color:#b3bfca}
[data-theme=dark] .table-wrap td small,[data-theme=dark] .stat-grid article>span,[data-theme=dark] .stat-grid small{color:#a1b0bd}
[data-theme=dark] .badge.pending{background:#493e2a;color:#e0c68e}
[data-theme=dark] .badge.approved{background:#233443;color:#b2d8b5}
[data-theme=dark] .badge.rejected{background:#482e29;color:#e4afa0}
[data-theme=dark] .approve-button{background:#233443;color:#b2d8b5}
[data-theme=dark] .reject-button{background:#482e29;color:#e4afa0}
[data-theme=dark] .admin-count{background:#493e2a;color:#e0c68e}
[data-theme=dark] .theme-toggle{background:#1a3146;border-color:#36526a;color:#e6d19f}
.theme-toggle{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid #d9ded5;border-radius:20px;background:#f5f5ef;color:#485d4d;font-size:10px;white-space:nowrap}
.review-form select{max-width:220px;padding:8px;border:1px solid #e2e2d9;background:#fffefa;color:var(--ink);font:10px var(--sans)}
.profile-panel{max-width:680px;margin:25px 0}
.profile-panel>p{font-size:12px;color:var(--muted);margin:-13px 0 22px}
.profile-panel form{grid-template-columns:1fr 1fr;align-items:end}
.profile-panel form button{grid-column:1/-1;justify-self:start}
.theme-toggle span:first-child{font-size:15px;line-height:1}
.legal-nav{display:flex;align-items:center;gap:14px}
@media(max-width:800px){.nav-links{gap:11px}.theme-toggle{padding:7px 9px}}
@media(max-width:560px){.theme-toggle{gap:5px;padding:7px 8px;font-size:9px}.nav-links{gap:7px}.nav-links>a:nth-child(3){font-size:10px}.legal-nav{gap:8px}}
@media(max-width:560px){.profile-panel form{grid-template-columns:1fr}.profile-panel form button{grid-column:auto}.review-form{flex-wrap:wrap}.review-form select{max-width:100%}}
@media(prefers-reduced-motion:no-preference){body,.site-header,.hero,.promise-strip,.privacy-card,.form-panel,.memory-card,.feature-grid>a{transition:background-color .2s ease,color .2s ease,border-color .2s ease}}
[data-theme=dark] .privacy-notice{background:#1a3043;border-color:#324c62;color:#c9d2d9}
[data-theme=dark] .member-search input{background:#142636;border-color:#344e65;color:#e0e5e9}
[data-theme=dark] .admin-list-search select{background:#142636;border-color:#344e65;color:#e0e5e9}
[data-theme=dark] .beneficiary-card{background:var(--white);border-color:var(--line)}
[data-theme=dark] .beneficiary-remove{color:#edb6a7}
[data-theme=dark] .member-detail-card{background:#142636;border-color:#2b4052}
[data-theme=dark] .member-detail-card dl>div{border-color:#2b4052}
[data-theme=dark] .status-banner.rejected{background:#382923;border-color:#69483e}
[data-theme=dark] .writing-guide,[data-theme=dark] .writing-prompts button,[data-theme=dark] .help-list details{background:var(--white);border-color:var(--line);color:var(--ink)}
[data-theme=dark] .accessibility-tools{background:var(--white);border-color:var(--line)}
[data-theme=dark] .member-pagination a{color:#b7d2ba}
[data-theme=dark] .social-section,[data-theme=dark] .social-button,[data-theme=dark] .feedback-card,[data-theme=dark] .social-settings-panel{background:#142636;border-color:#2b4052}
[data-theme=dark] .social-button{color:#e0e5e9}
[data-theme=dark] .feedback-type,[data-theme=dark] .social-section h2 em{color:#b7d2ba}
[data-theme=dark] .feedback-note{background:#1a3145;color:#d1d8df}
[data-theme=dark] .feedback-page .form-panel select{background:#142636;border-color:#344e65;color:#e0e5e9}
[data-theme=dark] .admin-count{background:#493e2a;border-color:#66583d;color:#e0c68e}
[data-theme=dark] .notification-count{background:#e0c68e;color:#2a2418}
[data-theme=dark] .notification-menu{background:#142636;border-color:#2b4052;box-shadow:0 18px 55px #0008}
[data-theme=dark] .notification-menu-head,[data-theme=dark] .notification-item{border-color:#2b4052}
[data-theme=dark] .notification-menu-head>span{background:#493e2a;color:#e0c68e}
[data-theme=dark] .notification-item button{color:#e2e6ea}
[data-theme=dark] .notification-item button:hover,[data-theme=dark] .notification-item button:focus-visible{background:#192f43}
[data-theme=dark] .notification-status{background:#233443;color:#b2d8b5}
[data-theme=dark] .is-unread .notification-status{background:#493e2a;color:#e0c68e}
[data-theme=dark] .notification-all{color:#b7d2ba}
[data-theme=dark] .account-delete-panel,[data-theme=dark] .admin-delete-panel{background:#352724;border-color:#65433a}
[data-theme=dark] .account-welcome{background:linear-gradient(115deg,#172b3c 0%,#182c3e 64%,#162939 100%);border-color:#2b4052}
[data-theme=dark] .account-welcome h2{color:#e2e6ea}
[data-theme=dark] .account-welcome h2 em{color:#a2b1bf}
[data-theme=dark] .account-welcome-copy>p{color:#b7c3cd}
[data-theme=dark] .account-status-pill{border-color:#40617d;color:#c0d5c1}
[data-theme=dark] .account-status-pill.is-pending{border-color:#67583d;color:#e0c68e}
[data-theme=dark] .account-snapshot-grid article,[data-theme=dark] .account-privacy-note{background:var(--white);border-color:var(--line)}
[data-theme=dark] .admin-menu>summary,[data-theme=dark] .account-menu>summary{background:#182d40;border-color:#39556e}
[data-theme=dark] .admin-menu-panel,[data-theme=dark] .account-menu-panel{background:#172b3d;border-color:#39556e;box-shadow:0 28px 64px rgba(0,0,0,.48)}
[data-theme=dark] .admin-menu-panel>section,[data-theme=dark] .account-menu-panel>section{background:#122230}
[data-theme=dark] .admin-menu .admin-lang div,[data-theme=dark] .account-menu .account-lang div{background:#122230}
[data-theme=dark] .account-snapshot-grid a,[data-theme=dark] .account-secondary-link{color:#b7d2ba}
[data-theme=dark] .snapshot-icon{background:#1c3449;color:#b7d2ba}
[data-theme=dark] .account-privacy-note{color:#b1bec9}
[data-theme=dark] .account-privacy-note b{color:#e2e6ea}
[data-theme=dark] .memory-count-card{background:#2b4053}
[data-theme=dark] .account-delete-panel h2,[data-theme=dark] .admin-delete-panel h3{color:#edb6a7}
[data-theme=dark] .account-delete-panel p,[data-theme=dark] .admin-delete-panel p{color:#d4b8ae}
[data-theme=dark] .account-delete-panel form input,[data-theme=dark] .admin-delete-panel form input{background:#142636;border-color:#65433a;color:#e2e6ea}
[data-theme=dark] .danger-button{background:#7c382b;border-color:#a55240;color:#fff}
