@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("/fonts/clay/Nunito-Black.ttf") format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/clay/DMSans-Medium.ttf") format("truetype");
}
html[data-ui-theme="clay"] {
  --clay-bg: #f4f1fa;
  --clay-paper: #fcfaffed;
  --clay-ink: #332f3a;
  --clay-muted: #635f69;
  --clay-accent: #7c3aed;
  --clay-well: #efebf5;
  --clay-nav-bg: #efe7f8;
  --clay-nav-border: #ccbedf;
  --clay-nav-ink: #4d3a60;
  --clay-nav-shadow: 0 8px 24px #5b3c7a33, inset 0 2px 3px #ffffffcc;
  --clay-card:
    12px 14px 28px #a096b433, -8px -8px 20px #ffffffcc,
    inset 5px 5px 10px #8b5cf608, inset -5px -5px 10px #ffffff;
  --clay-button:
    6px 7px 14px #8b5cf633, -4px -4px 10px #ffffff99,
    inset 3px 3px 6px #ffffff88, inset -3px -3px 6px #6b4c9122;
  --clay-pressed: inset 5px 5px 10px #d9d4e3, inset -5px -5px 10px #ffffff;
}
html[data-ui-theme="clay"][data-color-mode="dark"] {
  --clay-bg: #1b1728;
  --clay-paper: #2b253bf0;
  --clay-ink: #f5f0ff;
  --clay-muted: #c9bfd6;
  --clay-accent: #c4aeff;
  --clay-well: #231d32;
  --clay-nav-bg: #332a43;
  --clay-nav-border: #6b587f;
  --clay-nav-ink: #e7dff1;
  --clay-nav-shadow: 0 8px 24px #100b1d80, inset 0 2px 3px #c9afe32e;
  --clay-card:
    12px 14px 28px #100b1d99, -6px -6px 16px #63507826,
    inset 4px 4px 8px #a18ac41a, inset -4px -4px 8px #130d2344;
  --clay-button:
    6px 7px 14px #11091f88, -4px -4px 10px #795d9726,
    inset 3px 3px 6px #d8c2ff22, inset -3px -3px 6px #130d2355;
  --clay-pressed: inset 5px 5px 10px #120d21, inset -5px -5px 10px #4d3e602e;
}
html[data-ui-theme="clay"] * {
  scrollbar-color: #9c79d6 var(--clay-well);
}
html[data-ui-theme="clay"] *::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
html[data-ui-theme="clay"] *::-webkit-scrollbar-track {
  background: var(--clay-well);
  border-radius: 20px;
}
html[data-ui-theme="clay"] *::-webkit-scrollbar-thumb {
  background: #9c79d6;
  border: 2px solid var(--clay-well);
  border-radius: 20px;
}
html[data-ui-theme="clay"]
  [dir="auto"]:not([style*="ionicons"]):not([style*="Nunito"]):not(
    [style*="DM Sans"]
  ):not([data-theme-preview] *) {
  font-family: "DM Sans", SukhumvitSet-Text, sans-serif !important;
}
html[data-ui-theme="clay"] [data-testid="glass-backdrop"],
html[data-ui-theme="clay"] [data-testid="settings-screen"] {
  background: var(--clay-bg) !important;
}
html[data-ui-theme="clay"] [data-testid="glass-backdrop"] {
  overflow: hidden;
}
html[data-ui-theme="clay"] [data-testid="glass-backdrop"]::before,
html[data-ui-theme="clay"] [data-testid="glass-backdrop"]::after {
  content: "";
  position: absolute;
  inset: -8%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 12%, #a78bfa2b, transparent 43%),
    radial-gradient(ellipse at 88% 82%, #ec489923, transparent 40%);
  animation: clay-drift 10s ease-in-out infinite;
}
html[data-ui-theme="clay"] [data-testid="glass-backdrop"]::after {
  background:
    radial-gradient(ellipse at 95% 10%, #0ea5e91c, transparent 38%),
    radial-gradient(ellipse at 10% 90%, #10b98114, transparent 36%);
  animation-direction: reverse;
  animation-duration: 12s;
}
html[data-ui-theme="clay"] [data-testid="settings-screen"] {
  background-image:
    radial-gradient(ellipse at 0 0, #a78bfa22, transparent 55%),
    radial-gradient(ellipse at 100% 100%, #ec48991a, transparent 50%) !important;
}
html[data-ui-theme="clay"] [data-clay-surface],
html[data-ui-theme="clay"] [data-testid="spending-pet-message"] {
  background: var(--clay-paper) !important;
  border: 1px solid #ffffff20 !important;
  border-radius: 32px !important;
  box-shadow: var(--clay-card) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html[data-ui-theme="clay"] [data-testid^="pocket-gradient-"] {
  background: transparent !important;
}
html[data-ui-theme="clay"] [data-testid="glass-sidebar"],
html[data-ui-theme="clay"] [data-testid="monthly-budget"] {
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
html[data-ui-theme="clay"] [data-clay-control],
html[data-ui-theme="clay"] [data-testid="edit-month-income"],
html[data-ui-theme="clay"] [data-testid="month-switcher"],
html[data-ui-theme="clay"] [data-testid="mobile-add-circle"],
html[data-ui-theme="clay"] [data-testid^="ui-theme-"][aria-pressed] {
  border-radius: 20px !important;
  box-shadow: var(--clay-button) !important;
  transition:
    translate 200ms ease,
    scale 200ms ease,
    box-shadow 200ms ease;
}
html[data-ui-theme="clay"] :is([role="button"], [role="tab"]) {
  border-radius: 20px !important;
}
html[data-ui-theme="clay"] [data-clay-primary],
html[data-ui-theme="clay"] [data-clay-control][aria-selected="true"],
html[data-ui-theme="clay"] [data-testid="mobile-add-circle"],
html[data-ui-theme="clay"] [data-testid="liquid-tab-glass"],
html[data-ui-theme="clay"] [data-testid="liquid-sidebar-glass"] {
  background: linear-gradient(145deg, #8950df, #6d28d9) !important;
  border: 1px solid #c4a0ff66 !important;
  border-radius: 20px !important;
  box-shadow: var(--clay-button) !important;
}
html[data-ui-theme="clay"] [role="tab"][aria-selected="true"] [dir="auto"] {
  color: #ffffff !important;
}
html[data-ui-theme="clay"] [data-testid="mobile-navigation-surface"] {
  background: var(--clay-nav-bg) !important;
  border-color: var(--clay-nav-border) !important;
  box-shadow: var(--clay-nav-shadow) !important;
}
html[data-ui-theme="clay"]
  [data-testid="glass-navigation"]
  [role="tab"][aria-selected="false"] {
  box-shadow: none !important;
}
html[data-ui-theme="clay"]
  [data-testid="glass-navigation"]
  [role="tab"][aria-selected="false"]
  [dir="auto"],
html[data-ui-theme="clay"] [data-testid="mobile-add-label"] {
  color: var(--clay-nav-ink) !important;
}
html[data-ui-theme="clay"] [data-testid="remaining-balance"],
html[data-ui-theme="clay"] [data-testid="spending-remaining-balance"] {
  border-radius: 24px !important;
  box-shadow: var(--clay-button) !important;
}
html[data-ui-theme="clay"] [data-testid="monthly-metric-0"] {
  background: linear-gradient(145deg, #f8f2ff, #e9ddfc) !important;
}
html[data-ui-theme="clay"] [data-testid="monthly-metric-1"] {
  background: linear-gradient(145deg, #fff2f7, #f7dfed) !important;
}
html[data-ui-theme="clay"] [data-testid="monthly-metric-2"] {
  background: linear-gradient(145deg, #edf8ff, #d9edf9) !important;
}
html[data-ui-theme="clay"] [data-testid="monthly-metric-3"] {
  background: linear-gradient(145deg, #effbf5, #d9efe5) !important;
}
html[data-ui-theme="clay"][data-color-mode="dark"]
  [data-testid="monthly-metric-0"] {
  background: linear-gradient(145deg, #493366, #352846) !important;
}
html[data-ui-theme="clay"][data-color-mode="dark"]
  [data-testid="monthly-metric-1"] {
  background: linear-gradient(145deg, #59324d, #392739) !important;
}
html[data-ui-theme="clay"][data-color-mode="dark"]
  [data-testid="monthly-metric-2"] {
  background: linear-gradient(145deg, #2d465e, #273344) !important;
}
html[data-ui-theme="clay"][data-color-mode="dark"]
  [data-testid="monthly-metric-3"] {
  background: linear-gradient(145deg, #2e4b43, #273c36) !important;
}
html[data-ui-theme="clay"] [data-testid^="monthly-metric-"]::after,
html[data-ui-theme="clay"] [data-testid^="pocket-gradient-"]::after,
html[data-ui-theme="clay"] [data-testid="spending-summary"]::after {
  display: none !important;
}
html[data-ui-theme="clay"] [role="progressbar"] {
  background: var(--clay-well) !important;
  box-shadow:
    inset 2px 2px 4px #74618c33,
    inset -2px -2px 4px #ffffff55;
  border-radius: 20px !important;
}
html[data-ui-theme="clay"] input,
html[data-ui-theme="clay"] textarea {
  font-family: "DM Sans", SukhumvitSet-Text, sans-serif !important;
  color: var(--clay-ink) !important;
  caret-color: var(--clay-accent);
}
html[data-ui-theme="clay"] input::placeholder,
html[data-ui-theme="clay"] textarea::placeholder {
  color: var(--clay-muted);
  opacity: 1;
}
html[data-ui-theme="clay"] [data-clay-input="standalone"],
html[data-ui-theme="clay"] :has(> [data-clay-input="embedded"]) {
  background: var(--clay-well) !important;
  border: 0 !important;
  border-radius: 20px !important;
  box-shadow: var(--clay-pressed) !important;
}
html[data-ui-theme="clay"] [data-clay-input="embedded"] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html[data-ui-theme="clay"] :focus-visible,
html[data-ui-theme="clay"] :has(> [data-clay-input="embedded"]:focus-visible) {
  outline: 3px solid var(--clay-accent) !important;
  outline-offset: 3px;
}
html[data-ui-theme="clay"] [data-clay-input="embedded"]:focus-visible {
  outline: none !important;
}
@media (hover: hover) and (pointer: fine) {
  html[data-ui-theme="clay"]
    [data-clay-control]:not([aria-disabled="true"]):not(:disabled):hover {
    translate: 0 -4px;
  }
  html[data-ui-theme="clay"] [data-testid^="monthly-metric-"]:hover {
    translate: 0 -6px;
  }
}
html[data-ui-theme="clay"] [data-testid^="monthly-metric-"] {
  transition: translate 300ms ease;
}
html[data-ui-theme="clay"]
  [data-clay-control]:not([aria-disabled="true"]):not(:disabled):active {
  translate: 0 2px;
  scale: 0.92;
  box-shadow: var(--clay-pressed) !important;
}
@keyframes clay-drift {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-ui-theme="clay"] [data-testid="glass-backdrop"]::before,
  html[data-ui-theme="clay"] [data-testid="glass-backdrop"]::after {
    animation: none;
  }
  html[data-ui-theme="clay"] [data-clay-control],
  html[data-ui-theme="clay"] [data-testid^="monthly-metric-"] {
    transition: none;
    translate: none !important;
    scale: none !important;
  }
}
