/* Generated by scripts/gen-dark-css.py — edit the .manual.css source, not this file. */

/* Dark theme tokens — cool charcoal (less blue than prior #161d2c) */
html[data-theme='dark'] {
  color-scheme: dark;
  --nf-green: #4fbd41;
  --nf-green-dark: #45a838;
  --nf-ink: #e8edf5;
  --nf-muted: #8b97ab;
  --nf-card: #24303c;
  --nf-bg: #1b242f;
  --nf-border: #334050;
  --nf-danger: #ec5f50;
  --nf-dark-elev: #2a3542;
  --nf-dark-elev-2: #344252;
  --nf-dark-group: #141a22;
  --nf-dark-detail: #161d26;
  --nf-dark-bubble: #1b242f;
  /* Own expense bubbles — same hue as --nf-green, less neon */
  --nf-dark-bubble-mine: #3d8f4a;
  --nf-dark-bubble-mine-sel: #347a40;
  background: #1b242f;
  --nf-list: var(--nf-bg);
  /* Cold skeleton shimmer */
  --skel-bone: #2a3542;
  --skel-shine: #3a4756;
  --skel-page: var(--nf-bg, #1b242f);
}

/*
 * iOS Safari/Chrome chrome: plaque #343739, buttons #5E6367.
 * Cool charcoal (#1b242f) + blue veils clash — match browser UI on Apple touch.
 */
html[data-theme='dark'].nf-ios {
  --nf-ink: #f2f2f7;
  --nf-muted: #a8adb2;
  --nf-card: #5e6367;
  --nf-bg: #343739;
  --nf-border: #6a6f73;
  --nf-dark-elev: #5e6367;
  --nf-dark-elev-2: #6a6f73;
  --nf-dark-group: #2c2f31;
  --nf-dark-detail: #2f3235;
  --nf-dark-bubble: #343739;
  background: #343739;
  accent-color: #5e6367;
  --nf-list: var(--nf-bg);
  /* Cold skeleton shimmer — gray plaque */
  --skel-bone: #45494d;
  --skel-shine: #5e6367;
  --skel-page: var(--nf-bg, #343739);
}

/* One-frame flip when toggling — no staggered colour transitions */
html.nf-theme-switching *,
html.nf-theme-switching *::before,
html.nf-theme-switching *::after {
  transition: none !important;
}


/* ---- auto-mapped from money-app.css ---- */

html[data-theme='dark'] .money-body {
  color: var(--nf-ink);
  background: var(--nf-bg);
}

html[data-theme='dark'] .money-top {
  background: var(--nf-card);
  border-bottom: 1px solid var(--nf-border);
}

html[data-theme='dark'] .money-home-mode-tab {
  border: none;
  background: transparent;
  color: var(--nf-ink-muted, #9aa2b0);
}

html[data-theme='dark'] .money-home-mode-tab-ico {
  color: inherit;
}

html[data-theme='dark'] .money-home-mode-tab.is-active {
  background: var(--nf-card);
  color: #2f8f28;
}

html[data-theme='dark'] .money-home-mode-tab:active {
  background: color-mix(in srgb, var(--nf-card) 70%, transparent);
}

html[data-theme='dark'] .money-overall-seg.is-income .money-range-progress-fill {
  background: #2aa8a0;
  background-color: #2aa8a0;
}

html[data-theme='dark'] .money-cats-search-toggle,
html[data-theme='dark'] .money-cats-manage {
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-cats-search-close {
  border: none;
  color: #afb5c0;
  background: transparent;
  box-shadow: none;
}

html[data-theme='dark'] .money-cats-search-toggle.is-active {
  color: #3391ce;
}

html[data-theme='dark'] .money-spaces-more {
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-spaces-quick-panel {
  background: var(--nf-card);
  border: 1px solid var(--nf-border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.436);
}

html[data-theme='dark'] .money-spaces-quick-title {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-spaces-quick-add {
  border: none;
  border-top: 1px solid var(--nf-border);
  background: transparent;
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-spaces-quick-add:hover,
html[data-theme='dark'] .money-spaces-quick-add:active {
  background: color-mix(in srgb, var(--nf-ink) 6%, var(--nf-card));
}

html[data-theme='dark'] .money-spaces-quick-add svg {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-spaces-quick-item {
  border: none;
  background: transparent;
  color: inherit;
}

html[data-theme='dark'] .money-spaces-quick-item:hover,
html[data-theme='dark'] .money-spaces-quick-item:active {
  background: color-mix(in srgb, var(--nf-ink) 6%, var(--nf-card));
}

html[data-theme='dark'] .money-spaces-quick-item.is-active {
  background: #32373f;
}

html[data-theme='dark'] .money-spaces-quick-meta {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-spaces-quick-item.is-active .money-spaces-quick-meta {
  color: #3391ce;
}

html[data-theme='dark'] .money-cats-search {
  background: #2f343c;
  color: #778294;
}

html[data-theme='dark'] .money-cats-select-cancel {
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-cats-select-count {
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-cats-select-archive,
html[data-theme='dark'] .money-cats-select-edit {
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-budget-check {
  color: #ffffff;
}

html[data-theme='dark'] .money-budget-check-ring {
  fill: #4f5764;
  stroke: #ffffff;
}

html[data-theme='dark'] .money-budget-row.is-selected .money-budget-check {
  color: #ffffff;
}

html[data-theme='dark'] .money-budget-row.is-selected .money-budget-check-ring {
  fill: #46ae37;
  stroke: #ffffff;
}

html[data-theme='dark'] .money-budget-row.is-selected .money-budget-check-tick {
  stroke: #fff;
}

html[data-theme='dark'] .money-bulk-tabs {
  background: #353a43;
}

html[data-theme='dark'] .money-bulk-tab {
  border: none;
  background: transparent;
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-bulk-tab.is-active {
  background: #222b3d;
  color: var(--nf-ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.292);
}

html[data-theme='dark'] .money-modal.money-bulk-modal {
  background: #333841;
  border: none;
  box-shadow: none;
}

html[data-theme='dark'] .money-bulk-root {
  background: transparent;
}

html[data-theme='dark'] .money-bulk-chrome {
  background: #333841;
}

html[data-theme='dark'] .money-bulk-back.money-detail-back,
html[data-theme='dark'] .money-bulk-close.money-detail-back {
  background: transparent;
  box-shadow: none;
}

html[data-theme='dark'] .money-bulk-title {
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-bulk-nav {
  background: #222b3d;
}

html[data-theme='dark'] .money-bulk-link {
  border: none;
  background: transparent;
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-bulk-link:active {
  background: rgba(75, 186, 59, 0.16);
}

html[data-theme='dark'] .money-bulk-link-sub {
  color: #778294;
}

html[data-theme='dark'] .money-bulk-link-chevron {
  color: #778294;
}

html[data-theme='dark'] .money-bulk-sheet {
  background: #333841;
}

html[data-theme='dark'] .money-bulk-sheet-foot {
  background: #333841;
}

html[data-theme='dark'] .money-bulk-list {
  background: #222b3d;
}

html[data-theme='dark'] .money-bulk-row {
  background: transparent;
  box-shadow: none;
}

html[data-theme='dark'] .money-bulk-row + .money-bulk-row {
  border-top: 1px solid #383e48;
}

html[data-theme='dark'] .money-bulk-row-label {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-bulk-row-input {
  border: 1px solid #4a515e;
  background: #222b3d;
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-bulk-row-input:focus {
  outline: none;
  border-color: #3391ce;
  box-shadow: 0 0 0 3px rgba(51, 145, 206, 0.18);
}

html[data-theme='dark'] .money-bulk-panel-category,
html[data-theme='dark'] .money-bulk-panel-date,
html[data-theme='dark'] #txs-bulk-panel-category,
html[data-theme='dark'] #txs-bulk-panel-date {
  background: #222b3d;
}

html[data-theme='dark'] .money-bulk-category-field select,
html[data-theme='dark'] .money-bulk-category-field input[type='date'] {
  border: 1px solid #414752;
  background: #222b3d;
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-bulk-sheet-scroll > .money-hint {
  color: #778294;
}

html[data-theme='dark'] .money-cats-search-ico {
  color: #778294;
}

html[data-theme='dark'] .money-cats-search-input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-cats-search-input::placeholder {
  color: #707b8f;
}

html[data-theme='dark'] .money-cats-search:focus-within {
  background: #343942;
  color: #919aa9;
}

html[data-theme='dark'] .money-budgets-empty-search {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-range-progress {
  background: transparent;
}

html[data-theme='dark'] .money-range-progress-scale {
  color: #727d90;
}

html[data-theme='dark'] .money-range-progress-mark.is-plan {
  color: #727d90;
}

html[data-theme='dark'] .money-range-progress-track {
  background: #3d434e;
}

html[data-theme='dark'] .money-range-progress-fill {
  background: #46ae37;
  background-color: #46ae37;
}

html[data-theme='dark'] .money-range-progress-plan-tick {
  background: #616b7c;
}

html[data-theme='dark'] .money-range-progress-time-mark {
  border-color: #c8ccd3 transparent transparent transparent;
  box-shadow: 0 0 0.6px rgba(255, 255, 255, 0.066);
}

html[data-theme='dark'] .money-range-progress-track.is-time {
  background: #3d434e;
}

html[data-theme='dark'] .money-range-progress-fill.is-time {
  background: #5a6373;
  background-color: #5a6373;
}

html[data-theme='dark'] .money-range-progress-scale.is-time {
  color: #727d90;
}

html[data-theme='dark'] .money-range-progress-cur.is-time {
  color: #8c95a5;
}

html[data-theme='dark'] .money-stats-hint {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-stats-block {
  background: #2f343c;
  border: 1px solid rgba(232, 236, 245, 0.069);
}

html[data-theme='dark'] .money-stats-block-label {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-period,
html[data-theme='dark'] .money-period-trigger {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-period-trigger {
  border: none;
  background: transparent;
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-period-trigger:hover {
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-hint {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-period-preset {
  border: none;
  background: transparent;
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-period-preset:hover {
  background: #31363f;
}

html[data-theme='dark'] .money-period-preset.is-active {
  background: #393f49;
  color: var(--nf-green-dark);
}

html[data-theme='dark'] .money-period-preset:disabled,
html[data-theme='dark'] .money-period-preset.is-disabled {
  color: #697486;
  background: transparent;
}

html[data-theme='dark'] .money-period-preset:disabled:hover,
html[data-theme='dark'] .money-period-preset.is-disabled:hover {
  background: transparent;
}

html[data-theme='dark'] .money-period-summary {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-status {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-icon-btn {
  border: none;
  background: transparent;
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-burger {
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

html[data-theme='dark'] .money-burger::before {
  border-top: 2px solid currentColor;
}

html[data-theme='dark'] .money-backdrop {
  background: rgba(0, 0, 0, 0.57);
}

html[data-theme='dark'] .money-sidebar {
  background: var(--nf-card);
  border-right: 1px solid var(--nf-border);
}

html[data-theme='dark'] .money-avatar {
  background: #7cbc6e;
  color: #ffffff;
}

html[data-theme='dark'] .money-profile-email {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-field {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-field input,
html[data-theme='dark'] .money-field select,
html[data-theme='dark'] .money-form input,
html[data-theme='dark'] .money-form select,
html[data-theme='dark'] .money-inline-form input {
  color: var(--nf-ink);
  border: 1px solid var(--nf-border);
  background: #222b3d;
}

html[data-theme='dark'] .money-nav-item {
  border: 1px solid var(--nf-border);
  background: #2e333b;
  color: inherit;
}

html[data-theme='dark'] .money-nav-item:hover {
  border-color: var(--nf-green);
  background: #333840;
}

html[data-theme='dark'] .money-nav-ico--workspace {
  background: #3b82f6;
}

html[data-theme='dark'] .money-nav-ico--period {
  background: #14b8a6;
}

html[data-theme='dark'] .money-nav-ico--stats {
  background: #8b5cf6;
}

html[data-theme='dark'] .money-nav-ico--archive {
  background: #f59e0b;
}

html[data-theme='dark'] .money-nav-ico--theme {
  background: #768194;
}

html[data-theme='dark'] .money-nav-ico--images {
  background: #ec4899;
}

html[data-theme='dark'] .money-nav-ico--lang {
  background: #0ea5e9;
}

html[data-theme='dark'] .money-nav-ico--logout {
  background: #ef4444;
}

html[data-theme='dark'] .money-nav-item--logout .money-nav-item-title {
  color: #c0392b;
}

html[data-theme='dark'] .money-nav-item-sub {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-nav-item-chevron {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-sidebar-section {
  border: 1px solid var(--nf-border);
  background: #2e333b;
}

html[data-theme='dark'] .money-sidebar-section-title {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-theme-seg {
  background: color-mix(in srgb, var(--nf-ink) 7%, transparent);
}

html[data-theme='dark'] .money-theme-seg-btn {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-theme-seg-opt input:checked + .money-theme-seg-btn {
  background: var(--nf-card);
  color: var(--nf-ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.388);
}

html[data-theme='dark'] .money-theme-seg-opt input:focus-visible + .money-theme-seg-btn {
  outline: 2px solid var(--nf-green);
}

html[data-theme='dark'] .money-theme-swatch {
  border: 1px solid var(--nf-border);
}

html[data-theme='dark'] .money-theme-swatch.is-light {
  background: #31363f;
}

html[data-theme='dark'] .money-theme-swatch.is-dark {
  background: #484f5b;
}

html[data-theme='dark'] .money-theme-swatch.is-gray {
  background: #484f5b;
}

html[data-theme='dark'] .money-pref-toggle-sub {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-pref-switch {
  background: #545c6b;
}

html[data-theme='dark'] .money-pref-switch::after {
  background: #222b3d;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.532);
}

html[data-theme='dark'] .money-pref-toggle input:checked + .money-pref-switch {
  background: var(--nf-green);
}

html[data-theme='dark'] .money-pref-toggle input:focus-visible + .money-pref-switch {
  outline: 2px solid var(--nf-green);
}

html[data-theme='dark'] .money-sidebar-foot {
  border-top: 1px solid var(--nf-border);
}

html[data-theme='dark'] .money-top-period {
  border: 1px solid var(--nf-border);
  background: var(--nf-card);
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-top-period-ico {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-logout-root {
  background: transparent;
}

html[data-theme='dark'] .money-logout-root .money-modal-backdrop {
  background: rgba(0, 0, 0, 0.67);
}

html[data-theme='dark'] .money-logout-modal {
  border: none;
  box-shadow: none;
}

html[data-theme='dark'] .money-logout-title {
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-logout-account {
  border: 1px solid var(--nf-border);
  background: #222b3d;
}

html[data-theme='dark'] .money-logout-email {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-logout-hint {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-btn-ink {
  border: none;
  background: #484f5b !important;
  color: #ffffff !important;
}

html[data-theme='dark'] .money-btn-ink:hover,
html[data-theme='dark'] .money-btn-ink:hover:not(:disabled) {
  background: #484f5b !important;
}

@media (min-width: 860px) {
  html[data-theme='dark'] .money-logout-root {
    background: transparent;
  }
  html[data-theme='dark'] .money-logout-root .money-modal-backdrop {
    background: rgba(0, 0, 0, 0.67);
  }
  html[data-theme='dark'] .money-logout-modal {
    border: 1px solid var(--nf-border);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.532);
  }
}

html[data-theme='dark'] .money-modal-backdrop {
  background: rgba(0, 0, 0, 0.67);
}

html[data-theme='dark'] .money-modal {
  background: var(--nf-card);
  border: 1px solid var(--nf-border);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.532);
}

html[data-theme='dark'] .money-modal-head {
  border-bottom: 1px solid var(--nf-border);
}

html[data-theme='dark'] .money-modal-section-title {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-space-row {
  border: 1px solid var(--nf-border);
  background: #222b3d;
  color: inherit;
}

html[data-theme='dark'] .money-space-row:hover {
  border-color: #5d6676;
  background: #2e333b;
}

html[data-theme='dark'] .money-space-row.is-active {
  border-color: var(--nf-green);
  background: #333840;
}

html[data-theme='dark'] .money-space-row-meta {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-space-row-badge {
  color: var(--nf-green-dark);
  background: #3b414b;
}

html[data-theme='dark'] .money-link {
  color: var(--nf-ink);
  background: none;
  border: none;
  text-decoration: none;
}

html[data-theme='dark'] .money-chip {
  border: 1px solid var(--nf-border);
  background: #222b3d;
  color: var(--nf-ink);
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme='dark'] .money-chip:hover {
    border-color: var(--nf-green);
    color: var(--nf-green-dark);
  }
}

html[data-theme='dark'] .money-chip-ok {
  background: var(--nf-green);
  border-color: var(--nf-green);
  color: #ffffff;
}

html[data-theme='dark'] .money-chip-danger {
  color: var(--nf-danger);
  border-color: rgba(200, 59, 45, 0.56);
}

html[data-theme='dark'] .money-chip-danger:hover {
  color: var(--nf-danger);
  border-color: var(--nf-danger);
  background: rgba(200, 59, 45, 0.096);
}

html[data-theme='dark'] .money-readonly {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-invites[hidden] {
  border: none !important;
}

html[data-theme='dark'] .money-invite-card {
  background: #31363f;
  border: none;
  color: inherit;
}

html[data-theme='dark'] .money-invite-card + .money-invite-card {
  border-top: 1px solid rgba(232, 236, 245, 0.069);
}

html[data-theme='dark'] .money-invite-text strong {
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-invite-text span {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-invite-btn {
  border: none;
  background: #3b414b;
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-invite-btn:hover {
  background: #454b57;
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-invite-btn.is-accept {
  background: #3f4651;
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-invite-btn.is-accept:hover {
  background: #4a515e;
}

html[data-theme='dark'] .money-pane {
  background: var(--nf-card);
  border: none;
}

html[data-theme='dark'] .money-splitter {
  border: none;
  background: var(--nf-border);
}

html[data-theme='dark'] .money-splitter:hover,
html[data-theme='dark'] .money-body.is-resizing .money-splitter {
  background: var(--nf-green);
}

html[data-theme='dark'] .money-budgets::-webkit-scrollbar-track,
html[data-theme='dark'] .money-detail-scroll::-webkit-scrollbar-track {
  background: transparent;
}

html[data-theme='dark'] .money-budgets::-webkit-scrollbar-thumb,
html[data-theme='dark'] .money-detail-scroll::-webkit-scrollbar-thumb {
  background: rgba(232, 236, 245, 0.253);
}

html[data-theme='dark'] .money-budgets::-webkit-scrollbar-thumb:hover,
html[data-theme='dark'] .money-detail-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 236, 245, 0.437);
}

html[data-theme='dark'] .money-skel-row {
  background: transparent;
}

html[data-theme='dark'] .money-skel-ring,
html[data-theme='dark'] .money-skel-line {
  background: linear-gradient(
    90deg,
    var(--skel-bone) 0%,
    var(--skel-shine) 42%,
    var(--skel-bone) 84%
  );
  background-size: 220% 100%;
}

html[data-theme='dark'] .money-skel-ring-core {
  background: var(--skel-page);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Cold overall shimmer track/fill already use --skel-*; reinforce vs green fill rules */
html[data-theme='dark'].nf-cold:not(.nf-ready) #overall-split-dock .money-range-progress-track {
  background: var(--skel-bone) !important;
  background-color: var(--skel-bone) !important;
}

html[data-theme='dark'].nf-cold:not(.nf-ready) #overall-split-dock .money-range-progress-fill {
  background: linear-gradient(
    90deg,
    var(--skel-bone) 0%,
    var(--skel-shine) 45%,
    var(--skel-bone) 90%
  ) !important;
  background-color: transparent !important;
  background-size: 220% 100%;
}

html[data-theme='dark'] .money-budget-row {
  border: none;
  border-bottom: none;
  background: transparent;
  color: inherit;
}

html[data-theme='dark'] .money-budget-drag {
  border: none;
  background: transparent;
  color: #737e91;
}

html[data-theme='dark'] .money-budget-drag:active {
  color: #969fad;
}

html[data-theme='dark'] .money-ico-drag {
  fill: currentColor;
}

html[data-theme='dark'] .money-budget-card {
  background: transparent;
  border: none;
  box-shadow: none;
}

html[data-theme='dark'] .money-budget-placeholder {
  background: rgba(75, 186, 59, 0.16);
}

html[data-theme='dark'] .money-budget-row.is-dragging {
  background: transparent;
}

html[data-theme='dark'] .money-budget-row.is-dragging .money-budget-card {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.484), 0 0 0 1px rgba(0, 0, 0, 0.244);
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme='dark'] .money-budget-row:hover {
    background: rgba(232, 236, 245, 0.04);
  }
  html[data-theme='dark'] .money-budget-row:hover .money-budget-card {
    background: transparent;
  }
}

html[data-theme='dark'] .money-budget-row.is-active {
  background: rgba(75, 186, 59, 0.16);
  box-shadow: none;
}

html[data-theme='dark'] .money-budget-row.is-active .money-budget-card {
  background: transparent;
  border: none;
  box-shadow: none;
}

html[data-theme='dark'] .money-budget-row.is-selected {
  background: rgba(75, 186, 59, 0.224);
}

html[data-theme='dark'] .money-budget-row.is-archived .nm::after {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-budget-unread {
  background: #e67e22;
  color: #ffffff;
}

html[data-theme='dark'] .money-budget-ring .money-ring-img,
html[data-theme='dark'] .money-detail-ring .money-ring-img {
  background: #363b44;
  filter: brightness(1.12) saturate(0.82) contrast(0.96);
}

html[data-theme='dark'] .money-budget-ring.has-image::after,
html[data-theme='dark'] .money-detail-ring.has-image::after {
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.45), inset 0 -2px 5px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

html[data-theme='dark'] .money-budget-ring .money-ring-letter,
html[data-theme='dark'] .money-detail-ring .money-ring-letter {
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.45), inset 0 -2px 5px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  filter: brightness(1.12) saturate(0.82) contrast(0.96);
}

html[data-theme='dark'] .money-budget-ring-track,
html[data-theme='dark'] .money-budget-ring-fill {
  fill: none;
}

html[data-theme='dark'] .money-budget-ring-track {
  stroke: #414853;
}

html[data-theme='dark'] .money-budget-ring-time-mark {
  fill: #ccd0d7;
  stroke: rgba(255, 255, 255, 0.11);
}

html[data-theme='dark'] .money-budget-ring-fill {
  stroke: #46ae37;
}

html[data-theme='dark'] .money-budget-ring .money-ring-pct {
  color: #46ae37;
}

html[data-theme='dark'] .money-cat-images-label {
  color: var(--nf-muted, #959dac);
}

html[data-theme='dark'] .money-cat-image-opt {
  border: 2px solid transparent;
  background: #32373f;
}

html[data-theme='dark'] .money-cat-image-opt.is-selected {
  border-color: #46ae37;
}

html[data-theme='dark'] .money-cat-image-opt img {
  filter: brightness(1.12) saturate(0.82) contrast(0.96);
}

html[data-theme='dark'] .money-cat-image-opt::after {
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.45), inset 0 -2px 5px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

html[data-theme='dark'] .money-cat-image-del {
  border: none;
  background: #484f5b;
  color: #ffffff;
}

html[data-theme='dark'] .money-cat-image-share {
  color: var(--nf-ink, #dbdee3);
}

html[data-theme='dark'] .money-bulk-row-image {
  border-bottom: 1px solid rgba(232, 236, 245, 0.092);
}

html[data-theme='dark'] .money-bulk-row-image:last-child {
  border-bottom: 0;
}

html[data-theme='dark'] .money-bulk-image-preview {
  background: #eef2ef;
  background-image: none;
  color: #fff;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.45), inset 0 -2px 5px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

html[data-theme='dark'] .money-bulk-image-preview img {
  filter: brightness(1.12) saturate(0.82) contrast(0.96);
}

html[data-theme='dark'] .money-bulk-image-preview::after {
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.45), inset 0 -2px 5px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

html[data-theme='dark'] .money-bulk-image-opt {
  border: 2px solid transparent;
  background: #32373f;
}

html[data-theme='dark'] .money-bulk-image-opt.is-selected {
  border-color: #46ae37;
}

html[data-theme='dark'] .money-budget-meta {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-budget-more {
  border: none;
  background: transparent;
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-budget-more svg {
  fill: currentColor;
}

html[data-theme='dark'] .money-budget-more:hover,
html[data-theme='dark'] .money-budget-more:focus-visible {
  color: var(--nf-ink);
  background: rgba(232, 236, 245, 0.069);
}

html[data-theme='dark'] .money-budget-row.is-active .money-budget-more {
  color: inherit;
}

html[data-theme='dark'] .money-budget-row.is-active .money-budget-more:hover {
  background: rgba(34, 43, 61, 0.18);
}

html[data-theme='dark'] .money-detail-back,
html[data-theme='dark'] .money-detail-edit,
html[data-theme='dark'] .money-detail-archive {
  border: none;
  background: rgba(34, 43, 61, 0.45);
  color: var(--nf-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

html[data-theme='dark'] .money-detail-select-count {
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-tx-check {
  border: none;
  background: transparent;
  color: #ffffff;
}

html[data-theme='dark'] .money-tx-check-ring {
  fill: none;
  stroke: #ffffff;
}

html[data-theme='dark'] .money-tx-row.is-selected .money-tx-check {
  color: #46ae37;
}

html[data-theme='dark'] .money-tx-row.is-selected .money-tx-check-ring {
  fill: #46ae37;
  stroke: #46ae37;
}

html[data-theme='dark'] .money-tx-row.is-selected .money-tx-check-tick {
  stroke: #fff;
}

html[data-theme='dark'] .money-ctx-menu {
  border: none;
  background: #222b3d;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.484), 0 0 0 1px rgba(0, 0, 0, 0.244);
}

html[data-theme='dark'] .money-ctx-menu-item {
  border: none;
  background: transparent;
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-ctx-menu-item:hover,
html[data-theme='dark'] .money-ctx-menu-item:focus-visible {
  background: #323740;
  outline: none;
}

html[data-theme='dark'] .money-ctx-menu-item[data-tx-ctx='delete'],
html[data-theme='dark'] .money-ctx-menu-item[data-cat-ctx='delete'] {
  color: #c0392b;
}

html[data-theme='dark'] .money-detail-heading {
  background: rgba(34, 43, 61, 0.45);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

html[data-theme='dark'] .money-detail-ring::before {
  background: #323740;
}

html[data-theme='dark'] .money-detail-ring .money-budget-ring-track,
html[data-theme='dark'] .money-detail-ring .money-budget-ring-fill {
  fill: none;
}

html[data-theme='dark'] .money-detail-ring .money-budget-ring-track {
  stroke: #414853;
}

html[data-theme='dark'] .money-detail-ring .money-budget-ring-time-mark {
  fill: #ccd0d7;
  stroke: rgba(255, 255, 255, 0.11);
}

html[data-theme='dark'] .money-detail-ring .money-ring-pct {
  color: #46ae37;
}

html[data-theme='dark'] .money-detail-title {
  background: transparent;
  box-shadow: none;
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-detail-figures {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-stat-circle {
  background: rgba(34, 43, 61, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.292);
}

html[data-theme='dark'] .money-stat-value {
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-stat-label {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-donut-track,
html[data-theme='dark'] .money-donut-value {
  fill: none;
}

html[data-theme='dark'] .money-donut-track {
  stroke: rgba(255, 255, 255, 0.11);
}

html[data-theme='dark'] .money-donut-value {
  stroke: var(--detail-accent, var(--nf-green));
}

html[data-theme='dark'] .money-donut-value.is-over {
  stroke: var(--nf-danger);
}

html[data-theme='dark'] .money-donut-pct {
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-donut-pct.is-over {
  color: var(--nf-danger);
}

html[data-theme='dark'] .money-detail-meta {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-list li,
html[data-theme='dark'] .money-tx-row {
  border: 1px solid var(--nf-border);
  background: #222b3d;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.34);
}

html[data-theme='dark'] .money-tx-row.is-unread {
  background: #333840;
  border-color: rgba(66, 133, 244, 0.448);
}

html[data-theme='dark'] .money-list > .money-tx-day {
  border: none;
  background: transparent;
  box-shadow: none;
}

html[data-theme='dark'] .money-tx-day-pill {
  background: rgba(232, 236, 245, 0.253);
  color: #ffffff;
  text-shadow: none;
}

html[data-theme='dark'] .money-tx-meta {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-tx-del {
  border: none;
  background: none;
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-empty {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-empty-pick {
  color: #7e889a;
}

html[data-theme='dark'] .money-empty-tx {
  color: #ffffff;
}

html[data-theme='dark'] .money-cats-foot {
  border-top: 1px solid var(--nf-border);
  background: var(--nf-card);
}

html[data-theme='dark'] .money-budget-row.is-hold-armed .money-budget-card,
html[data-theme='dark'] .money-tx-row.is-hold-armed {
  box-shadow: 0 0 0 2px rgba(70, 174, 55, 0.35);
}

html[data-theme='dark'] .money-modal-root.is-ctx {
  background: transparent;
}

html[data-theme='dark'] .money-modal-root.is-ctx .money-modal-backdrop {
  background: rgba(0, 0, 0, 0.34);
}

html[data-theme='dark'] .money-modal-root.is-ctx .money-modal {
  border: 1px solid var(--nf-border);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.58);
}

html[data-theme='dark'] .money-form {
  border-top: 1px solid var(--nf-border);
  background: var(--nf-card);
}

html[data-theme='dark'] .money-form-line .money-exp-date {
  border: 1px solid var(--nf-border);
  background: #222b3d;
  color: var(--nf-muted, #8b94a4);
}

html[data-theme='dark'] .money-form-line .money-exp-date.is-not-today {
  color: var(--nf-ink);
  border-color: rgba(232, 236, 245, 0.253);
}

html[data-theme='dark'] .money-form-line .money-exp-date:focus {
  outline: none;
  border-color: rgba(75, 186, 59, 0.88);
}

/* Blue dark theme — calendar chip on cool navy surfaces */
html[data-theme='dark'] .money-exp-cal {
  background: color-mix(in srgb, #e8ecf5 12%, #222b3d);
  color: #e8ecf5;
  box-shadow: inset 0 0 0 1px rgba(232, 236, 245, 0.16);
}

html[data-theme='dark'] .money-exp-cal:active {
  background: color-mix(in srgb, #e8ecf5 18%, #222b3d);
}

html[data-theme='dark'] .money-exp-cal.is-not-today {
  box-shadow: inset 0 0 0 1.5px rgba(75, 186, 59, 0.55);
}

/* Gray dark (nf-ios) — neutral chip, not blue-tinted */
html[data-theme='dark'].nf-ios .money-exp-cal {
  background: color-mix(in srgb, #f2f2f2 10%, #3a3e42);
  color: #f2f2f2;
  box-shadow: inset 0 0 0 1px rgba(242, 242, 242, 0.14);
}

html[data-theme='dark'].nf-ios .money-exp-cal:active {
  background: color-mix(in srgb, #f2f2f2 16%, #3a3e42);
}

html[data-theme='dark'] .money-form-line #exp-line {
  color: var(--nf-ink);
  border: 1px solid var(--nf-border);
  background: #222b3d;
}

html[data-theme='dark'] .money-form label {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-btn {
  border: none;
  color: #ffffff;
  background: var(--nf-green);
}

html[data-theme='dark'] .money-btn:hover:not(:disabled) {
  background: var(--nf-green-dark);
}

html[data-theme='dark'] .money-msg.ok {
  color: var(--nf-green-dark);
}

html[data-theme='dark'] .money-msg.err {
  color: var(--nf-danger);
}

html[data-theme='dark'] .money-member-meta .em {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-member-actions select {
  border: 1px solid var(--nf-border);
  background: #222b3d;
}

html[data-theme='dark'] .money-archive-hint {
  color: var(--nf-muted);
}

html[data-theme='dark'] .money-archive-row {
  border: 1px solid var(--nf-border);
  background: var(--nf-surface, #222b3d);
}

html[data-theme='dark'] .money-archive-av {
  background: var(--nf-border);
}

html[data-theme='dark'] .money-archive-av img {
  filter: brightness(1.12) saturate(0.82) contrast(0.96);
}

html[data-theme='dark'] .money-archive-av.has-image::after {
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.45), inset 0 -2px 5px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

html[data-theme='dark'] .money-archive-letter {
  filter: brightness(1.12) saturate(0.82) contrast(0.96);
}

html[data-theme='dark'] .money-archive-empty {
  color: var(--nf-muted);
}

@media (max-width: 859px) {
  html[data-theme='dark'] .money-budget-row:active,
  html[data-theme='dark'] .money-budget-row:focus,
  html[data-theme='dark'] .money-budget-row:focus-visible,
  html[data-theme='dark'] .money-budget-row.is-active,
  html[data-theme='dark'] .money-budget-row.is-active:active {
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    outline: none !important;
  }
  html[data-theme='dark'] .money-budget-row.is-selected,
  html[data-theme='dark'] .money-budget-row.is-selected:active,
  html[data-theme='dark'] .money-budget-row.is-selected:focus,
  html[data-theme='dark'] .money-budget-row.is-selected:focus-visible,
  html[data-theme='dark'] .money-budget-row.is-selected.is-active,
  html[data-theme='dark'] .money-budget-row.is-selected.is-active:active {
    background: rgba(75, 186, 59, 0.224) !important;
  }
  html[data-theme='dark'] .money-budget-card {
    border: none;
    box-shadow: none !important;
    background: transparent !important;
  }
  html[data-theme='dark'] .money-budget-row:active .money-budget-card,
  html[data-theme='dark'] .money-budget-row:focus .money-budget-card,
  html[data-theme='dark'] .money-budget-row.is-active .money-budget-card,
  html[data-theme='dark'] .money-budget-row.is-active:active .money-budget-card {
    background: transparent !important;
    border: none;
    box-shadow: none !important;
  }
  html[data-theme='dark'] .money-budget-row.is-active .money-budget-name,
  html[data-theme='dark'] .money-budget-row.is-active .nm {
    color: inherit !important;
  }
  html[data-theme='dark'] .money-budget-row.is-active .money-budget-meta {
    color: var(--nf-muted) !important;
  }
  html[data-theme='dark'] .money-budget-row.is-active.is-archived .nm::after {
    color: var(--nf-muted) !important;
  }
  html[data-theme='dark'] .money-budget-row.is-active .money-budget-ring-fill {
    stroke: revert-layer;
  }
  html[data-theme='dark'] .money-budget-row.is-active .money-budget-edit-btn {
    color: var(--nf-muted) !important;
    background: transparent !important;
  }
  html[data-theme='dark'] .money-top {
    border-bottom: none;
    box-shadow: none;
    background: #222b3d;
  }
  html[data-theme='dark'] .money-top.is-scrolled {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.364);
  }
  html[data-theme='dark'] .money-top-veil {
    background: rgba(34, 43, 61, 0.82);
  }
  html[data-theme='dark'] .money-top.is-select-open {
    box-shadow: none;
  }
  html[data-theme='dark'] .money-top.is-select-open.is-scrolled {
    box-shadow: none;
  }
  html[data-theme='dark'] .money-brand-bar .money-cats-search-toggle {
    border: none;
    background: transparent;
    color: var(--nf-ink);
  }
  html[data-theme='dark'] .money-top-period:active {
    background: color-mix(in srgb, var(--nf-card) 70%, var(--nf-ink) 8%);
  }
  html[data-theme='dark'] .money-top-chip {
    border: 1px solid var(--nf-border);
    background: var(--nf-card);
    color: var(--nf-ink);
  }
  html[data-theme='dark'] .money-top-chip:active {
    background: color-mix(in srgb, var(--nf-card) 70%, var(--nf-ink) 8%);
  }
  html[data-theme='dark'] .money-top-chip svg {
    color: var(--nf-muted);
  }
  html[data-theme='dark'] .money-spaces-more-ico {
    color: var(--nf-muted);
  }
  html[data-theme='dark'] .money-top > .money-cats-search {
    background: #393f49;
  }
  html[data-theme='dark'] .money-top.is-select-open > .money-cats-select {
    background: var(--nf-card);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.244);
  }
  html[data-theme='dark'] .money-top > .money-cats-search:focus-within {
    background: #3e454f;
  }
  html[data-theme='dark'].nf-cat-select .money-dock-avatar,
  html[data-theme='dark'].nf-cat-select .money-dock-icon,
  html[data-theme='dark'].nf-cat-select .money-dock-label,
  html[data-theme='dark'].nf-cat-select .money-cats-create,
  html[data-theme='dark'].nf-cat-select .money-cats-create-plus,
  html[data-theme='dark'].nf-cat-select .money-range-progress-dock .money-range-progress-scale,
  html[data-theme='dark'].nf-cat-select .money-range-progress-dock .money-range-progress-track,
  html[data-theme='dark'].nf-cat-select .money-range-progress-dock .money-range-progress-fill,
  html[data-theme='dark'].nf-cat-select .money-range-progress-dock .money-range-progress-cur,
  html[data-theme='dark'].nf-cat-select .money-range-progress-dock .money-range-progress-edge,
  html[data-theme='dark'].nf-cat-select .money-range-progress-dock .money-range-progress-mark,
  html[data-theme='dark'].nf-cat-select .money-range-progress-dock .money-range-progress-plan-tick,
  html[data-theme='dark'].nf-cat-select .money-range-progress-dock .money-range-progress-time {
    filter: grayscale(0.35);
  }
  html[data-theme='dark'] .money-pane-cats,
  html[data-theme='dark'] .money-pane-cats-main,
  html[data-theme='dark'] .money-pane-cats .money-budgets,
  html[data-theme='dark'] .money-pane-cats .money-skel-list {
    background: var(--nf-list, var(--nf-bg));
  }
  html[data-theme='dark'] .money-pane-cats .money-cats-foot {
    border: none;
    background: transparent;
  }
  html[data-theme='dark'] .money-pane-cats .money-cats-foot .money-cats-create {
    border: none;
    background: rgb(70, 174, 55);
    color: #ffffff;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.34), 0 2px 2px 0 rgba(0, 0, 0, 0.268), 0 1px 5px 0 rgba(0, 0, 0, 0.244) !important;
  }
  html[data-theme='dark'] .money-pane-cats .money-cats-foot .money-cats-create:active {
    background: rgb(61, 154, 48);
    color: #ffffff;
    border: none;
  }
  @media (hover: hover) and (pointer: fine) {
    html[data-theme='dark'] .money-pane-cats .money-cats-foot .money-cats-create:hover {
      background: rgb(61, 154, 48);
      color: #ffffff;
      border: none;
    }
  }
  html[data-theme='dark'] .money-pane-cats .money-cats-foot .money-cats-create-plus {
    color: #ffffff;
  }
  html[data-theme='dark'] .money-dock {
    background: transparent;
    border: none;
    box-shadow: none;
  }
  html[data-theme='dark'] .money-dock-veil {
    background: rgba(34, 43, 61, 0.96);
  }
  html[data-theme='dark'][data-home-tab='analytics'] .money-dock-veil {
    background: rgba(34, 43, 61, 0.96);
  }
  html[data-theme='dark'] .money-dock-inner {
    background: #222b3d;
    border: none;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.34), 0 2px 2px 0 rgba(0, 0, 0, 0.268), 0 1px 5px 0 rgba(0, 0, 0, 0.244) !important;
  }
  html[data-theme='dark'] #overall-split-dock {
    background: transparent;
    box-shadow: none;
  }
  html[data-theme='dark'] .money-split-edit {
    border: none;
    background: #222b3d;
    color: var(--nf-ink);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.268), 0 0 4px rgba(0, 0, 0, 0.292), 0 0 7px rgba(0, 0, 0, 0.22);
  }
  html[data-theme='dark'].nf-cat-select .money-split-edit svg {
    filter: grayscale(0.35);
  }
  html[data-theme='dark'] #overall-split-dock .money-overall-seg {
    background: #222b3d;
    border: none;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.268), 0 0 4px rgba(0, 0, 0, 0.292), 0 0 7px rgba(0, 0, 0, 0.22);
  }
  html[data-theme='dark'] #overall-split-dock .money-range-progress-dock {
    background: transparent;
    box-shadow: none;
  }
  html[data-theme='dark'] .money-dock-item {
    border: none;
    background: transparent;
    color: var(--nf-ink);
  }
  html[data-theme='dark'] .money-dock-bg {
    background: rgba(75, 186, 59, 0.224);
  }
  html[data-theme='dark'] .money-dock-item:active {
    background: transparent;
  }
  html[data-theme='dark'] .money-dock-item.is-active {
    color: #2f8f28;
    background: transparent;
  }
  html[data-theme='dark'] .money-dock-item.is-active .money-dock-icon,
  html[data-theme='dark'] .money-dock-item.is-active .money-dock-label {
    color: #2f8f28;
  }
  html[data-theme='dark'].nf-tab-boot[data-home-tab='income'] #dock-expenses.is-active,
  html[data-theme='dark'].nf-tab-boot[data-home-tab='analytics'] #dock-expenses.is-active,
  html[data-theme='dark'].nf-tab-boot[data-home-tab='profile'] #dock-expenses.is-active,
  html[data-theme='dark'].nf-tab-boot[data-home-tab='income'] #dock-expenses.is-active .money-dock-icon,
  html[data-theme='dark'].nf-tab-boot[data-home-tab='analytics'] #dock-expenses.is-active .money-dock-icon,
  html[data-theme='dark'].nf-tab-boot[data-home-tab='profile'] #dock-expenses.is-active .money-dock-icon,
  html[data-theme='dark'].nf-tab-boot[data-home-tab='income'] #dock-expenses.is-active .money-dock-label,
  html[data-theme='dark'].nf-tab-boot[data-home-tab='analytics'] #dock-expenses.is-active .money-dock-label,
  html[data-theme='dark'].nf-tab-boot[data-home-tab='profile'] #dock-expenses.is-active .money-dock-label {
    color: var(--nf-muted);
  }
  html[data-theme='dark'].nf-tab-boot[data-home-tab='income'] #dock-incomes,
  html[data-theme='dark'].nf-tab-boot[data-home-tab='income'] #dock-incomes .money-dock-icon,
  html[data-theme='dark'].nf-tab-boot[data-home-tab='income'] #dock-incomes .money-dock-label,
  html[data-theme='dark'].nf-tab-boot[data-home-tab='analytics'] #dock-analytics,
  html[data-theme='dark'].nf-tab-boot[data-home-tab='analytics'] #dock-analytics .money-dock-icon,
  html[data-theme='dark'].nf-tab-boot[data-home-tab='analytics'] #dock-analytics .money-dock-label,
  html[data-theme='dark'].nf-tab-boot[data-home-tab='profile'] #dock-profile,
  html[data-theme='dark'].nf-tab-boot[data-home-tab='profile'] #dock-profile .money-dock-label {
    color: #2f8f28;
  }
  html[data-theme='dark'] .money-home-page[data-home-page='analytics'] {
    background: #3c424d;
  }
  html[data-theme='dark'] .money-analytics-page {
    color: var(--nf-ink);
    background: #3c424d;
  }
  html[data-theme='dark'] .nf-an-chrome {
    background: transparent;
  }
  html[data-theme='dark'] .nf-an-head {
    background: rgba(34, 43, 61, 0.58);
    box-shadow: none;
  }
  html[data-theme='dark'] .nf-an-period {
    border: 1px solid rgba(242, 242, 247, 0.12);
    background: transparent;
    color: var(--nf-ink);
  }
  html[data-theme='dark'] .nf-an-period:active {
    background: transparent;
    opacity: 0.75;
  }
  html[data-theme='dark'] .nf-an-period-ico {
    color: var(--nf-muted);
  }
  html[data-theme='dark'] .nf-an-seg {
    border: 1px solid rgba(242, 242, 247, 0.12);
    background: transparent;
    box-shadow: none;
  }
  html[data-theme='dark'] .nf-an-seg-pill {
    background: color-mix(in srgb, var(--nf-green) 16%, rgba(242, 242, 247, 0.1));
  }
  html[data-theme='dark'] .nf-an-seg-btn {
    border: 0;
    background: transparent;
    color: var(--nf-muted);
  }
  html[data-theme='dark'] .nf-an-seg-btn.is-active {
    background: transparent;
    color: var(--nf-green-dark, #3d9a30);
  }
  html[data-theme='dark'] .nf-an-seg-btn:active {
    background: transparent;
  }
  html[data-theme='dark'] .nf-an-hero {
    background: #0f141a;
    border: none;
  }
  html[data-theme='dark'] .nf-an-hero-kicker {
    color: var(--nf-muted);
  }
  html[data-theme='dark'] .nf-an-hero-value {
    color: var(--nf-ink);
  }
  html[data-theme='dark'] .nf-an-hero-sub {
    color: var(--nf-muted);
  }
  html[data-theme='dark'] .nf-an-hero-badge {
    background: color-mix(in srgb, var(--nf-card) 70%, var(--nf-ink) 10%);
    color: var(--nf-ink);
  }
  html[data-theme='dark'] .nf-an-hero-badge.is-good {
    background: color-mix(in srgb, var(--nf-green) 18%, transparent);
    color: var(--nf-green-dark, #2f8f28);
  }
  html[data-theme='dark'] .nf-an-hero-badge.is-warn {
    background: color-mix(in srgb, #e0a020 18%, transparent);
    color: #c47a12;
  }
  html[data-theme='dark'] .nf-an-hero-badge.is-ok {
    background: color-mix(in srgb, var(--nf-card) 70%, var(--nf-ink) 10%);
    color: var(--nf-muted);
  }
  html[data-theme='dark'] .nf-an-card {
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  html[data-theme='dark'] .nf-an-card-title {
    color: var(--nf-muted);
  }
  html[data-theme='dark'] .nf-an-card-meta {
    color: var(--nf-muted);
  }
  html[data-theme='dark'] .nf-an-chart-card,
  html[data-theme='dark'] .nf-an-donut-card,
  html[data-theme='dark'] .nf-an-panel-card {
    background: #0f141a;
    border: none;
  }
  html[data-theme='dark'] .nf-an-chart-wrap {
    background: transparent;
  }
  html[data-theme='dark'] .nf-an-chart-y {
    color: var(--nf-muted);
  }
  html[data-theme='dark'] .nf-an-chart-grid {
    stroke: color-mix(in srgb, var(--nf-border) 85%, var(--nf-ink) 8%);
  }
  html[data-theme='dark'] .nf-an-chart-grid.is-x {
    stroke: color-mix(in srgb, var(--nf-border) 60%, transparent);
  }
  html[data-theme='dark'] .nf-an-chart-zero {
    stroke: rgba(232, 236, 245, 0.322);
  }
  html[data-theme='dark'] .nf-an-chart-x {
    color: var(--nf-muted);
  }
  html[data-theme='dark'] .nf-an-chart-foot {
    color: var(--nf-ink);
  }
  html[data-theme='dark'] .nf-an-chart-legend-item {
    color: var(--nf-muted);
  }
  html[data-theme='dark'] .nf-an-health-chip {
    border: 1px solid rgba(242, 242, 247, 0.08);
    background: #0f141a;
  }
  html[data-theme='dark'] .nf-an-health-chip strong {
    color: var(--nf-ink);
  }
  html[data-theme='dark'] .nf-an-health-chip span {
    color: var(--nf-muted);
  }
  html[data-theme='dark'] .nf-an-health-chip.is-over strong {
    color: var(--nf-danger);
  }
  html[data-theme='dark'] .nf-an-health-chip.is-ok strong {
    color: #2f8f28;
  }
  html[data-theme='dark'] .nf-an-health-chip.is-under strong {
    color: var(--nf-muted);
  }
  html[data-theme='dark'] .nf-an-top-name {
    color: var(--nf-ink);
  }
  html[data-theme='dark'] .nf-an-top-amt {
    color: var(--nf-ink);
  }
  html[data-theme='dark'] .nf-an-top-track {
    background: color-mix(in srgb, var(--nf-border) 70%, var(--nf-card));
  }
  html[data-theme='dark'] .nf-an-top-fill {
    background: var(--nf-green);
  }
  html[data-theme='dark'] .nf-an-top-foot {
    color: var(--nf-muted);
  }
  html[data-theme='dark'] .nf-an-balance-cell {
    border: 1px solid rgba(242, 242, 247, 0.08);
    background: #0f141a;
  }
  html[data-theme='dark'] .nf-an-balance-cell span {
    color: var(--nf-muted);
  }
  html[data-theme='dark'] .nf-an-balance-cell strong {
    color: var(--nf-ink);
  }
  html[data-theme='dark'] .nf-an-balance-cell.is-income strong {
    color: #2aa8a0;
  }
  html[data-theme='dark'] .nf-an-balance-cell.is-good strong {
    color: #2f8f28;
  }
  html[data-theme='dark'] .nf-an-balance-cell.is-bad strong {
    color: var(--nf-danger);
  }
  html[data-theme='dark'] .nf-an-empty {
    color: var(--nf-muted);
  }
  html[data-theme='dark'] .money-settings-page .money-sidebar-foot {
    border-top: 1px solid var(--nf-border);
  }
  html[data-theme='dark'] .money-dock-avatar {
    background: #7cbc6e;
    color: #ffffff;
  }
  html[data-theme='dark'] .money-dock-icon {
    color: var(--nf-ink);
  }
  html[data-theme='dark'] .money-dock-label {
    color: #e6e8eb;
  }
  html[data-theme='dark'] .money-modal-root .money-modal {
    border: none;
    box-shadow: none;
  }
  html[data-theme='dark'] #category-modal .money-field input {
    border: 1px solid #4a515e;
  }
  html[data-theme='dark'] #category-modal .money-field input:focus {
    outline: none;
    border-color: #3391ce;
    box-shadow: 0 0 0 3px rgba(51, 145, 206, 0.18);
  }
  html[data-theme='dark'] .money-pane-detail {
    background-color: #8ab692;
  }
  html[data-theme='dark'] .money-pane-detail::before {
    background-color: #8ab692;
    background-image: radial-gradient(at 15% 15%, #e1ea9e 0px, transparent 55%), radial-gradient(at 25% 80%, #51937a 0px, transparent 60%), radial-gradient(at 85% 85%, #4d5562 0px, transparent 50%), radial-gradient(at 85% 15%, #606a7b 0px, transparent 50%);
    filter: blur(20px);
  }
  html[data-theme='dark'] .money-shell.is-entering-detail[data-view='detail'] .money-pane-detail {
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.532);
  }
  html[data-theme='dark'] .money-shell.is-leaving-detail .money-pane-detail {
    box-shadow: none;
  }
  html[data-theme='dark'] .money-detail-swipe-scrim {
    border: none;
    background: rgba(0, 0, 0, 0.64);
  }
  html[data-theme='dark'] .money-shell.is-swipe-chrome .money-pane-detail {
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.532);
  }
  html[data-theme='dark'] .money-detail-chrome:not([hidden]) {
    background: transparent;
  }
  html[data-theme='dark'] .money-detail-chrome:not([hidden])::before {
    background-image: linear-gradient( 180deg, #c8db9a 0%, rgba(160, 196, 150, 0.72) 40%, rgba(138, 182, 146, 0.192) 72%, transparent 100% );
  }
  html[data-theme='dark'] .money-detail-chrome:not([hidden]) .money-detail-back,
  html[data-theme='dark'] .money-detail-chrome:not([hidden]) .money-detail-edit,
  html[data-theme='dark'] .money-detail-chrome:not([hidden]) .money-detail-archive {
    background: #323740;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.292);
  }
  html[data-theme='dark'] .money-detail-chrome:not([hidden]).is-tx-select .money-detail-actions {
    background: #323740;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.292);
  }
  html[data-theme='dark'] .money-detail-chrome:not([hidden]).is-tx-select .money-detail-actions .money-detail-edit,
  html[data-theme='dark'] .money-detail-chrome:not([hidden]).is-tx-select .money-detail-actions .money-detail-archive {
    background: transparent;
    box-shadow: none;
  }
  html[data-theme='dark'] .money-detail-chrome:not([hidden]) .money-detail-heading {
    background: #323740;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.292);
  }
  html[data-theme='dark'] .money-detail-scroll .money-tx-row {
    background: #363b45;
    border-color: transparent;
    box-shadow: none;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.292));
  }
  html[data-theme='dark'] .money-detail-scroll .money-tx-row.has-tx-tail::before {
    background: #363b45;
  }
  html[data-theme='dark'] .money-detail-scroll .money-tx-row.is-unread {
    background: #363c45;
  }
  html[data-theme='dark'] .money-detail-scroll .money-tx-row.is-unread.has-tx-tail::before {
    background: #363c45;
  }
  html[data-theme='dark'] .money-detail-scroll .money-tx-row.is-tx-mine {
    background: #222b3d;
  }
  html[data-theme='dark'] .money-detail-scroll .money-tx-row.is-tx-mine.has-tx-tail::before {
    background: #222b3d;
  }
  html[data-theme='dark'] .money-detail-scroll .money-tx-row.is-tx-mine.is-selected {
    background: #333840;
  }
  html[data-theme='dark'] .money-detail-scroll .money-tx-row.is-tx-mine.is-selected.has-tx-tail::before {
    background: #333840;
  }
  html[data-theme='dark'] .money-detail-scroll .money-tx-day {
    background: transparent;
    box-shadow: none;
  }
  html[data-theme='dark'] .money-detail-body#detail-active:not([hidden]) {
    background: transparent;
  }
  html[data-theme='dark'] .money-body.detail-open .money-form-line {
    border: none;
    background: transparent;
    box-shadow: none;
  }
  html[data-theme='dark'] .money-body.detail-open .money-form-line::before {
    background-image: linear-gradient( 90deg, rgba(232, 236, 245, 0.792) 0%, #8ab692 28%, #579e83 72%, #64a082 100% );
  }
  html[data-theme='dark'] .money-body.detail-open .money-form-line::after {
    background: #222b3d;
    box-shadow: 0 -1px 0 0 rgba(0, 0, 0, 0.532), 0 1px 0 0 rgba(0, 0, 0, 0.388);
  }
  html[data-theme='dark'] .money-body.detail-open .money-form-line .money-exp-ph {
    color: var(--nf-muted, #8b94a4);
  }
  html[data-theme='dark'] .money-body.detail-open .money-form-line #exp-line::placeholder {
    color: transparent;
  }
  html[data-theme='dark'] .money-body.detail-open .money-form-line .money-exp-date {
    border: none;
    background: transparent;
    color: var(--nf-muted, #8b94a4);
    box-shadow: none;
  }
  html[data-theme='dark'] .money-body.detail-open .money-form-line .money-exp-date.is-not-today {
    color: var(--nf-ink);
  }
  html[data-theme='dark'] .money-body.detail-open .money-form-line #exp-line {
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none;
    -webkit-box-shadow: none;
  }
  html[data-theme='dark'] .money-body.detail-open .money-form-line #exp-line:focus {
    outline: none;
    background: transparent;
    box-shadow: none;
  }
  html[data-theme='dark'] .money-body.detail-open .money-form-line .money-msg {
    background: rgba(34, 43, 61, 0.9);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.34);
  }
}

@media (min-width: 860px) {
  html[data-theme='dark'] .money-home-mode-rail {
    background: #414853;
  }
  html[data-theme='dark'] .money-pane-cats > .money-top {
    border-bottom: 1px solid var(--nf-border);
  }
  html[data-theme='dark'] .money-pane-detail {
    background-color: #8ab692;
  }
  html[data-theme='dark'] .money-pane-detail::before {
    background-color: #8ab692;
    background-image: radial-gradient(at 15% 15%, #e1ea9e 0px, transparent 55%), radial-gradient(at 25% 80%, #51937a 0px, transparent 60%), radial-gradient(at 85% 85%, #4d5562 0px, transparent 50%), radial-gradient(at 85% 15%, #606a7b 0px, transparent 50%);
    filter: blur(20px);
  }
  html[data-theme='dark'] .money-detail-body#detail-active:not([hidden]) {
    background: transparent;
  }
  html[data-theme='dark'] .money-top.is-select-open > .money-cats-select {
    background: #323740;
  }
  html[data-theme='dark'] .money-cats-manage {
    border: none;
    background: transparent;
  }
  html[data-theme='dark'] .money-detail-scroll .money-tx-row {
    background: #363b45;
    border-color: transparent;
    box-shadow: none !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.436));
  }
  html[data-theme='dark'] .money-detail-scroll .money-tx-row.has-tx-tail::before {
    background: #363b45;
  }
  @media (max-width: 1200px) {
    html[data-theme='dark'] .money-detail-scroll .money-tx-row.is-tx-mine {
      background: #222b3d;
    }
    html[data-theme='dark'] .money-detail-scroll .money-tx-row.is-tx-mine.has-tx-tail::before {
      background: #222b3d;
    }
    html[data-theme='dark'] .money-detail-scroll .money-tx-row.is-tx-mine.is-selected {
      background: #333840;
    }
    html[data-theme='dark'] .money-detail-scroll .money-tx-row.is-tx-mine.is-selected.has-tx-tail::before {
      background: #333840;
    }
  }
  html[data-theme='dark'] .money-detail-scroll .money-tx-day {
    background: transparent;
    box-shadow: none !important;
  }
  html[data-theme='dark'] .money-detail-scroll .money-tx-day-pill {
    background: rgba(232, 236, 245, 0.253);
  }
  html[data-theme='dark'] .money-detail-scroll .money-empty-tx {
    color: #ffffff;
  }
  html[data-theme='dark'] .money-cats-foot {
    border-top: 2px solid var(--nf-border);
  }
  html[data-theme='dark'] .money-cats-foot .money-cats-create {
    border: none;
    background: #222b3d;
    color: var(--nf-ink);
    box-shadow: none;
  }
  html[data-theme='dark'] .money-cats-foot .money-cats-create:hover {
    border: none;
    background: #31363f;
    color: var(--nf-ink);
  }
  html[data-theme='dark'] .money-pane-detail .money-form-line {
    background: #222b3d;
    border-top: 2px solid var(--nf-border);
  }
  html[data-theme='dark'] .money-pane-detail .money-form-line .money-exp-date {
    border: none;
    background: transparent;
    box-shadow: none;
  }
  html[data-theme='dark'] .money-pane-detail .money-form-line #exp-line {
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
  }
  html[data-theme='dark'] .money-pane-detail .money-form-line #exp-line:hover,
  html[data-theme='dark'] .money-pane-detail .money-form-line #exp-line:focus,
  html[data-theme='dark'] .money-pane-detail .money-form-line #exp-line:focus-visible,
  html[data-theme='dark'] .money-pane-detail .money-form-line #exp-line:active {
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
  }
  html[data-theme='dark'] .money-pane-detail .money-btn-send {
    background: #3391ce;
  }
  html[data-theme='dark'] .money-pane-detail .money-btn-send:hover:not(:disabled) {
    background: #2d82b8;
  }
  html[data-theme='dark'] .money-detail-chrome:not([hidden]) {
    background: #222b3d;
    border-bottom: 2px solid var(--nf-border);
  }
  html[data-theme='dark'] .money-detail-chrome:not([hidden]).is-tx-select .money-detail-back {
    background: #323740;
    box-shadow: none;
  }
  html[data-theme='dark'] .money-detail-chrome:not([hidden]).is-tx-select .money-detail-actions {
    background: #323740;
  }
  html[data-theme='dark'] .money-detail-chrome:not([hidden]).is-tx-select .money-detail-edit,
  html[data-theme='dark'] .money-detail-chrome:not([hidden]).is-tx-select .money-detail-archive {
    background: transparent;
    box-shadow: none;
  }
  html[data-theme='dark'] .money-detail-chrome:not([hidden]).is-tx-select .money-detail-heading {
    background: #323740;
  }
  html[data-theme='dark'] .money-detail-chrome:not([hidden]) .money-detail-edit {
    background: #323740;
    box-shadow: none;
  }
  html[data-theme='dark'] .money-detail-chrome:not([hidden]) .money-detail-heading {
    background: transparent;
    box-shadow: none;
  }
  :is(html[data-theme='dark'].nf-layout-pc, html[data-theme='dark'] .money-body.layout-pc) .money-budget-row.is-active {
    background: #3391ce;
    box-shadow: none;
    color: #fff;
  }
  :is(html[data-theme='dark'].nf-layout-pc, html[data-theme='dark'] .money-body.layout-pc) .money-budget-row.is-active .money-budget-card {
    background: transparent;
    color: #fff;
    border: none;
    box-shadow: none;
  }
  :is(html[data-theme='dark'].nf-layout-pc, html[data-theme='dark'] .money-body.layout-pc) .money-budget-row.is-active:hover .money-budget-card {
    background: transparent;
  }
  :is(html[data-theme='dark'].nf-layout-pc, html[data-theme='dark'] .money-body.layout-pc) .money-budget-row.is-active .money-budget-drag {
    color: rgba(255, 255, 255, 0.75);
  }
  :is(html[data-theme='dark'].nf-layout-pc, html[data-theme='dark'] .money-body.layout-pc) .money-budget-row.is-active .money-budget-name,
  :is(html[data-theme='dark'].nf-layout-pc, html[data-theme='dark'] .money-body.layout-pc) .money-budget-row.is-active .nm {
    color: #fff;
  }
  :is(html[data-theme='dark'].nf-layout-pc, html[data-theme='dark'] .money-body.layout-pc) .money-budget-row.is-active .money-budget-meta {
    color: #e6eef4;
  }
  :is(html[data-theme='dark'].nf-layout-pc, html[data-theme='dark'] .money-body.layout-pc) .money-budget-row.is-active.is-archived .nm::after {
    color: #d5e0e8;
  }
  :is(html[data-theme='dark'].nf-layout-pc, html[data-theme='dark'] .money-body.layout-pc) .money-budget-row.is-active .money-budget-ring::before {
    background: #fff;
  }
  :is(html[data-theme='dark'].nf-layout-pc, html[data-theme='dark'] .money-body.layout-pc) .money-budget-row.is-active .money-budget-ring-track {
    stroke: rgba(20, 35, 26, 0.14);
  }
  :is(html[data-theme='dark'].nf-layout-pc, html[data-theme='dark'] .money-body.layout-pc) .money-budget-row.is-active .money-budget-ring-fill {
    stroke: revert-layer;
  }
  :is(html[data-theme='dark'].nf-layout-pc, html[data-theme='dark'] .money-body.layout-pc) .money-budget-row.is-active .money-budget-edit-btn {
    color: #e6eef4;
  }
  :is(html[data-theme='dark'].nf-layout-pc, html[data-theme='dark'] .money-body.layout-pc) .money-budget-row.is-active .money-budget-edit-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 859px) {
  html[data-theme='dark'] .money-add-picker-swipe-scrim {
    border: none;
    background: rgba(0, 0, 0, 0.64);
  }
  html[data-theme='dark'] .money-add-picker {
    background: #333841;
  }
  html[data-theme='dark'] .money-add-picker-back.money-detail-back {
    background: transparent;
    box-shadow: none;
  }
  html[data-theme='dark'] .money-add-picker-title {
    color: var(--nf-ink);
  }
  html[data-theme='dark'] .money-add-picker-search {
    background: #222b3d;
    color: #778294;
  }
  html[data-theme='dark'] .money-add-picker-search:focus-within {
    background: #222b3d;
  }
  html[data-theme='dark'] .money-add-picker-actions {
    background: #222b3d;
  }
  html[data-theme='dark'] .money-add-picker-action {
    border: none;
    background: transparent;
    color: var(--nf-ink);
  }
  html[data-theme='dark'] .money-add-picker-action:active {
    background: rgba(75, 186, 59, 0.16);
  }
  html[data-theme='dark'] .money-add-picker-action-ico {
    background: #333841;
    color: var(--nf-green);
    box-shadow: none;
  }
  html[data-theme='dark'] .money-add-picker-action-ico-space {
    color: var(--nf-ink);
  }
  html[data-theme='dark'] .money-add-picker-scroll {
    background: #222b3d;
  }
  html[data-theme='dark'] .money-add-picker-list.money-budgets {
    background: transparent;
  }
  html[data-theme='dark'] .money-add-picker-list .money-budget-row:not(:has(.money-budget-drag)) .money-budget-card,
  html[data-theme='dark'] .money-add-picker-list .money-budget-card {
    background: transparent;
    box-shadow: none;
    border: none;
    border-top: none;
  }
  html[data-theme='dark'] .money-add-picker-list .money-budget-row:hover,
  html[data-theme='dark'] .money-add-picker-list .money-budget-row:active,
  html[data-theme='dark'] .money-add-picker-list .money-budget-row:focus,
  html[data-theme='dark'] .money-add-picker-list .money-budget-row:focus-visible,
  html[data-theme='dark'] .money-add-picker-list .money-budget-row.is-active,
  html[data-theme='dark'] .money-add-picker-list .money-budget-row.is-active:active {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
  }
  html[data-theme='dark'] .money-add-picker-list .money-budget-row:hover .money-budget-card,
  html[data-theme='dark'] .money-add-picker-list .money-budget-row:active .money-budget-card,
  html[data-theme='dark'] .money-add-picker-list .money-budget-row:focus .money-budget-card,
  html[data-theme='dark'] .money-add-picker-list .money-budget-row.is-active .money-budget-card,
  html[data-theme='dark'] .money-add-picker-list .money-budget-row.is-active:active .money-budget-card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }
  html[data-theme='dark'] .money-add-picker.is-swiping {
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.532);
  }
  @media (prefers-reduced-motion: reduce) {
    html[data-theme='dark'] .money-add-picker.is-swiping,
    html[data-theme='dark'] .money-add-picker.is-leaving {
      box-shadow: none;
    }
  }
  html[data-theme='dark'] .money-add-picker-list .money-budget-ring::before {
    background: #222b3d;
  }
  html[data-theme='dark'] .money-add-picker #add-picker-empty {
    color: var(--nf-muted);
  }
  html[data-theme='dark'] .money-modal-root.is-swipe-chrome,
  html[data-theme='dark'] .money-modal-root.is-leaving,
  html[data-theme='dark'] .money-modal-root.is-swiping {
    background: transparent !important;
  }
  html[data-theme='dark'] .money-modal-root.is-swipe-chrome .money-modal {
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.532);
  }
  @media (prefers-reduced-motion: reduce) {
    html[data-theme='dark'] .money-modal.is-swiping-sheet,
    html[data-theme='dark'] .money-modal.is-leaving-sheet,
    html[data-theme='dark'] .money-modal-root.is-swipe-chrome .money-modal {
      box-shadow: none;
    }
  }
}

/* ---- manual overrides ---- */



/* ---------- base / native controls ---------- */
html[data-theme='dark'] .money-body {
  background: var(--nf-bg);
  color: var(--nf-ink);
}

/* Header blends with page bg (hairline appears via .is-scrolled on mobile). */
html[data-theme='dark'] .money-top {
  background: var(--nf-bg);
}

html[data-theme='dark'] ::selection {
  background: rgba(79, 189, 65, 0.35);
}

html[data-theme='dark'] input,
html[data-theme='dark'] select,
html[data-theme='dark'] textarea {
  color: var(--nf-ink);
}

html[data-theme='dark'] input::placeholder,
html[data-theme='dark'] textarea::placeholder {
  color: #6f7c92;
}

html[data-theme='dark'] input[type='date']::-webkit-calendar-picker-indicator {
  filter: invert(0.85);
}

html[data-theme='dark'] .money-budgets,
html[data-theme='dark'] .money-detail-scroll {
  scrollbar-color: rgba(232, 236, 245, 0.22) transparent;
}

html[data-theme='dark'] .money-budgets::-webkit-scrollbar-thumb:hover,
html[data-theme='dark'] .money-detail-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 236, 245, 0.38);
}

/* ---------- buttons ---------- */
/* Ink (black) button → inverted light button */
html[data-theme='dark'] .money-btn-ink {
  background: #e8edf5 !important;
  color: #1b242f !important;
}

html[data-theme='dark'] .money-btn-ink:hover,
html[data-theme='dark'] .money-btn-ink:hover:not(:disabled) {
  background: #ffffff !important;
}

html[data-theme='dark'] .money-btn-ink .money-btn-ico {
  color: #1b242f;
}

html[data-theme='dark'] .money-chip-danger,
html[data-theme='dark'] .money-ctx-menu-item[data-tx-ctx='delete'],
html[data-theme='dark'] .money-ctx-menu-item[data-cat-ctx='delete'] {
  color: var(--nf-danger);
}

html[data-theme='dark'] .money-chip-danger {
  border-color: rgba(236, 95, 80, 0.45);
}

html[data-theme='dark'] .money-chip-danger:hover {
  background: rgba(236, 95, 80, 0.12);
}

/* ---------- switches ---------- */
html[data-theme='dark'] .money-pref-switch {
  background: #3a4558;
}

html[data-theme='dark'] .money-pref-switch::after {
  background: #e8edf5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

html[data-theme='dark'] .money-pref-toggle input:checked + .money-pref-switch {
  background: var(--nf-green);
}

html[data-theme='dark'] .money-pref-toggle input:checked + .money-pref-switch::after {
  background: #ffffff;
}

/* ---------- grouped sheets (iOS-like grey page + elevated lists) ---------- */
html[data-theme='dark'] .money-modal.money-bulk-modal,
html[data-theme='dark'] .money-bulk-chrome,
html[data-theme='dark'] .money-bulk-sheet,
html[data-theme='dark'] .money-bulk-sheet-foot {
  background: var(--nf-dark-group);
}

html[data-theme='dark'] .money-bulk-nav,
html[data-theme='dark'] .money-bulk-list,
html[data-theme='dark'] .money-bulk-panel-category,
html[data-theme='dark'] .money-bulk-panel-date,
html[data-theme='dark'] #txs-bulk-panel-category,
html[data-theme='dark'] #txs-bulk-panel-date {
  background: var(--nf-card);
}

html[data-theme='dark'] .money-bulk-row-input,
html[data-theme='dark'] .money-bulk-category-field select,
html[data-theme='dark'] .money-bulk-category-field input[type='date'] {
  background: var(--nf-dark-elev);
  border-color: #3d4a60;
}

html[data-theme='dark'] .money-bulk-tabs {
  background: var(--nf-dark-elev);
}

html[data-theme='dark'] .money-bulk-tab.is-active {
  background: #3a4558;
  color: var(--nf-ink);
}

/* ---------- inputs ---------- */
html[data-theme='dark'] .money-field input,
html[data-theme='dark'] .money-field select,
html[data-theme='dark'] .money-field textarea,
html[data-theme='dark'] .money-form input,
html[data-theme='dark'] .money-form select,
html[data-theme='dark'] .money-inline-form input,
html[data-theme='dark'] .money-member-actions select {
  background: var(--nf-dark-elev);
  border-color: #3d4a60;
}

html[data-theme='dark'] .money-field input:focus,
html[data-theme='dark'] .money-field select:focus,
html[data-theme='dark'] .money-field textarea:focus,
html[data-theme='dark'] .money-form input:focus,
html[data-theme='dark'] .money-inline-form input:focus {
  border-color: var(--nf-green);
}

/* ---------- category list (flat full-bleed rows) ---------- */
html[data-theme='dark'] .money-budget-card {
  background: transparent;
}

html[data-theme='dark'] .money-budget-row.is-active {
  background: rgba(79, 189, 65, 0.14);
}

html[data-theme='dark'] .money-budget-row.is-active .money-budget-card {
  background: transparent;
}

html[data-theme='dark'] .money-budget-row.is-selected,
html[data-theme='dark'] .money-budget-row.is-selected:active,
html[data-theme='dark'] .money-budget-row.is-selected:focus,
html[data-theme='dark'] .money-budget-row.is-selected:focus-visible,
html[data-theme='dark'] .money-budget-row.is-selected.is-active {
  background: rgba(79, 189, 65, 0.18) !important;
}

/* Selection checks — frame = main page bg; fill a step lighter so it reads */
html[data-theme='dark'] .money-budget-check {
  color: var(--nf-bg);
  filter: none;
}

html[data-theme='dark'] .money-budget-check-ring {
  fill: var(--nf-card);
  stroke: var(--nf-bg);
  stroke-width: 1.8;
}

html[data-theme='dark'] .money-budget-row.is-selected .money-budget-check {
  color: var(--nf-bg);
}

html[data-theme='dark'] .money-budget-row.is-selected .money-budget-check-ring {
  fill: #46ae37;
  stroke: var(--nf-bg);
}

html[data-theme='dark'] .money-budget-row.is-selected .money-budget-check-tick {
  stroke: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme='dark'] .money-budget-row:hover {
    background: rgba(232, 236, 245, 0.05);
  }
}

html[data-theme='dark'] .money-budget-ring .money-ring-img,
html[data-theme='dark'] .money-detail-ring .money-ring-img {
  background: var(--nf-dark-elev);
}

/* Archived suffix / meta muted */
html[data-theme='dark'] .money-budget-meta {
  color: var(--nf-muted);
}

/* Theme picker swatches — keep real preview colours in dark mode */
html[data-theme='dark'] .money-theme-swatch.is-light {
  background: #f4f6f5 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
html[data-theme='dark'] .money-theme-swatch.is-dark {
  background: #1b242f !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
html[data-theme='dark'] .money-theme-swatch.is-gray {
  background: #343739 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
html[data-theme='dark'] .money-theme-seg-opt input:checked + .money-theme-seg-btn {
  background: var(--nf-card) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* ---------- context menu / popovers ---------- */
html[data-theme='dark'] .money-ctx-menu {
  background: #2a3448;
  box-shadow:
    0 12px 32px rgba(8, 12, 24, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

html[data-theme='dark'] .money-spaces-quick-panel {
  background: var(--nf-card) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 1px solid var(--nf-border) !important;
  box-shadow: 0 12px 32px rgba(8, 12, 24, 0.45);
}

html[data-theme='dark'] .money-ctx-menu-item:hover,
html[data-theme='dark'] .money-ctx-menu-item:focus-visible,
html[data-theme='dark'] .money-spaces-quick-item:hover,
html[data-theme='dark'] .money-spaces-quick-item:active,
html[data-theme='dark'] .money-spaces-quick-add:hover,
html[data-theme='dark'] .money-spaces-quick-add:active {
  background: #364358;
}

html[data-theme='dark'] .money-spaces-quick-item.is-active {
  background: rgba(51, 145, 206, 0.2);
}

html[data-theme='dark'] .money-spaces-quick-item.is-active .money-spaces-quick-meta,
html[data-theme='dark'] .money-cats-search-toggle.is-active {
  color: #6bb8ea;
}

/* ---------- modals ---------- */
html[data-theme='dark'] .money-modal {
  box-shadow:
    0 18px 48px rgba(8, 12, 24, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

html[data-theme='dark'] .money-modal-root.is-ctx .money-modal-backdrop {
  background: rgba(8, 12, 24, 0.4);
}

/* ---------- expenses (detail) pane: home charcoal (#1B242F) a touch darker ---------- */
@media (max-width: 859px) {
  html[data-theme='dark'] .money-pane-detail,
  html[data-theme='dark'] .money-pane-detail::before {
    background-color: #161d26;
  }
  html[data-theme='dark'] .money-pane-detail::before {
    background-image:
      radial-gradient(at 12% 10%, #1b242f 0px, transparent 58%),
      radial-gradient(at 28% 86%, #121820 0px, transparent 62%),
      radial-gradient(at 90% 74%, #1a222c 0px, transparent 54%),
      radial-gradient(at 78% 16%, #141a22 0px, transparent 56%),
      radial-gradient(at 48% 44%, #10161e 0px, transparent 70%);
  }
  /*
   * Top (under detail header) + bottom (under input) veils —
   * match expense page bg (--nf-bg #1B242F), soft edge via mask.
   */
  html[data-theme='dark'] .money-detail-chrome:not([hidden])::before {
    /* was: hard #000 mask / solid bg — bottom must be fully clear */
    background-color: transparent;
    /* top less transparent; bottom must hit 0 (parent overflow:visible) */
    /* was: 0.92 → 0.48@36% → 0.14@70% → clear */
    background-image: linear-gradient(
      180deg,
      rgba(27, 36, 47, 0.92) 0%,
      rgba(27, 36, 47, 0.42) 40%,
      rgba(27, 36, 47, 0.1) 72%,
      transparent 100%
    );
    -webkit-mask-image: none;
    mask-image: none;
  }
  html[data-theme='dark'] .money-body.detail-open .money-form-line::before {
    background-color: transparent;
    /* was: rgba(22,29,38,0.96) → (27,36,47,0.92) → (18,24,32,0.94) → (22,29,38,0.96) */
    background-image: linear-gradient(
      90deg,
      rgba(27, 36, 47, 0.96) 0%,
      rgba(27, 36, 47, 0.94) 50%,
      rgba(27, 36, 47, 0.96) 100%
    );
  }
  /* Input pill — frosted glass; light top lift so it reads against the bg */
  html[data-theme='dark'] .money-body.detail-open .money-form-line::after {
    background: rgba(27, 36, 47, 0.58) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
    backdrop-filter: blur(18px) saturate(1.2) !important;
    /* Pixel frame 1px: top a bit lighter than bottom */
    box-shadow:
      0 -1px 0 0 rgba(255, 255, 255, 0.18),
      0 1px 0 0 rgba(255, 255, 255, 0.1) !important;
  }
  html[data-theme='dark'] .money-body.detail-open .money-form-line #exp-line,
  html[data-theme='dark'] .money-body.detail-open .money-form-line .money-exp-date {
    background: transparent;
  }
  html[data-theme='dark'] .money-body.detail-open .money-form-line .money-exp-ph {
    color: var(--nf-muted, #8b97ab);
  }
  /* Same frosted glass as home .money-top */
  html[data-theme='dark'] .money-detail-chrome:not([hidden]) .money-detail-back,
  html[data-theme='dark'] .money-detail-chrome:not([hidden]) .money-detail-edit,
  html[data-theme='dark'] .money-detail-chrome:not([hidden]) .money-detail-archive,
  html[data-theme='dark'] .money-detail-chrome:not([hidden]) .money-detail-heading,
  html[data-theme='dark'] .money-detail-chrome:not([hidden]).is-tx-select .money-detail-actions {
    background: rgba(27, 36, 47, 0.58) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
    backdrop-filter: blur(18px) saturate(1.2) !important;
    box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.08);
  }
  html[data-theme='dark'] .money-body.detail-open .money-form-line .money-msg {
    background: rgba(50, 62, 84, 0.94);
  }
  /* Grouped add-picker sheet */
  html[data-theme='dark'] .money-add-picker {
    background: var(--nf-dark-group);
  }
  html[data-theme='dark'] .money-add-picker-actions,
  html[data-theme='dark'] .money-add-picker-scroll {
    background: var(--nf-card);
  }
  html[data-theme='dark'] .money-add-picker-search,
  html[data-theme='dark'] .money-add-picker-search:focus-within {
    background: var(--nf-dark-elev);
  }
  html[data-theme='dark'] .money-add-picker-action-ico {
    background: var(--nf-dark-elev-2);
  }
  html[data-theme='dark'] .money-add-picker-list .money-budget-ring::before {
    background: transparent;
  }
  /* Frosted header — translucent #1B242F + blur over the list */
  html[data-theme='dark'] .money-top {
    background: rgba(27, 36, 47, 0.58) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
    backdrop-filter: blur(18px) saturate(1.2) !important;
    box-shadow: none;
  }
  html[data-theme='dark'] .money-top.is-scrolled {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  }
  html[data-theme='dark'] .money-top.is-select-open > .money-cats-select {
    background: rgba(27, 36, 47, 0.58);
    -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
    backdrop-filter: blur(18px) saturate(1.2) !important;
    box-shadow: none;
  }
  html[data-theme='dark'] .money-top.is-select-open.is-scrolled > .money-cats-select {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  }
  /* Mobile top search pill */
  html[data-theme='dark'] .money-top > .money-cats-search {
    background: var(--nf-dark-elev);
  }
  html[data-theme='dark'] .money-top > .money-cats-search:focus-within {
    background: var(--nf-dark-elev-2);
  }
  /* Bottom/top home veils — match --nf-bg (#1B242F) */
  html[data-theme='dark'] .money-dock-veil {
    /* was: rgba(27, 36, 47, 0.96) */
    background: rgba(27, 36, 47, 0.94);
  }
  html[data-theme='dark'] .money-dock-inner {
    background: var(--nf-card) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow:
      0 3px 1px -2px rgb(0 0 0 / 28%),
      0 2px 2px 0 rgb(0 0 0 / 18%),
      0 1px 5px 0 rgb(0 0 0 / 14%),
      0 0 0 1px rgba(255, 255, 255, 0.06) !important;
  }
  html[data-theme='dark'] .money-top-veil {
    /* was: rgba(27, 36, 47, 0.96) — slightly more see-through */
    background: rgba(27, 36, 47, 0.78);
  }
  html[data-theme='dark'] .money-dock-label {
    color: #ffffff !important;
  }
  /*
   * Split progress: card chrome is on .money-overall-seg.
   * Inner .money-range-progress-dock must stay transparent (old single-pill
   * card bg/shadow here nested and looked like a hard blue halo + scale fill).
   */
  /* Card hue (--nf-card #24303c) + translucency + same blur as fixed header */
  html[data-theme='dark'] #overall-split-dock .money-overall-seg,
  html[data-theme='dark'] #overall-split-dock .money-split-edit {
    background: rgba(36, 48, 60, 0.72) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
    backdrop-filter: blur(18px) saturate(1.2) !important;
    border: none;
    box-shadow: none;
  }
  html[data-theme='dark'] #overall-split-dock .money-range-progress-dock,
  html[data-theme='dark'] .money-range-progress-dock {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }
  html[data-theme='dark'] .money-top.is-scrolled {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  }
  html[data-theme='dark'] .money-pane-cats,
  html[data-theme='dark'] .money-pane-cats-main,
  html[data-theme='dark'] .money-pane-cats .money-budgets {
    background: var(--nf-bg);
  }
}

@media (min-width: 860px) {
  /* PC mode rail: darker strip; active tab = cats pane (--nf-bg) */
  html[data-theme='dark'] .money-home-mode-rail {
    background: #141a22; /* --nf-dark-group, darker than --nf-bg */
  }
  html[data-theme='dark'] .money-home-mode-tab {
    color: #a8b0bd;
  }
  html[data-theme='dark'] .money-home-mode-tab.is-active {
    background: var(--nf-bg); /* same as .money-pane-cats on PC */
    color: #7cbc6e;
  }
  html[data-theme='dark'] .money-home-mode-tab:active {
    background: rgba(27, 36, 47, 0.85);
  }

  html[data-theme='dark'] .money-pane-detail,
  html[data-theme='dark'] .money-pane-detail::before {
    background-color: #161d26;
  }
  html[data-theme='dark'] .money-pane-detail::before {
    background-image:
      radial-gradient(at 12% 10%, #1b242f 0px, transparent 58%),
      radial-gradient(at 28% 86%, #121820 0px, transparent 62%),
      radial-gradient(at 90% 74%, #1a222c 0px, transparent 54%),
      radial-gradient(at 78% 16%, #141a22 0px, transparent 56%),
      radial-gradient(at 48% 44%, #10161e 0px, transparent 70%);
  }
  html[data-theme='dark'] .money-detail-chrome:not([hidden]),
  html[data-theme='dark'] .money-pane-detail .money-form-line {
    background: var(--nf-card);
  }
  html[data-theme='dark'] .money-pane-detail .money-form-line #exp-line,
  html[data-theme='dark'] .money-pane-detail .money-form-line .money-exp-date {
    background: transparent;
  }
  html[data-theme='dark'] .money-cats-foot .money-cats-create {
    background: var(--nf-card);
  }
  html[data-theme='dark'] .money-cats-foot .money-cats-create:hover {
    background: var(--nf-dark-elev);
  }
  html[data-theme='dark'] .money-top.is-select-open > .money-cats-select,
  html[data-theme='dark'] .money-detail-chrome:not([hidden]).is-tx-select .money-detail-back,
  html[data-theme='dark'] .money-detail-chrome:not([hidden]).is-tx-select .money-detail-actions,
  html[data-theme='dark'] .money-detail-chrome:not([hidden]).is-tx-select .money-detail-heading,
  html[data-theme='dark'] .money-detail-chrome:not([hidden]) .money-detail-edit {
    background: var(--nf-dark-elev);
  }
  /* Blue active wash on the row (flat layout) */
  :is(html[data-theme='dark'].nf-layout-pc, html[data-theme='dark'] .money-body.layout-pc)
    .money-budget-row.is-active {
    background: #2b7fb8;
  }
  :is(html[data-theme='dark'].nf-layout-pc, html[data-theme='dark'] .money-body.layout-pc)
    .money-budget-row.is-active
    .money-budget-card {
    background: transparent;
    border-color: transparent;
  }
}

/* Day-pace markers — readable on dark fills */
html[data-theme='dark'] .money-range-progress-time-mark {
  border-color: #e8edf5 transparent transparent transparent;
  filter: none;
  box-shadow: 0 0 0.7px rgba(0, 0, 0, 0.55);
}

html[data-theme='dark'] .money-budget-ring-time-mark,
html[data-theme='dark'] .money-detail-ring .money-budget-ring-time-mark {
  fill: #e8edf5;
  stroke: rgba(15, 15, 28, 0.55);
}

/* ---------- expense bubbles + day pills ---------- */
html[data-theme='dark'] .money-detail-scroll .money-tx-row,
html[data-theme='dark'] .money-detail-scroll .money-tx-row.has-tx-tail::before {
  background: var(--nf-bg); /* same as home — #1B242F */
}

html[data-theme='dark'] .money-detail-scroll .money-tx-row {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.28));
}

html[data-theme='dark'] .money-tx-day-pill,
html[data-theme='dark'] .money-detail-scroll .money-tx-day-pill {
  background: rgba(15, 15, 28, 0.55);
  color: #e8edf5;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

html[data-theme='dark'] .money-tx-row.is-selected {
  background: #24303c;
}

html[data-theme='dark'] .money-budget-unread {
  background: #f0a04b;
  color: #1a1208;
}

html[data-theme='dark'] .money-tx-row.is-unread,
html[data-theme='dark'] .money-detail-scroll .money-tx-row.is-unread,
html[data-theme='dark'] .money-detail-scroll .money-tx-row.is-unread.has-tx-tail::before {
  background: #243a52;
  border-color: transparent;
}

/*
 * ≤1200: own (right) — softer green (same hue, lower saturation).
 * Others / >1200: #1D1B1E.
 */
@media (max-width: 1200px) {
  html[data-theme='dark'] .money-detail-scroll .money-tx-row.is-tx-mine,
  html[data-theme='dark'] .money-detail-scroll .money-tx-row.is-tx-mine.has-tx-tail::before {
    background: var(--nf-dark-bubble-mine);
  }

  html[data-theme='dark'] .money-detail-scroll .money-tx-row.is-tx-mine {
    color: #ffffff;
  }

  html[data-theme='dark'] .money-detail-scroll .money-tx-row.is-tx-mine .money-tx-title,
  html[data-theme='dark'] .money-detail-scroll .money-tx-row.is-tx-mine .money-tx-amount {
    color: #ffffff;
  }

  html[data-theme='dark'] .money-detail-scroll .money-tx-row.is-tx-mine .money-tx-meta {
    color: rgba(255, 255, 255, 0.78);
  }

  html[data-theme='dark'] .money-tx-row.is-tx-mine.is-selected,
  html[data-theme='dark'] .money-detail-scroll .money-tx-row.is-tx-mine.is-selected,
  html[data-theme='dark']
    .money-detail-scroll
    .money-tx-row.is-tx-mine.is-selected.has-tx-tail::before {
    background: var(--nf-dark-bubble-mine-sel);
  }

  html[data-theme='dark'] .money-tx-row.is-tx-mine.is-selected .money-tx-check {
    color: #ffffff;
  }

  html[data-theme='dark'] .money-tx-row.is-tx-mine.is-selected .money-tx-check-ring {
    fill: #ffffff;
    stroke: #ffffff;
  }

  html[data-theme='dark'] .money-tx-row.is-tx-mine.is-selected .money-tx-check-tick {
    stroke: var(--nf-dark-bubble-mine-sel);
  }
}

html[data-theme='dark'] .money-detail-heading,
html[data-theme='dark'] .money-detail-back,
html[data-theme='dark'] .money-detail-edit,
html[data-theme='dark'] .money-detail-archive {
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-detail-ring::before {
  background: var(--nf-dark-elev);
}

/* Soft lift for secondary text on expense bubbles */
html[data-theme='dark'] .money-detail-scroll .money-tx-meta {
  color: #9aa6bc;
}

/* ---------- stats / period ---------- */
html[data-theme='dark'] .money-stats-block {
  background: var(--nf-dark-elev);
  border-color: rgba(255, 255, 255, 0.06);
}

html[data-theme='dark'] .money-stat-circle {
  background: rgba(255, 255, 255, 0.07);
}

html[data-theme='dark'] .money-donut-track {
  stroke: rgba(255, 255, 255, 0.12);
}

html[data-theme='dark'] .money-period-preset.is-active {
  background: rgba(79, 189, 65, 0.16);
  color: var(--nf-ink);
}

html[data-theme='dark'] .money-period-preset:disabled,
html[data-theme='dark'] .money-period-preset.is-disabled {
  color: #5c6778;
  opacity: 0.75;
}

/* ---------- sidebar ---------- */
html[data-theme='dark'] .money-nav-item,
html[data-theme='dark'] .money-sidebar-section {
  background: var(--nf-dark-elev);
}

html[data-theme='dark'] .money-nav-item:hover {
  background: var(--nf-dark-elev-2);
}

html[data-theme='dark'] .money-space-row {
  background: var(--nf-dark-elev);
}

html[data-theme='dark'] .money-space-row:hover {
  background: var(--nf-dark-elev-2);
}

html[data-theme='dark'] .money-space-row.is-active {
  background: rgba(79, 189, 65, 0.13);
}

html[data-theme='dark'] .money-space-row-badge {
  background: rgba(79, 189, 65, 0.18);
}

html[data-theme='dark'] .money-invite-card {
  background: var(--nf-dark-elev);
}

/* ========== iOS dark: kill leftover cool-blue surfaces / veils ========== */
@media (max-width: 859px) {
  html[data-theme='dark'].nf-ios .money-top {
    background: rgba(52, 55, 57, 0.58) !important;
  }
  html[data-theme='dark'].nf-ios .money-top.is-select-open > .money-cats-select {
    background: rgba(52, 55, 57, 0.58);
  }
  html[data-theme='dark'].nf-ios .money-top-veil {
    background: rgba(52, 55, 57, 0.78);
  }
  html[data-theme='dark'].nf-ios .money-dock-veil {
    background: rgba(52, 55, 57, 0.94);
  }
  html[data-theme='dark'].nf-ios .money-dock-inner {
    background: #5e6367 !important;
  }
  html[data-theme='dark'].nf-ios #overall-split-dock .money-overall-seg,
  html[data-theme='dark'].nf-ios #overall-split-dock .money-split-edit {
    background: rgba(94, 99, 103, 0.72) !important;
  }
  html[data-theme='dark'].nf-ios .nf-an-head {
    background: rgba(42, 45, 48, 0.58) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
    backdrop-filter: blur(18px) saturate(1.2) !important;
  }
  html[data-theme='dark'].nf-ios .nf-an-veil {
    background: rgba(42, 45, 48, 0.92);
  }
  html[data-theme='dark'].nf-ios .nf-an-seg {
    background: color-mix(in srgb, var(--nf-card) 88%, transparent) !important;
    border-color: var(--nf-border) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
    backdrop-filter: blur(18px) saturate(1.2) !important;
    box-shadow: none !important;
  }
  /* Dock + analytics seg: no green — lighter gray active */
  html[data-theme='dark'].nf-ios .money-dock-bg {
    background: rgba(255, 255, 255, 0.2);
  }
  html[data-theme='dark'].nf-ios .money-dock-item.is-active,
  html[data-theme='dark'].nf-ios .money-dock-item.is-active .money-dock-icon,
  html[data-theme='dark'].nf-ios .money-dock-item.is-active .money-dock-label {
    color: #f2f2f7 !important;
  }
  html[data-theme='dark'].nf-ios .nf-an-seg-pill {
    background: rgba(255, 255, 255, 0.22);
  }
  html[data-theme='dark'].nf-ios .nf-an-seg-btn.is-active {
    color: #f2f2f7;
  }
  /* Profile toggles: inactive track was cool-blue #3a4558 */
  html[data-theme='dark'].nf-ios .money-pref-switch {
    background: #5e6367;
  }
  html[data-theme='dark'].nf-ios .money-pref-switch::after {
    background: #f2f2f7;
  }
  html[data-theme='dark'].nf-ios .money-pane-detail,
  html[data-theme='dark'].nf-ios .money-pane-detail::before {
    background-color: #2f3235;
  }
  html[data-theme='dark'].nf-ios .money-pane-detail::before {
    background-image:
      radial-gradient(at 12% 10%, #343739 0px, transparent 58%),
      radial-gradient(at 28% 86%, #2c2f31 0px, transparent 62%),
      radial-gradient(at 90% 74%, #3a3e41 0px, transparent 54%),
      radial-gradient(at 78% 16%, #2c2f31 0px, transparent 56%),
      radial-gradient(at 48% 44%, #2a2d2f 0px, transparent 70%);
  }
  html[data-theme='dark'].nf-ios .money-detail-chrome:not([hidden])::before {
    background-image: linear-gradient(
      180deg,
      rgba(52, 55, 57, 0.92) 0%,
      rgba(52, 55, 57, 0.42) 40%,
      rgba(52, 55, 57, 0.1) 72%,
      transparent 100%
    );
  }
  html[data-theme='dark'].nf-ios .money-body.detail-open .money-form-line::before {
    background-image: linear-gradient(
      90deg,
      rgba(52, 55, 57, 0.96) 0%,
      rgba(52, 55, 57, 0.94) 50%,
      rgba(52, 55, 57, 0.96) 100%
    );
  }
  html[data-theme='dark'].nf-ios .money-body.detail-open .money-form-line::after {
    background: rgba(52, 55, 57, 0.58) !important;
  }
  html[data-theme='dark'].nf-ios .money-detail-chrome:not([hidden]) .money-detail-back,
  html[data-theme='dark'].nf-ios .money-detail-chrome:not([hidden]) .money-detail-edit,
  html[data-theme='dark'].nf-ios .money-detail-chrome:not([hidden]) .money-detail-archive,
  html[data-theme='dark'].nf-ios .money-detail-chrome:not([hidden]) .money-detail-heading,
  html[data-theme='dark'].nf-ios .money-detail-chrome:not([hidden]).is-tx-select .money-detail-actions {
    background: rgba(52, 55, 57, 0.58) !important;
  }
  html[data-theme='dark'].nf-ios .money-body.detail-open .money-form-line .money-msg {
    background: rgba(94, 99, 103, 0.94);
  }
}

/* iOS: neutralize leftover cool-blue (#222b3d / #3391ce) — header workspaces + shared chrome */
html[data-theme='dark'].nf-ios .money-spaces-quick-panel {
  background: var(--nf-card) !important;
}
html[data-theme='dark'].nf-ios .money-spaces-quick-item:hover,
html[data-theme='dark'].nf-ios .money-spaces-quick-item:active,
html[data-theme='dark'].nf-ios .money-spaces-quick-add:hover,
html[data-theme='dark'].nf-ios .money-spaces-quick-add:active {
  background: #6a6f73;
}
html[data-theme='dark'].nf-ios .money-spaces-quick-item.is-active {
  background: rgba(255, 255, 255, 0.14);
}
html[data-theme='dark'].nf-ios .money-spaces-quick-item.is-active .money-spaces-quick-meta {
  color: #f2f2f7;
}
html[data-theme='dark'].nf-ios .money-cats-search-toggle.is-active {
  color: #f2f2f7;
}
html[data-theme='dark'].nf-ios .money-cats-search {
  background: #45494d;
  color: #a8adb2;
}
html[data-theme='dark'].nf-ios .money-space-row {
  background: #5e6367;
  border-color: #6a6f73;
}
html[data-theme='dark'].nf-ios .money-space-row:hover {
  border-color: #7a8086;
  background: #6a6f73;
}
html[data-theme='dark'].nf-ios .money-space-row.is-active {
  border-color: #8a9096;
  background: #6a6f73;
}
html[data-theme='dark'].nf-ios .money-space-row-badge {
  background: #45494d;
}
html[data-theme='dark'].nf-ios .money-chip {
  background: #5e6367;
  border-color: #6a6f73;
}
html[data-theme='dark'].nf-ios .money-field input:focus,
html[data-theme='dark'].nf-ios .money-field textarea:focus,
html[data-theme='dark'].nf-ios .money-field select:focus,
html[data-theme='dark'].nf-ios #category-modal .money-field input:focus {
  border-color: #8a9096 !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12) !important;
}
html[data-theme='dark'].nf-ios .money-budget-row.is-active {
  background: #5e6367 !important;
}
html[data-theme='dark'].nf-ios .money-nav-item.is-active,
html[data-theme='dark'].nf-ios .money-nav-item:active {
  background: rgba(255, 255, 255, 0.1);
}

html[data-theme='dark'].nf-ios .money-spaces-quick-item.is-active {
  background: rgba(255, 255, 255, 0.16) !important;
}
html[data-theme='dark'].nf-ios .money-spaces-quick-item.is-active .money-spaces-quick-meta,
html[data-theme='dark'].nf-ios .money-cats-search-toggle.is-active {
  color: #f2f2f7 !important;
}
html[data-theme='dark'].nf-ios .money-ctx-menu-item:hover,
html[data-theme='dark'].nf-ios .money-ctx-menu-item:focus-visible,
html[data-theme='dark'].nf-ios .money-spaces-quick-item:hover,
html[data-theme='dark'].nf-ios .money-spaces-quick-item:active {
  background: #6a6f73 !important;
}
html[data-theme='dark'].nf-ios .money-pane-detail .money-btn-send {
  background: #6b7177;
}
html[data-theme='dark'].nf-ios .money-pane-detail .money-btn-send:hover:not(:disabled) {
  background: #7a8086;
}

/* iOS: logout sheet + leftover cool-blue form surfaces */
html[data-theme='dark'].nf-ios .money-logout-modal {
  background: #343739 !important;
}
html[data-theme='dark'].nf-ios .money-logout-account {
  background: #5e6367;
  border-color: #6a6f73;
}
html[data-theme='dark'].nf-ios .money-btn-ink {
  background: #f2f2f7 !important;
  color: #343739 !important;
}
html[data-theme='dark'].nf-ios .money-btn-ink:hover,
html[data-theme='dark'].nf-ios .money-btn-ink:hover:not(:disabled) {
  background: #ffffff !important;
}
html[data-theme='dark'].nf-ios .money-btn-ink .money-btn-ico {
  color: #343739;
}
html[data-theme='dark'].nf-ios .money-logout-cancel.money-chip {
  background: #5e6367 !important;
  border-color: #6a6f73 !important;
  color: #f2f2f7 !important;
}
html[data-theme='dark'].nf-ios .money-field input,
html[data-theme='dark'].nf-ios .money-field select,
html[data-theme='dark'].nf-ios .money-form input,
html[data-theme='dark'].nf-ios .money-form select,
html[data-theme='dark'].nf-ios .money-inline-form input {
  background: #5e6367;
  border-color: #6a6f73;
}
html[data-theme='dark'].nf-ios .money-modal {
  background: #343739;
  border-color: #6a6f73;
}

/* iOS: period/calendar sheet + date fields + header chips */
html[data-theme='dark'].nf-ios .money-modal.money-modal-period {
  background: #343739 !important;
  border-color: #6a6f73;
}
html[data-theme='dark'].nf-ios .money-modal-head.money-modal-head-period {
  border-bottom-color: #6a6f73;
}
html[data-theme='dark'].nf-ios .money-period-preset:hover {
  background: rgba(255, 255, 255, 0.08);
}
html[data-theme='dark'].nf-ios .money-period-preset.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #f2f2f7;
}
html[data-theme='dark'].nf-ios .money-period-preset:disabled,
html[data-theme='dark'].nf-ios .money-period-preset.is-disabled {
  color: #8a9096;
}
html[data-theme='dark'].nf-ios .money-period-summary {
  color: #a8adb2;
}
html[data-theme='dark'].nf-ios .money-period-dates .money-field input[type='date'],
html[data-theme='dark'].nf-ios .money-field input[type='date'],
html[data-theme='dark'].nf-ios .money-field select,
html[data-theme='dark'].nf-ios .money-bulk-category-field input[type='date'],
html[data-theme='dark'].nf-ios .money-bulk-category-field select {
  background: #5e6367 !important;
  border-color: #6a6f73 !important;
  color: #f2f2f7;
  color-scheme: dark;
}
html[data-theme='dark'].nf-ios .money-field input[type='date']:focus,
html[data-theme='dark'].nf-ios .money-field select:focus,
html[data-theme='dark'].nf-ios .money-bulk-category-field input[type='date']:focus,
html[data-theme='dark'].nf-ios .money-bulk-category-field select:focus {
  border-color: #8a9096 !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12) !important;
}
html[data-theme='dark'].nf-ios input[type='date']::-webkit-calendar-picker-indicator {
  filter: invert(0.92) brightness(1.05);
  opacity: 0.9;
}
html[data-theme='dark'].nf-ios .money-period-apply.money-btn {
  background: #5e6367 !important;
  color: #f2f2f7 !important;
}
html[data-theme='dark'].nf-ios .money-period-apply.money-btn:hover:not(:disabled) {
  background: #6a6f73 !important;
}
html[data-theme='dark'].nf-ios .money-top-period,
html[data-theme='dark'].nf-ios .nf-an-period {
  background: #5e6367;
  border-color: #6a6f73;
  color: #f2f2f7;
}
html[data-theme='dark'].nf-ios .money-top-period:active,
html[data-theme='dark'].nf-ios .nf-an-period:active {
  background: #6a6f73;
}
html[data-theme='dark'].nf-ios .money-top-period-ico,
html[data-theme='dark'].nf-ios .nf-an-period-ico {
  color: #c4c8cc;
}
html[data-theme='dark'].nf-ios input::placeholder,
html[data-theme='dark'].nf-ios textarea::placeholder {
  color: #8a9096;
}

/* iOS: unread bubbles were cool-blue (#243a52) — match gray chrome */
html[data-theme='dark'].nf-ios .money-tx-row.is-unread,
html[data-theme='dark'].nf-ios .money-detail-scroll .money-tx-row.is-unread,
html[data-theme='dark'].nf-ios .money-detail-scroll .money-tx-row.is-unread.has-tx-tail::before {
  background: #4a4f54 !important;
  border-color: transparent;
}
html[data-theme='dark'].nf-ios .money-detail-scroll .money-tx-row.is-tx-mine.is-unread,
html[data-theme='dark'].nf-ios .money-detail-scroll .money-tx-row.is-tx-mine.is-unread.has-tx-tail::before {
  background: #555a5f !important;
}

/*
 * Analytics page: a step darker than app bg on every theme
 * (light #f4f6f5→#e6ebe8 in money-app; dark #1b242f→#141a22; iOS #343739→#2a2d30).
 */
html[data-theme='dark'] .money-home-page[data-home-page='analytics'],
html[data-theme='dark'] .money-analytics-page {
  background: #141a22;
}
/* Analytics chrome: same frosted recipe as home, tinted to analytics bg */
html[data-theme='dark'] .nf-an-head {
  background: rgba(20, 26, 34, 0.58) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
  backdrop-filter: blur(18px) saturate(1.2) !important;
}
html[data-theme='dark'] .nf-an-seg {
  background: transparent !important;
  border: 1px solid rgba(242, 242, 247, 0.12) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}
html[data-theme='dark'] .nf-an-period {
  background: transparent !important;
  border: 1px solid rgba(242, 242, 247, 0.12) !important;
}
html[data-theme='dark'] .nf-an-seg-pill {
  background: color-mix(in srgb, var(--nf-green) 16%, rgba(242, 242, 247, 0.1)) !important;
  box-shadow: none !important;
}
html[data-theme='dark'] .nf-an-veil {
  background: rgba(20, 26, 34, 0.92);
}
html[data-theme='dark'] .nf-an-hero,
html[data-theme='dark'] .nf-an-chart-card,
html[data-theme='dark'] .nf-an-donut-card,
html[data-theme='dark'] .nf-an-panel-card {
  background: #0f141a !important;
  border: none !important;
}
html[data-theme='dark'] .nf-an-donut-card:has(.nf-an-donut-pair) {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
html[data-theme='dark'] .nf-an-donut-pair > .nf-an-donut {
  background: #0f141a !important;
  border: none !important;
}
html[data-theme='dark'] .nf-an-health-chip,
html[data-theme='dark'] .nf-an-balance-cell {
  background: #0f141a !important;
  border-color: rgba(242, 242, 247, 0.08) !important;
}
html[data-theme='dark'] .nf-an-chart-wrap {
  background: transparent !important;
}
html[data-theme='dark'] .nf-an-chart-zero {
  stroke: rgba(242, 242, 247, 0.28);
}
html[data-theme='dark'] .nf-an-chart-grid {
  stroke: rgba(242, 242, 247, 0.1);
}
html[data-theme='dark'] .nf-an-chart-y,
html[data-theme='dark'] .nf-an-chart-x {
  color: rgba(242, 242, 247, 0.55);
}
html[data-theme='dark'] .nf-an-chart-foot {
  color: rgba(242, 242, 247, 0.88);
}
html[data-theme='dark'] .nf-an-chart-legend-item {
  color: rgba(242, 242, 247, 0.55);
}
html[data-theme='dark'] .nf-an-chart-zoom-x,
html[data-theme='dark'] .nf-an-chart-zoom-y {
  --nf-zoom-fill: rgba(242, 242, 247, 0.14);
  --nf-zoom-track: rgba(242, 242, 247, 0.07);
}
html[data-theme='dark'] .nf-an-chart-zoom-x::-webkit-slider-thumb,
html[data-theme='dark'] .nf-an-chart-zoom-y::-webkit-slider-thumb,
html[data-theme='dark'] .nf-an-chart-zoom-x::-moz-range-thumb,
html[data-theme='dark'] .nf-an-chart-zoom-y::-moz-range-thumb {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(242, 242, 247, 0.28);
}
html[data-theme='dark'] .nf-an-chart-reset {
  color: rgba(242, 242, 247, 0.88);
  background: rgba(242, 242, 247, 0.08);
}
html[data-theme='dark'] .nf-an-chart-grid.is-x {
  stroke: rgba(242, 242, 247, 0.08);
}
html[data-theme='dark'][data-home-tab='analytics'] .money-dock-veil {
  background: rgba(27, 36, 47, 0.94);
}
html[data-theme='dark'].nf-ios .money-home-page[data-home-page='analytics'],
html[data-theme='dark'].nf-ios .money-analytics-page {
  background: #2a2d30;
}
html[data-theme='dark'].nf-ios .nf-an-head {
  background: rgba(42, 45, 48, 0.58) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
  backdrop-filter: blur(18px) saturate(1.2) !important;
}
html[data-theme='dark'].nf-ios .nf-an-seg {
  background: transparent !important;
  border: 1px solid rgba(242, 242, 247, 0.12) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}
html[data-theme='dark'].nf-ios .nf-an-period {
  background: transparent !important;
  border: 1px solid rgba(242, 242, 247, 0.12) !important;
}
html[data-theme='dark'].nf-ios .nf-an-seg-pill {
  background: rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
}
html[data-theme='dark'].nf-ios .nf-an-veil {
  background: rgba(42, 45, 48, 0.92);
}
html[data-theme='dark'].nf-ios[data-home-tab='analytics'] .money-dock-veil {
  background: rgba(52, 55, 57, 0.94);
}
