:root {
      --font-sans: "DM Sans", Arial, sans-serif;
      --font-mono: "DM Mono", Consolas, monospace;

      --text-1: 0.625em;
      --text-2: 0.75em;
      --text-3: 0.875em;
      --text-4: 1.125em;
      --text-5: 1.5em;

      --color-paper: #ece8e0;
      --color-surface: #ffffff;
      --color-surface-soft: #f6f3ed;
      --color-black: #232323;
      --color-black-soft: #384152;
      --color-muted: #6b6b64;
      --color-muted-strong: #4f4b43;
      --color-line: #d9d4ca;
      --color-line-soft: #e8e2d8;

      --color-blue: #b6cbd0;
      --color-blue-soft: #e8f0f1;
      --color-green: #6f8450;
      --color-green-hover: #617544;
      --color-green-soft: #eef4e8;
      --color-brown: #bea77d;
      --color-brown-soft: #efe6d4;
      --color-red: #a86861;
      --color-red-hover: #96564f;
      --color-red-soft: #f1dfdd;

      --color-positive: var(--color-green);
      --color-positive-strong: #50633a;
      --color-positive-chart: #1f9d55;
      --color-positive-chart-soft: #7bc67e;
      --color-positive-soft: var(--color-green-soft);
      --color-negative: var(--color-red);
      --color-negative-strong: #874842;
      --color-negative-soft: var(--color-red-soft);
      --color-warning: var(--color-brown);
      --color-link: #6b8ea3;
      --color-teal: #0f766e;
      --color-purple: #7c3aed;
      --color-ink-blue: #334155;
      --color-rose: #be185d;
      --color-amber: #f59e0b;
      --color-gauge-fill: var(--color-green);
      --color-gauge-fill-soft: var(--color-blue);
      --color-gauge-warning: var(--color-red);

      --shadow-soft: 0 10px 24px rgba(35, 35, 35, 0.08);
      --shadow-panel: 0 10px 28px rgba(35, 35, 35, 0.12);
      --shadow-hover: 0 10px 20px rgba(35, 35, 35, 0.06);
      --shadow-popover: 0 16px 40px rgba(35, 35, 35, 0.24);
      --overlay-dark: rgba(35, 35, 35, 0.52);
      --surface-glass: rgba(255, 255, 255, 0.96);
      --surface-sheen: rgba(255, 255, 255, 0.78);
      --surface-sheen-strong: rgba(255, 255, 255, 0.88);
      --surface-transparent: rgba(255, 255, 255, 0);
      --surface-glass-panel: rgba(255, 255, 255, 0.68);
      --border-glass-panel: rgba(255, 255, 255, 0.7);
      --toast-bg: rgba(35, 35, 35, 0.96);
      --tooltip-bg: rgba(35, 35, 35, 0.96);
      --border-glass: rgba(255, 255, 255, 0.9);
      --border-toast: rgba(217, 212, 202, 0.95);
      --blue-wash: rgba(107, 142, 163, 0.1);
      --green-focus: rgba(111, 132, 80, 0.25);
      --black-wash: rgba(35, 35, 35, 0.08);
      --chart-green-fill: rgba(111, 132, 80, 0.75);
      --chart-red-fill: rgba(168, 104, 97, 0.75);
      --chart-green-area: rgba(111, 132, 80, 0.12);
      --chart-grid: rgba(35, 35, 35, 0.08);
      --bottom-nav-height: 88px;
      --onboarding-text: #ffffff;
      --onboarding-text-muted: rgba(255, 255, 255, 0.94);
      --onboarding-text-soft: rgba(255, 255, 255, 0.9);
      --onboarding-link: #ffffff;
      --onboarding-link-hover: #ffffff;
      --onboarding-text-shadow: 0 1px 2px rgba(35, 35, 35, 0.28);
    }

    :root[data-theme-mode="dark"] {
      --color-paper: #141617;
      --color-surface: #202326;
      --color-surface-soft: #292d31;
      --color-black: #f3f0e8;
      --color-black-soft: #d6d1c6;
      --color-muted: #aaa397;
      --color-muted-strong: #c8c0b4;
      --color-line: #3b3f43;
      --color-line-soft: #303438;

      --color-blue: #6f98a2;
      --color-blue-soft: #24343a;
      --color-green: #9ab56d;
      --color-green-hover: #abc57d;
      --color-green-soft: #263020;
      --color-brown: #d1b37c;
      --color-brown-soft: #332c20;
      --color-red: #d1847b;
      --color-red-hover: #e1948b;
      --color-red-soft: #392523;
      --color-positive-strong: #b7d084;
      --color-positive-chart: #45c77d;
      --color-positive-chart-soft: #83d78b;
      --color-negative-strong: #eba19a;
      --color-link: #9cc6dc;
      --color-ink-blue: #c3cedd;
      --color-gauge-fill: var(--color-green);
      --color-gauge-fill-soft: var(--color-blue);
      --color-gauge-warning: var(--color-red);

      --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.28);
      --shadow-panel: 0 10px 28px rgba(0, 0, 0, 0.34);
      --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.26);
      --shadow-popover: 0 16px 40px rgba(0, 0, 0, 0.46);
      --overlay-dark: rgba(0, 0, 0, 0.62);
      --surface-glass: rgba(32, 35, 38, 0.96);
      --surface-sheen: rgba(255, 255, 255, 0.08);
      --surface-sheen-strong: rgba(255, 255, 255, 0.14);
      --surface-transparent: rgba(32, 35, 38, 0);
      --surface-glass-panel: rgba(32, 35, 38, 0.72);
      --border-glass-panel: rgba(255, 255, 255, 0.16);
      --toast-bg: rgba(243, 240, 232, 0.96);
      --tooltip-bg: rgba(243, 240, 232, 0.96);
      --border-glass: rgba(255, 255, 255, 0.18);
      --border-toast: rgba(48, 52, 56, 0.95);
      --blue-wash: rgba(156, 198, 220, 0.12);
      --green-focus: rgba(154, 181, 109, 0.32);
      --black-wash: rgba(255, 255, 255, 0.08);
      --chart-green-fill: rgba(154, 181, 109, 0.75);
      --chart-red-fill: rgba(209, 132, 123, 0.75);
      --chart-green-area: rgba(154, 181, 109, 0.16);
      --chart-grid: rgba(255, 255, 255, 0.1);
    }

    :root[data-theme-mode="bright"],
    :root[data-theme-mode="dark"] {
      --onboarding-text: var(--color-black);
      --onboarding-text-muted: var(--color-muted-strong);
      --onboarding-text-soft: var(--color-muted);
      --onboarding-link: var(--color-link);
      --onboarding-link-hover: var(--color-black);
      --onboarding-text-shadow: none;
    }

    :root[data-theme-mode="bright"] body::before,
    :root[data-theme-mode="dark"] body::before {
      background-image: none;
    }

    html,
    body {
      min-height: 100%;
      display: grid;
      width: 100%;
      margin: 0;
      background-color: var(--color-paper);
      color: var(--color-black);
      font-family: var(--font-sans);
      font-size: 1em;
      justify-items: center;
    }
    body {
      position: relative;
      isolation: isolate;
    }
    body.wc-onboarding-phase {
      overflow-x: hidden;
    }
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      background-image: url("../../bg-desktop.jpg");
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      transform: translateZ(0);
    }

#wc-app,
#wc-app *,
#wc-app *::before,
#wc-app *::after {
  box-sizing: border-box;
}

#wc-app {
  color: var(--color-black);
  font-family: var(--font-sans);
}

#wc-app :is(h1, h2, h3, h4, h5, h6, p, span, label, a, button, li, td, th, input, select, textarea, summary) {
  min-width: 0;
  max-width: 100%;
}

#wc-app :is(h1, h2, h3, h4, h5, h6, label, button, td, th, summary),
#wc-app :is(.sheet-title, .sheet-meta, .nav-btn-label, .sidebar-caption, .app-brand-text, .kpi-label, .kpi-value, .metric-label, .metric-value, .report-label, .report-value, .catat-card-title, .catat-card-amount, .home-recent-title, .home-recent-meta, .home-recent-amount, .rekening-name, .rekening-balance, .account-balance) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#wc-app :is(input, select, textarea) {
  text-overflow: ellipsis;
  font-size: var(--text-1);
}

.kpi-value,
.metric-value,
.report-value,
.report-value-in,
.report-value-out,
.report-value-neutral,
.report-value-saving-positive,
.report-value-saving-negative,
.catat-card-amount,
.home-recent-amount,
.rekening-balance,
.account-balance,
.sheet-meta,
.wc-footer-version,
td[data-type="number"],
.number,
.amount {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.catat-card-amount,
.home-recent-amount {
  font-family: var(--font-mono);
}

.wc-shell {  
  display: flex;
  /* grid-template-columns: repeat(12, minmax(0, 1fr)); */
  gap: 14px;
  min-width: 0;
  width: min(1600px, 100%);
  max-width: none;
  min-height: 100dvh;
  min-height: 100svh;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  padding: 0%;
}
.wc-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: fit-content;
  padding: 10px 20px 40px;
  margin-top: auto;
}

.wc-global-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px 0;
  color: var(--color-surface);
  font-size: var(--text-1);
  line-height: 1.4;
  height: fit-content;
}

.wc-global-legal a {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wc-global-legal a:hover,
.wc-global-legal a:focus-visible {
  color: var(--color-surface);
}
.wc-footer-version {
  color: var(--color-surface);
  font-size: inherit;
  line-height: inherit;
}

.wc-global-copyright {
  margin: 0;
  color: var(--color-surface);
  font-size: var(--text-1);
  line-height: 1.4;
  text-align: center;
  height: fit-content;
}
.wc-global-copyright a {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Elementor wrappers often break sticky with overflow clipping */
.elementor-widget-container:has(#wc-app),
.elementor-widget-html:has(#wc-app),
.elementor-element:has(#wc-app) {
  overflow: visible !important;
  width: 100% !important;
  max-width: none !important;
}
.elementor-container:has(#wc-app),
.elementor-section .elementor-container:has(#wc-app),
.elementor-column:has(#wc-app) {
  width: 100% !important;
  max-width: none !important;
}

.card {
  padding: 0px
}

#phase1,
#phase2,
#phase3 {
  display: none;
  min-width: 0;
  min-height: 0;
  
}

#phase1.is-active,
#phase2.is-active {
  display: flex;
  flex: 1 1 auto;
  
}

#phase3.is-active {
  display: block;
  
}

.wc-shell:not(.wc-ready) #phase1 {
  display: flex !important;
  flex: 1 0 auto;
}

.wc-shell:not(.wc-ready) #phase2,
.wc-shell:not(.wc-ready) #phase3 {
  display: none !important;
}

#phase1 {
  grid-column: span 12;
  width: 100%;
  min-height: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}
#phase1.is-active {
  display: flex;
  flex: 1 1 auto;
}
#phase2 {
  grid-column: span 12;
  width: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}
#phase2.is-active {
  display: flex;
  flex: 1 1 auto;
}
#phase3 {
  grid-column: span 12;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-y: visible;
  width: 100%;
  max-width: 100%;
  flex-direction: column;
}
#phase1 .phase1-welcome {
  min-height: 0;
  width: min(90%, 660px);
  border-width: 2px 1px 0 0;
  border-style: solid;
  border-color: color-mix(in srgb, var(--surface-glass-panel) 10%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-glass-panel) 10%, transparent);
  padding: 28px 22px;
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-evenly;
  gap: 10px;
}
#phase2 .phase2-welcome {
  min-height: 0;
  width: min(90%, 660px);
  border-width: 2px 1px 0 0;
  border-style: solid;
  border-color: color-mix(in srgb, var(--surface-glass-panel) 10%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-glass-panel) 10%, transparent);
  padding: 28px 22px;
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-evenly;
  gap: 10px;
}
#phase1 h2,
#phase2 h2 {
  margin: 16px 0;
  color: var(--onboarding-text);
  font-size: var(--text-5);
  line-height: 1.15;
  text-shadow: var(--onboarding-text-shadow);
}
#phase1 .phase1-desc,
#phase2 .phase2-desc {
  margin: 0;
  color: var(--onboarding-text-muted);
  font-size: var(--text-3);
  line-height: 1.5;
  max-width: 760px;
  text-shadow: var(--onboarding-text-shadow);
}
#phase1 .phase1-status,
#phase2 .phase2-status {
  margin-top: 6px;
  font-size: var(--text-2);
  text-align: center;
  color: var(--onboarding-text-muted);
  text-shadow: var(--onboarding-text-shadow);
}
#phase2 .phase2-drive-wrap {
  margin-top: 8px;
}
#phase1 #connectBtn {
  margin-top: 8px;
  min-height: 40px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-black);
  border: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: var(--text-3) !important;
}
#phase1 .phase1-google-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: block;
}
#phase2 .phase2-drive-btn {
  margin-top: 0;
  width: 100%;
  min-height: 40px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-black);
  border: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: var(--text-3) !important;
}
#phase2 .phase2-drive-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: block;
}
#phase2 #pickSheetBtn > span {
  width: auto !important;
  flex: 0 0 auto;
  margin: 0 !important;
  line-height: 1.2;
}
#phase2 .phase2-reconnect-btn {
  width: 100%;
  margin-top: 10px;
  min-height: 40px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: var(--text-2) !important;
}
#phase1 #connectBtn > span {
  width: auto !important;
  flex: 0 0 auto;
  margin: 0 !important;
  line-height: 1.2;
}
#phase1 .phase1-note,
#phase2 .phase2-note {
  margin: 2px 0 0;
  color: var(--onboarding-text-muted);
  font-size: var(--text-2);
  line-height: 1.45;
  text-align: center;
  max-width: 620px;
  text-shadow: var(--onboarding-text-shadow);
}
#phase1 .phase1-legal {
  margin: 2px 0 0;
  color: var(--onboarding-text-soft);
  font-size: var(--text-1);
  line-height: 1.4;
  text-align: center;
  text-shadow: var(--onboarding-text-shadow);
}
#phase1 .phase1-legal a {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#phase1 .phase1-legal a:hover,
#phase1 .phase1-legal a:focus-visible {
  color: var(--onboarding-link-hover);
}
#phase2 .phase2-logout-link {
  align-self: center;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--onboarding-link);
  font-size: var(--text-1);
  line-height: 1.4;
  text-shadow: var(--onboarding-text-shadow);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
#phase2 .phase2-logout-link:hover,
#phase2 .phase2-logout-link:focus-visible {
  color: var(--onboarding-link-hover);
}
#phase2 .phase2-copyright {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-1);
  line-height: 1.4;
  text-align: center;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gap { gap: 10px; }
.top-controls { flex-wrap: wrap; }

.btn {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  background: var(--color-green);
  color: var(--color-surface);
  font-weight: 700;
  white-space: nowrap;
  font-size: var(--text-1) !important;
  line-height: 1.25 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background-color 0.24s ease, transform 0.14s ease, box-shadow 0.24s ease;
  transform: translateY(0);
}
.btn:hover:not(:disabled) {
  background: var(--color-green-hover);
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
a.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-ghost { background: var(--color-surface-soft); color: var(--color-black); }
.btn-danger { background: var(--color-negative); color: var(--color-surface); }
.btn-ghost:hover:not(:disabled) { background: var(--color-line-soft); }
.btn-danger:hover:not(:disabled) { background: var(--color-red-hover); }

.muted { color: var(--color-muted); margin: 0; font-size: var(--text-1);}
:root:not([data-theme-mode]) .muted {
  color: var(--color-surface);
  text-shadow: 0 1px 2px rgba(35, 35, 35, 0.28);
}

input {
  flex: 1;
  min-width: 0;
  padding: 0px 10px !important;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  height: 40px;
}

#sheetList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.sheet-item {
  border: 1px solid var(--color-line-soft);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
  min-width: 0;
}
.sheet-title {
  font-size: var(--text-3);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.sheet-meta {
  color: var(--color-muted);
  font-size: var(--text-2);
  margin-top: 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.phase3-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.dashboard-greeting-wrap {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.phase3-head h2 {
  margin: 0;
  font-size: var(--text-4);
  line-height: 1.1;
}
.dashboard-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: var(--text-1);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
.dashboard-plan-badge-free {
  border: 1px solid var(--color-line);
  background: var(--color-surface-soft);
  color: var(--color-muted-strong);
}
.dashboard-plan-badge-full {
  border: 1px solid var(--color-green);
  background: var(--color-green-soft);
  color: var(--color-positive-strong);
}
.dashboard-login-link {
  border: 0;
  background: transparent;
  color: var(--color-link);
  font-size: var(--text-2) !important;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 2px 0;
  text-transform: none !important;
}
.dashboard-login-link:hover,
.dashboard-login-link:focus-visible {
  color: var(--color-black);
}
.account-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: var(--color-surface-soft);
  flex: 0 0 34px;
}
.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.account-avatar img.has-photo {
  display: block;
}

.dash-wrap {
  --sidebar-width: 96px;
  --sidebar-gap: 16px;
  --sidebar-left: 12px;
  --content-offset: calc(var(--sidebar-width) + var(--sidebar-gap));
  display: grid;
  align-items: start;
  
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: none;
  padding: 12px;
  box-sizing: border-box;
}

.sidebar-panel {
  min-width: 0;
  display: flex;
  width: var(--sidebar-width);
  position: fixed;
  left: var(--sidebar-left);
  top: 50%;
  z-index: 40;
  max-height: calc(100vh - 24px);
  transform: translateY(-50%);
}

.dash-layout {
  min-width: 0;
  min-height: 0;
  max-height: none;
  width: calc(100% - var(--content-offset));
  max-width: 100%;
  margin-left: var(--content-offset);
  display: block;
  border-radius: 24px;
  border-width: 2px 1px 0 0;
  border-style: solid;
  border-color:   color-mix(in srgb, var(--surface-glass-panel) 10%, transparent);
  background: color-mix(in srgb, var(--surface-glass-panel) 10%, transparent);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  overflow: hidden;
}

.sidebar-nav {
  border-width: 2px 1px 0 0;
  border-style: solid;
  border-color: color-mix(in srgb, var(--surface-glass-panel) 10%, transparent);
  background: color-mix(in srgb, var(--surface-glass-panel) 10%, transparent);
  border-radius: 16px;
  padding: 12px;
  height: auto;
  position: relative;
  max-height: 100%;
  min-width: 0;
  opacity: 1;
  visibility: visible;
  overflow-x: hidden;
overflow-y: auto;
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}
.nav-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  border: 0;
  border-radius: 10px;
  height: 56px;
  padding: 8px;
  
  background: var(--surface-transparent);
  color: var(--color-black);
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.14s ease;
  transform: translateY(0);
}
.nav-btn:last-child { margin-bottom: 0; }
.nav-btn.active { background: var(--color-green); color: var(--color-surface); }
.nav-btn:hover:not(.active) { background: var(--color-blue-soft); }
:root:not([data-theme-mode]) .nav-btn {
  color: var(--color-surface);
  text-shadow: 0 1px 2px rgba(35, 35, 35, 0.28);
}
:root:not([data-theme-mode]) .nav-btn:hover:not(.active) {
  color: var(--color-black);
  text-shadow: none;
}
.nav-btn:active { transform: translateY(1px); }
.nav-btn-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-btn-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-btn-label {
  display: block;
  min-width: 0;
  max-width: 100%;
  font-size: var(--text-1);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
  overflow-wrap: normal;
}
.sidebar-caption {
  display: none;
  margin-top: 12px;
  border-radius: 10px;
  padding: 24px 12px;
  
  color: var(--color-black);
  font-size: var(--text-2);
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.app-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 24px 0px !important;
}
.app-brand-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}
.app-brand-logo {
  width: 120px;
  max-width: 52%;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.app-brand-text {
  color: #ffffff;
  font-size: var(--text-2); 
  font-weight: 700;
  line-height: 1.2;
}
.theme-segmented {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 20px rgba(35, 35, 35, 0.14);
}
.theme-segmented-btn {
  position: relative;
  display: inline-grid;
  width: 32px;
  min-width: 32px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font-size: var(--text-1);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  transition: min-width 220ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.theme-segmented-btn:hover,
.theme-segmented-btn[aria-pressed="true"] {
  color: var(--color-black);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 14px rgba(35, 35, 35, 0.12);
}
.theme-segmented-btn:focus-visible {
  outline: 3px solid var(--green-focus);
  outline-offset: 2px;
}
.theme-segmented-icon,
.theme-segmented-label {
  grid-area: 1 / 1;
  transition: opacity 180ms ease, transform 180ms ease;
}
.theme-segmented-icon {
  width: 16px;
  height: 16px;
  opacity: 1;
  transform: scale(1);
}
.theme-segmented-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-segmented-label {
  opacity: 0;
  transform: translateY(7px) scale(0.92);
  white-space: nowrap;
}
.theme-segmented.is-showing-labels .theme-segmented-btn {
  width: auto;
  min-width: 58px;
  padding: 0 9px;
}
.theme-segmented.is-showing-labels .theme-segmented-icon {
  opacity: 0;
  transform: translateY(-7px) scale(0.82);
}
.theme-segmented.is-showing-labels .theme-segmented-label {
  opacity: 1;
  transform: translateY(0) scale(1);
}
:root[data-theme-mode="bright"] .app-brand-logo {
  filter: none;
}
:root[data-theme-mode="dark"] .app-brand-logo {
  filter: brightness(0) invert(1);
}
:root[data-theme-mode="bright"] .app-brand-text,
:root[data-theme-mode="bright"] .wc-global-legal,
:root[data-theme-mode="bright"] .wc-footer-version,
:root[data-theme-mode="bright"] .wc-global-copyright {
  color: var(--color-black);
}
:root[data-theme-mode="dark"] .app-brand-text,
:root[data-theme-mode="dark"] .wc-global-legal,
:root[data-theme-mode="dark"] .wc-footer-version,
:root[data-theme-mode="dark"] .wc-global-copyright {
  color: var(--color-black);
}
:root[data-theme-mode="bright"] .theme-segmented,
:root[data-theme-mode="dark"] .theme-segmented {
  border-color: var(--color-line);
  background: var(--surface-glass-panel);
  box-shadow: var(--shadow-soft);
}
:root[data-theme-mode="bright"] .theme-segmented-btn,
:root[data-theme-mode="dark"] .theme-segmented-btn {
  color: var(--color-muted-strong);
}
:root[data-theme-mode="bright"] .theme-segmented-btn:hover,
:root[data-theme-mode="bright"] .theme-segmented-btn[aria-pressed="true"],
:root[data-theme-mode="dark"] .theme-segmented-btn:hover,
:root[data-theme-mode="dark"] .theme-segmented-btn[aria-pressed="true"] {
  color: var(--color-surface);
  background: var(--color-black);
  box-shadow: var(--shadow-hover);
}

.tab-content {
  /* display: block; */
  padding: 24px 18px;
  
  /* min-width: 0; */
  /* width: 100%; */
  /* max-width: 100%; */
  /* overflow: visible; */
  min-height: 340px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  /* box-sizing: border-box; */
}
.phase3-top {
  
  
  
  
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.tab-panel {
  display: none;
  min-width: 0;
}
.tab-panel.is-active {
  display: block;
}

.home-panel-shell {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  
}
.kpi-label { color: var(--color-muted); font-size: var(--text-3); margin: 8px 0px; }
.kpi-value {
  font-size: var(--text-5);
  font-weight: 600;
  color: var(--color-black);
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.home-quick-room {
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  min-width: 0;
}
.home-quick-card {
  
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}
.home-quick-label {
  color: var(--color-muted);
  font-size: var(--text-3);
  margin: 8px 0;
}
.home-quick-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: 1 1 auto;
  justify-items: center;
  gap: 14px;
  padding: 6px 0 0;
}
.home-smart-catat {
  display: grid;
  gap: 14px;
  width: min(100%, 440px);
  margin: 0;
  padding: 0 32px;
  border-left: 1px solid var(--border-glass);
}
.home-smart-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
  font-size: var(--text-3);
  font-weight: 800;
}
.home-smart-ai-mark {
  position: relative;
  display: inline-block;
  color: var(--color-surface);
  background:
    linear-gradient(105deg, var(--color-surface) 0%, var(--color-surface) 36%, #91b8b8 45%, #8eeaff 50%, #fcf5bb 55%, var(--color-surface) 64%, var(--color-surface) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(35, 35, 35, 0.28));
  animation: homeSmartAiShimmer 7s linear infinite;
}
.home-smart-ai-mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(125, 231, 194, 0), rgba(142, 183, 255, 0.55), rgba(244, 208, 125, 0));
  opacity: 0;
  transform: translateX(-52%) scaleX(0.28);
  transform-origin: center;
  animation: homeSmartAiPulse 7s linear infinite;
}
.home-smart-beta {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 7px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-black);
  font-size: var(--text-1);
  font-weight: 800;
  line-height: 1;
}
.home-smart-token {
  display: grid;
  gap: 8px;
  order: 3;
}
.home-smart-token-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: var(--color-muted);
  font-size: var(--text-1);
}
.home-smart-token-meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.home-smart-token-head strong,
.home-smart-token-head span {
  color: var(--color-black);
  font-size: var(--text-1);
  font-weight: 800;
}
.home-smart-token-track {
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--color-black) 22%, transparent);
  background: color-mix(in srgb, var(--color-surface) 74%, var(--color-blue-soft));
}
.home-smart-token-bar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--color-green);
  transition: width 0.2s ease;
}
.home-smart-token.is-warning .home-smart-token-bar {
  background: var(--color-amber);
}
.home-smart-token.is-danger .home-smart-token-bar {
  background: var(--color-red);
}
.home-smart-token-percent {
  min-width: 48px;
  color: var(--color-black);
  font-size: var(--text-4);
  font-weight: 800;
  line-height: 1;
  text-align: right;
}
:root:not([data-theme-mode]) .home-smart-token-head,
:root:not([data-theme-mode]) .home-smart-token-head strong,
:root:not([data-theme-mode]) .home-smart-token-head span,
:root:not([data-theme-mode]) .home-smart-token-percent,
:root:not([data-theme-mode]) .home-smart-title {
  color: var(--color-surface);
  text-shadow: 0 1px 2px rgba(35, 35, 35, 0.28);
}
:root:not([data-theme-mode]) .home-smart-token-track {
  background: color-mix(in srgb, var(--color-surface) 72%, var(--color-blue-soft));
  border-color: rgba(255, 255, 255, 0.9);
}
:root:not([data-theme-mode]) .home-smart-token-bar {
  background: var(--color-green);
}
:root:not([data-theme-mode]) .home-smart-token.is-warning .home-smart-token-bar {
  background: var(--color-amber);
}
:root:not([data-theme-mode]) .home-smart-token.is-danger .home-smart-token-bar {
  background: var(--color-red);
}
.home-smart-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  order: 2;
}
.home-smart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--color-black) 20%, var(--color-line));
  border-radius: 14px;
  background: var(--color-surface);
  color: var(--color-black);
  font-size: var(--text-2);
  font-weight: 800;
  box-shadow: var(--shadow-hover);
  cursor: pointer;
}
.home-smart-btn-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-smart-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-smart-btn:hover {
  border-color: var(--color-blue);
  background: var(--color-blue-soft);
}
.home-smart-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
@keyframes homeSmartAiShimmer {
  0% {
    background-position: 130% 50%;
  }
  71.43%,
  100% {
    background-position: -130% 50%;
  }
}
@keyframes homeSmartAiPulse {
  0% {
    opacity: 0;
    transform: translateX(-52%) scaleX(0.28);
  }
  35.72% {
    opacity: 0.5;
    transform: translateX(0) scaleX(0.34);
  }
  71.43%,
  100% {
    opacity: 0;
    transform: translateX(52%) scaleX(0.28);
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-smart-ai-mark,
  .home-smart-ai-mark::after {
    animation: none;
  }
}
.wc-smart-draft {
  display: grid;
  gap: 8px;
}
.wc-smart-photo-proof {
  width: 100%;
  max-height: 180px;
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface-soft);
}
.wc-smart-photo-proof img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
}
.wc-smart-preview-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 12px;
}
.wc-smart-preview-controls.is-single {
  grid-template-columns: minmax(0, 1fr);
}
.wc-smart-control-field,
.wc-smart-payment-field {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}
.wc-smart-control-field {
  margin-bottom: 0;
}
.wc-smart-control-field span,
.wc-smart-payment-field span {
  color: var(--color-muted-strong);
  font-size: var(--text-1);
  font-weight: 800;
}
.wc-catat-success-modal {
  max-width: 420px;
}
.wc-catat-success-body {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 28px 24px;
  text-align: center;
}
.wc-catat-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: var(--color-olive);
  color: var(--color-on-olive);
  box-shadow: 0 14px 28px rgba(41, 55, 37, 0.18);
}
.wc-catat-success-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wc-catat-success-body h4 {
  margin: 0;
  font-size: var(--text-5);
}
.wc-catat-success-body p {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-2);
  font-weight: 700;
}
.wc-catat-success-totals {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  gap: 8px 16px;
  width: 100%;
  padding: 12px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  text-align: left;
}
.wc-catat-success-totals span {
  color: var(--color-muted);
}
.wc-catat-success-totals strong {
  text-align: right;
}
.wc-catat-success-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}
.wc-smart-draft-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-line);
}
.wc-smart-draft-row span {
  color: var(--color-muted);
}
.wc-smart-draft-row strong {
  text-align: right;
}
.wc-smart-bulk-list {
  display: grid;
  gap: 8px;
  max-height: 46vh;
  overflow-y: auto;
  padding-right: 4px;
}
.wc-smart-bulk-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(118px, 150px) auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--color-line);
}
.wc-smart-bulk-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--color-blue-soft);
  color: var(--color-muted-strong);
  font-size: var(--text-1);
  font-weight: 800;
}
.wc-smart-bulk-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.wc-smart-bulk-main strong,
.wc-smart-bulk-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wc-smart-bulk-main small {
  color: var(--color-muted);
  font-size: var(--text-1);
}
.wc-smart-bulk-amount {
  color: var(--color-black);
  font-size: var(--text-2);
  text-align: right;
  white-space: nowrap;
}
.wc-smart-type-select {
  min-width: 0;
  width: 100%;
  height: 34px;
  padding: 0 28px 0 10px;
  font-size: var(--text-1);
  font-weight: 800;
}
.wc-smart-preview-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 12px 0 0;
  border-top: 2px solid var(--color-line);
}
.wc-smart-preview-total span {
  color: var(--color-muted);
  font-size: var(--text-2);
}
.wc-smart-preview-total strong {
  color: var(--color-black);
  font-size: var(--text-3);
  text-align: right;
}
.wc-smart-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface-soft);
  color: var(--color-black);
  cursor: pointer;
}
.wc-smart-edit-btn:hover {
  border-color: var(--color-green);
  background: var(--color-green-soft);
}
.wc-smart-edit-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 640px) {
  .wc-smart-preview-controls {
    grid-template-columns: 1fr;
  }
}
.wc-smart-voice-modal {
  position: relative;
  width: min(420px, 100%);
  padding: 24px 18px 18px;
  display: grid;
  justify-items: center;
  gap: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  box-shadow: var(--shadow-popover);
  transform: translateY(22px) scale(0.985);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.wc-modal-backdrop.is-open .wc-smart-voice-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.wc-modal-backdrop.is-closing .wc-smart-voice-modal {
  transform: translateY(14px) scale(0.99);
  opacity: 0;
}
.wc-smart-voice-modal .wc-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
}
.wc-smart-voice-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-green-soft);
  color: var(--color-green);
}
.wc-smart-voice-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wc-smart-voice-modal h4 {
  margin: 0;
  font-size: var(--text-4);
}
.wc-smart-voice-modal p {
  margin: 0;
  color: var(--color-muted-strong);
  font-size: var(--text-2);
  text-align: center;
}
.wc-smart-voice-countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface-soft);
}
.wc-smart-voice-countdown span {
  color: var(--color-muted);
  font-size: var(--text-1);
}
.wc-smart-voice-countdown strong {
  color: var(--color-black);
  font-size: var(--text-2);
}
.wc-smart-voice-wave {
  width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface-soft);
  overflow: hidden;
}
.wc-smart-voice-wave span {
  width: 6px;
  min-height: 8%;
  border-radius: 999px;
  background: var(--color-green);
  transition: height 0.08s linear;
}
.wc-smart-voice-transcript {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface-soft);
}
.wc-smart-voice-transcript span {
  color: var(--color-muted);
  font-size: var(--text-1);
  font-weight: 800;
}
.wc-smart-voice-transcript p {
  min-height: 44px;
  max-height: 112px;
  margin: 0;
  overflow: auto;
  color: var(--color-black);
  font-family: var(--font-mono);
  font-size: var(--text-4);
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
}
.wc-smart-voice-transcript p.is-empty {
  color: var(--color-muted);
  font-family: var(--font-sans);
}
.wc-smart-voice-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.js-smart-text-input {
  width: 100%;
  max-width: 100%;
  min-height: 112px;
  max-height: 48vh;
  resize: vertical;
  overflow: auto;
  box-sizing: border-box;
  border: 0;
  border-bottom: 1px solid var(--color-line);
  border-radius: 0;
  background: transparent;
  color: var(--color-black);
  font-family: var(--font-mono);
  font-size: var(--text-4);
  line-height: 1.35;
  padding: 0 2px !important;
  outline: none;
}
.js-smart-text-input:focus {
  border-bottom-color: var(--color-green);
}
.home-summary-inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin-top: 8px;
}
.home-summary-inline .home-quick-saldo,
.home-summary-inline .home-quick-freedom-level {
  margin-left: 0;
}
.home-action-radial {
  position: relative;
  width: min(100%, 360px);
  min-height: 360px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  transition: min-height 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-action-options {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.home-action-option {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max-content;
  min-width: 118px;
  min-height: 40px;
  border: 1px solid var(--color-line) !important;
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-black);
  box-shadow: var(--shadow-soft);
  padding: 9px 14px;
  font-size: var(--text-2) !important;
  line-height: 1.2 !important;
  font-weight: 800;
  text-transform: none !important;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.18s ease, border-color 0.18s ease;
}
.home-action-option:hover {
  border-color: var(--color-blue) !important;
  background: var(--color-blue-soft);
  color:var(--color-surface);
}
.home-action-option-income {
  --home-action-x: -120px;
  --home-action-y: -95px;
}
.home-action-option-expense {
  --home-action-x: 120px;
  --home-action-y: -95px;
}
.home-action-option-transfer {
  --home-action-x: -120px;
  --home-action-y: 95px;
}
.home-action-option-split {
  --home-action-x: -154px;
  --home-action-y: 0px;
}
.home-action-option-debt {
  --home-action-x: 154px;
  --home-action-y: 0px;
}
.home-action-option-asset {
  --home-action-x: 120px;
  --home-action-y: 95px;
}
.home-action-radial.is-open .home-action-option {
  opacity: 1;
  pointer-events: auto;
  transform: translate(calc(-50% + var(--home-action-x)), calc(-50% + var(--home-action-y))) scale(1);
}
.home-action-radial.is-open .home-action-option:active:not(:disabled) {
  transform: translate(calc(-50% + var(--home-action-x)), calc(-50% + var(--home-action-y))) scale(1);
}
.home-action-plus {
  position: relative;
  z-index: 2;
  width: 94px;
  height: 94px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-black);
  box-shadow: var(--shadow-panel);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transform: translateY(0) scale(1);
  transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
}
.home-action-plus::before,
.home-action-plus::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid var(--color-line-soft);
  border-radius: inherit;
  opacity: 0.65;
  pointer-events: none;
}
.home-action-plus::after {
  inset: -18px;
  opacity: 0.36;
}
.home-action-plus:hover,
.home-action-plus:focus-visible {
  border-color: var(--color-blue);
  background: var(--color-blue-soft);
  transform: translateY(-1px) scale(1.02);
}
.home-action-radial.is-open .home-action-plus {
  border-color: var(--color-green);
  background: var(--color-green);
  color: var(--color-surface);
}
.home-action-plus-mark {
  position: relative;
  width: 34px;
  height: 34px;
  display: block;
  transition: transform 0.22s ease;
}
.home-action-plus-mark::before,
.home-action-plus-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.home-action-plus-mark::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.home-action-radial.is-open .home-action-plus-mark {
  transform: rotate(45deg);
}
.home-quick-saldo {
  height: 36px;
  /* width: 100%; */
  /* min-height: 0; */
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-black);
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-direction: row;
  margin-left: auto;
}

.home-quick-saldo-label {
  font-size: var(--text-4);
  line-height: 1.25;
  color: var(--color-muted);
  font-weight: 600;
}
.home-quick-saldo-value {
  font-size: var(--text-1);
  line-height: 1.25;
  color: var(--color-black);
  font-weight: 700;
  text-align: right;
}
.home-quick-freedom-level {
  height: 36px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-black);
  padding: 6px 8px !important;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-direction: row;
  margin-left: auto;
  width: auto;
}
.home-quick-freedom-level.ff-level-item.is-active {
  border-color: var(--color-line);
  background: var(--color-surface);
}
.rekening-saldo-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.report-budgeting-list {
  margin-top: 14px;
}
.report-budgeting-gauge {
  border: 1px solid var(--color-line-soft);
  border-radius: 12px;
  background: var(--color-surface);
  padding: 14px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  align-items: center;
  gap: 18px;
}
.report-budgeting-gauge .income-allocation-gauge-wrap {
  --income-allocation-gauge-width: 380px;
  justify-self: center;
}
.report-budgeting-summary-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 0;
}
.report-budgeting-summary-item {
  border: 1px solid var(--color-line-soft);
  border-radius: 12px;
  background: var(--color-surface-soft);
  padding: 12px;
  min-width: 0;
}
.report-budgeting-summary-label {
  display: block;
  color: var(--color-muted);
  font-size: var(--text-1);
  font-weight: 800;
  line-height: 1.25;
}
.report-budgeting-summary-value {
  display: block;
  margin-top: 5px;
  color: var(--color-black);
  font-family: var(--font-sans);
  font-size: var(--text-2);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.report-budgeting-add {
  border-style: dashed !important;
  align-items: center;
  justify-content: center;
  
  color: var(--color-muted);
  cursor: pointer;
  transition:
    opacity 0.52s ease,
    transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.report-budgeting-add:hover {
  border-color: var(--color-green) !important;
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.report-budgeting-add-icon {
  width: 28px;
  height: 28px;
  color: var(--color-green);
}
.report-budgeting-add-text {
  font-size: var(--text-1);
  font-weight: 700;
  color: var(--color-black);
  text-align: center;
}
.wc-modal-budgeting-category-cta {
  display: block;
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: var(--text-2);
  font-weight: 700;
  line-height: 1.35;
}
.link-button {
  border: 0;
  background: transparent;
  color: var(--color-green);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 8px 0 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: var(--text-1);
  text-align: left;
}
.link-button:hover,
.link-button:focus-visible {
  color: var(--color-black);
}
.rekening-saldo-item {
  width: 100%;
  border: 1px solid var(--color-line-soft) !important;
  border-radius: 12px;
  padding: 12px;
  background: var(--color-surface);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}
.rekening-saldo-item.is-clickable {
  cursor: pointer;
  transition:
    opacity 0.52s ease,
    transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.rekening-saldo-item.is-clickable:hover {
  border-color: var(--color-line);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.rekening-saldo-goal {
  display: grid;
  gap: 6px;
  margin-top: 2px;
  width: 100%;
  min-width: 0;
}
.rekening-saldo-goal-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.rekening-saldo-goal-track {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  width: auto;
  height: 8px;
  border-radius: 999px;
  background: var(--color-line-soft);
  overflow: hidden;
}
.rekening-saldo-goal-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--goal-progress, 0) * 1%);
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-positive-chart) 0%, var(--color-positive-chart-soft) 100%);
}
.rekening-saldo-goal-fill.is-empty {
  width: 0;
}
.rekening-saldo-goal-percent {
  flex: 0 0 auto;
  color: var(--color-muted);
  font-size: var(--text-1);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.rekening-saldo-goal-status {
  font-size: var(--text-1);
  font-weight: 700;
  line-height: 1.3;
}
.rekening-saldo-goal-status.is-tercapai {
  color: var(--color-positive);
}
.rekening-saldo-goal-status.is-belum-tercapai {
  color: var(--color-warning);
}
.rekening-saldo-goal-status.is-belum-ada-target {
  color: var(--color-muted);
}
.rekening-saldo-name {
  min-width: 0;
  color: var(--color-black);
  font-size: var(--text-3);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.rekening-saldo-value,
.rekening-saldo-item .rekening-saldo-value,
.rekening-saldo-item strong.rekening-saldo-value,
button.rekening-saldo-item strong.rekening-saldo-value {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  color: var(--color-black) !important;
  font-weight: 400 !important;
  font-size: var(--text-2) !important;
  line-height: 1.3 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  font-style: normal !important;
  overflow-wrap: anywhere;
}
.rekening-saldo-actual-value,
.rekening-saldo-plan-separator {
  color: var(--color-muted);
  font-size: var(--text-1);
  font-weight: 500;
  line-height: 1.3;
}
.rekening-saldo-plan-separator,
.rekening-saldo-plan-value {
  color: var(--color-muted);
  font-weight: 500;
  line-height: 1.3;
}
.rekening-saldo-plan-value {
  color: var(--color-black);
}
.rekening-saldo-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--color-line);
  border-radius: 10px;
  padding: 12px;
  background: var(--color-surface-soft);
  font-size: var(--text-1);
  line-height: 1.35;
}
.rekening-saldo-skeleton {
  grid-column: 1 / -1;
  display: contents;
}
.rekening-saldo-skeleton-item {
  width: 100%;
  border: 1px solid var(--color-line-soft);
  border-radius: 12px;
  padding: 12px;
  background: var(--color-surface);
  min-width: 0;
  display: grid;
  gap: 8px;
}
.rekening-saldo-skeleton-line {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: var(--color-line-soft);
}
.rekening-saldo-skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, var(--surface-transparent) 0%, var(--surface-sheen) 50%, var(--surface-transparent) 100%);
  animation: rekeningSaldoSkeletonShimmer 1.15s ease-in-out infinite;
}
.rekening-saldo-skeleton-line.is-name {
  width: min(72%, 140px);
  height: 11px;
}
.rekening-saldo-skeleton-line.is-value {
  width: min(58%, 110px);
  height: 16px;
}
@keyframes rekeningSaldoSkeletonShimmer {
  100% { transform: translateX(100%); }
}
.rekening-detail-screen {
  display: none;
}
.rekening-detail-screen.is-active {
  display: block !important;
}
.rekening-detail-head-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.rekening-detail-head-copy h4 {
  margin: 0;
}
.rekening-detail-subtitle {
  margin: 0;
}
.rekening-detail-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  
  flex-wrap: wrap;
}
.rekening-detail-summary-card {
  display: grid;
  gap: 10px;
  min-width: min(100%, 320px);
  text-align: right;
}
.rekening-detail-summary-label {
  color: var(--color-muted);
  font-size: var(--text-1);
  font-weight: 700;
}
.rekening-detail-summary-value {
  color: var(--color-black);
  font-size: var(--text-5);
  line-height: 1.25;
  
}
.rekening-detail-goal {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.rekening-detail-goal-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.rekening-detail-goal-track {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  width: auto;
  height: 10px;
  border-radius: 999px;
  background: var(--color-line-soft);
  overflow: hidden;
}
.rekening-detail-goal-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--goal-progress, 0) * 1%);
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-positive-chart) 0%, var(--color-positive-chart-soft) 100%);
}
.rekening-detail-goal-fill.is-empty {
  width: 0;
}
.rekening-detail-goal-percent {
  flex: 0 0 auto;
  color: var(--color-muted);
  font-size: var(--text-2);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.rekening-detail-goal-meta {
  display: grid;
  gap: 4px;
}
.rekening-detail-goal-status {
  font-size: var(--text-2);
  font-weight: 700;
  line-height: 1.35;
}
.rekening-detail-goal-status.is-tercapai {
  color: var(--color-positive);
}
.rekening-detail-goal-status.is-belum-tercapai {
  color: var(--color-warning);
}
.rekening-detail-goal-status.is-belum-ada-target {
  color: var(--color-muted);
}
.rekening-detail-goal-target {
  color: var(--color-muted);
  font-size: var(--text-2);
  line-height: 1.4;
}
.rekening-detail-target-btn {
  justify-self: end;
  padding-inline: 14px;
}
.rekening-detail-limit-wrap {
  margin-top: 12px;
  margin-left: auto;
}
.rekening-detail-meta {
  margin: 20px 0px 10px !important;
  
}
.rekening-detail-tx-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}
.rekening-detail-tx-title-text {
  min-width: 0;
  
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rekening-detail-tx-type {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--color-blue-soft);
  color: var(--color-muted-strong);
  font-size: var(--text-1);
  font-weight: 700;
  line-height: 1.2;
}
.rekening-detail-tx-meta {
  display: grid;
  gap: 4px;
}
.rekening-detail-tx-note {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: var(--text-2);
  font-weight: 400;
  line-height: 1.3;
}
.home-recent-list {
  display: flex;
  gap: 8px;
  flex: 1 1 auto; 
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.home-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: var(--color-surface);
  padding: 8px 10px;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.home-recent-main {
  min-width: 0;
  flex: 1 1 0;
  overflow: hidden;
}
.home-recent-title {
  color: var(--color-black);
  font-size: var(--text-3);
  font-weight: 700;
  line-height: 1.25;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-recent-meta {
  margin-top: 6px;
  color: var(--color-muted);
  font-size: var(--text-1);
  font-weight: 600;
  line-height: 1.25;
}
.home-recent-amount {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: var(--text-2);
  line-height: 1.25;
  font-weight: 700;
  white-space: nowrap;
}
.home-recent-amount.is-in {
  color: var(--color-positive);
}
.home-recent-amount.is-out {
  color: var(--color-negative);
}
.home-recent-amount.is-neutral {
  color: var(--color-black);
}
.home-recent-empty {
  border: 1px dashed var(--color-line);
  border-radius: 10px;
  padding: 12px;
  background: var(--color-surface-soft);
  line-height: 1.35;
}
.home-recent-empty.is-skeleton {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  color: transparent;
  overflow: hidden;
  user-select: none;
}
.home-recent-empty.is-skeleton::before,
.home-recent-empty.is-skeleton::after {
  content: "";
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: var(--color-line-soft);
}
.home-recent-empty.is-skeleton::before {
  width: min(58%, 220px);
  height: 24px;
}
.home-recent-empty.is-skeleton::after {
  width: 64px;
  min-width: 64px;
  height: 12px;
  flex: 0 0 auto;
}
.home-recent-empty.is-skeleton::before,
.home-recent-empty.is-skeleton::after {
  background-image: linear-gradient(90deg, var(--color-line-soft) 0%, var(--surface-sheen-strong) 50%, var(--color-line-soft) 100%);
  background-size: 220% 100%;
  animation: homeRecentEmptyShimmer 1.25s ease-in-out infinite;
}
@keyframes homeRecentEmptyShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -120% 0; }
}
.home-recent-skeleton {
  display: grid;
  gap: 8px;
}
.home-recent-skeleton-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: var(--color-surface);
  padding: 8px 10px;
}
.home-recent-skeleton-main {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 6px;
}
.home-recent-skeleton-line {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: var(--color-line-soft);
}
.home-recent-skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, var(--surface-transparent) 0%, var(--surface-sheen) 50%, var(--surface-transparent) 100%);
  animation: homeRecentSkeletonShimmer 1.15s ease-in-out infinite;
}
.home-recent-skeleton-line.is-title {
  width: min(62%, 220px);
  height: 12px;
}
.home-recent-skeleton-line.is-meta {
  width: min(42%, 140px);
  height: 9px;
}
.home-recent-skeleton-line.is-amount {
  width: 64px;
  min-width: 64px;
  height: 12px;
  flex: 0 0 auto;
}
@keyframes homeRecentSkeletonShimmer {
  100% { transform: translateX(100%); }
}
.ff-level-list {
  display: grid;
  gap: 8px;
}
.ff-level-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: var(--color-surface);
  padding: 8px 10px;
  transition: opacity 0.18s ease;
}
.ff-level-item.is-active {
  border-color: var(--color-green);
  background: var(--color-positive-soft);
}
.ff-level-item.is-dimmed {
  opacity: 0.5;
}
.ff-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--color-blue-soft);
  color: var(--color-muted-strong);
  font-size: var(--text-1);
  font-weight: 700;
}
.ff-level-label {
  min-width: 0;
  color: var(--color-black);
  font-size: var(--text-1);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.kpi-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kpi-subhead {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--color-line-soft);
  color: var(--color-muted);
  font-size: var(--text-1);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.kpi-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.kpi-list-key {
  color: var(--color-muted);
  font-size: var(--text-2);
}
.kpi-list-value {
  color: var(--color-black);
  font-size: var(--text-2);
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.wealth-trend-wrap {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
.wealth-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.wealth-trend-last {
  font-size: var(--text-1);
  font-weight: 700;
  color: var(--color-black);
}
.wealth-trend-chart {
  width: 100%;
  max-width: 680px;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  height: auto;
  border-radius: 10px;
  /* background: linear-gradient(180deg, var(--color-blue-soft) 0%, var(--color-surface) 100%); */
  overflow: hidden;
  position: relative;
  margin-inline: auto;
}
#wealthTrendChart {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}
.wealth-trend-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 124px;
  max-width: min(90%, 220px);
  border-radius: 10px;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  box-shadow: var(--shadow-panel);
  padding: 8px 10px;
  pointer-events: none;
}
.wealth-trend-tooltip-value {
  font-size: var(--text-2);
  line-height: 1.2;
  color: var(--color-black);
  font-weight: 700;
}
.wealth-trend-tooltip-date {
  margin-top: 3px;
  font-size: var(--text-1);
  line-height: 1.2;
  color: var(--color-muted);
  font-weight: 600;
}
.section-title {
  margin: 0 0 10px;
  font-size: var(--text-5);
}
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.section-title-row .section-title {
  margin-bottom: 0;
}
.rekening-add-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
}
.rekening-add-account-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.account-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.catat-section-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  justify-content: center;
}
.account-subnav-btn {
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-muted-strong);
  padding: 8px 12px;
  min-width: 0;
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  font-size: var(--text-2);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.account-subnav-btn.is-active {
  background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-surface);
}
.catat-section-toggle-btn {
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-muted-strong);
  padding: 8px 12px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2);
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.catat-section-toggle-btn.is-active {
  background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-surface);
}
.account-subpanel {
  display: none;
}
.account-subpanel.is-active {
  display: block;
}
.account-section-card {
  /*border: 1px solid var(--color-line-soft);
  border-radius: 12px;
  padding: 14px;
  background: var(--color-surface);*/
  min-width: 0;
}
.account-section-card .stack .btn {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.catat-list-screen {
  display: block;
}
.catat-detail-screen {
  display: none;
}
.catat-detail-screen.is-active {
  display: block !important;
}
.catat-module-grid {
  display: grid;
  gap: 10px;
}
.catat-module-grid > .kpi-label {
  margin-bottom: 0;
}
.catat-recent-block {
  margin: 14px 0px;
  display: grid;
  gap: 8px;
}
.catat-module-card {
  /* background: var(--color-surface); */
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.14s ease, background-color 0.18s ease;
}
.catat-module-card-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.catat-module-btn {
  width: 100%;
  border: 1px solid var(--color-line) !important;
  border-radius: 12px;
  background: var(--color-surface);
  padding: 14px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.14s ease, background-color 0.18s ease;
  text-transform: inherit !important;
}
.catat-module-btn:hover {
  border-color: var(--color-blue);
  background: var(--color-blue-soft);
  transform: translateY(-1px);
}
.catat-module-btn.is-active {
  border-color: var(--color-green) !important;
  background: var(--color-green-soft);
}
.catat-module-card-title {
  color: var(--color-black);
  font-size: var(--text-3);
  font-weight: 700;
  line-height: 1.3;
}

.module-panel {
  margin-top: 0;
  /* border: 1px solid var(--color-line-soft); */
  /* border-radius: 12px; */
  /* padding: 16px; */
  /* background: var(--color-surface); */
  min-width: 0;
}
.module-title {
  margin: 0;
  min-width: 0;
  color: var(--color-black);
  font-size: var(--text-3);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
}
.module-desc {
  margin: 4px 0 0;
  min-width: 0;
  color: var(--color-muted-strong);
  font-size: var(--text-1);
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: center;
}

.placeholder {
  margin-top: 10px;
  border-top: 1px solid var(--color-line);
  /* border-radius: 10px; */
  padding-top: 14px;
  /* color: var(--color-muted); */
  /* background: var(--color-surface-soft); */
  min-width: 0;
  overflow-wrap: anywhere;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
  min-width: 0;
}
.report-list-screen,
.report-detail-screen {
  display: block;
}
.report-detail-screen.is-active {
  display: block !important;
}
.report-detail-head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  justify-items: center;
}
.report-detail-title {
  margin: 0;
  min-width: 0;
  color: var(--color-black);
  font-size: var(--text-3);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
}
.report-detail-desc {
  margin: 0;
  min-width: 0;
  color: var(--color-muted-strong);
  font-size: var(--text-1);
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: center;
}
.report-detail-content {
  display: none;
}
.report-detail-content.is-active {
  display: block;
}
.report-filter-bar {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.report-filter-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.report-filter-field-income-basis {
  margin-left: auto;
}
.income-allocation-basis-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--color-line-soft);
  border-radius: 10px;
  background: var(--color-surface);
  padding: 3px;
  min-width: 0;
}
.income-allocation-basis-btn {
  appearance: none;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font: inherit;
  font-size: var(--text-2);
  font-weight: 800;
  line-height: 1;
  min-height: 30px;
  padding: 8px 10px;
  white-space: nowrap;
}
.income-allocation-basis-btn:hover,
.income-allocation-basis-btn[aria-pressed="true"] {
  background: var(--color-line);
  color: var(--color-white);
}
.income-allocation-basis-btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
.report-month-filter {
  width: auto !important;
  min-width: 80px !important;
  max-width: 100% !important;
}
.report-cashflow-statement {
  border: 1px solid var(--color-line-soft);
  border-radius: 12px;
  padding: 12px;
  background: var(--color-surface);
  min-width: 0;
}
.report-cashflow-statement-list {
  display: grid;
  gap: 0;
  min-width: 0;
}
.report-cashflow-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border-bottom: 1px solid var(--color-line-soft);
  padding: 9px 0;
}
.report-cashflow-row:last-child {
  border-bottom: 0;
}
.report-cashflow-row.is-section {
  margin-top: 8px;
  padding-top: 14px;
  border-bottom: 0;
}
.report-cashflow-row.is-total {
  font-weight: 800;
}
.report-cashflow-row.is-final {
  margin-top: 8px;
  border-top: 1px solid var(--color-line);
  border-bottom: 0;
  padding-top: 14px;
}
.report-cashflow-label {
  min-width: 0;
  color: var(--color-muted);
  font-size: var(--text-1);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.report-cashflow-row.is-section .report-cashflow-label,
.report-cashflow-row.is-total .report-cashflow-label,
.report-cashflow-row.is-final .report-cashflow-label {
  color: var(--color-black);
  font-weight: 800;
  font-size: var(--text-2);
}
.report-cashflow-value {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--color-black);
  font-family: var(--font-sans);
  font-size: var(--text-1);
  font-weight: 700;
  line-height: 1.3;
  text-align: right;
  overflow-wrap: anywhere;
}
.report-cashflow-row.is-final .report-cashflow-value {
  font-size: var(--text-2);
}
.income-allocation-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1.05fr);
  gap: 12px;
  min-width: 0;
  align-items: stretch;
}
.income-allocation-visual,
.income-allocation-compare {
  border: 1px solid var(--color-line-soft);
  border-radius: 12px;
  background: var(--color-surface);
  min-width: 0;
}
.income-allocation-visual {
  display: grid;
  gap: 12px;
  padding: 14px;
}
.income-allocation-gauge {
  min-width: 0;
  display: grid;
  place-items: center;
  text-align: center;
}
.income-allocation-gauge-wrap {
  position: relative;
  width: min(100%, var(--income-allocation-gauge-width, 360px));
  min-height: 150px;
  display: grid;
  place-items: center;
}
.income-allocation-gauge-wrap svg {
  position: relative;
  margin: 0 0 -100px 0;
  width: 100%;
  height: auto;
  display: block;
}
.income-allocation-gauge-bg {
  stroke: var(--color-line-soft);
}
.income-allocation-gauge-fill {
  stroke: var(--color-gauge-fill);
  transition: stroke-dashoffset 0.36s ease;
}
.income-allocation-gauge-center {
  position: relative;
  z-index: 1;
  margin-top: 34px;
  display: grid;
  gap: 4px;
  justify-items: center;
  width: 100%;
  min-width: 0;
}
.income-allocation-gauge-label {
  color: var(--color-muted);
  font-size: var(--text-2);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}
.income-allocation-gauge-value {
  color: var(--color-black);
  font-family: var(--font-sans);
  font-size: var(--text-5);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.income-allocation-gauge-meta {
  color: var(--color-muted);
  font-size: var(--text-1);
  font-weight: 700;
  line-height: 1.35;
}
.income-allocation-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr));
  gap: 8px;
  min-width: 0;
}
.income-allocation-chip {
  border: 1px solid var(--color-line-soft);
  border-radius: 12px;
  background: var(--color-surface-soft);
  padding: 10px;
  min-width: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
}
button.income-allocation-chip {
  width: 100%;
  font: inherit;
  cursor: pointer;
}
.income-allocation-chip:hover {
  border-color: var(--color-blue);
  background: var(--color-blue-soft);
}
.income-allocation-chip-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 8px;
}
.income-allocation-chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue-soft);
  color: var(--color-black);
  font-size: var(--text-3);
}
.income-allocation-chip-plan {
  color: var(--color-muted-strong);
  font-family: var(--font-sans);
  font-size: var(--text-4);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  margin-left: auto;
}
.income-allocation-chip-label {
  display: block;
  color: var(--color-muted);
  font-size: var(--text-1);
  line-height: 1.3;
}
.income-allocation-chip-value {
  display: block;
  margin-top: 4px;
  color: var(--color-black);
  font-family: var(--font-sans);
  font-size: var(--text-1);
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.income-allocation-chip-pct {
  display: block;
  margin-top: 2px;
  color: var(--color-muted);
  font-size: var(--text-1);
  font-weight: 700;
}
.income-allocation-compare {
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 10px;
}
.income-allocation-compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--color-black);
  font-size: var(--text-4);
  font-weight: 800;
  line-height: 1.2;
}
.income-allocation-status {
  color: var(--color-muted);
  font-size: var(--text-1);
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
}
.income-allocation-compare-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.income-allocation-compare-row {
  display: grid;
  gap: 7px;
  min-width: 0;
  border-bottom: 1px solid var(--color-line-soft);
  padding: 9px 0;
}
.income-allocation-compare-row:last-child {
  border-bottom: 0;
}
.income-allocation-compare-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.income-allocation-compare-label {
  min-width: 0;
  color: var(--color-black);
  font-size: var(--text-2);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.income-allocation-compare-value {
  flex: 0 0 auto;
  min-width: 0;
  color: var(--color-black);
  font-family: var(--font-sans);
  font-size: var(--text-2);
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}
.income-allocation-compare-progress {
  display: grid;
  grid-template-columns: 52px minmax(80px, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.income-allocation-compare-row.is-warning .income-allocation-compare-value,
.income-allocation-compare-row.is-warning .income-allocation-compare-plan {
  color: var(--color-negative);
}
.income-allocation-compare-plan {
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: var(--text-1);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-align: right;
}
.income-allocation-actual-pct {
  color: var(--color-black);
  font-family: var(--font-sans);
  font-size: var(--text-1);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.income-allocation-actual-track {
  display: block;
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--color-line-soft);
  overflow: hidden;
}
.income-allocation-actual-fill {
  display: block;
  width: calc(var(--actual-progress, 0) * 1%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-gauge-fill) 0%, var(--color-gauge-fill-soft) 100%);
}
.income-allocation-compare-row.is-warning .income-allocation-actual-fill {
  background: linear-gradient(90deg, var(--color-gauge-warning) 0%, var(--color-red-hover) 100%);
}
.income-allocation-income-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  border: 1px solid var(--color-brown);
  border-radius: 12px;
  background: var(--color-brown-soft);
  color: var(--color-muted-strong);
  padding: 10px;
  min-width: 0;
}
.income-allocation-income-warning[hidden] {
  display: none;
}
.income-allocation-income-warning-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  color: var(--color-red);
}
.income-allocation-income-warning-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.income-allocation-income-warning-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.income-allocation-income-warning-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.income-allocation-income-warning-copy strong {
  color: var(--color-black);
  font-size: var(--text-2);
  font-weight: 800;
  line-height: 1.25;
}
.income-allocation-income-warning-copy span {
  color: var(--color-muted-strong);
  font-size: var(--text-1);
  font-weight: 700;
  line-height: 1.35;
}
.income-allocation-actual-cell {
  min-width: 0;
}
.report-wealth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 10px;
  min-width: 0;
}
.report-wealth-card {
  border: 1px solid var(--color-line-soft);
  border-radius: 12px;
  padding: 12px;
  background: var(--color-surface);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.report-wealth-highlight {
  display: grid;
  gap: 4px;
  border: 1px solid color-mix(in srgb, var(--color-green) 36%, transparent);
  border-radius: 10px;
  padding: 10px;
  background: var(--color-positive-soft);
}
.report-wealth-highlight-label {
  color: var(--color-muted-strong);
  font-size: var(--text-1);
  font-weight: 800;
}
.report-wealth-highlight-value {
  color: var(--color-black);
  font-size: var(--text-2);
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.report-wealth-highlight-note {
  color: var(--color-muted-strong);
  font-size: var(--text-1);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.report-card {
  border: 1px solid var(--color-line-soft);
  border-radius: 12px;
  padding: 12px;
  background: var(--color-surface);
  min-width: 0;
}
.report-value-in { color: var(--color-positive); }
.report-value-out { color: var(--color-negative); }
.report-value-neutral { color: var(--color-black); }
.report-value-saving-positive { color: var(--color-positive); }
.report-value-saving-negative { color: var(--color-negative); }
.report-note {
  margin-top: 8px;
  font-size: var(--text-1);
  line-height: 1.35;
}
.report-vs-last {
  margin-top: 4px;
  color: var(--color-black);
  font-size: var(--text-1);
  line-height: 1.35;
}
.report-category-donut {
  margin: 8px auto 0;
  width: 150px;
  height: 150px;
  display: block;
}
.report-donut-tooltip {
  position: fixed;
  z-index: 10120;
  min-width: 140px;
  max-width: min(88vw, 280px);
  border-radius: 10px;
  border: 1px solid var(--border-toast);
  background: var(--tooltip-bg);
  color: var(--color-surface-soft);
  box-shadow: var(--shadow-popover);
  padding: 8px 10px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.report-donut-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.report-donut-tooltip-title {
  font-size: var(--text-1);
  line-height: 1.2;
  font-weight: 700;
}
.report-donut-tooltip-row {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-1);
  line-height: 1.3;
}
.report-donut-tooltip-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex: 0 0 10px;
  border: 1px solid var(--border-glass);
}
.report-category-list {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}
.report-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--text-1);
  line-height: 1.3;
  color: var(--color-black);
}
.report-category-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.report-category-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 8px;
}
.report-category-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 130px;
}
.report-category-pct {
  color: var(--color-muted);
  font-weight: 600;
}
.report-category-nominal {
  white-space: nowrap;
  font-weight: 700;
}
.report-chart-card {
  margin-top: 10px;
  border: 1px solid var(--color-line-soft);
  border-radius: 12px;
  padding: 12px;
  background: var(--color-surface);
}
.report-chart-wrap {
  width: 100%;
  height: 280px;
  margin-top: 6px;
}
#reportMonthlyChart {
  width: 100%;
  height: 100%;
  display: block;
}

.home-summary-loading {
  margin-top: 8px;
  display: none;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--color-line);
  background: var(--color-surface-soft);
  color: var(--color-muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: var(--text-1);
  line-height: 1.3;
}
.home-summary-loading.is-visible {
  display: inline-flex;
}
.home-summary-loading-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid var(--color-line);
  border-top-color: var(--color-link);
  border-radius: 999px;
  animation: homeSummarySpin 0.8s linear infinite;
}
.home-summary-loading-text {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(65vw, 340px);
}
@keyframes homeSummarySpin {
  to { transform: rotate(360deg); }
}
.tab-panel[data-panel="home"].is-loading .home-quick-card {
  opacity: 0.6;
}
.global-sheets-loading {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  z-index: 12000;
  background: var(--blue-wash);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}
.global-sheets-loading.is-visible {
  opacity: 1;
}
.global-sheets-loading-bar {
  display: block;
  width: 36%;
  height: 100%;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--color-link) 0%, var(--color-blue) 100%);
  animation: globalSheetsLoadingSlide 1.1s ease-in-out infinite;
}
@keyframes globalSheetsLoadingSlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
.tab-panel-loading {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  width: fit-content;
  border: 1px solid var(--color-line);
  background: var(--color-surface-soft);
  color: var(--color-muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: var(--text-1);
  line-height: 1.3;
}
.tab-panel-loading.is-visible {
  display: inline-flex;
}
.tab-panel-loading-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--color-line);
  border-top-color: var(--color-link);
  border-radius: 999px;
  animation: homeSummarySpin 0.8s linear infinite;
}
.tab-panel-loading-text {
  white-space: nowrap;
}

.stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.wa-float-btn {
  position: fixed;
  padding: 12px;
  border: 2px solid var(--color-surface);
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-positive) 0%, var(--color-positive-strong) 100%);
  color: var(--color-surface);
  text-decoration: none;
  line-height: 0;
  overflow: hidden;
  box-shadow: var(--shadow-panel);
  z-index: 10020;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.wa-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-panel);
  filter: saturate(1.05);
}
.wa-float-btn:active {
  transform: translateY(0);
}
.wa-float-btn:focus-visible {
  outline: 3px solid var(--green-focus);
  outline-offset: 4px;
}
.wa-float-btn-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
}
.wa-float-btn-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bottom-nav {
  display: none;
  position: fixed;
  left: 0px;
  right: 0px;
  bottom: 0px;
  height: var(--bottom-nav-height);
  border-width: 2px 1px 0 0;
  border-style: solid;
  border-color: var(--border-glass-panel);
  background: color-mix(in srgb, var(--surface-glass-panel) 88%, transparent);
  z-index: 9999;
  box-shadow: var(--shadow-panel);
  padding: 12px 12px 24px;
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.bottom-nav-btn {
  flex: 1;
  border: 0;
  border-radius: 10px;
  background: var(--surface-transparent);
  color: var(--color-black);
  font-weight: 700;
  cursor: pointer;
  font-size: var(--text-1) !important;
  line-height: 1.1;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 4px;
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.14s ease;
  transform: translateY(0);
}
.bottom-nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bottom-nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bottom-nav-label {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bottom-nav-btn.active {
  background: var(--color-green);
  color: var(--color-surface);
}
.bottom-nav-btn:hover {
  background: var(--color-blue-soft);
}
.bottom-nav-btn.active:hover {
  color: var(--color-black);
}
.bottom-nav-btn:active {
  transform: translateY(1px);
}

#statusMsg {
  display: none !important;
}
.status-toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--color-blue);
  border-radius: 10px;
  background: var(--color-blue-soft);
  color: var(--color-black);
  font-size: var(--text-2);
  line-height: 1.35;
  z-index: 10040;
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.status-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.status-toast-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.status-toast-close {
  border: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--black-wash);
  color: var(--color-black);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-pull-refresh {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 10070;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--surface-glass);
  box-shadow: var(--shadow-panel);
  transform: translate(-50%, calc(-120% + var(--pull-offset, 0px)));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.mobile-pull-refresh.is-visible {
  opacity: 1;
}
.mobile-pull-refresh.is-refreshing {
  transform: translate(-50%, 10px);
}
.mobile-pull-refresh-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--color-line);
  border-top-color: var(--color-green);
  transform: rotate(var(--pull-rotate, 0deg));
}
.mobile-pull-refresh.is-refreshing .mobile-pull-refresh-spinner {
  animation: wcSpin 0.8s linear infinite;
}
.mobile-pull-refresh-text {
  font-size: var(--text-1);
  font-weight: 700;
  color: var(--color-muted-strong);
  line-height: 1.2;
}

@keyframes wcSpin {
  to { transform: rotate(360deg); }
}

/* Profil table */
#profilAwalTables {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 10px;
  min-width: 0;
}
.profil-menabung-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.profil-menabung-card {
  border: 1px solid var(--color-line-soft);
  border-radius: 12px;
  padding: 12px;
  background: var(--color-surface);
}
.profil-menabung-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.profil-menabung-label {
  color: var(--color-muted);
  font-size: var(--text-2);
}
.profil-menabung-value {
  margin-top: 6px;
  color: var(--color-black);
  font-size: var(--text-3);
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.profil-menabung-note {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: var(--text-1);
  line-height: 1.35;
}
.profil-menabung-edit-btn {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface-soft);
  color: var(--color-black);
  font-size: var(--text-1);
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
  white-space: nowrap;
}
.profil-card {
  /* border: 1px solid var(--color-line-soft); */
  /* border-radius: 12px; */
  /* padding: 12px; */
  /* background: var(--color-surface); */
  min-width: 0;
}
.profil-card h4 {
  margin: 0 0 8px 0;
  font-size: var(--text-4);
  font-weight: 700 !important;
}
.profil-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.profil-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.table-add-btn {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface-soft);
  color: var(--color-black);
  font-size: var(--text-2);
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
}
.profil-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.profil-table {
  min-width: 100%;
  width: max-content;
  border-collapse: collapse;
  font-size: var(--text-3);
  table-layout: auto;
}
.profil-table th,
.profil-table td {
  border: 1px solid var(--color-line-soft);
  padding: 6px 8px;
  text-align: left;
  white-space: nowrap;
  word-break: normal;
}
.profil-table tbody tr[data-row] {
  cursor: pointer;
}
.profil-table tbody tr[data-row]:hover td {
  background: var(--color-blue-soft);
}
.profil-table th {
  background: var(--color-surface-soft);
  font-weight: 700;
}
.profil-table .action-col {
  white-space: nowrap;
  width: 1%;
  min-width: max-content;
  max-width: max-content;
  position: sticky;
  right: 0;
  z-index: 2;
  background: var(--color-surface);
  box-shadow: -1px 0 0 var(--color-line-soft);
  padding: 4px 6px;
  text-align: center;
}
.profil-table th.action-col {
  z-index: 3;
  background: var(--color-surface-soft);
}
.row-actions {
  display: inline-flex;
  gap: 4px;
}
.row-btn {
  border: 0;
  border-radius: 8px;
  padding: 6px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.row-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.row-btn.edit { background: var(--color-blue-soft); color: var(--color-link); }
.row-btn.delete { background: var(--color-negative-soft); color: var(--color-negative); }
.row-btn.save { background: var(--color-positive-soft); color: var(--color-positive); }
.row-btn.cancel { background: var(--color-surface-soft); color: var(--color-muted-strong); }

.catat-toolbar-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.catat-toolbar-actions .btn {
  flex: 0 0 auto;
}

.detail-back-btn {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var--(color-surface);
  color: var(--color-black);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateX(0);
  transition: color 0.18s ease, transform 0.14s ease;
}
.detail-back-btn:hover:not(:disabled),
.detail-back-btn:focus-visible {
  background: transparent;
  color: var(--color-muted-strong);
  box-shadow: none;
}
.detail-back-btn:focus-visible {
  outline: 3px solid var(--green-focus);
  outline-offset: 2px;
}
.detail-back-btn:active:not(:disabled) {
  transform: translateX(-1px);
}
.detail-back-icon {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

tr.is-editing td { background: var(--color-surface); }
.readonly-cell { background: var(--color-surface-soft); color: var(--color-muted); }

.cell-input {
  width: 100%;
  min-width: 90px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  padding: 5px 7px;
  font-size: var(--text-2);
  background: var(--color-surface);
}

.catat-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 10px;
}
.catat-table {
  min-width: 100%;
  width: max-content;
  border-collapse: collapse;
  font-size: var(--text-3);
  table-layout: auto;
}
.catat-table th,
.catat-table td {
  border: 1px solid var(--color-line-soft);
  padding: 8px;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
}
.catat-table th {
  background: var(--color-surface-soft);
  font-weight: 700;
}
.catat-table .action-col {
  white-space: nowrap;
  width: 1%;
  min-width: max-content;
  max-width: max-content;
  position: sticky;
  right: 0;
  z-index: 2;
  background: var(--color-surface);
  box-shadow: -1px 0 0 var(--color-line-soft);
  padding: 4px 6px;
  text-align: center;
}
.catat-table th.action-col {
  z-index: 3;
  background: var(--color-surface-soft);
}
.catat-toolbar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  align-items: stretch;
}
.catat-toolbar-row {
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}
.catat-toolbar-title {
  min-width: 0;
}
.catat-list-title {
  margin: 0;
  font-size: var(--text-1);
}
.catat-realized-pl {
  padding-top: 2px;
  color: var(--color-muted-strong);
  font-size: var(--text-1);
  font-weight: 700;
}
.catat-realized-pl-label,
.catat-realized-pl-value {
  font: inherit;
}
.catat-toolbar-total {
  flex: 0 0 auto;
  text-align: right;
  color: var(--color-muted-strong);
  font-size: var(--text-1);
  font-weight: 700;
}
.catat-toolbar-total-label,
.catat-toolbar-total-value {
  font: inherit;
}
.catat-table-action-btn {
  min-height: 34px;
  padding: 7px 10px;
  font-size: var(--text-2);
  line-height: 1.1;
  white-space: nowrap;
}
.catat-card-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.catat-card {
  width: 100%;
  text-transform: inherit !important;
  border: 1px solid var(--color-line) !important;
  border-radius: 12px;
  background: var(--color-surface);
  font: inherit;
  font-family: inherit;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  text-align: left;
  cursor: pointer;
}
.catat-card:hover {
  border-color: var(--color-blue);
  background: var(--color-blue-soft);
}
.catat-card.js-pd-card.reveal-seq-target.is-revealed {
  background: var(--color-surface-soft);
}
.catat-card-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-blue-soft);
  color: var(--color-black-soft);
  font-size: var(--text-1);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.catat-card-main {
  min-width: 0;
}
.catat-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.catat-card-title {
  font-size: var(--text-3);
  color: var(--color-black);
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}
.catat-card-amount {
  font-size: var(--text-2);
  color: var(--color-negative);
  font-weight: 700;
  white-space: nowrap;
}
.catat-card-amount.is-neutral {
  color: var(--color-black);
}
.catat-card-amount.is-in {
  color: var(--color-positive);
}
.profil-card {
  color: var(--color-black);
}
.catat-card-sub {
  margin-top: 4px;
  font-size: var(--text-2);
  color: var(--color-muted);
  overflow-wrap: anywhere;
}
.catat-card-meta {
  margin-top: 6px;
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--color-muted);
  font-size: var(--text-1);
  font-weight: 600;
}
.catat-card-empty {
  border: 1px dashed var(--color-line);
  border-radius: 10px;
  padding: 12px;
  background: var(--color-surface-soft);
}
.catat-summary-list {
  margin-top: 10px;
}
.catat-summary-card {
  cursor: default;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 12px;
}
.catat-summary-card:hover {
  border-color: var(--color-line) !important;
  background: var(--color-surface);
}
.catat-summary-card .catat-card-main {
  display: contents;
}
.catat-summary-card .catat-card-head {
  grid-column: 1 / -1;
}
.catat-summary-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  grid-column: 1;
}
.catat-summary-detail {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.catat-summary-label {
  color: var(--color-muted);
  font-size: var(--text-1);
  font-weight: 700;
}
.catat-summary-value {
  color: var(--color-muted-strong);
  font-size: var(--text-2);
  font-weight: 800;
}
.catat-summary-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  grid-column: 2;
  align-self: end;
}

.catat-limit-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-muted);
  font-size: var(--text-2);
  font-weight: 600;
  white-space: nowrap;
  flex-wrap: nowrap;
  height: 40px;
  line-height: 1;
  width: max-content;
  margin-top: 8px;
  margin-left: auto;
}
.catat-limit-text {
  display: inline-flex;
  align-items: center;
  height: 100%;
}
.catat-limit-wrap .catat-limit-select {
  min-width: 72px;
  width: auto;
  flex: 0 0 auto;
  height: 40px;
  line-height: 40px;
  padding-top: 0;
  padding-bottom: 0;
}
.catat-select,
.catat-input {
  display: block;
  background: var(--black-wash);
  background-color: var(--black-wash);
  width: 100%;
  min-width: 120px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  padding: 0 8px !important;
  color: var(--color-black);
  -webkit-text-fill-color: var(--color-black);
  color-scheme: light;
  font-size: var(--text-2);
  height: 40px !important;
  min-height: 40px !important;
  line-height: 1.2 !important;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}
.catat-select {
  background-color: var(--color-surface);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-black) 50%),
    linear-gradient(135deg, var(--color-black) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  border-color: var(--color-line-soft);
  border-radius: 12px;
  color: var(--color-black);
  padding: 0 36px 0 14px !important;
  font-size: var(--text-2);
  font-weight: 500;
  box-shadow: var(--shadow-hover);
}
.catat-select:focus,
.catat-input:focus {
  border-color: var(--color-green);
  outline: none;
  box-shadow: 0 0 0 3px var(--green-focus);
}
.catat-input[type="date"],
.catat-input[type="datetime-local"],
.catat-input[type="text"],
.catat-input[type="number"],
.catat-select {
  height: 32px !important;
  min-height: 32px !important;
}
.catat-input[type="date"] {
  background: var(--color-surface);
  background-color: var(--color-surface);
  color: var(--color-black);
  -webkit-text-fill-color: var(--color-black);
  padding-right: 10px !important;
}
.catat-input[type="datetime-local"] {
  background: var(--color-surface);
  background-color: var(--color-surface);
  color: var(--color-black);
  -webkit-text-fill-color: var(--color-black);
  padding-right: 10px !important;
}

.catat-input[type="date"]::-webkit-date-and-time-value,
.catat-input[type="datetime-local"]::-webkit-date-and-time-value,
.catat-input[type="date"]::-webkit-datetime-edit,
.catat-input[type="datetime-local"]::-webkit-datetime-edit,
.catat-input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.catat-input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper,
.catat-input[type="date"]::-webkit-datetime-edit-text,
.catat-input[type="datetime-local"]::-webkit-datetime-edit-text,
.catat-input[type="date"]::-webkit-datetime-edit-month-field,
.catat-input[type="datetime-local"]::-webkit-datetime-edit-month-field,
.catat-input[type="date"]::-webkit-datetime-edit-day-field,
.catat-input[type="datetime-local"]::-webkit-datetime-edit-day-field,
.catat-input[type="date"]::-webkit-datetime-edit-year-field,
.catat-input[type="datetime-local"]::-webkit-datetime-edit-year-field,
.catat-input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
.catat-input[type="datetime-local"]::-webkit-datetime-edit-minute-field,
.catat-input[type="datetime-local"]::-webkit-datetime-edit-ampm-field {
  color: var(--color-black);
  -webkit-text-fill-color: var(--color-black);
}

.catat-input[type="date"]::-webkit-calendar-picker-indicator,
.catat-input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  opacity: 0.72;
  filter: grayscale(1);
}

:root:not([data-theme-mode]) .dash-layout :is(
  #dashboardGreeting,
  #activeSheetInfo,
  .section-title,
  .home-quick-label,
  .catat-module-grid > .kpi-label,
  .catat-recent-block > .kpi-label,
  .module-title,
  .module-desc,
  .report-detail-title,
  .report-detail-desc,
  .report-filter-bar > .kpi-label,
  .report-filter-field > .kpi-label,
  .rekening-detail-head-copy > h4,
  .rekening-detail-head-copy > .muted,
  .rekening-detail-summary-value,
  .rekening-detail-goal-percent,
  .rekening-detail-goal-status,
  .rekening-detail-goal-target,
  #rekeningDetailMeta,
  .account-section-card > .muted,
  .account-section-card > p.muted,
  .catat-toolbar .catat-list-title,
  .catat-toolbar-total-label,
  .catat-toolbar-total-value,
  .catat-realized-pl-label,
  .catat-realized-pl-value,
  .catat-limit-wrap > .catat-limit-text,
  #profilAwalTables > .profil-card > .profil-card-head > h4,
  #profilAwalTables > .placeholder > strong,
  #profilAwalTables > .placeholder > p
) {
  color: var(--color-surface);
  text-shadow: 0 1px 2px rgba(35, 35, 35, 0.28);
}

.wc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--overlay-dark);
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}
.wc-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.wc-modal-backdrop.is-closing {
  opacity: 0;
}
.wc-modal {
  width: min(560px, 100%);
  max-height: min(88vh, 920px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-line) transparent;
  background: var(--color-surface);
  border-radius: 14px;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-popover);
  transform: translateY(24px) scale(0.985);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.34s ease;
}
.wc-modal::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.wc-modal::-webkit-scrollbar-track {
  background: transparent;
}
.wc-modal::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
  background-color: var(--color-line);
}
.wc-modal::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-muted);
}
.wc-modal::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
.wc-modal-backdrop.is-open .wc-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.wc-modal-backdrop.is-closing .wc-modal {
  transform: translateY(16px) scale(0.99);
  opacity: 0;
}
.wc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-line-soft);
}
.wc-modal-head h4 {
  margin: 0;
  font-size: var(--text-4);
}
.wc-modal-close {
  border: 0;
  background: var(--color-surface-soft);
  color: var(--color-black);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.14s ease;
  transform: translateY(0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wc-modal-close:hover {
  background: var(--color-line-soft);
}
.wc-modal-close:active {
  transform: translateY(1px);
}
.wc-modal-body {
  padding: 14px 16px 16px;
}
.wc-upgrade-modal {
  width: min(560px, 100%);
  /* height: min(92vh, 980px); */
  max-height: min(80vh, 980px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 2%;
}
.wc-upgrade-body {
  flex: 1;
  min-height: 0;
  padding: 12px 16px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.wc-upgrade-iframe {
  width: 100%;
  min-height: 520px;
  height: 640px;
  border: 0;
  border-radius: 10px;
  background: var(--color-surface);
  display: block;
}
.wc-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.wc-modal-grid:has(.wc-modal-field.is-half) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wc-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.wc-modal-field.is-full,
.wc-modal-grid:has(.wc-modal-field.is-half) .wc-modal-field:not(.is-half) {
  grid-column: 1 / -1;
}
.wc-modal-label {
  font-size: var(--text-1);
  color: var(--color-muted);
  font-weight: 700;
}
.wc-modal-field.is-primary .wc-modal-label {
  color: var(--color-muted-strong);
}
.wc-modal-field.is-primary .catat-input {
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  padding: 0 2px !important;
  font-size: var(--text-4);
  box-shadow: none;
}
.wc-modal-field.is-primary .catat-input:focus {
  outline: none;
  border-bottom-color: var(--color-green);
  box-shadow: none;
}
.wc-modal-field.is-primary .catat-input[data-number-format] {
  font-weight: 700;
}
.wc-modal-category-hint {
  min-height: 14px;
  color: var(--color-muted);
  font-size: var(--text-1);
}
.wc-category-combo {
  position: relative;
  display: block;
  width: 100%;
}
.wc-category-combo-input {
  padding-right: 38px !important;
  background: var(--color-surface);
  background-color: var(--color-surface);
  border-color: var(--color-line-soft);
  border-radius: 12px;
  font-weight: 500;
  box-shadow: var(--shadow-hover);
}
.wc-category-combo-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--color-black);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wc-category-combo-toggle span {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid currentColor;
}
.wc-category-combo-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 3;
  display: none;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-line-soft);
  border-radius: 12px;
  box-shadow: var(--shadow-popover);
}
.wc-category-combo.is-open .wc-category-combo-list {
  display: grid;
  gap: 4px;
}
.wc-category-combo-option {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--color-black);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.wc-category-combo-option:hover,
.wc-category-combo-option:focus {
  outline: none;
  background: var(--color-surface-soft);
}
.wc-category-combo-option.is-new {
  color: var(--color-green);
  font-weight: 700;
}
.wc-category-combo-empty {
  padding: 8px 9px;
  color: var(--color-muted);
  font-size: var(--text-1);
}
.wc-modal-repeatable {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.wc-modal-extra-row {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--color-line-soft);
  border-radius: 10px;
  background: var(--color-surface-soft);
}
.wc-modal-extra-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.wc-modal-extra-head strong {
  font-size: var(--text-2);
  color: var(--color-muted-strong);
}
.wc-modal-add-row {
  margin-top: 12px;
  padding: 0;
}
.wc-modal-error {
  color: var(--color-negative);
  font-size: var(--text-2);
  min-height: 18px;
  margin-top: 8px;
}
.wc-modal-foot {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.wc-confirm-modal {
  width: min(420px, 100%);
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  box-shadow: var(--shadow-popover);
  transform: translateY(18px) scale(0.985);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}
.wc-modal-backdrop.is-open .wc-confirm-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.wc-modal-backdrop.is-closing .wc-confirm-modal {
  transform: translateY(12px) scale(0.99);
  opacity: 0;
}
.wc-confirm-modal h4 {
  margin: 0 0 8px;
  font-size: var(--text-4);
}
.wc-confirm-modal p {
  margin: 0 0 14px;
  color: var(--color-muted-strong);
  font-size: var(--text-2);
  line-height: 1.45;
}
.wc-order-login-modal .wc-modal-body {
  display: grid;
  gap: 12px;
}
.wc-order-login-modal .wc-modal-foot {
  justify-content: stretch;
  flex-wrap: wrap;
}
.wc-order-login-modal .wc-modal-foot .btn {
  flex: 1 1 180px;
}
.wc-modal-foot.is-splitbill {
  justify-content: space-between;
}
.wc-category-manager-modal {
  width: min(680px, 100%);
}
.wc-category-manager-body {
  display: grid;
  gap: 12px;
}
.wc-category-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.wc-category-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.wc-category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  
  border-radius: 10px;
  
  min-width: 0;
}
.wc-category-row-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}
.wc-category-row .catat-input,
.wc-category-add .catat-input {
  min-width: 0;
}
.wc-category-status {
  min-height: 18px;
  color: var(--color-muted);
  font-size: var(--text-1);
  font-weight: 700;
}
.wc-category-status.is-error {
  color: var(--color-negative);
}
.wc-tutorial-modal {
  width: min(640px, 100%);
}
.wc-tutorial-body {
  display: grid;
  gap: 16px;
}
.wc-tutorial-intro {
  margin: 0;
  color: var(--color-muted-strong);
  font-size: var(--text-2);
  line-height: 1.55;
}
.wc-tutorial-progress {
  display: grid;
  gap: 10px;
}
.wc-tutorial-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--color-line-soft);
  border-radius: 10px;
  background: var(--color-surface-soft);
}
.wc-tutorial-step.is-complete {
  border-color: rgba(114, 135, 80, 0.42);
  background: rgba(114, 135, 80, 0.08);
}
.wc-tutorial-status {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-negative);
  font-size: var(--text-4);
  font-weight: 800;
}
.wc-tutorial-step.is-complete .wc-tutorial-status {
  color: var(--color-green);
  border-color: rgba(114, 135, 80, 0.5);
}
.wc-tutorial-copy {
  min-width: 0;
}
.wc-tutorial-copy h5 {
  margin: 0 0 4px;
  font-size: var(--text-3);
}
.wc-tutorial-copy p {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-1);
  line-height: 1.45;
}
.wc-tutorial-meta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-line-soft);
  color: var(--color-muted-strong);
  font-size: var(--text-1);
  font-weight: 700;
}
.wc-tutorial-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.wc-tutorial-actions .btn {
  flex: 1 1 180px;
}
.wc-tutorial-story {
  display: grid;
  gap: 16px;
}
.wc-tutorial-story-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
}
.wc-tutorial-story-bar {
  height: 5px;
  border-radius: 999px;
  background: var(--color-line-soft);
  overflow: hidden;
}
.wc-tutorial-story-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--color-green);
}
.wc-tutorial-story-bar.is-done span,
.wc-tutorial-story-bar.is-active span {
  width: 100%;
}
.wc-tutorial-story-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.wc-tutorial-story-count {
  color: var(--color-muted);
  font-size: var(--text-1);
  font-weight: 700;
}
.wc-tutorial-story-card {
  min-height: 280px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--color-line-soft);
  border-radius: 12px;
  background: var(--color-surface-soft);
}
.wc-tutorial-story-card h5 {
  margin: 0;
  font-size: var(--text-4);
}
.wc-tutorial-story-card p {
  margin: 0;
  color: var(--color-muted-strong);
  font-size: var(--text-2);
  line-height: 1.55;
}
.wc-tutorial-story-hint {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--color-line-soft);
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: var(--text-1);
  line-height: 1.45;
}
.wc-tutorial-profil-table {
  padding: 12px;
  border-radius: 10px;
  background: var(--color-surface);
}
.wc-tutorial-profil-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.wc-tutorial-profil-table-head strong {
  min-width: 0;
  color: var(--color-black);
  font-size: var(--text-2);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wc-tutorial-profil-table .profil-table {
  font-size: var(--text-1);
}
.wc-tutorial-profil-table .profil-table th,
.wc-tutorial-profil-table .profil-table td {
  padding: 6px 8px;
}
.wc-tutorial-profil-table .profil-table tbody tr[data-row] {
  cursor: pointer;
}
.wc-tutorial-profil-table .profil-table tbody tr[data-row]:hover td {
  background: var(--color-blue-soft);
}
.wc-tutorial-profil-empty {
  padding: 10px;
  border: 1px dashed var(--color-line);
  border-radius: 8px;
  color: var(--color-muted);
  font-size: var(--text-1);
  line-height: 1.4;
}
.wc-tutorial-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--color-line-soft);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
}
.wc-tutorial-check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--color-green);
  flex: 0 0 auto;
}
.wc-tutorial-check strong {
  display: block;
  font-size: var(--text-2);
}
.wc-tutorial-check span {
  display: block;
  margin-top: 2px;
  color: var(--color-muted);
  font-size: var(--text-1);
  line-height: 1.45;
}
.wc-tutorial-story-form {
  display: grid;
  gap: 8px;
  max-width: 420px;
}
.wc-tutorial-story-form .wc-modal-label {
  color: var(--color-muted-strong);
}
.wc-tutorial-story-nav {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.wc-tutorial-story-nav .btn {
  flex: 1 1 0;
}
.wc-tutorial-story-nav .btn-muted {
  background: var(--color-surface-soft);
  color: var(--color-black);
  border-color: var(--color-line);
}
.wc-tutorial-story-error {
  min-height: 18px;
  color: var(--color-negative);
  font-size: var(--text-1);
}
.wc-sb-section-title {
  margin: 32px 0 8px;
  font-size: var(--text-2);
  color: var(--color-muted-strong);
  font-weight: 700;
}
.wc-sb-rows {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.wc-sb-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 34px;
  gap: 8px;
  align-items: end;
}
.wc-sb-remove-btn {
  border: 0;
  border-radius: 8px;
  height: 40px;
  background: var(--color-negative-soft);
  color: var(--color-negative);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.14s ease;
  transform: translateY(0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-close {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wc-sb-remove-btn:hover:not(:disabled) {
  background: var(--color-negative-soft);
}
.wc-sb-remove-btn:active:not(:disabled) {
  transform: translateY(1px);
}
.wc-sb-remove-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.wc-sb-summary {
  margin-top: 32px;
  border: 1px solid var(--color-line-soft);
  border-radius: 10px;
  background: var(--color-surface-soft);
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}
.wc-sb-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--text-2);
  color: var(--color-muted-strong);
}
.wc-sb-summary-row strong {
  color: var(--color-black);
}
body.wc-modal-open {
  overflow: hidden;
}

.reveal-seq-target {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.52s ease, transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal-seq-target.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .wc-modal-backdrop,
  .wc-modal,
  .reveal-seq-target,
  .home-recent-skeleton-line::after,
  .home-recent-empty,
  .home-recent-empty.is-skeleton::before,
  .home-recent-empty.is-skeleton::after {
    transition: none !important;
    animation: none !important;
  }
  .btn:active:not(:disabled) {
    transform: none;
  }
}

@media (max-width: 767px) {
  html.wc-onboarding-phase-root,
  body.wc-onboarding-phase {
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }
  body:not(.wc-onboarding-phase) .wc-shell {
    min-height: 0;
    height: auto;
  }
  body.wc-onboarding-phase #wc-app {
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    overflow: hidden;
  }
  body.wc-onboarding-phase #phase1.is-active,
  body.wc-onboarding-phase #phase2.is-active {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  body.wc-onboarding-phase .wc-footer {
    flex: 0 0 auto;
  }
  body::before {
    background-image: url("../../bg-mobile.jpg");
  }
  .app-brand-bar {
    gap: 8px;
    padding: 12px 12px 4px;
  }
  .app-brand-identity {
    gap: 8px;
  }
  .app-brand-logo {
    width: 84px;
    max-width: 34vw;
  }
  .app-brand-text {
    font-size: var(--text-1);
  }
  .theme-segmented {
    gap: 2px;
    padding: 4px;
  }
  .theme-segmented-btn {
    width: 32px;
    min-width: 32px;
    height: 28px;
    padding: 0;
    font-size: 0.56em;
  }
  .theme-segmented.is-showing-labels .theme-segmented-btn {
    width: auto;
    min-width: 46px;
    padding: 0 7px;
  }
  #phase1, #phase2, #phase3 { grid-column: span 12; }
  #sheetList { grid-template-columns: 1fr; }
  /*#phase3.is-active {
    display: block;
    flex: none !important;
    min-height: 0;
  }*/

  .dash-wrap {
    --content-offset: 0px;
    /*display: block;
    align-items: initial;
    flex: none !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;*/
    grid-template-columns: 1fr;
    padding: 24px;
  }
  /*.dash-layout,
  .tab-content,
  .tab-panel.is-active {
    display: block;
    flex: none !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .tab-panel:not(.is-active) {
    display: none !important;
  }*/

  /*#phase3 .home-panel-shell,
  #phase3 .report-detail-screen.is-active,
  #phase3 .report-detail-content.is-active,
  #phase3 .rekening-detail-screen.is-active,
  #phase3 .catat-detail-screen.is-active,
  #phase3 .account-subpanel.is-active {
    display: block;
    flex: none !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }*/

  #phase3 .report-detail-content:not(.is-active),
  #phase3 .report-detail-screen:not(.is-active),
  #phase3 .rekening-detail-screen:not(.is-active),
  #phase3 .catat-detail-screen:not(.is-active),
  #phase3 .account-subpanel:not(.is-active) {
    display: none !important;
  }
  .sidebar-panel { display: none; }
  .bottom-nav { display: flex; }
  #phase3.is-active ~ .wc-footer {
    margin-bottom: var(--bottom-nav-height);
  }
  .home-action-radial {
    width: 100%;
    min-height: 160px;
  }
  .home-action-radial.is-open {
    min-height: 240px;
  }
  .home-quick-actions {
    flex-direction: column;
  }
  .home-smart-catat {
    width: 100%;
    padding: 32px 0 0;
    border-top: 1px solid var(--border-glass);
    border-left: 0px solid var(--border-glass);
  }
  .home-smart-actions {
    gap: 8px;
  }
  .home-smart-btn {
    min-width: 0;
    min-height: 52px;
    padding: 8px 6px;
    border-radius: 10px;
    font-size: var(--text-1);
  }
  .home-action-plus {
    width: 84px;
    height: 84px;
  }
  .home-action-option {
    min-width: 104px;
    padding: 8px 12px;
    font-size: var(--text-1) !important;
  }
  .home-action-option-income {
    --home-action-x: -72px;
    --home-action-y: -90px;
  }
  .home-action-option-expense {
    --home-action-x: 72px;
    --home-action-y: -90px;
  }
  .home-action-option-transfer {
    --home-action-x: -72px;
    --home-action-y: 90px;
  }
  .home-action-option-split {
    --home-action-x: -104px;
    --home-action-y: 0px;
  }
  .home-action-option-debt {
    --home-action-x: 104px;
    --home-action-y: 0px;
  }
  .home-action-option-asset {
    --home-action-x: 72px;
    --home-action-y: 90px;
  }
  .wa-float-btn {
    
    right: 16px;
    bottom: 124px;
    width: 60px;
    height: 60px;
  }
  .wa-float-btn-icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
  
  #phase3 .phase3-head,
  #phase3 .muted {
    padding-left: 0px;
    padding-right: 0px;
  }
  .report-grid { grid-template-columns: 1fr; }
  .report-budgeting-gauge { grid-template-columns: 1fr; }
  .report-budgeting-summary-grid { grid-template-columns: 1fr; }
  .wc-category-row-actions {
    justify-content: flex-end;
  }
  .income-allocation-layout {
    grid-template-columns: 1fr;
  }
  .report-filter-field,
  .report-filter-field-income-basis {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
  
  .income-allocation-basis-btn {
    
    padding-left: 8px;
    padding-right: 8px;
  }
  .income-allocation-compare-main {
    align-items: flex-start;
  }
  .income-allocation-compare-value {
    max-width: 48%;
    white-space: normal;
  }
  .income-allocation-compare-progress {
    grid-template-columns: 48px minmax(70px, 1fr) auto;
  }
  .phase3-head h2 { font-size: var(--text-4); }
  .profil-card-list { grid-template-columns: 1fr; }
  .profil-menabung-grid { grid-template-columns: 1fr; }
  .rekening-saldo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catat-module-card-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rekening-detail-summary {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .rekening-detail-summary-card {
    min-width: 0;
  }
  .rekening-detail-goal-meta {
    justify-items: center;
  }
  .rekening-detail-target-btn, .rekening-detail-summary-value {
    justify-self: center;
  }
  .rekening-detail-limit-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .wc-modal-grid { grid-template-columns: 1fr; }
  .wc-upgrade-iframe {
    min-height: 460px;
    height: 560px;
  }
  .wc-sb-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px; }
  .stack .btn {
    width: 100%;
  }
  .stack {
    grid-template-columns: 1fr;
  }

  .account-subnav-btn {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
  .tab-content {
    width: 100%;
    max-width: 100%;
  }
  .wealth-trend-chart {
    width: 100%;
    max-width: 100%;
    min-height: 180px;
  }

  .catat-input[type="date"],
  .catat-input[type="datetime-local"] {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 40px !important;
  }

  .catat-input[type="date"]::-webkit-datetime-edit,
  .catat-input[type="datetime-local"]::-webkit-datetime-edit {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 0;
  }

  .catat-input[type="date"]::-webkit-date-and-time-value,
  .catat-input[type="datetime-local"]::-webkit-date-and-time-value {
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  .wc-smart-bulk-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .wc-smart-type-select {
    grid-column: 2 / 4;
    width: 100%;
  }
  .wc-smart-bulk-amount {
    grid-column: 2;
    text-align: left;
  }
  .wc-smart-edit-btn {
    grid-column: 3;
  }

  @media (max-width: 420px) {
    .catat-summary-card {
      grid-template-columns: minmax(0, 1fr);
      align-items: stretch;
    }
    .catat-summary-card .catat-card-main {
      display: block;
    }
    .catat-summary-card .catat-card-head,
    .catat-summary-row,
    .catat-summary-actions {
      grid-column: 1;
    }
  }

  .wc-catat-success-actions {
    flex-direction: column;
  }
  .wc-catat-success-actions .btn {
    width: 100%;
  }

  .status-toast {
    bottom: 112px;
  }

  .mobile-pull-refresh {
    top: env(safe-area-inset-top, 0px);
  }
}
