:root {
  --bg: #000000;
  --surface: #000000;
  --surface-muted: #0f0f0f;
  --ink: #ffffff;
  --muted: #b8b8b8;
  --line: #2a2a2a;
  --accent: #ffffff;
  --accent-soft: #1f1f1f;
  --accent-warm: #121212;
}

body.light-mode {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f5f5f5;
  --ink: #000000;
  --muted: #4a4a4a;
  --line: #d9d9d9;
  --accent: #000000;
  --accent-soft: #dcdcdc;
  --accent-warm: #efefef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-left: 0;
  padding: 12px 0 20px;
  margin-top: 0;
  margin-bottom: 18px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
}

.topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item-submenu {
  padding-bottom: 18px;
  margin-bottom: -18px;
}

body:not(.light-mode) .brand,
body:not(.light-mode) .nav {
  color: #ffffff;
}

body:not(.light-mode) .nav-tag {
  color: #ffffff;
}

body.light-mode .brand,
body.light-mode .nav,
body.light-mode .nav-tag {
  color: #000000;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}

.nav-item-submenu > a::before {
  content: "";
  position: absolute;
  left: -20px;
  right: -20px;
  bottom: -18px;
  height: 24px;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  display: flex;
  align-items: start;
  gap: 18px;
  min-width: max-content;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 20;
}

.nav-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-submenu-column {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 170px;
}

.nav-submenu-title {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding-bottom: 4px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid currentColor;
}

.nav-submenu a {
  position: relative;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav-submenu a::after {
  display: none;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible {
  text-shadow: 0 0 0 currentColor, 0 0 0 currentColor;
}

.nav-item-submenu:hover .nav-submenu,
.nav-item-submenu.is-open .nav-submenu,
.nav-item-submenu:focus-within .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: currentColor;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.is-active::after {
  opacity: 1;
  transform: translateY(0);
}

.nav-tag {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px 0 12px;
  border: 1.75px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1.75px solid var(--line);
  border-radius: 999px;
  font-size: 0.96rem;
  line-height: 1;
}

.theme-toggle-label {
  display: inline-block;
  font-size: 0.84rem;
}

.profile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 48px;
  padding: 0 16px;
  border: 1.75px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.hero {
  padding: 56px 0 36px;
  max-width: 760px;
}

.hero-compact {
  padding-top: 28px;
}

.page-main {
  display: grid;
  gap: 22px;
}

.page-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  padding-bottom: 0;
  border-bottom: 1px solid var(--line);
}

.page-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  margin-bottom: -1px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--surface-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}

.page-subnav a:first-child {
  background: var(--surface);
}

.page-subnav a::before,
.page-subnav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 10px;
  height: 10px;
  background: transparent;
}

.page-subnav a::before {
  left: -1px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.page-subnav a::after {
  right: -1px;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.auth-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: start;
}

.auth-form-panel {
  margin-bottom: 0;
}

.auth-form-panel .account-layout {
  grid-template-columns: 1fr;
  gap: 0;
  padding-top: 24px;
}

.auth-form-panel .tool-form {
  width: 100%;
  padding: 0;
  margin: 0;
}

.auth-hero {
  padding-top: 48px;
  max-width: none;
  width: 100%;
  justify-self: stretch;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.hero h1,
.card-heading h2,
.account-heading h2 {
  margin: 0;
  letter-spacing: -0.05em;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 0.9;
  max-width: 11ch;
  text-transform: uppercase;
}

.hero-text {
  margin: 22px 0 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.calculator-grid {
  display: grid;
  gap: 22px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.info-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.access-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
}

.access-card h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.access-card-guest {
  border-color: #cfcfcf;
  background: #ededed;
  color: #1a1a1a;
}

.access-card-member {
  border-color: #c9d9ec;
  background: #eef5fd;
  color: #173a63;
}

.access-card-pro {
  border-color: #b8d6bf;
  background: #edf8ef;
  color: #245533;
}

.access-card-elite {
  border-color: #d08b5d;
  background: #f4c9a9;
  color: #6f3410;
}

.access-card .eyebrow,
.access-benefits {
  color: inherit;
}

.access-benefits {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.5;
  text-transform: uppercase;
}

.access-card-button {
  margin-top: auto;
  justify-content: center;
}

body:not(.light-mode) .access-card-guest {
  border-color: #7a7a7a;
  background: #2a2a2a;
  color: #ededed;
}

body:not(.light-mode) .access-card-member {
  border-color: #6f91b7;
  background: #173a63;
  color: #dce9f8;
}

body:not(.light-mode) .access-card-pro {
  border-color: #5fa372;
  background: #245533;
  color: #d9f0df;
}

body:not(.light-mode) .access-card-elite {
  border-color: #d08b5d;
  background: #6f3410;
  color: #f7d9c1;
}


.graph-section-card {
  padding: 0;
  border: 0;
  background: transparent;
}

.compound-growth-graph-row {
  width: 100%;
  margin-left: 0;
  padding: 0;
  justify-items: stretch;
}

.compound-growth-graph-card {
  width: 100%;
  margin: 0;
  padding: 0;
}

.info-card h2 {
  margin: 0 0 18px;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.info-grid-single {
  grid-template-columns: 1fr;
}

.calculator-card,
.account-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}

.card-heading,
.account-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.card-heading h2,
.account-heading h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.account-panel {
  margin-bottom: 22px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 26px;
  padding-top: 24px;
  align-items: start;
}

.metric-block {
  min-width: 140px;
  text-align: right;
}

.metric-label {
  display: block;
  width: 100%;
  padding-bottom: 4px;
  text-align: right;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-bottom: 2px solid currentColor;
}

.metric-block strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  letter-spacing: -0.03em;
}

.card-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 26px;
  padding-top: 24px;
  align-items: start;
}

.compound-growth-layout {
  grid-template-columns: minmax(190px, 235px) minmax(0, 1fr);
  gap: 16px;
}

.compound-growth-form {
  gap: 8px;
  min-width: 0;
  padding-top: 6px;
}

.compound-growth-form .tool-form label,
.compound-growth-form label {
  font-size: 0.64rem;
}

.compound-growth-form .input-shell,
.compound-growth-form .tool-form input,
.compound-growth-form .tool-form select {
  min-height: 38px;
}

.compound-growth-form .input-shell .input-prefix,
.compound-growth-form .input-shell .input-suffix {
  height: 38px;
  min-width: 30px;
  font-size: 0.68rem;
}

.compound-growth-form .button {
  min-height: 38px;
}

.compound-growth-form .input-shell input {
  padding: 0 10px;
}

.card-layout-static {
  align-items: stretch;
}

.text-panel {
  display: grid;
  align-content: start;
}

.tool-form {
  display: grid;
  gap: 14px;
  width: 100%;
}

.auth-error {
  padding: 12px 14px;
  border: 1px solid #c97c7c;
  background: rgba(201, 124, 124, 0.12);
  color: #f0b4b4;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.light-mode .auth-error {
  background: rgba(201, 124, 124, 0.08);
  color: #a33e3e;
}

.auth-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 20px;
}

.inline-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.inline-link-button:hover,
.inline-link-button:focus-visible {
  color: var(--ink);
  outline: none;
}

.signup-only {
  display: none;
}

.tool-form.is-signup .signup-only {
  display: grid;
}

.tool-form.is-signup label.signup-only {
  display: grid;
}

.name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.tool-form label {
  display: grid;
  gap: 8px;
  width: 100%;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.required-mark {
  display: inline;
  font-weight: 800;
}

.tool-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
}

.tool-form input::placeholder {
  color: var(--muted);
  opacity: 0.55;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
}

.input-shell .input-prefix,
.input-shell .input-suffix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 50px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.input-shell .input-prefix {
  padding-left: 12px;
  justify-content: flex-start;
}

.input-shell .input-suffix {
  padding-right: 12px;
  justify-content: flex-end;
}

.input-shell input {
  border: 0;
  padding: 0 14px;
}

.input-shell:focus-within {
  border-color: #bcbcb3;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.tool-form select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
}

.tool-form input:focus {
  outline: none;
  border-color: #bcbcb3;
}

.tool-form label.has-error {
  color: #f0b4b4;
}

body.light-mode .tool-form label.has-error {
  color: #a33e3e;
}

.tool-form input.has-error {
  border-color: #c97c7c;
}

.tool-form select:focus {
  outline: none;
  border-color: #bcbcb3;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.button-secondary {
  background: var(--surface-muted);
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.auth-actions-single {
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-layout {
  grid-template-columns: minmax(0, 1fr) 1px minmax(220px, 0.55fr);
  gap: 24px;
  align-items: stretch;
}

.profile-form {
  align-content: start;
}

.profile-save-button {
  width: 100%;
}

.profile-divider {
  width: 1px;
  background: var(--line);
  align-self: stretch;
}

.profile-actions-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.delete-account-button {
  justify-self: start;
  align-self: end;
  margin-top: 12px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid #e18a8a;
  background: transparent;
  color: #e18a8a;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

body.light-mode .delete-account-button {
  color: #b74e4e;
  border-bottom-color: #b74e4e;
}

.dashboard-grid {
  display: grid;
  gap: 14px;
  padding-top: 24px;
}

.dashboard-page {
  gap: 4px;
}

.dashboard-full-bleed {
  width: 100%;
  margin-left: 0;
  padding: 0;
}

.dashboard-networth-panel {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 22px 32px 18px;
  background: var(--surface);
}

.dashboard-networth-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 24px;
}

.dashboard-networth-head h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.dashboard-subtext {
  margin: 14px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-last-updated {
  margin: 0;
  max-width: none;
  text-align: right;
  white-space: nowrap;
}

.dashboard-last-updated-inline {
  margin: 0;
  text-align: right;
}

.dashboard-chart-panel {
  min-height: 392px;
  margin: 0 -32px;
  padding: 18px 32px 18px;
  border: 1px solid #3a3a3a;
  background: #161616;
}

.dashboard-chart-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 22px;
  margin-bottom: 10px;
}

.dashboard-chart-period {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: left;
  min-height: 86px;
  display: flex;
  align-items: center;
}

.dashboard-summary-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 18px;
}

.dashboard-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 14px;
  justify-content: end;
  justify-items: stretch;
  width: min(100%, 590px);
}

.dashboard-chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.dashboard-breakdown-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 320px;
  justify-self: stretch;
  align-self: stretch;
}

.dashboard-breakdown-chart {
  width: min(320px, 100%);
  height: auto;
  display: block;
}

.dashboard-breakdown-slice {
  stroke: var(--surface);
  stroke-width: 2;
  transition: stroke 160ms ease, stroke-width 160ms ease, filter 160ms ease;
  cursor: pointer;
}

.dashboard-breakdown-slice.is-active {
  stroke: #ffffff;
  stroke-width: 3;
  filter: brightness(1.03);
}

.dashboard-breakdown-tooltip {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.94);
  color: #f5f5f5;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  transform: translate(-50%, -100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.dashboard-breakdown-tooltip[hidden] {
  display: none;
}

.dashboard-breakdown-tooltip strong {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.dashboard-chart-canvas {
  position: relative;
  min-width: 0;
}

.dashboard-graph-tooltip {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.94);
  color: #f5f5f5;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  transform: translate(-50%, -100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.dashboard-graph-tooltip strong {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.dashboard-tooltip-list {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.dashboard-tooltip-entry {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-tooltip-entry span:last-child {
  white-space: nowrap;
}

.dashboard-tooltip-entry em {
  font-style: normal;
  opacity: 0.72;
}

.dashboard-tooltip-empty {
  opacity: 0.72;
}

.dashboard-graph-tooltip[hidden] {
  display: none;
}

.dashboard-trend-panel {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
  min-width: 0;
  min-height: 320px;
  position: relative;
  justify-self: stretch;
  align-self: stretch;
}

.dashboard-trend-title {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
}

.dashboard-trend-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.dashboard-trend-empty[hidden] {
  display: none;
}

.dashboard-trend-graph {
  width: 100%;
  height: auto;
  min-height: 250px;
  max-width: 100%;
  display: block;
}

.dashboard-trend-tooltip {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.94);
  color: #f5f5f5;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  transform: translate(-50%, -100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.dashboard-trend-tooltip[hidden] {
  display: none;
}

.dashboard-trend-tooltip strong {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.dashboard-trend-grid-line {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.dashboard-trend-area {
  fill: rgba(143, 207, 157, 0.3);
}

.dashboard-trend-line {
  fill: none;
  stroke: #8fcf9d;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-trend-point {
  fill: #d9f0df;
  stroke: #5fa372;
  stroke-width: 1.5;
}

.dashboard-trend-point.is-active {
  fill: #ffffff;
  stroke: #8fcf9d;
  stroke-width: 3;
}

.dashboard-trend-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-trend-footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 40px;
}

.dashboard-chart-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 24px;
  margin-top: 8px;
}

.dashboard-trend-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.dashboard-trend-filter {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.dashboard-trend-filter.is-active {
  border-color: #5fa372;
  background: rgba(143, 207, 157, 0.14);
  color: #8fcf9d;
}

.dashboard-mortgage-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 0;
  align-self: end;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-mortgage-toggle input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 38px;
  height: 22px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.dashboard-mortgage-toggle input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 160ms ease, background 160ms ease;
}

.dashboard-mortgage-toggle input:checked {
  border-color: #5fa372;
  background: rgba(95, 163, 114, 0.26);
}

.dashboard-mortgage-toggle input:checked::after {
  transform: translateX(16px);
  background: #8fcf9d;
}

.dashboard-mortgage-toggle input:focus-visible {
  outline: 2px solid rgba(95, 163, 114, 0.42);
  outline-offset: 2px;
}

.dashboard-mortgage-toggle[hidden] {
  display: none;
}

body.light-mode .dashboard-mortgage-toggle input {
  background: #efefef;
}

body.light-mode .dashboard-mortgage-toggle input::after {
  background: #111111;
}

.dashboard-networth-graph {
  width: 100%;
  max-width: 100%;
  display: block;
  min-height: 420px;
}

.dashboard-baseline {
  stroke: var(--line);
  stroke-width: 2.5;
}

.dashboard-bar-assets {
  fill: #8eb4de;
}

.dashboard-bar-liabilities {
  fill: #d99696;
}

.dashboard-bar-networth {
  fill: var(--ink);
}

.dashboard-bar-networth-positive {
  fill: #b7ddb7;
}

.dashboard-bar-networth-negative {
  fill: #8b8b8b;
}

.dashboard-bar {
  stroke-width: 1.5;
  transition: stroke 160ms ease, stroke-width 160ms ease, opacity 160ms ease;
}

.dashboard-bar.is-active {
  stroke: #ffffff;
  stroke-width: 3;
}

.dashboard-graph-label {
  fill: #000000;
  font-size: 18px;
  font-weight: 800;
  font-family: "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body:not(.light-mode) .dashboard-graph-label {
  fill: #ffffff;
}

body:not(.light-mode) .dashboard-bar-assets {
  fill: #8eb4de;
  stroke: #173a63;
}

body:not(.light-mode) .dashboard-bar-liabilities {
  fill: #d99696;
  stroke: #672222;
}

body:not(.light-mode) .dashboard-bar-networth {
  fill: #f1f1f1;
}

body:not(.light-mode) .dashboard-bar-networth-positive {
  fill: #b7ddb7;
  stroke: #5fa372;
}

body:not(.light-mode) .dashboard-bar-networth-negative {
  fill: #6f6f6f;
  stroke: #4f4f4f;
}

body.light-mode .dashboard-graph-tooltip {
  border-color: #1a1a1a;
  background: rgba(255, 255, 255, 0.96);
  color: #111111;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

body.light-mode .dashboard-chart-panel {
  border-color: #cfcfcf;
  background: #f1f1f1;
}

body.light-mode .dashboard-trend-grid-line {
  stroke: rgba(0, 0, 0, 0.12);
}

body.light-mode .dashboard-trend-area {
  fill: rgba(95, 163, 114, 0.24);
}

body.light-mode .dashboard-trend-line {
  stroke: #5fa372;
}

body.light-mode .dashboard-trend-point {
  fill: #8fcf9d;
  stroke: #245533;
}

body.light-mode .dashboard-trend-point.is-active {
  fill: #111111;
  stroke: #5fa372;
}

body.light-mode .dashboard-trend-tooltip {
  border-color: #1a1a1a;
  background: rgba(255, 255, 255, 0.96);
  color: #111111;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

body.light-mode .dashboard-trend-filter.is-active {
  border-color: #5fa372;
  background: rgba(95, 163, 114, 0.12);
  color: #245533;
}

body.light-mode .dashboard-breakdown-tooltip {
  border-color: #1a1a1a;
  background: rgba(255, 255, 255, 0.96);
  color: #111111;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

body.light-mode .dashboard-spending-tooltip {
  border-color: #1a1a1a;
  background: rgba(255, 255, 255, 0.96);
  color: #111111;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

body.light-mode .dashboard-bar.is-active {
  stroke: #111111;
}

.dashboard-totals-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 10px;
}

.dashboard-balance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin: 0 auto;
  gap: 22px;
}

.dashboard-column,
.dashboard-actions-panel {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.dashboard-column-assets {
  border-color: #9bb7d6;
  background: #eef5fd;
}

.dashboard-column-assets .eyebrow,
.dashboard-column-assets .summary-label,
.dashboard-column-assets .metric-label,
.dashboard-column-assets .dashboard-category-note,
.dashboard-column-assets .dashboard-entry-menu {
  color: #365b88;
}

.dashboard-column-assets h2,
.dashboard-column-assets strong,
.dashboard-column-assets .dashboard-category-title,
.dashboard-column-assets .dashboard-category-value {
  color: #173a63;
}

.dashboard-column-assets .card-heading,
.dashboard-column-assets .dashboard-category-group,
.dashboard-column-assets .dashboard-entry-row,
.dashboard-column-assets .dashboard-category,
.dashboard-column-assets .dashboard-add-button {
  border-color: #c9d9ec;
}

.dashboard-column-assets .dashboard-add-button {
  background: #173a63;
  color: #dce9f8;
  border-width: 2px;
}

.dashboard-column-assets .dashboard-list-empty {
  color: #365b88;
}

.dashboard-column-liabilities {
  border-color: #d8a5a5;
  background: #fdf0f0;
}

.dashboard-column-liabilities .eyebrow,
.dashboard-column-liabilities .summary-label,
.dashboard-column-liabilities .metric-label,
.dashboard-column-liabilities .dashboard-category-note,
.dashboard-column-liabilities .dashboard-entry-updated,
.dashboard-column-liabilities .dashboard-inline-toggle,
.dashboard-column-liabilities .dashboard-entry-menu {
  color: #8a3e3e;
}

.dashboard-column-liabilities h2,
.dashboard-column-liabilities strong,
.dashboard-column-liabilities .dashboard-category-title,
.dashboard-column-liabilities .dashboard-category-value {
  color: #672222;
}

.dashboard-column-liabilities .card-heading,
.dashboard-column-liabilities .dashboard-category-group,
.dashboard-column-liabilities .dashboard-entry-row,
.dashboard-column-liabilities .dashboard-category,
.dashboard-column-liabilities .dashboard-add-button {
  border-color: #ebcaca;
}

.dashboard-column-liabilities .dashboard-add-button {
  background: #672222;
  color: #f4dddd;
  border-width: 2px;
}

.dashboard-column-liabilities .dashboard-list-empty {
  color: #8a3e3e;
}

body:not(.light-mode) .dashboard-column-assets {
  border-color: #6f91b7;
  background: #173a63;
}

body:not(.light-mode) .dashboard-column-assets .eyebrow,
body:not(.light-mode) .dashboard-column-assets .summary-label,
body:not(.light-mode) .dashboard-column-assets .metric-label,
body:not(.light-mode) .dashboard-column-assets .dashboard-category-note,
body:not(.light-mode) .dashboard-column-assets .dashboard-entry-menu {
  color: #c7dbf3;
}

body:not(.light-mode) .dashboard-column-assets h2,
body:not(.light-mode) .dashboard-column-assets strong,
body:not(.light-mode) .dashboard-column-assets .dashboard-category-title,
body:not(.light-mode) .dashboard-column-assets .dashboard-category-value,
body:not(.light-mode) .dashboard-column-assets .dashboard-entry-updated {
  color: #dce9f8;
}

body:not(.light-mode) .dashboard-column-assets .card-heading,
body:not(.light-mode) .dashboard-column-assets .dashboard-category-group,
body:not(.light-mode) .dashboard-column-assets .dashboard-entry-row,
body:not(.light-mode) .dashboard-column-assets .dashboard-category,
body:not(.light-mode) .dashboard-column-assets .dashboard-add-button {
  border-color: #355b86;
}

body:not(.light-mode) .dashboard-column-liabilities {
  border-color: #bb8a8a;
  background: #672222;
}

body:not(.light-mode) .dashboard-column-liabilities .eyebrow,
body:not(.light-mode) .dashboard-column-liabilities .summary-label,
body:not(.light-mode) .dashboard-column-liabilities .metric-label,
body:not(.light-mode) .dashboard-column-liabilities .dashboard-category-note,
body:not(.light-mode) .dashboard-column-liabilities .dashboard-entry-menu {
  color: #f0c6c6;
}

body:not(.light-mode) .dashboard-column-liabilities h2,
body:not(.light-mode) .dashboard-column-liabilities strong,
body:not(.light-mode) .dashboard-column-liabilities .dashboard-category-title,
body:not(.light-mode) .dashboard-column-liabilities .dashboard-category-value,
body:not(.light-mode) .dashboard-column-liabilities .dashboard-entry-updated,
body:not(.light-mode) .dashboard-column-liabilities .dashboard-inline-toggle {
  color: #f4dddd;
}

body:not(.light-mode) .dashboard-column-liabilities .card-heading,
body:not(.light-mode) .dashboard-column-liabilities .dashboard-category-group,
body:not(.light-mode) .dashboard-column-liabilities .dashboard-entry-row,
body:not(.light-mode) .dashboard-column-liabilities .dashboard-category,
body:not(.light-mode) .dashboard-column-liabilities .dashboard-add-button {
  border-color: #8d4a4a;
}

body:not(.light-mode) .dashboard-column-assets .dashboard-add-button {
  background: #dce9f8;
  color: #173a63;
  border-color: #6f91b7;
}

body:not(.light-mode) .dashboard-column-assets .dashboard-list-empty {
  color: #c7dbf3;
}

body:not(.light-mode) .dashboard-column-liabilities .dashboard-add-button {
  background: #f4dddd;
  color: #672222;
  border-color: #bb8a8a;
}

body:not(.light-mode) .dashboard-column-liabilities .dashboard-list-empty {
  color: #f0c6c6;
}

.dashboard-list {
  display: grid;
  gap: 14px;
  padding-top: 24px;
}

.dashboard-category {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.dashboard-category-group {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.dashboard-category-head {
  display: flex;
  align-items: start;
  gap: 10px;
}

.dashboard-category-entries {
  display: grid;
  gap: 10px;
}

.dashboard-entry-row {
  display: grid;
  gap: 6px;
  padding-left: 4px;
}

.dashboard-entry-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-entry-row-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-entry-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.dashboard-category-title {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-category-note {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-entry-updated {
  color: #173a63;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

body:not(.light-mode) .dashboard-entry-updated {
  color: #8eb4de;
}

.dashboard-category-value {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.dashboard-entry-menu {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.dashboard-inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-entry-exclude-toggle {
  accent-color: #672222;
  border: 1px solid #ffffff;
}

.dashboard-entry-toggle {
  margin-top: 2px;
}

.dashboard-list-empty {
  padding-top: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-add-button {
  width: 100%;
  margin-top: 18px;
}

.dashboard-button-row {
  display: grid;
  grid-template-columns: 1fr;
}

.dashboard-spending-section {
  width: 100%;
}

.dashboard-spending-panel {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.dashboard-spending-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(220px, 0.8fr);
  gap: 26px;
  align-items: center;
}

.dashboard-spending-chart-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.dashboard-spending-chart {
  width: min(360px, 100%);
  height: auto;
  display: block;
}

.dashboard-spending-center {
  fill: var(--surface);
  stroke: var(--line);
}

.dashboard-spending-center-label {
  fill: var(--muted);
  font-size: 14px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-spending-center-value {
  fill: var(--ink);
  font-size: 24px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.dashboard-spending-slice {
  stroke: var(--surface);
  stroke-width: 2;
  transition: stroke 160ms ease, stroke-width 160ms ease, filter 160ms ease;
  cursor: pointer;
}

.dashboard-spending-slice.is-active {
  stroke: #ffffff;
  stroke-width: 3;
  filter: brightness(1.03);
}

.dashboard-spending-tooltip {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.94);
  color: #f5f5f5;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  transform: translate(-50%, -100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.dashboard-spending-tooltip[hidden] {
  display: none;
}

.dashboard-spending-tooltip strong {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.dashboard-spending-categories {
  display: grid;
  gap: 12px;
  align-content: center;
}

.dashboard-spending-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.dashboard-spending-category-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dashboard-spending-swatch {
  width: 12px;
  height: 12px;
  border: 1px solid var(--line);
}

.dashboard-spending-category-name {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-spending-category-values {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.dashboard-spending-category-values strong {
  color: var(--ink);
  font-size: 0.9rem;
  letter-spacing: -0.03em;
}

.dashboard-spending-category-values span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.42);
  z-index: 50;
}

.dashboard-modal-backdrop[hidden] {
  display: none;
}

.dashboard-modal {
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.dashboard-modal-head {
  margin-bottom: 22px;
}

.dashboard-modal-close {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.dashboard-entry-form {
  gap: 14px;
}

.dashboard-entry-form [hidden] {
  display: none;
}

.dashboard-entry-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-entry-divider::before,
.dashboard-entry-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.dashboard-entry-divider::before {
  margin-right: 12px;
}

.dashboard-entry-divider::after {
  margin-left: 12px;
}

.dashboard-entry-plaid {
  display: grid;
  gap: 10px;
}

.dashboard-entry-plaid-button {
  width: 100%;
  justify-content: center;
}

.dashboard-entry-plaid-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-modal-actions {
  margin-top: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-delete-entry {
  justify-self: start;
  margin-top: 16px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #d88d8d;
  background: transparent;
  color: #d88d8d;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.dashboard-actions-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.visual-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.chart-panel {
  position: relative;
}

.chart-panel-split {
  grid-template-columns: minmax(0, 2.3fr) minmax(320px, 0.75fr);
  align-items: stretch;
  gap: 10px;
}

.graph-canvas {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.graph-empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
}

.graph-empty-state[hidden] {
  display: none;
}

.graph-meta {
  display: grid;
  gap: 14px;
  align-content: stretch;
}

.graph {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.graph-tall {
  min-height: 0;
  max-height: 390px;
}

.graph-axis {
  stroke: var(--ink);
  stroke-width: 1.2;
  marker-end: url(#graph-arrowhead);
}

.graph-axis-free {
  opacity: 0.9;
}

.graph-tooltip {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.graph-tooltip-floating {
  position: absolute;
  z-index: 5;
  min-width: 200px;
  max-width: 240px;
  pointer-events: none;
  transform: translate(-50%, -100%);
}

.graph-tooltip strong {
  display: block;
  margin-bottom: 6px;
}

.graph-bar {
  fill: #b7ddb7;
}

.graph-bar-main {
  fill: #b7ddb7;
}

.graph-bar-soft {
  fill: #505050;
}

.graph-bar-accent {
  fill: none;
  stroke: #1f5f2d;
  stroke-width: 1;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.compound-growth-bar.is-hovered {
  stroke: #ffffff;
  stroke-width: 2;
}

.graph-label {
  fill: var(--muted);
  font-size: 9px;
  font-family: "Manrope", sans-serif;
  text-transform: uppercase;
}

.graph-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.graph-area {
  fill: rgba(255, 255, 255, 0.12);
}

.graph-caption,
.result-card {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border-radius: 0;
  background: var(--surface-muted);
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.graph-caption {
  width: fit-content;
  padding: 0;
  background: transparent;
  font-size: 0.68rem;
}

.graph-caption strong {
  font-weight: 800;
}

body:not(.light-mode) .graph-label,
body:not(.light-mode) .graph-caption {
  color: #ffffff;
  fill: #ffffff;
}


.result-card {
  color: var(--ink);
}

.compound-growth-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.summary-card {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.summary-card-assets {
  border-color: #c9d9ec;
  background: rgba(220, 233, 248, 0.72);
}

.summary-card-assets .summary-label,
.summary-card-assets .summary-value {
  color: #173a63;
}

.summary-card-liabilities {
  border-color: #ebcaca;
  background: rgba(244, 221, 221, 0.72);
}

.summary-card-liabilities .summary-label,
.summary-card-liabilities .summary-value {
  color: #672222;
}

.summary-card-networth-positive {
  border-color: #afd9b9;
  background: rgba(143, 207, 157, 0.12);
}

.summary-card-networth-positive .summary-label,
.summary-card-networth-positive .summary-value {
  color: #5fa372;
}

.summary-card-networth-negative {
  border-color: #9a9a9a;
  background: rgba(139, 139, 139, 0.14);
}

.summary-card-networth-negative .summary-label,
.summary-card-networth-negative .summary-value {
  color: #7b7b7b;
}

.summary-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-value {
  color: var(--ink);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

body:not(.light-mode) .summary-card-assets {
  border-color: #6f91b7;
  background: rgba(23, 58, 99, 0.9);
}

body:not(.light-mode) .summary-card-assets .summary-label,
body:not(.light-mode) .summary-card-assets .summary-value {
  color: #dce9f8;
}

body:not(.light-mode) .summary-card-liabilities {
  border-color: #bb8a8a;
  background: rgba(103, 34, 34, 0.9);
}

body:not(.light-mode) .summary-card-liabilities .summary-label,
body:not(.light-mode) .summary-card-liabilities .summary-value {
  color: #f4dddd;
}

body:not(.light-mode) .summary-card-networth-positive {
  border-color: #5fa372;
  background: rgba(95, 163, 114, 0.22);
}

body:not(.light-mode) .summary-card-networth-positive .summary-label,
body:not(.light-mode) .summary-card-networth-positive .summary-value {
  color: #8fcf9d;
}

body:not(.light-mode) .summary-card-networth-negative {
  border-color: #6f6f6f;
  background: rgba(111, 111, 111, 0.24);
}

body:not(.light-mode) .summary-card-networth-negative .summary-label,
body:not(.light-mode) .summary-card-networth-negative .summary-value {
  color: #b8b8b8;
}

.summary-roi {
  font-size: 0.72em;
  letter-spacing: -0.02em;
}

.compound-growth-table-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.compound-growth-table-wrap {
  padding-top: 24px;
  overflow-x: auto;
}

.compound-growth-table {
  width: 100%;
  border-collapse: collapse;
}

.compound-growth-table th,
.compound-growth-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compound-growth-table th {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.compound-growth-table td {
  color: var(--ink);
}

.table-roi {
  font-size: 0.92em;
}

body.light-mode .graph-area {
  fill: rgba(19, 19, 19, 0.08);
}

@media (max-width: 860px) {
  .card-heading,
  .account-heading,
  .dashboard-networth-head,
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .metric-block {
    text-align: left;
  }

  .card-layout,
  .account-layout,
  .info-grid,
  .access-grid,
  .auth-page-layout {
    grid-template-columns: 1fr;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-divider {
    width: 100%;
    height: 1px;
  }

  .chart-panel-split {
    grid-template-columns: 1fr;
  }

  .dashboard-balance-grid,
  .dashboard-totals-row,
  .dashboard-actions-row {
    grid-template-columns: 1fr;
  }

  .dashboard-chart-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-summary-head {
    grid-template-columns: 1fr;
  }

  .dashboard-summary-row {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .dashboard-spending-layout {
    grid-template-columns: 1fr;
  }

  .compound-growth-summary {
    grid-template-columns: 1fr;
  }

  .name-grid {
    grid-template-columns: 1fr;
  }

  .currency-grid {
    grid-template-columns: 1fr;
  }

  .topbar-center {
    width: 100%;
    justify-content: flex-start;
  }

  .auth-hero {
    justify-self: start;
    padding-top: 0;
  }

  .auth-actions {
    grid-template-columns: 1fr;
  }

  .auth-actions-single {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1100px);
  }

  .topbar {
    padding-left: 0;
    padding-right: 0;
  }

  .dashboard-full-bleed {
    padding: 0;
  }

  .dashboard-balance-grid {
    width: 100%;
  }

  .dashboard-networth-panel,
  .dashboard-column,
  .dashboard-actions-panel,
  .compound-growth-table-card,
  .dashboard-spending-panel {
    padding: 20px;
  }

  .dashboard-chart-panel {
    margin: 0 -20px;
    padding: 18px 20px 18px;
  }

  .dashboard-chart-panel {
    min-height: 280px;
  }

  .compound-growth-graph-row {
    padding: 0 10px;
  }

  .hero {
    padding-top: 30px;
  }

  .calculator-card,
  .account-panel,
  .info-card {
    padding: 20px;
    border-radius: 0;
  }

  .compound-growth-graph-card {
    padding: 0 20px;
  }

  .header-actions {
    width: 100%;
  }

  .theme-toggle,
  .profile-toggle {
    flex: 1;
  }
}
