@media screen{
html[data-theme="dark"]{color-scheme:dark;--green:#79cda0;--green-dark:#d9efdf;--forest:#d9efdf;--mint:#61b98a;--mint-pale:#254b36;--text:#d8e9de;--muted:#9bb5a5;--border:#2d4536;--surface:#192b21;--bg:#101e17;--amber:#d7b976;--red:#e5a28e;--shadow:0 8px 30px #00000013}
html[data-theme="dark"] body{background:var(--bg);color:var(--text)}
html[data-theme="dark"] .app-shell>.topbar{background:linear-gradient(105deg,#1b3d2b,#193a29 68%,#1d412e);border-color:#345d43;box-shadow:0 4px 20px #00000030}
html[data-theme="dark"] .topbar .topbar-brand{background:#e9f7ee;border-radius:9px;padding:0 7px}
html[data-theme="dark"] .topbar .sidebar-toggle,html[data-theme="dark"] .topbar .header-tool{background:#234b34;border-color:#3c654b;color:#a2dbb8}
html[data-theme="dark"] .topbar .sidebar-toggle:hover,html[data-theme="dark"] .topbar .header-tool:hover,html[data-theme="dark"] .topbar .header-tool[aria-expanded="true"]{background:#305f41;border-color:#4f825e;color:#d8f1e2}
html[data-theme="dark"] .topbar .avatar{background:#2a523a;border-color:#477252;color:#b8e6c8}
html[data-theme="dark"] .topbar .date-pill,html[data-theme="dark"] .topbar .user-text small{color:#9abda6}
html[data-theme="dark"] .topbar .user-wrap{border-color:#3b6048}
html[data-theme="dark"] .app-shell>.sidebar,html[data-theme="dark"] .panel,html[data-theme="dark"] .stat-card,html[data-theme="dark"] .account-card,html[data-theme="dark"] .settings-nav,html[data-theme="dark"] .user-menu{background:var(--surface);border-color:var(--border)}
html[data-theme="dark"] .sidebar .org-card,html[data-theme="dark"] .sidebar .org-icon,html[data-theme="dark"] .setting-icon{background:#203a2a;border-color:#2c4937;color:#a7d2b5}
html[data-theme="dark"] .nav-link{color:#a2bbaa}
html[data-theme="dark"] .nav-link:hover{background:#233e2d;color:#c8e8d1}
html[data-theme="dark"] .nav-link.active,html[data-theme="dark"] .btn.primary{background:#2c7650;color:#f1fff6}
html[data-theme="dark"] .btn.primary:hover{background:#34895d}
html[data-theme="dark"] .btn.secondary{background:#213b2b;border-color:#38573f;color:#c0ddc9}
html[data-theme="dark"] .btn.secondary:hover{background:#2a4935}
html[data-theme="dark"] .btn.ghost,html[data-theme="dark"] .icon-btn{color:#9abbA5}
html[data-theme="dark"] .btn.ghost:hover,html[data-theme="dark"] .icon-btn:hover,html[data-theme="dark"] .user-menu button:hover{background:#254331;color:#d0ebd9}
html[data-theme="dark"] .subscription-stats .stat-card{background:linear-gradient(110deg,#203b2b,#244430);border-color:#34573f}
html[data-theme="dark"] .subscription-stats .stat-top>span:first-child,html[data-theme="dark"] .stat-top{color:#b1ceba}
html[data-theme="dark"] .subscription-stats .stat-value,html[data-theme="dark"] .stat-value{color:#d6eedf}
html[data-theme="dark"] .subscription-stats .stat-value small,html[data-theme="dark"] .stat-value small{color:#9abdA6}
html[data-theme="dark"] .subscription-stats .stat-icon,html[data-theme="dark"] .stat-icon.green,html[data-theme="dark"] .stat-icon.mint{background:#2a5039;border-color:#3b6549;color:#9ed8b4}
html[data-theme="dark"] .stat-icon.amber{background:#433b27;color:#d6be82}
html[data-theme="dark"] .page-head p,html[data-theme="dark"] .panel-heading p,html[data-theme="dark"] .stat-card p,html[data-theme="dark"] .field-hint,html[data-theme="dark"] .page-tip,html[data-theme="dark"] .table-footer,html[data-theme="dark"] .row-note{color:#96b19f}
html[data-theme="dark"] .field>span{color:#b0c9b8}
html[data-theme="dark"] .field input,html[data-theme="dark"] .field select,html[data-theme="dark"] .field textarea,html[data-theme="dark"] .search-input input,html[data-theme="dark"] .range-filters input,html[data-theme="dark"] .statement-filters input{background:#14271c;color:#d5e9dc;border-color:#34513d}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#799784}
html[data-theme="dark"] .field input:focus,html[data-theme="dark"] .field select:focus,html[data-theme="dark"] .field textarea:focus{border-color:#679e78;box-shadow:0 0 0 3px #477b5530}
html[data-theme="dark"] .segmented{background:#13271b}
html[data-theme="dark"] .segmented button{color:#8fae9a}
html[data-theme="dark"] .segmented button.selected{background:#294b35;color:#d1ebda;box-shadow:none}
html[data-theme="dark"] .table-meta{border-color:var(--border)}
html[data-theme="dark"] th,html[data-theme="dark"] .subscription-table th.sticky{background:#1e3527;color:#aac4b4;border-color:#304a38}
html[data-theme="dark"] td{border-color:#2b4433}
html[data-theme="dark"] tbody tr:hover td{background:#203b2b}
html[data-theme="dark"] .subscription-table .sticky{background:#192b21}
html[data-theme="dark"] .subscription-table .current-month,html[data-theme="dark"] .subscription-table th.current-month{background:#23432e;color:#b2dcbc}
html[data-theme="dark"] tfoot td,html[data-theme="dark"] .subscription-table tfoot .sticky{background:#1f3828;border-color:#34513d}
html[data-theme="dark"] .subscription-table .phone-cell{border-color:#304e3a;box-shadow:none}
html[data-theme="dark"] .member-link{color:#c0d9c8}
html[data-theme="dark"] .member-avatar,html[data-theme="dark"] .profile-avatar,html[data-theme="dark"] .count-badge{background:#294b35;border-color:#3b5a43;color:#a7d3b7}
html[data-theme="dark"] .payment-cell.paid,html[data-theme="dark"] .type-pill.in,html[data-theme="dark"] .user-state{background:#264a34;color:#a0d9b4}
html[data-theme="dark"] .payment-cell.partial,html[data-theme="dark"] .type-pill.out,html[data-theme="dark"] .user-state.inactive{background:#433a28;color:#d9bb82}
html[data-theme="dark"] .payment-cell.unpaid,html[data-theme="dark"] .not-started{color:#6a8875}
html[data-theme="dark"] .balance-pill.settled{color:#99c8aa}
html[data-theme="dark"] .balance-pill.owed{color:#d4b680}
html[data-theme="dark"] .account-card.selected{background:linear-gradient(120deg,#23452f,#1a3023);border-color:#5a8968;box-shadow:none}
html[data-theme="dark"] .account-card>strong,html[data-theme="dark"] .ledger-summary strong,html[data-theme="dark"] .breakdown-row strong{color:#d2e9da}
html[data-theme="dark"] .account-icon,html[data-theme="dark"] .ledger-summary,html[data-theme="dark"] .member-stats,html[data-theme="dark"] .period-opening{background:#203b2a;border-color:#34503c;color:#a3c4ad}
html[data-theme="dark"] .settings-nav button.active{background:#2b4c37;color:#cbe8d5}
html[data-theme="dark"] .info-note{background:#213c2a;border-color:#34523e;color:#a8c7b2}
html[data-theme="dark"] .security-cards>div{border-color:var(--border)}
html[data-theme="dark"] .report-tabs{border-color:var(--border)}
html[data-theme="dark"] .report-tabs button{color:#91b09b}
html[data-theme="dark"] .report-tabs button.active{color:#c4e5d0}
html[data-theme="dark"] .bar-pair{background:repeating-linear-gradient(to top,transparent,transparent 44px,#2c4633 44px,#2c4633 45px)}
html[data-theme="dark"] .bar-chart{border-color:#2c4633}
html[data-theme="dark"] .bar i{color:#aac7b4}
html[data-theme="dark"] .breakdown-row{color:#acc7b7}
html[data-theme="dark"] .breakdown-row progress,html[data-theme="dark"] .breakdown-row progress::-webkit-progress-bar{background:#2b4434}
html[data-theme="dark"] .modal{background:#192c21;border-color:#39533f}
html[data-theme="dark"] .modal-header,html[data-theme="dark"] .modal-footer{background:#1d3527;border-color:#34503b}
html[data-theme="dark"] .modal-header>.icon-btn{background:#284b34}
html[data-theme="dark"] .modal-overlay{background:#00000070}
html[data-theme="dark"] .voucher dl>div{border-color:#314b39}
html[data-theme="dark"] .voucher-amount{color:#cae8d4}
html[data-theme="dark"] .global-search-field>input{background:#142e1e;border-color:#3d6249;color:#d7edde}
html[data-theme="dark"] .global-search-field>input::placeholder{color:#91b39d}
html[data-theme="dark"] .global-search-field>input:focus{background:#193725;border-color:#72a382;box-shadow:0 0 0 3px #457f5830}
html[data-theme="dark"] .global-search-results,html[data-theme="dark"] .notifications-panel{background:#1b2f23;border-color:#3a5541;box-shadow:0 17px 44px #0005}
html[data-theme="dark"] .global-search-results>[role="option"]:hover,html[data-theme="dark"] .global-search-results>[role="option"].selected{background:#2a4e37}
html[data-theme="dark"] .global-search-results strong,html[data-theme="dark"] .notification-item strong{color:#c4dfce}
html[data-theme="dark"] .global-search-results small,html[data-theme="dark"] .notification-item small{color:#95b5a0}
html[data-theme="dark"] .search-result-avatar,html[data-theme="dark"] .notification-icon{background:#2e503a;color:#a1d1b2}
html[data-theme="dark"] .notifications-heading,html[data-theme="dark"] .notification-item,html[data-theme="dark"] .notifications-footer{border-color:#304c38}
html[data-theme="dark"] .notification-item{background:#1b2f23}
html[data-theme="dark"] .notification-item.unread{background:#24442f}
html[data-theme="dark"] .notification-item:hover,html[data-theme="dark"] .notification-item.unread:hover{background:#2d5139}
html[data-theme="dark"] .notifications-footer{background:#1b3023}
html[data-theme="dark"] .notifications-footer button{color:#9ccead}
html[data-theme="dark"] .notifications-badge{background:#85cda1;color:#163c25;border-color:#1b3d2b}
html[data-theme="dark"] .notification-setting strong{color:#bfdbca}
html[data-theme="dark"] .notification-setting small{color:#94af9e}
html[data-theme="dark"] .notification-setting input[type="checkbox"]{background:#2d4b37;border-color:#45644c}
html[data-theme="dark"] .notification-setting input[type="checkbox"]:checked{background:#4c9a6b;border-color:#5cae7c}
html[data-theme="dark"] .diwan-login{background:#102018;background-image:radial-gradient(ellipse at 20% 15%,#23432e90,transparent 50%),radial-gradient(ellipse at 85% 85%,#1c392880,transparent 45%)}
html[data-theme="dark"] .diwan-login-card{background:#1a2e22;border-color:#3b5642;box-shadow:0 22px 75px #0003}
html[data-theme="dark"] .diwan-signature h1{background:#eff9f3;padding:8px 14px;border-radius:13px}
html[data-theme="dark"] .diwan-login-card .field>span{color:#b9d1c2}
html[data-theme="dark"] .diwan-login-card .login-input>input{background:#12251a;border-color:#37533f;color:#d6ecde}
html[data-theme="dark"] .password-toggle{color:#91b49d}
html[data-theme="dark"] .password-toggle:hover{background:#2b4f38;color:#d2eadb}
html[data-theme="dark"] #toast{background:#233d2c;border-color:#41624a;color:#bde1ca}
html[data-theme="dark"] #toast.error,html[data-theme="dark"] .form-error{color:#f0ac96}
html[data-theme="dark"] .empty h3{color:#accdb8}
html[data-theme="dark"] .empty>.icon{background:#264832;color:#8fbb9f}
html[data-theme="dark"] .loading-wordmark{background:#edf8f0;border-radius:13px;padding:8px}
}
