html[data-ui-theme="retro"] {
  --retro-raised: inset -1px -1px 0 #404040, inset 1px 1px 0 #dfdfdf;
  --retro-sunken: inset 1px 1px 0 #404040, inset -1px -1px 0 #dfdfdf;
  --retro-title: linear-gradient(90deg, #000080, #1084d0);
}
html[data-ui-theme="retro"]
  *:not([data-theme-preview], [data-theme-preview] *) {
  border-radius: 0 !important;
  scrollbar-color: #808080 #c0c0c0;
}
html[data-ui-theme="retro"] ::selection {
  background: #000080;
  color: #ffffff;
}
html[data-ui-theme="retro"]
  [dir="auto"]:not([style*="ionicons"]):not([data-theme-preview] *) {
  text-shadow: none !important;
}
html[data-ui-theme="retro"] [role="heading"] {
  font-family: "Arial Black", Tahoma, sans-serif !important;
  font-weight: 900 !important;
  color: #000080 !important;
}
html[data-ui-theme="retro"] [data-testid="glass-backdrop"],
html[data-ui-theme="retro"] [data-testid="settings-screen"] {
  background-color: #c0c0c0 !important;
  background-image:
    linear-gradient(45deg, #b8b8b8 25%, transparent 25%),
    linear-gradient(-45deg, #b8b8b8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #b8b8b8 75%),
    linear-gradient(-45deg, transparent 75%, #b8b8b8 75%) !important;
  background-size: 4px 4px !important;
  background-position:
    0 0,
    0 2px,
    2px -2px,
    -2px 0;
}
html[data-ui-theme="retro"] [data-retro-surface],
html[data-ui-theme="retro"] [data-testid="spending-pet-message"] {
  background: #c0c0c0 !important;
  border: 2px solid !important;
  border-color: #ffffff #808080 #808080 #ffffff !important;
  box-shadow: var(--retro-raised) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html[data-ui-theme="retro"] [data-testid^="monthly-metric-"]::after,
html[data-ui-theme="retro"] [data-testid^="pocket-gradient-"]::after,
html[data-ui-theme="retro"] [data-testid="spending-summary"]::after {
  display: none !important;
}
html[data-ui-theme="retro"] [data-testid^="pocket-gradient-"] {
  background: #c0c0c0 !important;
}
html[data-ui-theme="retro"] [data-retro-control],
html[data-ui-theme="retro"] [data-testid^="swipe-actions-"] [role="button"],
html[data-ui-theme="retro"] [data-testid="month-switcher"],
html[data-ui-theme="retro"] [data-testid="edit-month-income"],
html[data-ui-theme="retro"] [data-testid^="ui-theme-"][aria-pressed],
html[data-ui-theme="retro"] [data-testid="mobile-add-circle"] {
  border: 2px solid !important;
  border-color: #ffffff #808080 #808080 #ffffff !important;
  box-shadow: var(--retro-raised) !important;
  transition: none !important;
}
html[data-ui-theme="retro"] [data-retro-control]:active,
html[data-ui-theme="retro"]
  [data-testid^="swipe-actions-"]
  [role="button"]:active,
html[data-ui-theme="retro"] [role="tab"][aria-selected="true"] {
  border-color: #808080 #ffffff #ffffff #808080 !important;
  box-shadow: var(--retro-sunken) !important;
}
html[data-ui-theme="retro"] [data-retro-control]:active {
  translate: 1px 1px;
}
html[data-ui-theme="retro"] [data-testid="liquid-tab-glass"],
html[data-ui-theme="retro"] [data-testid="liquid-sidebar-glass"] {
  background: #ffffcc !important;
  border: 0 !important;
  box-shadow: none !important;
}
html[data-ui-theme="retro"] [role="tab"] [dir="auto"] {
  color: #000000 !important;
}
html[data-ui-theme="retro"] [data-testid="mobile-navigation-surface"] {
  background: #c0c0c0 !important;
}
html[data-ui-theme="retro"] [data-testid="monthly-budget"]::before {
  content: "KINSUB";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  height: 14px;
  padding-left: 6px;
  color: #ffffff;
  font:
    bold 10px/14px Tahoma,
    sans-serif;
  pointer-events: none;
  background: var(--retro-title);
}
html[data-ui-theme="retro"] [data-testid="monthly-budget"]::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 8px;
  width: 10px;
  height: 10px;
  pointer-events: none;
  background: conic-gradient(
    #ff0000 0 25%,
    #ffff00 25% 50%,
    #0000ff 50% 75%,
    #00ff00 75%
  );
}
html[data-ui-theme="retro"] [data-testid="remaining-balance"],
html[data-ui-theme="retro"] [data-testid="spending-remaining-balance"],
html[data-ui-theme="retro"] [data-testid="monthly-metric-3"] {
  background: #000080 !important;
  border: 2px solid !important;
  border-color: #808080 #ffffff #ffffff #808080 !important;
  box-shadow: var(--retro-sunken) !important;
}
html[data-ui-theme="retro"]
  :is(
    [data-testid="remaining-balance"],
    [data-testid="spending-remaining-balance"],
    [data-testid="monthly-metric-3"]
  )
  [dir="auto"] {
  color: #00ff00 !important;
  font-family: "Courier New", Tahoma, monospace !important;
}
html[data-ui-theme="retro"] [role="progressbar"] {
  background: #ffffff !important;
  border: 2px solid !important;
  border-color: #808080 #ffffff #ffffff #808080 !important;
  box-shadow: var(--retro-sunken) !important;
}
html[data-ui-theme="retro"] [role="progressbar"] > * {
  background: repeating-linear-gradient(
    90deg,
    #000080 0 8px,
    #ffffff 8px 10px
  ) !important;
  animation: none !important;
}
html[data-ui-theme="retro"] [data-retro-input="standalone"],
html[data-ui-theme="retro"] :has(> [data-retro-input="embedded"]) {
  background: #ffffff !important;
  border: 2px solid !important;
  border-color: #808080 #ffffff #ffffff #808080 !important;
  box-shadow: var(--retro-sunken) !important;
}
html[data-ui-theme="retro"] [data-retro-input="embedded"] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html[data-ui-theme="retro"] input,
html[data-ui-theme="retro"] textarea {
  color: #000000 !important;
  caret-color: #000080;
}
html[data-ui-theme="retro"] input::placeholder,
html[data-ui-theme="retro"] textarea::placeholder {
  color: #404040;
  opacity: 1;
}
html[data-ui-theme="retro"] a {
  color: #0000ff;
  text-decoration: underline;
}
html[data-ui-theme="retro"] a:visited {
  color: #800080;
}
html[data-ui-theme="retro"] a:hover {
  color: #ff0000;
}
html[data-ui-theme="retro"] :focus-visible,
html[data-ui-theme="retro"]
  :has(> [data-retro-input="embedded"]:focus-visible) {
  outline: 2px dotted #000000 !important;
  outline-offset: 2px;
}
html[data-ui-theme="retro"] [data-retro-input="embedded"]:focus-visible {
  outline: none !important;
}
[data-theme-preview="retro"] {
  background: #c0c0c0 !important;
  border: 2px solid !important;
  border-color: #ffffff #808080 #808080 #ffffff !important;
  border-radius: 0 !important;
  box-shadow:
    inset -1px -1px 0 #404040,
    inset 1px 1px 0 #dfdfdf !important;
  padding: 18px 6px 5px !important;
}
[data-theme-preview="retro"]::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  height: 10px;
  background: linear-gradient(90deg, #000080, #1084d0);
}
[data-theme-preview="retro"]::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 6px;
  width: 6px;
  height: 6px;
  background: #c0c0c0;
  box-shadow: -9px 0 #c0c0c0;
}
[data-theme-preview="retro"] * {
  border-radius: 0 !important;
  font-family: "Courier New", Tahoma, monospace !important;
}
