/* FinanzHub — Mono (Vercel/Linear-Style, Pure Schwarz/Grau · Weiß-Akzent)
   Token-Werte 1:1 nach User-Spec (2026-06-12). Spec-exakte Palette:

   Hintergründe (pures Schwarz → Grau):
   bg-0  #060606   App-Hintergrund
   bg-1  #0F0F0F   Subtle alt-bg (Inputs, Toggle-Tracks, Search)
   bg-2  #181818   Karten-Hintergrund
   bg-3  #222222   Card aktiv/hover state
   bg-4  #2C2C2C   Card hover (ring stroke)

   Akzent = Weiß (einziger Akzent, Linear-Pattern für CTAs):
   accent       #FFFFFF
   accent-dim   rgba(255,255,255,0.07)
   accent-line  rgba(255,255,255,0.13)

   Text:        #FFFFFF / #999999 / #555555  (1 / 3 / 4)
   Finanz-Farben (NUR für Geldbeträge):
   positiv #4ADE80   negativ #F87171   neutral #FBBF24

   Akzent-Strategie: Primary CTAs nutzen WEISS als Background.
   Scoped unter body.theme-navy — überschreibt nur Tokens. */

/* ───── Safe Areas (iPhone Notch / Dynamic Island) ───── */
:root {
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left:   env(safe-area-inset-left, 0px);
  --safe-right:  env(safe-area-inset-right, 0px);
}

/* ───── Tokens (Linear-Style) ───── */
body.theme-navy {
  /* Bg-Stack — spec-exakt (pures Schwarz → Grau) */
  --heat-bg-base:    #060606;
  --heat-bg-2:       #0F0F0F;
  --heat-bg-card:    #181818;
  --heat-bg-card-hi: #222222;    /* card aktiv/hover */
  --heat-bg-card-x:  #2C2C2C;    /* card-hover, ring stroke */
  --heat-bg-input:   #0F0F0F;
  /* Neutrale Haarlinien (kein Orange) */
  --heat-line:       rgba(255, 255, 255, 0.07);
  --heat-line-hi:    rgba(255, 255, 255, 0.13);

  /* Text-Stack — spec-exakt (#FFF / #999 / #555) */
  --heat-ink:        #FFFFFF;
  --heat-ink-soft:   #999999;
  --heat-ink-mute:   #555555;

  /* ── EIN Akzent: WEISS (Revolut/Mono) ──
     Primary-CTAs = weiße Füllung mit dunklem Ink. KEIN Orange/Amber mehr.
     Grün/Rot bleiben strikt semantisch (Einnahme/Ausgabe). */
  --heat-warm:       #FFFFFF;
  --heat-warm-soft:  rgba(255, 255, 255, 0.08);
  --heat-warm-glow:  rgba(255, 255, 255, 0.14);
  --heat-warm-ink:   #060606;
  --heat-warm-hover: #E5E5E5;

  /* Semantische Finanz-Farben — NUR Geldfluss (Grün=Einnahme, Rot=Ausgabe) */
  --heat-pos:        #4ADE80;     /* Einnahmen */
  --heat-pos-soft:   rgba(74, 222, 128, 0.10);
  --heat-neg:        #F87171;     /* Ausgaben */
  --heat-neg-soft:   rgba(248, 113, 113, 0.10);
  --heat-amber:      #FFFFFF;     /* Kalender-Events = Akzent (weiß, kein Gelb) */
  --heat-amber-soft: rgba(255, 255, 255, 0.10);
  --heat-lime:       #FFFFFF;     /* Avatar-Spark → weiß */
  --heat-neutral:    #999999;

  /* Legacy Lime-Tokens auf Weiß gemappt */
  --lime:            #FFFFFF;
  --lime-soft:       rgba(255, 255, 255, 0.10);
  --lime-deep:       #E5E5E5;
  --lime-ink:        #060606;

  --yellow:          #A1A1AA;       /* neutral-grau, kein Akzent */
  --coral:           #F87171;
  --pink:            #FAFAFA;
  --orange-warm:     #FFFFFF;
  --green-card:      #181818;
  --pink-card:       #181818;
  --orange-warm-card: #181818;

  /* ── Legacy base.css :root-Tokens (violett) auf Mono überschreiben ──
     Verhindert Violett-Reste bei alten Komponenten die noch --bg/--blue lesen.
     Nur unter body.theme-navy — lime-Theme bleibt unberührt. */
  --bg:         #060606;
  --bg2:        #181818;
  --bg3:        #222222;
  --border:     rgba(255, 255, 255, 0.07);  /* neutrale Linie */
  --blue:       #FFFFFF;            /* Akzent → Weiß */
  --blue-dim:   rgba(255, 255, 255, 0.07);
  --green:      #4ADE80;            /* semantisch: positiv/Einnahme */
  --green-dim:  rgba(74, 222, 128, 0.12);
  --orange:     #FFFFFF;            /* kein Orange → Weiß-Akzent */
  --orange-dim: rgba(255, 255, 255, 0.07);
  --red:        #F87171;            /* semantisch: negativ/Ausgabe */
  --red-dim:    rgba(248, 113, 113, 0.12);
  --purple:     #FFFFFF;            /* Akzent → Weiß */
  --purple-dim: rgba(255, 255, 255, 0.07);
  --text:       #FFFFFF;
  --text2:      #999999;
  --text3:      #555555;

  /* ── Kanonische Akzent-Tokens (EINE Quelle der Wahrheit) — WEISS ── */
  --accent:          #FFFFFF;
  --accent-deep:     #E5E5E5;       /* Hover/Press */
  --accent-tint:     rgba(255, 255, 255, 0.10);
  --accent-soft:     rgba(255, 255, 255, 0.08);
  --accent-dim:      rgba(255, 255, 255, 0.12);
  --accent-ink:      #060606;       /* dunkler Text auf weißer Füllung */
  --accent-contrast: #060606;
  --accent-rgb:      255, 255, 255;
  --gradient:        linear-gradient(135deg, #FFFFFF 0%, #E5E5E5 100%);

  /* Mobile Spacing aus Kole Jain Detail-Sektion */
  --page-padding-x:  16px;
  --page-padding-y:  20px;
  --card-padding:    14px;
  --card-gap:        10px;
  --section-gap:     22px;
  --list-item-height: 52px;

  /* Typografie-Skala (5 Größen, Kole Jain §2) */
  --text-hero:       2rem;       /* 32px */
  --text-title:      1.125rem;   /* 18px */
  --text-body:       0.9375rem;  /* 15px */
  --text-small:      0.8125rem;  /* 13px */
  --text-micro:      0.6875rem;  /* 11px */

  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* Linear-Style: Inter Stylistic Alternates + Tight Letter-Spacing */
  font-feature-settings: 'cv11', 'ss01';
  letter-spacing: -0.01em;
}

/* Linear-Style Typography Refinements */
body.theme-navy h1,
body.theme-navy .heat-greeting,
body.theme-navy .prognose-title,
body.theme-navy .heat-page-title {
  font-weight: 500;                    /* leichter, nicht bold */
  letter-spacing: -0.035em;            /* deutlich enger */
  line-height: 1.05;
}

body.theme-navy h2,
body.theme-navy h3,
body.theme-navy .card-title,
body.theme-navy .heat-panel-title,
body.theme-navy .heat-card-title {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Hero-Zahlen (Gesamtvermögen, Networth, KPI-Hauptwerte) — Linear-Stat-Stil */
body.theme-navy .networth-num,
body.theme-navy .heat-kpi-value,
body.theme-navy .prognose-num,
body.theme-navy .heat-hero-num,
body.theme-navy .dash-hero-num {
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* Eyebrow-Labels (GESAMTVERMÖGEN, RESTBUDGET) — uppercase tracking */
body.theme-navy .heat-kpi-label,
body.theme-navy .card-label,
body.theme-navy .eyebrow,
body.theme-navy .heat-eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heat-ink-soft);
  font-weight: 600;
}

/* Delta-Chip (kleine Pill mit +/- Wert oben am Hero) */
body.theme-navy .heat-delta,
body.theme-navy .delta-pill,
body.theme-navy .networth-delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  background: var(--heat-pos-soft);
  color: var(--heat-pos);
  padding: 5px 11px;
  border-radius: 999px;
}
body.theme-navy .heat-delta.is-neg,
body.theme-navy .networth-delta.is-neg {
  background: var(--heat-neg-soft);
  color: var(--heat-neg);
}

/* Desktop/Tablet: mehr Atemraum */
@media (min-width: 768px) {
  body.theme-navy {
    --page-padding-x: 24px;
    --card-padding:   20px;
  }
}

/* Mobile-Token-Override lebt jetzt ALLEIN in revolut.css §2b (lädt zuletzt → gewinnt).
   Der frühere Block hier (#060606/#181818) wurde komplett überschrieben und ist
   entfernt, damit es nur EINE Quelle für mobile navy-Tokens gibt. */

body.theme-navy,
body.theme-navy input,
body.theme-navy button,
body.theme-navy select,
body.theme-navy textarea {
  font-family: 'Inter', system-ui, sans-serif;
}

/* Body-Background — PURE Schwarz wie Vercel. Kein Tint, kein Glow.
   Falls User per Anpassen-Panel ein BG-Layer wählt, kommt das über --page-bg. */
html[data-theme] body.theme-navy {
  background: var(--page-bg, #060606);
  background-attachment: fixed;
}

/* ───── SVG-Glyphs (Emoji-Ersatz aus icons.js) zentrieren + neutral färben ───── */
.fh-onb-opt-glyph, .fh-onb-illu-emoji, .fh-onb-illu-emoji-lg,
.budget-cat-glyph, .budget-target-glyph, .budget-icon-glyph, .budget-side-empty-glyph,
.kz-glyph, .kal-tx-glyph, .kal-tx-leer-icon,
.nw-empty-glyph, .schulden-empty-glyph, .schulden-next-icon, .schuld-sim-icon,
.heat-bc-empty-glyph, .prognose-empty-glyph, .settings-tool-emoji,
.mb-emoji, .mb-compare-icon, .recurring-toast-ico, .recurring-banner-ico,
.tx-suggestion-spark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fh-onb-opt-glyph svg, .budget-cat-glyph svg, .budget-target-glyph svg,
.budget-icon-glyph svg, .kz-glyph svg, .kal-tx-glyph svg, .settings-tool-emoji svg {
  color: var(--heat-ink-soft, #999999);
}
.fh-onb-illu-emoji svg, .fh-onb-illu-emoji-lg svg,
.budget-side-empty-glyph svg, .nw-empty-glyph svg, .schulden-empty-glyph svg,
.heat-bc-empty-glyph svg, .prognose-empty-glyph svg, .kal-tx-leer-icon svg {
  color: var(--heat-ink-mute, #555555);
}
/* Welcome-Baum: ein Hauch Leben auf dem Begrüßungs-Screen — grün statt grau */
.fh-onb-illu-green .fh-onb-illu-emoji svg {
  color: var(--heat-pos, #4ADE80);
}

/* Headlines bekommen Manrope (gleiche Typo-Hierarchie wie lime) */
body.theme-navy h1, body.theme-navy h2, body.theme-navy h3, body.theme-navy h4, body.theme-navy h5,
body.theme-navy .networth-num,
body.theme-navy .heat-kpi-value,
body.theme-navy .tx-amt,
body.theme-navy .tx-name,
body.theme-navy .card-title,
body.theme-navy .card-total,
body.theme-navy .account-value,
body.theme-navy .spending-row-val,
body.theme-navy .dash-avatar,
body.theme-navy .lime-streak-num,
body.theme-navy .lime-promo h4,
body.theme-navy .donut-value,
body.theme-navy .hero-stat .val,
body.theme-navy .lime-day-num,
body.theme-navy .anpassen-trigger,
body.theme-navy .ap-header h3 {
  font-family: 'Manrope', 'Inter', sans-serif;
  letter-spacing: -0.3px;
}

/* Stage/grain ausblenden — Navy nutzt die Gradient-Body-BG */
body.theme-navy .stage,
body.theme-navy #stage-bg,
body.theme-navy #stage-overlay,
body.theme-navy .grain { display: none; }

/* ───── App Shell ─────
   Layout (Grid, off-canvas Sidebar) kommt komplett aus heat.css. Hier nur
   sicherstellen dass der BG transparent ist (damit body-gradient durchscheint)
   und KEIN overflow:hidden/100vh-Fix — sonst stirbt Touch-Scroll. */
body.theme-navy #app-root {
  background: transparent;
}

/* ───── Touch Targets: min 44×44 (Apple HIG, Kole Jain §5.2) ───── */
body.theme-navy button,
body.theme-navy a[role="button"],
body.theme-navy .btn-primary,
body.theme-navy .btn-secondary,
body.theme-navy .btn-danger,
body.theme-navy .nav-item,
body.theme-navy .mobile-bottom-nav a,
body.theme-navy .mobile-bottom-nav button {
  min-height: 44px;
}

/* Kleine Icon-Buttons: 44×44 Tap-Area, Icon innen kleiner */
body.theme-navy .icon-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: transparent;
  color: var(--heat-ink);
  border: 1px solid var(--heat-line);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

body.theme-navy .icon-button:hover {
  background: var(--heat-warm-soft);
  border-color: var(--heat-warm);
}

/* ───── Cards: einheitliches Pattern ───── */
body.theme-navy .card,
body.theme-navy .kpi-card,
body.theme-navy .chart-card {
  background: var(--heat-bg-card);
  border: 1px solid var(--heat-line);
  border-radius: 16px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body.theme-navy .card:hover,
body.theme-navy .kpi-card:hover,
body.theme-navy .chart-card:hover {
  transform: translateY(-1px);
  border-color: var(--heat-line-hi);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30);
}

/* ── ETF-Sparplan KPI-Karten (sparplan.css ist NICHT geladen → hier stylen) ──
   Wrapper-Grids + Karten-Innenleben: Label oben (text-3, 11px uppercase),
   Wert groß (text-1, 24px). White-only: keine farbigen Tag-Pills. */
body.theme-navy .etf-summary-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px;
}
body.theme-navy .etf-detail-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px;
}
body.theme-navy .etf-summary-cards .kpi-card,
body.theme-navy .etf-detail-stats .kpi-card {
  padding: 16px 18px; border-radius: 10px;
  display: flex; flex-direction: column; gap: 6px;
}
body.theme-navy .etf-summary-cards .kpi-tag,
body.theme-navy .etf-detail-stats .kpi-tag {
  display: block; background: none; padding: 0;
  font: 600 11px/1.2 'DM Sans', Inter, sans-serif;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--heat-ink-soft);
}
body.theme-navy .etf-summary-cards .kpi-num,
body.theme-navy .etf-detail-stats .kpi-num {
  font-size: 24px; font-weight: 700; line-height: 1.15;
  color: var(--heat-ink); letter-spacing: -.01em;
  font-family: 'DM Mono', 'JetBrains Mono', monospace;
}
body.theme-navy .etf-summary-cards .kpi-sub,
body.theme-navy .etf-detail-stats .kpi-sub {
  font-size: 12px; line-height: 1.4; color: var(--heat-ink-mute);
}
body.theme-navy .kpi-num.text-green { color: var(--heat-pos); }
body.theme-navy .kpi-num.text-red   { color: var(--heat-neg); }

/* ───── Bottom-Nav: Backdrop-Blur, Safe-Area, höherer Kontrast ───── */
body.theme-navy .mobile-bottom-nav {
  background: rgba(18, 18, 18, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--heat-line);
  padding-bottom: calc(8px + var(--safe-bottom));
}

body.theme-navy .mobile-bottom-nav a,
body.theme-navy .mobile-bottom-nav button {
  color: var(--heat-ink-mute);
  transition: color 0.18s ease;
}

body.theme-navy .mobile-bottom-nav a.active,
body.theme-navy .mobile-bottom-nav a[aria-current="page"],
body.theme-navy .mobile-bottom-nav button.active {
  color: var(--heat-warm);
}

/* Mobile-Header: Notch-safe */
body.theme-navy .mobile-header {
  padding-top: calc(8px + var(--safe-top));
}

/* ───── Button-System (Kole Jain §4 — Primary CTA Teal, immer prominent) ───── */
body.theme-navy .btn-primary {
  background: var(--accent);
  color: var(--accent-ink, #fff);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

body.theme-navy .btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--heat-warm-glow);
}

body.theme-navy .btn-primary:active {
  transform: translateY(0) scale(0.97);
}

body.theme-navy .btn-secondary {
  background: transparent;
  color: var(--heat-ink);
  border: 1px solid var(--heat-line);
  padding: 11px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

body.theme-navy .btn-secondary:hover {
  border-color: var(--heat-warm);
  color: var(--heat-warm);
}

body.theme-navy .btn-danger {
  background: rgba(248, 113, 113, 0.12);
  color: var(--heat-neg);
  border: 1px solid rgba(248, 113, 113, 0.30);
  padding: 11px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s ease;
}

body.theme-navy .btn-danger:hover {
  background: rgba(248, 113, 113, 0.20);
}

/* ───── FAB (Floating Action Button) — über Bottom-Nav schwebend ───── */
body.theme-navy .fab {
  position: fixed;
  right: calc(20px + var(--safe-right));
  /* Bottom-Nav ist 64px + safe-area; FAB ≥20px darüber → keine Fehl-Taps.
     64 + 20 = 84px Sockel über der Nav-Oberkante. */
  bottom: calc(84px + var(--safe-bottom));
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--accent-ink, #fff);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--heat-warm-glow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  z-index: 50;
}

body.theme-navy .fab:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 32px var(--heat-warm-glow);
}

/* ───── Inputs: Label ÜBER Feld, größere Tap-Area (Kole Jain §5.5) ───── */
body.theme-navy .input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.theme-navy .input-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--heat-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.theme-navy .input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(15, 21, 38, 0.85);
  border: 1px solid var(--heat-line);
  border-radius: 12px;
  padding: 0 14px;
  height: 52px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.theme-navy .input-wrapper:focus-within {
  border-color: var(--heat-warm);
  box-shadow: 0 0 0 3px var(--heat-warm-soft);
}

body.theme-navy .input-prefix {
  color: var(--heat-ink-soft);
  font-size: 15px;
  margin-right: 8px;
}

body.theme-navy .input-field {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--heat-ink);
  font-size: 18px;
  font-weight: 600;
  font-family: inherit;
}

body.theme-navy .input-error {
  font-size: 13px;
  color: var(--heat-neg);
}

/* ───── Bottom Sheet (Modal von unten — Kole Jain §5.6) ───── */
body.theme-navy .sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  animation: navy-fadeIn 0.20s ease;
}

body.theme-navy .sheet {
  background: var(--heat-bg-card);
  border-radius: 24px 24px 0 0;
  width: 100%;
  padding: 20px 20px calc(20px + var(--safe-bottom));
  animation: navy-slideUp 0.30s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 90vh;
  overflow-y: auto;
  border-top: 1px solid var(--heat-line-hi);
}

/* Screen-Container (Rechner/Berichte/Settings rendern als <section class="sheet">
   in den heat-main-host) — flach auf App-BG, kein Bottom-Sheet-Panel-Look */
body.theme-navy .heat-main-host > .sheet {
  background: transparent;
  border-radius: 0;
  border-top: none;
  max-height: none;
  overflow: visible;
  animation: none;
}

body.theme-navy .sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--heat-line-hi);
  border-radius: 2px;
  margin: 0 auto 20px;
}

@keyframes navy-slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@keyframes navy-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ───── Empty State Component (Kole Jain §7 — Icon + Headline + Desc + CTA) ───── */
body.theme-navy .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  gap: 12px;
}

body.theme-navy .empty-state .empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--heat-warm-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--heat-warm);
  margin-bottom: 4px;
}

body.theme-navy .empty-state .empty-icon svg {
  width: 40px;
  height: 40px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

body.theme-navy .empty-state .empty-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--heat-ink);
  margin: 0;
}

body.theme-navy .empty-state .empty-desc {
  font-size: 14px;
  color: var(--heat-ink-soft);
  max-width: 320px;
  line-height: 1.5;
  margin: 0;
}

body.theme-navy .empty-state .btn-primary {
  margin-top: 8px;
}

/* ───── Toast: konsistente Akzent-Border je Type ───── */
body.theme-navy .fh-toast {
  background: rgba(24, 24, 24, 0.97);
  border: 1px solid var(--heat-line);
  color: var(--heat-ink);
}

body.theme-navy .fh-toast.success { border-color: rgba(74, 222, 128, 0.40); }
body.theme-navy .fh-toast.success svg { color: var(--heat-pos); }
body.theme-navy .fh-toast.error   { border-color: rgba(248, 113, 113, 0.40); }
body.theme-navy .fh-toast.error svg { color: var(--heat-neg); }
body.theme-navy .fh-toast.info    { border-color: var(--heat-warm-soft); }
body.theme-navy .fh-toast.info svg { color: var(--heat-warm); }

/* ───── Skeleton Loading (Shimmer) ───── */
@keyframes navy-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

body.theme-navy .skeleton {
  background: linear-gradient(
    90deg,
    var(--heat-bg-card) 25%,
    var(--heat-bg-card-hi) 50%,
    var(--heat-bg-card) 75%
  );
  background-size: 200% 100%;
  animation: navy-shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ───── Page-Transition (Card-Entrance) — bewusst KEIN prefers-reduced-motion Guard,
   da Eytan's Windows immer reduced-motion meldet (siehe user-pref). ───── */
@keyframes navy-cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

body.theme-navy .card-enter,
body.theme-navy .kpi-card {
  animation: navy-cardIn 0.30s ease forwards;
}

/* ───── Mobile: Tabbar-Platz freihalten, Content scrollt drüber ─────
   .heat-main ist der eigentliche Content-Container in dieser Codebase.
   Wichtig: KEIN overflow:hidden/auto auf body oder #app-root setzen — das
   würde Touch-Scroll killen. */
@media (max-width: 768px) {
  body.theme-navy .heat-main {
    padding-bottom: calc(96px + var(--safe-bottom));
  }
}

/* ───── Transaktions-Item Anatomie (Kole Jain §5.4) ───── */
body.theme-navy .transaktion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px var(--page-padding-x);
  min-height: var(--list-item-height);
  border-bottom: 1px solid var(--heat-line);
}

body.theme-navy .transaktion-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--heat-warm-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--heat-warm);
}

body.theme-navy .transaktion-info {
  flex: 1;
  min-width: 0;
}

body.theme-navy .transaktion-titel {
  font-size: 15px;
  font-weight: 600;
  color: var(--heat-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-navy .transaktion-kategorie {
  font-size: 13px;
  color: var(--heat-ink-soft);
  margin-top: 2px;
}

body.theme-navy .transaktion-betrag {
  text-align: right;
  flex-shrink: 0;
}

body.theme-navy .transaktion-wert {
  font-size: 15px;
  font-weight: 700;
  color: var(--heat-ink);
}

body.theme-navy .transaktion-wert.positiv { color: var(--heat-pos); }
body.theme-navy .transaktion-wert.negativ { color: var(--heat-neg); }

body.theme-navy .transaktion-datum {
  font-size: 13px;
  color: var(--heat-ink-soft);
  margin-top: 2px;
}

/* ───── Onboarding-Wizard: Orange-Akzent → Teal (Kole Jain Default-Look) ─────
   onboarding.css hat hardcoded #f97316 / #ea580c. Statt die Datei zu ändern
   (würde Lime-User-Style brechen) überschreiben wir nur unter body.theme-navy. */
body.theme-navy .fh-onb-progress-fill {
  background: var(--heat-warm);
}

body.theme-navy .fh-onb-next {
  background: var(--heat-warm);
  color: #0A0A0A;
  box-shadow: 0 4px 14px var(--heat-warm-glow);
}

body.theme-navy .fh-onb-next:hover {
  background: #E5E5E5;
  box-shadow: 0 6px 20px var(--heat-warm-glow);
}

body.theme-navy .fh-onb-input:focus,
body.theme-navy .fh-onb-income-input:focus-within {
  border-color: var(--heat-warm);
  background: rgba(255, 255, 255, 0.06);
}

body.theme-navy .fh-onb-opt.is-selected {
  background: var(--heat-warm-soft);
  border-color: rgba(255, 255, 255, 0.35);
}

body.theme-navy .fh-onb-opt-check {
  color: var(--heat-warm);
}

body.theme-navy .fh-onb-none {
  color: var(--heat-warm);
}

body.theme-navy .fh-onb-none:hover {
  color: var(--heat-pos);
}

/* Skip-Button (oben rechts) — etwas dezenter */
body.theme-navy .fh-onb-skip {
  color: var(--heat-ink-soft);
  border-color: var(--heat-line);
}

body.theme-navy .fh-onb-skip:hover {
  color: var(--heat-warm);
  border-color: var(--heat-warm);
}

/* ───── PWA-Install-Banner: Lime → Teal Akzent ───── */
body.theme-navy .pwa-banner-mark {
  background: var(--heat-warm);
}

body.theme-navy .pwa-banner-sub strong {
  color: var(--heat-warm);
}

body.theme-navy .pwa-banner-install {
  background: var(--heat-warm);
  color: #0A0A0A;
}

body.theme-navy .pwa-banner-install:hover {
  background: #E5E5E5;
}

/* ───── Hartcodierte Orange-Reste (heat.css/modal.css/bon-scanner) → Teal ─────
   Diese Selektoren haben in den Quell-CSS noch echte #f97316/#E8690A drin.
   Statt Quell-Files zu ändern (würde Lime brechen) hier scoped override. */

/* Prognose-Sim-Warn (Forecast-Slider-Warnung) — Orange-Panel → Teal-Panel */
body.theme-navy .prognose-sim-warn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  border-left-color: var(--heat-warm);
}
body.theme-navy .prognose-sim-warn-text { color: var(--heat-ink-soft); }
body.theme-navy .prognose-sim-warn-link {
  color: var(--heat-warm);
  border-color: rgba(255, 255, 255, 0.25);
}
body.theme-navy .prognose-sim-warn-link:hover {
  background: var(--heat-warm);
  color: #0A0A0A;
}

/* Kalender "heute"-Highlight (.kz-date.is-today + .kz-foot-val) */
body.theme-navy .kz-date.is-today { color: var(--heat-warm); }
body.theme-navy .kz-foot-val      { color: var(--heat-warm); }

/* Month-Progress-Bars: orange warn → muted gold/amber (bleibt warnend ohne Heat) */
body.theme-navy .month-progress-bar-fill.is-warn { background: var(--heat-ink-soft); }
body.theme-navy .month-progress-bar-fill.is-ok   { background: var(--heat-pos); }

/* KI-Tipp-Card: orange-Glow → subtiles Teal-Glow */
body.theme-navy .ki-tipp-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255,255,255,.012));
  border-color: rgba(255, 255, 255, 0.12);
}
body.theme-navy .ki-tipp-card::before {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 60%);
}
body.theme-navy .ki-tipp-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--accent-ink, #fff);
}

/* Modal-Spinner (modal.css:326) → Teal */
body.theme-navy .modal-spinner,
body.theme-navy .loading-spinner {
  border-top-color: var(--heat-warm) !important;
}

/* Bon-Scanner Akzentfarbe (bon-scanner.css:140) → Teal */
body.theme-navy #bon-scanner-root [style*="color: rgb(249, 115, 22)"],
body.theme-navy .bon-accent { color: var(--heat-warm); }

/* Netfeatures Akzent (netfeatures.css:261) → Teal */
body.theme-navy .netfeature-accent { color: var(--heat-warm); }

/* Budget-Warn-Banner ("Kein Einkommen hinterlegt") → muted Grau (kein Amber mehr) */
body.theme-navy .budget-assign-warn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}
body.theme-navy .budget-assign-warn-icon { color: var(--heat-ink-soft); }

/* Mobile Header Logo (heat.css line 131,620): Gradient White→Red → solid Weiß-Square */
body.theme-navy .mobile-header-logo {
  background: #FFFFFF !important;
  color: #0A0A0A !important;
}
body.theme-navy .pwa-banner-mark,
body.theme-navy .heat-side-mark,
body.theme-navy .heat-header-avatar {
  background: #FFFFFF !important;
  color: #0A0A0A !important;
}

/* Falls die Anpassen-Panel-Pill noch ein gefärbtes Bullet hat → weiß */
body.theme-navy .dash-anpassen-pill {
  background: #FFFFFF !important;
  color: #0A0A0A !important;
}
body.theme-navy .dash-anpassen-pill svg,
body.theme-navy .dash-anpassen-pill::before {
  color: #0A0A0A !important;
}

/* Bottom-Nav: aktiver Tab in Weiß (statt der theme-warm-soft Box) */
body.theme-navy .mobile-bnav-item.is-active {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.06) !important;
}
body.theme-navy .mobile-bnav-item:not(.is-active) {
  color: var(--heat-ink-mute);
}

/* "finanz.hub"-Logo-Box im Dashboard-Header — selbe Behandlung */
body.theme-navy .heat-brand-mark,
body.theme-navy .heat-greeting-mark {
  background: #FFFFFF !important;
  color: #0A0A0A !important;
}

/* ═════════════════════════════════════════════════════════════
   LINEAR-STYLE — Cards, Pills, Toggle-Segments
   1:1 aus Design-Handoff (FinanzHub - Black Linear Style.html)
   ═════════════════════════════════════════════════════════════ */

/* Cards: thin border, kompakt, kein Hover-Lift (Linear sind statisch) */
body.theme-navy .heat-card,
body.theme-navy .heat-tile,
body.theme-navy .tile,
body.theme-navy .heat-panel {
  background: var(--heat-bg-card);
  border: 1px solid var(--heat-line);
  border-radius: 16px;
}
body.theme-navy .heat-card-lg,
body.theme-navy .heat-hero {
  border-radius: 18px;
}

/* Pills (Action-Buttons im Header — "Einnahme", "Ausgabe", "Sparziel") */
body.theme-navy .pill,
body.theme-navy .heat-pill,
body.theme-navy .heat-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  border-radius: 10px;
  background: var(--heat-bg-card);
  border: 1px solid var(--heat-line);
  font-size: 13px;
  font-weight: 500;
  color: var(--heat-ink);
  cursor: pointer;
}
body.theme-navy .pill svg,
body.theme-navy .heat-pill svg,
body.theme-navy .heat-action-pill svg {
  width: 15px;
  height: 15px;
  color: var(--heat-ink-soft);
}
body.theme-navy .pill.primary,
body.theme-navy .heat-pill.primary,
body.theme-navy .heat-action-pill.primary {
  background: #FFFFFF;
  color: #0A0A0A;
  border-color: #FFFFFF;
}
body.theme-navy .pill.primary svg,
body.theme-navy .heat-pill.primary svg,
body.theme-navy .heat-action-pill.primary svg {
  color: #0A0A0A;
}

/* Toggle-Segments (Monat/Quartal/Jahr, 1T/1W/1M/etc.) */
body.theme-navy .heat-toggle,
body.theme-navy .heat-seg,
body.theme-navy .heat-tabs,
body.theme-navy .heat-range-tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--heat-bg-2);
  border: 1px solid var(--heat-line);
  border-radius: 9px;
  padding: 3px;
}
body.theme-navy .heat-toggle > *,
body.theme-navy .heat-seg > *,
body.theme-navy .heat-tabs > *,
body.theme-navy .heat-range-tabs > * {
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 7px;
  color: var(--heat-ink-mute);
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  border: none;
}
body.theme-navy .heat-toggle > .is-active,
body.theme-navy .heat-seg > .is-active,
body.theme-navy .heat-tabs > .is-active,
body.theme-navy .heat-range-tabs > .is-active {
  background: var(--heat-bg-card-hi);
  color: var(--heat-ink);
  border: 1px solid var(--heat-line);
}

/* Calendar-Events: Amber-Akzent (Linear-Style Reference) */
body.theme-navy .heat-cal-event,
body.theme-navy .cal-event,
body.theme-navy .calendar-event {
  background: var(--heat-amber-soft);
  border-left: 3px solid var(--heat-amber);
  border-radius: 8px;
  padding: 9px 11px;
}
body.theme-navy .heat-cal-event-title,
body.theme-navy .cal-event-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #F2D58A;
  line-height: 1.25;
}
body.theme-navy .heat-cal-event-time,
body.theme-navy .cal-event-time {
  font-size: 11px;
  color: rgba(242, 213, 138, 0.7);
  margin-top: 3px;
}

/* Avatar im Sidebar — Linear-Stil Square mit subtilem Gradient */
body.theme-navy .heat-side-avatar,
body.theme-navy .heat-profile-avatar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, #2a2a2a, #161616) !important;
  border: 1px solid var(--heat-line-hi) !important;
  color: var(--heat-ink) !important;
  position: relative;
}
body.theme-navy .heat-side-avatar::after,
body.theme-navy .heat-profile-avatar::after {
  content: '';
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--heat-pos);
  border: 2.5px solid var(--heat-bg-base);
}

/* "Plus"-Upgrade-Pille in Sidebar (Linear-Style untere Sektion) */
body.theme-navy .heat-side-upgrade,
body.theme-navy .heat-upgrade-card {
  background: var(--heat-bg-card);
  border: 1px solid var(--heat-line);
  border-radius: 13px;
  padding: 14px;
}
body.theme-navy .heat-side-upgrade button,
body.theme-navy .heat-upgrade-card button {
  width: 100%;
  height: 34px;
  border: none;
  border-radius: 9px;
  background: var(--heat-ink);
  color: var(--heat-bg-base);
  font-weight: 600;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
}

/* Score-Ring (Finanz-Score wie im Design — Red-Coral) */
body.theme-navy .heat-score-ring circle:last-child,
body.theme-navy .finanz-score-ring circle:last-child {
  stroke: var(--heat-neg) !important;
}
body.theme-navy .heat-score-value,
body.theme-navy .finanz-score-val {
  color: var(--heat-neg);
}

/* Greeting-Block (Dashboard top) — kompaktes Linear-Layout */
body.theme-navy .heat-greeting {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
body.theme-navy .heat-greeting-sub,
body.theme-navy .heat-date {
  font-size: 15px;
  color: var(--heat-ink-soft);
  font-weight: 450;
  margin-top: 9px;
}

/* Networth-Hero — big number Linear-Style */
body.theme-navy .networth-num {
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 16px;
}

@media (max-width: 768px) {
  body.theme-navy .heat-greeting {
    font-size: clamp(28px, 7vw, 36px);
  }
  body.theme-navy .networth-num {
    font-size: clamp(42px, 11vw, 56px);
  }
}

/* ═════════════════════════════════════════════════════════════
   PHASE 2 — Touch Targets + Input-Felder (Kole Jain §5.2, §5.5)
   ═════════════════════════════════════════════════════════════ */

/* Min 44×44 für alle klickbaren Elemente auf Mobile (Apple HIG).
   tab-bar items, Bottom-Nav, kleinere Buttons sind schon explizit gestyled —
   das hier ist Sicherheitsnetz für alles andere. */
@media (max-width: 768px) {
  body.theme-navy button:not(.mobile-bnav-item):not(.heat-tab):not(.mobile-drawer-close):not(.tweaks-trigger),
  body.theme-navy a[role="button"]:not(.mobile-bnav-item),
  body.theme-navy [role="button"] {
    min-height: 44px;
  }
  /* Icon-Buttons (z.B. mobile-customize) sind eh 38px — die haben definiertes
     Tap-Padding, also nicht erzwingen. Zusatzregel nur falls noch was rauslugt. */
}

/* Input-Felder im Pure-Mono-Look: Label OBEN (Kole Jain §5.5).
   Greift auf neue .input-group / .field-* Klassen — und überschreibt
   alte hardcoded input-Styles im Dark-Theme. */
body.theme-navy .input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
body.theme-navy .input-label,
body.theme-navy .field-label {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--heat-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
body.theme-navy .input-wrapper {
  display: flex;
  align-items: center;
  background: var(--heat-bg-input, #111111);
  border: 1px solid var(--heat-line);
  border-radius: 12px;
  padding: 0 14px;
  height: 52px;
  transition: border-color .18s, box-shadow .18s;
}
body.theme-navy .input-wrapper:focus-within {
  border-color: var(--heat-warm);
  box-shadow: 0 0 0 3px var(--heat-warm-soft);
}
body.theme-navy .input-prefix {
  color: var(--heat-ink-soft);
  font-size: var(--text-body);
  margin-right: 8px;
}
body.theme-navy .input-field {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--heat-ink);
  font-size: var(--text-title);
  font-weight: 600;
  min-width: 0;
}

/* Generische input/select-Polish im Pure-Mono — sanft, ohne bestehende
   Komponenten-Selektoren zu überstimmen. Greift nur dort wo nicht
   explizit gestyled. */
body.theme-navy input[type="text"]:not(.input-field):not([class*="heat-"]):not([class*="tx-"]),
body.theme-navy input[type="number"]:not(.input-field):not([class*="heat-"]):not([class*="tx-"]),
body.theme-navy input[type="email"]:not(.input-field),
body.theme-navy input[type="search"]:not(.input-field),
body.theme-navy textarea:not([class*="heat-"]) {
  background: var(--heat-bg-input, #111111);
  border: 1px solid var(--heat-line);
  border-radius: 10px;
  color: var(--heat-ink);
  padding: 12px 14px;
  font-size: var(--text-body);
  transition: border-color .18s, box-shadow .18s;
  min-height: 44px;
}
body.theme-navy input[type="text"]:not(.input-field):focus,
body.theme-navy input[type="number"]:not(.input-field):focus,
body.theme-navy input[type="email"]:not(.input-field):focus,
body.theme-navy input[type="search"]:not(.input-field):focus,
body.theme-navy textarea:focus {
  border-color: var(--heat-warm);
  box-shadow: 0 0 0 3px var(--heat-warm-soft);
  outline: none;
}

/* ═════════════════════════════════════════════════════════════
   PHASE 3 — Empty States (Kole Jain §7)
   Struktur: [Icon-Box] + [Title] + [Description] + [CTA]
   ═════════════════════════════════════════════════════════════ */
body.theme-navy .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  gap: 10px;
}
body.theme-navy .empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--heat-warm-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--heat-warm);
  margin-bottom: 6px;
}
body.theme-navy .empty-state-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.8;
}
body.theme-navy .empty-state-title {
  font-size: var(--text-title);
  font-weight: 700;
  color: var(--heat-ink);
  margin: 0;
  letter-spacing: -0.01em;
}
body.theme-navy .empty-state-desc {
  font-size: var(--text-body);
  color: var(--heat-ink-soft);
  max-width: 280px;
  line-height: 1.55;
  margin: 0;
}
body.theme-navy .empty-state-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--heat-warm);
  color: #0A0A0A;
  font-weight: 600;
  font-size: var(--text-body);
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  transition: background .18s, transform .18s, box-shadow .18s;
}
body.theme-navy .empty-state-cta:hover {
  background: #E5E5E5;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--heat-warm-glow);
}

/* ═════════════════════════════════════════════════════════════
   PHASE 4 — Page-Transitions + Card-Entrance
   ═════════════════════════════════════════════════════════════ */

/* Card-Entrance: jeder neue .card oder heat-card fadet smooth ein */
@keyframes fhCardIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.theme-navy .heat-card,
body.theme-navy .heat-tile,
body.theme-navy .tile {
  animation: fhCardIn .32s cubic-bezier(.22,.61,.36,1) both;
}

/* Stagger für Listen */
body.theme-navy .tx-list > *:nth-child(1) { animation-delay: 0ms; }
body.theme-navy .tx-list > *:nth-child(2) { animation-delay: 40ms; }
body.theme-navy .tx-list > *:nth-child(3) { animation-delay: 80ms; }
body.theme-navy .tx-list > *:nth-child(4) { animation-delay: 120ms; }
body.theme-navy .tx-list > *:nth-child(5) { animation-delay: 160ms; }
body.theme-navy .tx-list > *:nth-child(6) { animation-delay: 200ms; }

/* Page-Transition: View-Wechsel slide+fade.
   Triggered durch body.view-XXX Class-Change wenn Router umschaltet. */
@keyframes fhPageIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}
body.theme-navy #heat-content-host {
  animation: fhPageIn .25s cubic-bezier(.22,.61,.36,1) both;
}

/* Skeleton-Shimmer fürs Laden */
@keyframes fhShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
body.theme-navy .skeleton {
  background: linear-gradient(90deg,
    var(--heat-bg-card) 25%,
    var(--heat-bg-card-hi) 50%,
    var(--heat-bg-card) 75%);
  background-size: 200% 100%;
  animation: fhShimmer 1.5s linear infinite;
  border-radius: 8px;
  color: transparent;
  user-select: none;
}

/* Reduced motion respektieren */
@media (prefers-reduced-motion: reduce) {
  body.theme-navy .heat-card,
  body.theme-navy .heat-tile,
  body.theme-navy .tile,
  body.theme-navy #heat-content-host {
    animation: none !important;
  }
}

/* ═════════════════════════════════════════════════════════════
   PHASE 5 — Bottom-Sheet Pattern für Modals (Kole Jain §5.6)
   Auf Mobile fährt die fh-modal von unten rein, statt zentriert.
   ═════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  body.theme-navy .fh-modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
    display: flex !important;
  }
  body.theme-navy .fh-modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh !important;
    border-radius: 24px 24px 0 0 !important;
    border-bottom: none !important;
    transform: translateY(100%) !important;
    transition: transform .32s cubic-bezier(.32,.72,0,1) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    /* Drag-Handle oben */
    position: relative;
  }
  body.theme-navy .fh-modal::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: var(--heat-line-hi);
    border-radius: 2px;
    z-index: 2;
  }
  body.theme-navy .fh-modal-overlay.open .fh-modal {
    transform: translateY(0) !important;
  }
  /* Mehr Padding-Top im Head, weil Handle drüber */
  body.theme-navy .fh-modal-head {
    padding-top: 26px !important;
  }
}

/* ═════════════════════════════════════════════════════════════
   PHASE 6 — Swipe-to-Delete CSS (JS folgt auf transactions.js)
   ═════════════════════════════════════════════════════════════ */
body.theme-navy .tx-item {
  position: relative;
  background: var(--heat-bg-card);
  transition: transform .22s cubic-bezier(.22,.61,.36,1);
  touch-action: pan-y;
  will-change: transform;
}
body.theme-navy .tx-item.is-swiping {
  transition: none;
}
body.theme-navy .tx-swipe-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
body.theme-navy .tx-swipe-action {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
  background: var(--heat-neg);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-small);
  gap: 8px;
  z-index: 0;
}
body.theme-navy .tx-swipe-action svg { width: 18px; height: 18px; }
body.theme-navy .tx-item.is-swiped {
  transform: translateX(-88px);
}

/* ═════════════════════════════════════════════════════════════
   Bar-Chart „Ausgaben nach Tag" — Mono statt hardcoded Rot.
   Default (.heat-bar in heat.css) ist weiß→#b91c1c und gehört zum
   Heat-Theme. Im Mono-Theme war kein Override gesetzt, darum kam der
   Blutrot-Verlauf durch. Hier: ruhiger Weiß-Verlauf wie der Linechart.
   ═════════════════════════════════════════════════════════════ */
body.theme-navy .heat-bar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.28) 100%);
  border-radius: 6px 6px 0 0;
}
body.theme-navy .heat-bar:hover {
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.42) 100%);
  opacity: 1;
}
body.theme-navy .heat-bar-lbl {
  color: var(--heat-ink-mute);
  font-weight: 600;
}

/* ═════════════════════════════════════════════════════════════
   CTA „Alle Transaktionen verwalten" — Schatten entgrünen.
   Der Button erbt Lime-Theme-Schatten: weißer Glow-Halo + olivgrüner
   Inset-Schatten (rgba(90,130,10,.4)). Auf der weißen Mono-Variante
   ergibt das einen komischen grünlichen Bloom. Hier: sauberer,
   ruhiger Schatten ohne Glow + ohne Grünstich.
   ═════════════════════════════════════════════════════════════ */
body.theme-navy .kal-tx-cta {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 6px 18px rgba(0, 0, 0, 0.35);
}
body.theme-navy .kal-tx-cta:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 10px 24px rgba(0, 0, 0, 0.45);
}
