:root {
  --bg: #0c0c10;
  --bg2: #17151f;
  --bg3: #1f1c2a;
  --bg4: #2a2736;
  --text: #e8e0ff;
  --text2: #a9a4b8;
  --text3: #6b6678;
  --acc: #4ade80;
  --accBg: rgba(74, 222, 128, .1);
  --red: #f87171;
  --redBg: rgba(248, 113, 113, .1);
  --orange: #fbbf24;
  --blue: #60a5fa;
  --purple: #c4b5fd;
  --card: #17151f;
  --brd: rgba(147, 100, 255, .08);
  --nav: #0e0d14;
  --chrome: #0e0d14;
  --shadow: 0 -1px 20px rgba(0, 0, 0, .5);
  --r: 16px;
  --rs: 12px;
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --glow: rgba(147, 100, 255, .06);
  --card-grad: linear-gradient(145deg, rgba(147, 100, 255, .1), rgba(107, 63, 224, .05), rgba(80, 40, 200, .02));
  --card-sh: 0 4px 20px rgba(124, 58, 237, .15), inset 0 1px 0 rgba(255, 255, 255, .03);
  color-scheme: dark
}

[data-theme="light"] {
  --bg: #f5f3fa;
  --bg2: #fff;
  --bg3: #ece8f5;
  --bg4: #dfdae8;
  --text: #1a1824;
  --text2: #6b6678;
  --text3: #a09aad;
  --acc: #16a34a;
  --accBg: rgba(22, 163, 74, .1);
  --red: #dc2626;
  --redBg: rgba(220, 38, 38, .1);
  --card: #fff;
  --brd: rgba(100, 60, 180, .08);
  --nav: #e8e4f2;
  --chrome: #e8e4f2;
  --shadow: 0 -1px 20px rgba(0, 0, 0, .06);
  --glow: rgba(147, 100, 255, .04);
  --card-grad: linear-gradient(145deg, rgba(147, 100, 255, .06), rgba(107, 63, 224, .02));
  --card-sh: 0 2px 10px rgba(0, 0, 0, .06);
  color-scheme: light
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--chrome)
}

body {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  background: linear-gradient(175deg, #141318, #101014, #0c0c10);
  color: var(--text);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none
}

#app {
  min-height: 100vh;
  position: relative;
  padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(175deg, #141318, #101014, #0c0c10)
}

.page {
  display: none;
  flex-direction: column;
  height: calc(100vh - 60px - env(safe-area-inset-bottom, 0px));
  overflow: hidden
}

.page.active {
  display: flex
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.98)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

.pc {
  padding: 10px 16px 24px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch
}

.pc::-webkit-scrollbar {
  width: 0
}

.hdr {
  padding: 14px 16px 10px;
  padding-top: calc(6px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 10;
  background: var(--chrome);
  border-bottom: 1px solid var(--brd)
}

.hdr h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.5px
}

.hdr-acts {
  display: flex;
  gap: 8px
}

.ib {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--brd);
  background: var(--bg2);
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .2s
}

.ib:active {
  transform: scale(.9)
}

.ib svg {
  width: 18px;
  height: 18px
}

#nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--chrome);
  border-top: 1px solid var(--brd);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px))
}

.ni {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px;
  cursor: pointer;
  color: var(--text3);
  transition: .2s;
  flex: 1
}

.ni svg {
  width: 20px;
  height: 20px;
  transition: .15s;
  flex-shrink: 0
}

.ni span {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .2px
}

.ni.act {
  color: #c4b5fd !important
}

.ni.act svg {
  transform: scale(1.08)
}

#fab {
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  right: 16px;
  z-index: 99;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: none;
  background: var(--acc);
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(147, 100, 255, .3);
  cursor: pointer;
  transition: .2s
}

#fab:active {
  transform: scale(.88)
}

.fab-inner {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: var(--acc);
  color: #fff;
  font-size: 26px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(147, 100, 255, .3);
  cursor: pointer;
  transition: .2s;
  z-index: 5
}

.fab-inner:active {
  transform: scale(.88)
}

.card {
  background: var(--card);
  border-radius: var(--r);
  padding: 16px;
  border: 1px solid var(--brd);
  margin-bottom: 12px
}

.sg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px
}

.si {
  background: var(--bg2);
  border-radius: var(--rs);
  padding: 12px;
  border: 1px solid var(--brd)
}

.si.full {
  grid-column: 1/-1
}

.sl {
  font-size: 10px;
  color: var(--text3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 3px
}

.sv {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.5px
}

.mn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 6px 0 14px;
  user-select: none
}

.mn button {
  background: var(--bg3);
  border: 1px solid var(--brd);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .15s;
  flex-shrink: 0
}

.mn button:active {
  transform: scale(.9)
}

.mn .ml {
  font-size: 14px;
  font-weight: 700;
  min-width: 130px;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px
}

.tgh {
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  padding: 10px 4px 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2
}

.ti {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--brd);
  cursor: pointer;
  transition: .15s
}

.ti:active {
  background: var(--bg2);
  border-radius: var(--rs)
}

.ti.in-range {
  background: rgba(147, 100, 255, .06);
  border-radius: var(--rs)
}

.ti-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0
}

.ti-det {
  flex: 1;
  min-width: 0
}

.ti-cat {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.ti-note {
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.ti-r {
  text-align: right;
  flex-shrink: 0
}

.ti-amt {
  font-size: 14px;
  font-weight: 700
}

.ti-amt.exp {
  color: var(--red)
}

.ti-amt.inc {
  color: var(--acc)
}

.ti-amt.trf {
  color: var(--blue)
}

.ti-dt {
  font-size: 10px;
  color: var(--text3)
}

.sb {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--brd);
  border-radius: var(--rs);
  padding: 9px 12px;
  margin-bottom: 10px
}

.sb input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none
}

.sb input::placeholder {
  color: var(--text3)
}

.sb svg {
  width: 15px;
  height: 15px;
  color: var(--text3);
  flex-shrink: 0
}

.sb .sb-clear {
  display: none;
  width: 20px;
  height: 20px;
  border: none;
  background: var(--bg3);
  border-radius: 6px;
  color: var(--text3);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  line-height: 1;
  align-items: center;
  justify-content: center
}

.sb .sb-clear.vis {
  display: flex
}

.pills {
  display: flex;
  background: var(--bg2);
  border-radius: 10px;
  padding: 3px;
  border: 1px solid var(--brd)
}

.pill {
  flex: 1;
  text-align: center;
  padding: 7px 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  color: var(--text3);
  transition: all .2s;
  border: none;
  background: transparent
}

.pill.act {
  background: var(--acc);
  color: #0d0d12
}

.cw {
  position: relative;
  margin: 8px 0
}

.cw canvas {
  width: 100% !important
}

.ac {
  border-radius: var(--r);
  padding: 12px 14px;
  border: 1.5px solid var(--brd);
  margin-bottom: 8px;
  cursor: pointer;
  transition: .15s;
  display: flex;
  align-items: center;
  gap: 11px
}

.ac:active {
  transform: scale(.98)
}

.ac-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(147, 100, 255, .15), rgba(107, 63, 224, .08)) !important;
  border: 1px solid rgba(147, 100, 255, .08) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  overflow: hidden
}

.ac-ic-logo {
  background: #fff !important;
  border: none !important;
  padding: 0
}

.ac-info {
  flex: 1;
  min-width: 0
}

.ac-n {
  font-size: 13px;
  font-weight: 700
}

.ac-tags {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap
}

.ac-tag {
  font-size: 8px;
  color: rgba(196, 181, 253, .45);
  background: rgba(147, 100, 255, .06);
  padding: 3px 7px;
  border-radius: 4px;
  font-weight: 600
}

.ac-r {
  text-align: right;
  flex-shrink: 0
}

.ac-b {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.3px
}

.ac-chev {
  color: var(--text3);
  opacity: .4;
  flex-shrink: 0;
  display: flex;
  align-items: center
}

.mo {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s
}

.mo.show {
  opacity: 1;
  pointer-events: auto
}

.modal {
  background: var(--bg2);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1)
}

.mo.show .modal {
  transform: translateY(0)
}

.mh {
  width: 36px;
  height: 4px;
  background: var(--bg4);
  border-radius: 2px;
  margin: 0 auto 14px
}

.modal h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px
}

/* Manage list header */
.mg-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px
}

.mg-hdr h2 {
  margin: 0
}

.fg {
  margin-bottom: 14px
}

.fl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  margin-bottom: 5px;
  display: block;
  text-transform: uppercase;
  letter-spacing: .3px
}

.fi,
.fs {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg3);
  border: 1px solid var(--brd);
  border-radius: var(--rs);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: .2s;
  -webkit-appearance: none;
  appearance: none
}

.fi:focus,
.fs:focus {
  border-color: var(--acc)
}

.fr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.tt {
  display: flex;
  background: linear-gradient(145deg, rgba(147, 100, 255, .06), rgba(80, 40, 200, .02));
  border-radius: var(--rs);
  padding: 3px;
  margin-top: 6px;
  margin-bottom: 14px
}

.tt button {
  flex: 1;
  padding: 9px;
  border: none;
  background: none;
  color: var(--text3);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: .2s
}

.tt button.ae {
  background: var(--redBg);
  color: var(--red)
}

.tt button.ai {
  background: var(--accBg);
  color: var(--acc)
}

.tt button.at {
  background: rgba(147, 100, 255, .1);
  color: #c4b5fd
}

.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--rs);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: .15s
}

.btn:active {
  transform: scale(.97)
}

.bp {
  background: linear-gradient(135deg, #9364ff, #6d3acd);
  color: #fff;
  box-shadow: 0 4px 16px rgba(147, 100, 255, .25)
}

.bd {
  background: var(--redBg);
  color: var(--red);
  margin-top: 8px
}

.bs {
  background: var(--bg3);
  color: var(--text2)
}

.br {
  display: flex;
  gap: 8px;
  margin-top: 16px
}

.br .btn {
  flex: 1
}

.bu-i {
  margin-bottom: 12px
}

.bu-h {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px
}

.bu-c {
  font-size: 12px;
  font-weight: 600
}

.bu-n {
  font-size: 11px;
  color: var(--text3)
}

.bu-bar {
  height: 7px;
  background: rgba(147, 100, 255, .06);
  border-radius: 4px;
  overflow: hidden
}

.bu-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .5s;
  background: linear-gradient(90deg, #c4b5fd, #9364ff)
}

.sr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--brd);
  cursor: pointer
}

.sr-info {
  display: flex;
  align-items: center;
  gap: 10px
}

.sr-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: var(--bg3)
}

.sr-name {
  font-size: 13px;
  font-weight: 600
}

.sr-desc {
  font-size: 10px;
  color: var(--text3)
}

.toggle {
  width: 44px;
  height: 26px;
  background: var(--bg4);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: .2s;
  flex-shrink: 0
}

.toggle.on {
  background: var(--acc)
}

.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: .2s
}

.toggle.on::after {
  transform: translateX(18px)
}

.sec {
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 14px 0 6px
}

.sec-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 14px 0 6px
}

.sec-toggle .sec {
  padding: 0;
  font-size: 14px;
  transition: font-size .2s
}

.sec-toggle.sec-open .sec {
  font-size: 11px
}

.sec-toggle .sec-arrow {
  font-size: 9px;
  color: var(--text3);
  transition: transform .2s
}

.sec-body {
  overflow: hidden;
  transition: max-height .25s ease;
  max-height: 800px
}

.sec-body.collapsed {
  max-height: 0
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 12px;
  transition: transform .25s ease, opacity .25s ease
}

.cal-grid.slide-l {
  transform: translateX(-100%);
  opacity: 0
}

.cal-grid.slide-r {
  transform: translateX(100%);
  opacity: 0
}

#txList {
  transition: transform .25s ease, opacity .25s ease
}

#txList.slide-l {
  transform: translateX(-100%);
  opacity: 0
}

#txList.slide-r {
  transform: translateX(100%);
  opacity: 0
}

.cal-hd {
  font-size: 10px;
  font-weight: 700;
  color: var(--text3);
  text-align: center;
  padding: 6px 0
}

.cal-day {
  aspect-ratio: 5/6;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
  border: 1px solid rgba(147, 100, 255, .08);
  position: relative
}

.cal-day:active {
  transform: scale(.92)
}

.cal-day.today {
  background: linear-gradient(135deg, #9364ff, #6d3acd);
  color: #fff;
  border-color: transparent
}

.cal-day.other {
  color: var(--text3);
  opacity: .25;
  border-color: transparent
}

.cal-day.fout {
  opacity: .4
}

.cal-day.hol {
  background: rgba(251, 191, 36, .08);
  border-color: rgba(251, 191, 36, .2)
}

.cal-day.wknd {
  color: var(--blue)
}

.cal-day.today.wknd {
  color: #fff
}

.cal-day .cd-wrap {
  position: absolute;
  bottom: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0
}

.cal-day .cd-amt {
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap
}

.cal-day .cd-exp {
  color: var(--red)
}

.cal-day .cd-inc {
  color: var(--acc)
}

.str {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
  background: var(--chrome);
  border: 1px solid var(--brd);
  border-radius: var(--rs);
  padding: 5px
}

.sc {
  background: var(--bg2);
  border: 1px solid var(--brd);
  border-radius: 8px;
  padding: 8px;
  text-align: center
}

.sc .v {
  font-size: 14px;
  font-weight: 800
}

.sc .l {
  font-size: 9px;
  color: var(--text3);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px
}

.co {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: .2s
}

.co.show {
  opacity: 1;
  pointer-events: auto
}

.cb {
  background: var(--bg2);
  border-radius: var(--r);
  padding: 22px;
  width: 280px;
  text-align: center
}

.cb h3 {
  font-size: 16px;
  margin-bottom: 6px
}

.cb p {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 16px
}

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text3)
}

.empty .em {
  font-size: 40px;
  margin-bottom: 10px
}

.empty p {
  font-size: 13px
}

.ri {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg2);
  border: 1px solid var(--brd);
  border-radius: var(--rs);
  margin-bottom: 8px
}

.ri-freq {
  font-size: 9px;
  font-weight: 700;
  color: #c4b5fd;
  background: rgba(147, 100, 255, .1);
  padding: 2px 7px;
  border-radius: 4px
}

.bm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg2);
  border: 1px solid var(--brd);
  border-radius: var(--rs);
  margin-bottom: 8px;
  cursor: pointer
}

.bm-item:active {
  opacity: .7
}

@keyframes fu {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.fu {
  animation: fu .3s ease both
}

.fd1 {
  animation-delay: .05s
}

.fd2 {
  animation-delay: .1s
}

.inc-c {
  color: var(--acc)
}

.exp-c {
  color: var(--red)
}

.sec-card {
  background: linear-gradient(155deg, rgba(30, 26, 42, .95), rgba(22, 20, 32, .98));
  border: 1px solid rgba(147, 100, 255, .08);
  border-radius: var(--rs);
  overflow: hidden;
  margin-bottom: 12px
}

.sec-card-hdr {
  background: rgba(147, 100, 255, .06);
  padding: 7px 14px;
  border-bottom: 1px solid rgba(147, 100, 255, .06);
  display: flex;
  align-items: center;
  gap: 6px
}

[data-theme="light"] .sec-card {
  background: #fff !important;
  background-image: none !important;
  border: 1px solid rgba(100, 60, 180, .1) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05) !important
}

[data-theme="light"] #budgetSec {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important
}

[data-theme="light"] .sec-card-hdr {
  background: rgba(147, 100, 255, .06);
  border-bottom: 1px solid rgba(100, 60, 180, .08)
}

.ci {
  display: inline-block;
  filter: grayscale(1) contrast(1.4) sepia(1) hue-rotate(220deg) saturate(3) brightness(1.5);
  opacity: .9;
  font-style: normal;
  line-height: 1
}

[data-theme="light"] .ci {
  filter: grayscale(1) contrast(1.4) sepia(1) hue-rotate(220deg) saturate(2.5) brightness(.75);
  opacity: .85
}

.toast {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: var(--bg4);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  z-index: 400;
  pointer-events: none;
  opacity: 0
}

.toast.show {
  animation: toastIn .3s ease forwards, toastOut .3s ease 2.2s forwards
}

.toast.show.undo {
  pointer-events: auto;
  animation: toastIn .3s ease forwards, toastOut .3s ease 4.7s forwards
}

.toast .undo-btn {
  margin-left: 12px;
  padding: 2px 10px;
  border-radius: 10px;
  border: 1px solid rgba(147, 100, 255, .3);
  background: rgba(147, 100, 255, .15);
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit
}

@keyframes toastIn {
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1
  }
}

@keyframes toastOut {
  to {
    transform: translateX(-50%) translateY(-80px);
    opacity: 0
  }
}

.calc-hint {
  font-size: 10px;
  color: var(--acc);
  margin-top: 3px;
  display: none
}

.calc-hint.vis {
  display: block
}

.mtog {
  display: inline-flex;
  background: var(--bg3);
  border-radius: 6px;
  padding: 2px;
  font-size: 10px;
  font-weight: 700
}

.mtog span {
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  color: var(--text3);
  transition: .2s
}

.mtog span.act {
  background: var(--acc);
  color: #fff
}

.mg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--brd);
  border-radius: var(--rs);
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600
}

.mg-item .del-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: none;
  background: var(--redBg);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  flex-shrink: 0
}

.mg-item .edit-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: none;
  background: var(--accBg);
  color: var(--acc);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  flex-shrink: 0
}

.mg-item .mg-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0
}

.mg-inline-edit {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 1;
  min-width: 0
}

.mg-inline-edit input {
  flex: 1;
  padding: 6px 10px;
  font-size: 13px
}

/* Floating add-category popup */
.cat-float {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
  background: var(--bg2);
  border: 1px solid var(--brd);
  border-radius: 16px;
  padding: 20px;
  width: min(320px, 85vw);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .4)
}

.cat-float-bg {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, .5)
}

/* Type badge */
.cat-type {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0
}

.cat-type.exp {
  background: var(--redBg);
  color: var(--red)
}

.cat-type.inc {
  background: var(--accBg);
  color: var(--acc)
}

.cat-type.both {
  background: rgba(147, 100, 255, .1);
  color: #c4b5fd
}

/* Tx month summary bar */
.tx-sum {
  display: flex;
  gap: 12px;
  padding: 10px 0 6px;
  font-size: 12px;
  font-weight: 600
}

/* Day popup add button */
.day-fab {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 12px 0 0
}

.day-fab button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: var(--acc);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 14px rgba(147, 100, 255, .3);
  cursor: pointer;
  transition: .2s
}

.day-fab button:active {
  transform: scale(.88)
}

/* Splash & PIN - same gradient */
#splash {
  position: fixed;
  top: -50px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #0d9b6a 0%, #1a6fb5 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .4s;
  gap: 12px
}

#pinScreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  background: #1a0a2e;
  background-image: radial-gradient(ellipse at 20% 0%, #4c1d95 0%, transparent 50%), radial-gradient(ellipse at 80% 100%, #3b0764 0%, transparent 50%), radial-gradient(ellipse at 50% 50%, #2e1065 0%, transparent 60%), radial-gradient(ellipse at 0% 80%, #5b21b6 0%, transparent 35%), radial-gradient(ellipse at 100% 20%, #1e1b4b 0%, transparent 40%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .4s ease, transform .4s ease
}

#splash.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease
}

#splash .sp-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  animation: spIn .6s cubic-bezier(.22, 1, .36, 1) .15s forwards
}

#splash .sp-line {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .4);
  opacity: 0;
  transform: scaleX(0);
  animation: spLine .5s cubic-bezier(.22, 1, .36, 1) .5s forwards
}

#splash .sp-sub {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  opacity: 0;
  transform: translateY(10px);
  animation: spIn .5s cubic-bezier(.22, 1, .36, 1) .65s forwards
}

@keyframes spIn {
  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes spLine {
  to {
    opacity: 1;
    transform: scaleX(1)
  }
}

#pinScreen .pin-lock {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(147, 100, 255, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: all .4s cubic-bezier(.22, 1, .36, 1)
}

#pinScreen .pin-lock svg {
  width: 20px;
  height: 20px;
  color: #c4b5fd;
  opacity: .8;
  transition: all .3s
}

#pinScreen .pin-lock .lock-icon {
  display: block
}

#pinScreen .pin-lock .tick-icon {
  display: none
}

#pinScreen.success .pin-lock {
  border-color: #c4b5fd;
  background: rgba(147, 100, 255, .12);
  transform: scale(1.15)
}

#pinScreen.success .pin-lock .lock-icon {
  display: none
}

#pinScreen.success .pin-lock .tick-icon {
  display: block;
  animation: tickPop .4s cubic-bezier(.22, 1, .36, 1)
}

#pinScreen.success .pin-dot {
  background: #c4b5fd;
  border-color: #c4b5fd
}

#pinScreen.fadeout {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .4s ease, transform .4s ease
}

@keyframes tickPop {
  0% {
    transform: scale(0) rotate(-20deg);
    opacity: 0
  }

  60% {
    transform: scale(1.2) rotate(5deg)
  }

  100% {
    transform: scale(1) rotate(0);
    opacity: 1
  }
}

#pinScreen .pin-msg {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  min-height: 20px;
  margin-bottom: 2px
}

#pinScreen .pin-sub {
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 20px
}

#pinScreen .pin-msg.error {
  color: var(--red)
}

#pinScreen .pin-dots {
  display: flex;
  gap: 12px;
  margin-bottom: 28px
}

#pinScreen .pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(147, 100, 255, .2);
  background: transparent;
  transition: all .2s cubic-bezier(.22, 1, .36, 1)
}

#pinScreen .pin-dot.filled {
  background: #c4b5fd;
  border-color: #c4b5fd;
  transform: scale(1.1)
}

#pinScreen .pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: min(80vw, 280px);
  margin: 0 auto
}

#pinScreen .pin-key {
  width: 100%;
  height: 60px;
  border-radius: 14px;
  border: none;
  background: var(--bg2);
  color: var(--text);
  font-family: inherit;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all .12s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center
}

#pinScreen .pin-key:active {
  background: rgba(147, 100, 255, .1);
  transform: scale(.93)
}

#pinScreen .pin-key.fn {
  background: transparent;
  font-size: 12px;
  color: var(--text3);
  font-weight: 600
}

#pinScreen .pin-key.fn:active {
  color: var(--text2);
  transform: scale(.93);
  background: transparent
}

#pinScreen .pin-key.fn svg {
  color: var(--text3)
}

@keyframes pinShake {

  0%,
  100% {
    transform: translateX(0)
  }

  20%,
  60% {
    transform: translateX(-8px)
  }

  40%,
  80% {
    transform: translateX(8px)
  }
}

#pinScreen .pin-dots.shake {
  animation: pinShake .4s ease
}

/* Sleeping pets above nav */
.pets {
  position: fixed;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  z-index: 99;
  display: none;
  justify-content: flex-start;
  padding-left: 20px;
  gap: 0;
  pointer-events: none
}

.pets.vis {
  display: flex
}

.pets lottie-player {
  width: 100px;
  height: 100px;
  margin-bottom: -18px
}

.pets .pet-cat {
  transform: scaleX(-1) translateY(10px);
  opacity: .90
}

.pets .pet-dog {
  opacity: .75;
  transform: translateY(2px)
}

/* Account Detail Overlay */
#txOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  z-index: 89;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
  display: flex;
  flex-direction: column;
  pointer-events: none
}

#txOverlay.open {
  transform: translateX(0);
  pointer-events: auto
}

#txOverlay .ad-hdr {
  padding: 14px 16px 10px;
  padding-top: calc(6px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--brd);
  background: var(--chrome)
}

#txOverlay .ad-hdr h2 {
  flex: 1;
  font-size: 20px;
  font-weight: 800;
  margin: 0
}

#accDetail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
  display: flex;
  flex-direction: column;
  pointer-events: none
}

#accDetail.open {
  transform: translateX(0);
  pointer-events: auto
}

#accDetail .ad-hdr {
  padding: 14px 16px 10px;
  padding-top: calc(6px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--brd);
  background: var(--chrome)
}

#accDetail .ad-hdr h2 {
  flex: 1;
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

#accDetail .ad-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0
}

/* Theme icon swap via CSS */
.theme-sun {
  display: none
}

.theme-moon {
  display: block
}

[data-theme="light"] .theme-sun {
  display: block
}

[data-theme="light"] .theme-moon {
  display: none
}

[data-theme="light"] .cal-day {
  border-color: rgba(0, 0, 0, .1)
}

/* Dynamic tray form */
.tx-form {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden
}

.tx-top {
  flex: 0 0 auto;
  padding: 0;
  overflow-y: auto
}

.tx-fields {
  padding: 0 0 8px
}

.tx-card {
  background: var(--card-grad);
  border-radius: 14px;
  border: 1px solid rgba(147, 100, 255, .08);
  overflow: hidden;
  box-shadow: var(--card-sh)
}

.tx-fr {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(147, 100, 255, .05);
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  gap: 10px
}

.tx-fr:last-child {
  border-bottom: none
}

.tx-fr.act {
  background: rgba(147, 100, 255, .06);
  box-shadow: inset 3px 0 0 #9364ff
}

.tx-fr .fr-ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15)
}

.tx-fr .fr-lb {
  font-size: 10px;
  color: var(--text3);
  font-weight: 600
}

.tx-fr .fr-vl {
  font-size: 13px;
  font-weight: 700;
  color: var(--text)
}

.tx-fr .fr-vl.ph {
  color: var(--text3);
  opacity: .5;
  font-weight: 600
}

.tx-fr .fr-chev {
  color: var(--text3);
  opacity: .3;
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  align-items: center
}

.tray-cd {
  text-align: right;
  padding: 2px 6px 8px;
  border-bottom: 1px solid var(--brd);
  margin-bottom: 6px
}

.tray-cd .cd-ex {
  font-size: 10px;
  color: var(--text3);
  min-height: 13px
}

.tray-cd .cd-vl {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1px
}

.tray-nums {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 5px;
  flex: 1
}

.tray-nums .tn-left {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 5px;
  height: 100%
}

.tray-nums .tn-right {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, 1fr);
  gap: 5px;
  height: 100%
}

.ck {
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .1s;
  -webkit-tap-highlight-color: transparent
}

.ck:active {
  transform: scale(.93)
}

.ck-n {
  background: rgba(147, 100, 255, .06);
  color: var(--text);
  border: 1px solid rgba(147, 100, 255, .04)
}

.ck-o {
  background: rgba(147, 100, 255, .1);
  color: #c4b5fd;
  font-size: 16px;
  border: 1px solid rgba(147, 100, 255, .08)
}

.ck-f {
  background: var(--redBg);
  color: var(--red);
  font-size: 12px;
  font-weight: 700
}

.tray-bottom {
  display: flex;
  gap: 5px;
  margin-top: 5px;
  flex-shrink: 0
}

.tray-bottom .ck {
  flex: 1;
  height: 36px
}

.ck-eq {
  background: linear-gradient(135deg, #9364ff, #6d3acd);
  color: #fff;
  font-weight: 700;
  flex: 2;
  box-shadow: 0 2px 8px rgba(147, 100, 255, .2)
}

.tray-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  flex: 1;
  overflow-y: auto;
  align-content: start;
  padding: 4px 0
}

.tray-tile {
  background: rgba(147, 100, 255, .06);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: .15s;
  border: 1.5px solid rgba(147, 100, 255, .04)
}

.tray-tile:active {
  transform: scale(.95)
}

.tray-tile.sel {
  border-color: rgba(147, 100, 255, .25);
  background: rgba(147, 100, 255, .12)
}

.tray-tile .tt-ic {
  font-size: 18px;
  margin-bottom: 3px
}

.tray-tile .tt-nm {
  font-size: 9px;
  font-weight: 600;
  color: var(--text2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.tray-tile.sel .tt-nm {
  color: #c4b5fd
}

.tray-tile.add-new {
  border: 1px dashed rgba(147, 100, 255, .1)
}

.tray-tile.add-new .tt-ic {
  font-size: 14px;
  color: var(--text3)
}

.tray-tile.add-new .tt-nm {
  color: var(--text3)
}

.tray-mcal {
  flex: 1;
  overflow: hidden
}

.tray-mcal .mc-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px
}

.tray-mcal .mc-hdr span {
  font-size: 12px;
  font-weight: 700
}

.tray-mcal .mc-hdr button {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 15px;
  cursor: pointer;
  padding: 3px 8px
}

.tray-mcal .mc-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center
}

.mc-hd {
  font-size: 8px;
  color: var(--text3);
  font-weight: 700;
  padding: 3px 0
}

.mc-d {
  font-size: 11px;
  padding: 7px 0;
  border-radius: 7px;
  cursor: pointer;
  color: var(--text2);
  transition: .12s
}

.mc-d:active {
  transform: scale(.9)
}

.mc-d.sel {
  background: linear-gradient(135deg, #9364ff, #6d3acd);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(147, 100, 255, .2)
}

.mc-d.oth {
  color: var(--text3);
  opacity: .35
}

.tray-note {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 0
}

.tray-note input {
  background: rgba(147, 100, 255, .06);
  border: 1px solid rgba(147, 100, 255, .06);
  border-radius: 10px;
  padding: 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none
}

.tray-note input:focus {
  border-color: rgba(147, 100, 255, .25);
  box-shadow: 0 0 0 3px rgba(147, 100, 255, .08)
}

.tray-note input::placeholder {
  color: var(--text3);
  opacity: .5
}

.tx-btns {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  z-index: 210
}

.tx-btns button {
  flex: 1;
  padding: 13px;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: .12s
}

.tx-btns button:active {
  transform: scale(.97)
}

.tb-c {
  background: rgba(147, 100, 255, .06);
  color: var(--text3);
  flex: 1 1 0 !important;
  border: 1px solid rgba(147, 100, 255, .06)
}

.tb-s {
  background: linear-gradient(135deg, #9364ff, #6d3acd);
  color: #fff;
  flex: 2 1 0 !important;
  box-shadow: 0 4px 16px rgba(147, 100, 255, .3)
}

.tb-d {
  background: var(--redBg);
  color: var(--red)
}

.tb-b {
  background: rgba(147, 100, 255, .08);
  color: #c4b5fd
}

.freq-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch
}

.freq-scroll::-webkit-scrollbar {
  display: none
}

.freq-chip {
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(147, 100, 255, .08);
  background: rgba(147, 100, 255, .04);
  color: var(--text2);
  flex-shrink: 0;
  cursor: pointer;
  transition: .15s;
  -webkit-tap-highlight-color: transparent
}

.freq-chip:active {
  transform: scale(.95)
}

.freq-chip.sel {
  border-color: rgba(147, 100, 255, .25);
  background: linear-gradient(135deg, rgba(147, 100, 255, .15), rgba(107, 63, 224, .08));
  color: #c4b5fd;
  box-shadow: 0 2px 8px rgba(147, 100, 255, .1)
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0
}

.or-divider span {
  font-size: 10px;
  color: var(--text3);
  font-weight: 600
}

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

.custom-days-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--brd);
  background: var(--bg2);
  margin-bottom: 10px
}

.custom-days-row label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap
}

.custom-days-row input {
  width: 50px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--brd);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  outline: none
}

.custom-days-row input:focus {
  border-color: var(--acc)
}

.custom-days-row span {
  font-size: 11px;
  color: var(--text3)
}

.tb-ic {
  width: 44px;
  min-width: 44px;
  flex: 0 0 44px;
  background: rgba(147, 100, 255, .08);
  color: #c4b5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(147, 100, 255, .06)
}

/* Repeat toggle button */
.rpt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px
}

.rpt-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: var(--rs);
  border: 1px solid rgba(147, 100, 255, .08);
  background: rgba(147, 100, 255, .04);
  color: var(--text3);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s
}

.rpt-btn.on {
  border-color: rgba(147, 100, 255, .25);
  color: #c4b5fd;
  background: rgba(147, 100, 255, .1)
}

.rpt-btn svg {
  width: 14px;
  height: 14px
}

.rpt-opts {
  display: none;
  background: var(--bg3);
  border: 1px solid var(--brd);
  border-radius: var(--rs);
  padding: 12px;
  margin-bottom: 14px
}

.rpt-opts.vis {
  display: block
}

.sk {
  border-radius: 6px;
  background: var(--bg2);
  position: relative;
  overflow: hidden
}

.sk::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .04), transparent);
  animation: shimmer 1.5s infinite
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%)
  }

  100% {
    transform: translateX(100%)
  }
}

.sk-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0
}

.sk-cir {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0
}

.sk-ln {
  height: 12px;
  border-radius: 4px;
  flex: 1
}

.sk-ln.w60 {
  width: 60%
}

.sk-ln.w40 {
  width: 40%
}

.sk-ln.w80 {
  width: 80%
}

.sk-bar {
  height: 8px;
  border-radius: 4px;
  margin-top: 4px
}

#skelCal,
#skelAcc,
#skelStats,
#skelSet {
  display: none
}

.goal-card {
  background: var(--card-grad);
  border: 1px solid rgba(147, 100, 255, .08);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: .15s;
  box-shadow: var(--card-sh);
  position: relative;
  overflow: hidden
}

.goal-card:active {
  transform: scale(.98)
}

.goal-card::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(147, 100, 255, .05);
  border-radius: 50%;
  pointer-events: none
}

/* Savings sphere */
.sv-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center
}

.sv-grid .goal-card {
  width: calc(50% - 5px);
  margin-bottom: 0
}

.sv-sphere {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid rgba(147, 100, 255, .12);
  overflow: hidden;
  background: rgba(12, 10, 18, .7);
  box-shadow: inset 0 6px 24px rgba(0, 0, 0, .4), 0 0 24px rgba(147, 100, 255, .06)
}

.sv-liquid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(139, 92, 246, .45), rgba(167, 139, 250, .2));
  transition: height 1.2s cubic-bezier(.4, 0, .2, 1)
}

.sv-liquid::before,
.sv-liquid::after {
  content: '';
  position: absolute;
  top: -6px;
  width: 140%;
  height: 12px;
  border-radius: 45%
}

.sv-liquid::before {
  left: -20%;
  background: rgba(167, 139, 250, .15);
  animation: svWave 3s ease-in-out infinite
}

.sv-liquid::after {
  left: -15%;
  top: -4px;
  width: 130%;
  height: 10px;
  border-radius: 40%;
  background: rgba(167, 139, 250, .1);
  animation: svWave 4s ease-in-out infinite reverse
}

@keyframes svWave {
  0%, 100% { transform: translateX(-8%) rotate(0deg) }
  50% { transform: translateX(8%) rotate(4deg) }
}

.sv-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  filter: blur(1px);
  animation: svBubble 3s ease-in infinite
}

@keyframes svBubble {
  0% { transform: translateY(0) scale(1); opacity: 0 }
  15% { opacity: .3 }
  100% { transform: translateY(-80px) scale(.5); opacity: 0 }
}

.sv-shine {
  position: absolute;
  top: 15%;
  left: 18%;
  width: 28%;
  height: 12%;
  background: rgba(255, 255, 255, .07);
  border-radius: 50%;
  transform: rotate(-35deg);
  filter: blur(4px);
  pointer-events: none;
  z-index: 2
}

.sv-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  z-index: 3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .3)
}

.fc-card {
  background: var(--card-grad);
  border: 1px solid rgba(147, 100, 255, .08);
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
  box-shadow: var(--card-sh)
}

.fc-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px
}

.fc-title svg {
  width: 14px;
  height: 14px;
  stroke: var(--text3)
}

.fc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 12px
}

.fc-label {
  color: var(--text3);
  font-weight: 600
}

.fc-val {
  font-weight: 700
}

.fc-div {
  height: 1px;
  background: var(--brd);
  margin: 4px 0
}

.fc-proj {
  font-size: 16px;
  font-weight: 800;
  margin-top: 4px
}

.bill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--brd)
}

.bill-row:last-child {
  border-bottom: none
}

.bill-date {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.bill-date .bd-d {
  font-size: 13px;
  font-weight: 800;
  line-height: 1
}

.bill-date .bd-m {
  font-size: 7px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase
}

.bill-date.today {
  background: rgba(147, 100, 255, .1);
  border: 1px solid rgba(147, 100, 255, .12)
}

.bill-date.today .bd-d {
  color: #c4b5fd
}

.bill-date.tmrw {
  background: rgba(251, 191, 36, .08);
  border: 1px solid rgba(251, 191, 36, .12)
}

.bill-date.tmrw .bd-d {
  color: var(--orange)
}

/* ===== PURPLE THEME OVERHAUL ===== */
/* Enhanced header & nav */
.hdr {
  background: linear-gradient(135deg, rgba(147, 100, 255, .1), rgba(107, 63, 224, .04));
  box-shadow: 0 4px 20px rgba(0, 0, 0, .2)
}

#nav {
  background: linear-gradient(180deg, rgba(14, 13, 20, .92), rgba(12, 12, 16, .98));
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .3)
}

.ni.act {
  color: #c4b5fd
}

/* Enhanced cards with gradient + shadow */
.card {
  background: var(--card-grad);
  border: 1px solid var(--brd);
  box-shadow: var(--card-sh)
}

.si {
  background: var(--card-grad);
  border: 1px solid var(--brd);
  box-shadow: var(--card-sh)
}

.tx-card {
  background: var(--card-grad);
  box-shadow: var(--card-sh)
}

/* Summary container with purple glow */
.str {
  background: var(--bg2);
  border: 3px solid #7c3aed;
  box-shadow: none;
  position: relative;
  overflow: hidden
}

.sc {
  background: var(--bg2);
  border: 1px solid var(--brd);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15)
}

/* Calendar day cells */
.cal-day {
  border: 1px solid rgba(147, 100, 255, .08);
  background: linear-gradient(150deg, rgba(147, 100, 255, .06), rgba(80, 40, 200, .02));
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15)
}

.cal-day.today {
  background: linear-gradient(135deg, #9364ff, #6d3acd) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 16px rgba(147, 100, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .15) !important
}

.cal-day.today.hol {
  background: linear-gradient(135deg, #9364ff, #6d3acd) !important;
  border-color: transparent !important
}

.cal-day.today.hol::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 4px rgba(251, 191, 36, .5);
  z-index: 1
}

.cal-day.other {
  background: transparent;
  border-color: transparent;
  box-shadow: none
}

[data-theme="light"] .cal-day {
  border-color: rgba(147, 100, 255, .1);
  background: rgba(147, 100, 255, .03);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04)
}

[data-theme="light"] .cal-day.today {
  background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
  color: #fff !important
}

[data-theme="light"] .cal-day.today.hol::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 4px rgba(245, 158, 11, .5)
}

/* Account cards */
.ac {
  background: var(--card-grad) !important;
  border: 1px solid rgba(147, 100, 255, .1) !important;
  box-shadow: var(--card-sh) !important;
  position: relative;
  overflow: hidden
}

.ac::before {
  display: none
}

/* Active pills */
.pill.act {
  background: linear-gradient(135deg, rgba(147, 100, 255, .25), rgba(107, 63, 224, .15)) !important;
  color: #e8e0ff !important;
  box-shadow: 0 2px 8px rgba(147, 100, 255, .15)
}

/* Pills container */
.pills {
  background: linear-gradient(145deg, rgba(147, 100, 255, .06), rgba(80, 40, 200, .02));
  border: 1px solid rgba(147, 100, 255, .06)
}

/* Transaction items */
.ti {
  border-bottom: 1px solid rgba(147, 100, 255, .04)
}

.ti-icon {
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15)
}

/* Search bar */
.sb {
  background: var(--card-grad);
  border: 1px solid rgba(147, 100, 255, .08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15)
}

/* FAB button */
#fab {
  background: linear-gradient(135deg, #9364ff, #6d3acd);
  box-shadow: 0 4px 24px rgba(147, 100, 255, .35)
}

.fab-inner {
  background: linear-gradient(135deg, #9364ff, #6d3acd);
  box-shadow: 0 4px 20px rgba(147, 100, 255, .3)
}

.day-fab button {
  background: linear-gradient(135deg, #9364ff, #6d3acd);
  box-shadow: 0 3px 14px rgba(147, 100, 255, .3)
}

/* Budget progress bars - purple shades by progress (set inline) */

/* Toggle switches */
.toggle.on {
  background: linear-gradient(135deg, #9364ff, #6d3acd)
}

/* Section headers with purple accent */
.sec {
  color: rgba(196, 181, 253, .5)
}

/* Settings rows */
.sr-ic {
  background: linear-gradient(145deg, rgba(147, 100, 255, .12), rgba(107, 63, 224, .06))
}

.sr-ic svg {
  stroke: #c4b5fd
}

/* Month navigation buttons */
.mn button {
  background: linear-gradient(145deg, rgba(147, 100, 255, .08), rgba(80, 40, 200, .03));
  border: 1px solid rgba(147, 100, 255, .06);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15)
}

/* Icon buttons */
.ib {
  background: linear-gradient(145deg, rgba(147, 100, 255, .08), rgba(80, 40, 200, .03));
  border: 1px solid rgba(147, 100, 255, .06)
}

/* Input focus glow */
.fi:focus,
.fs:focus {
  border-color: rgba(147, 100, 255, .3);
  box-shadow: 0 0 0 3px rgba(147, 100, 255, .08)
}

/* Transaction type tabs */
.tt {
  background: linear-gradient(145deg, rgba(147, 100, 255, .06), rgba(80, 40, 200, .02));
  border: 1px solid rgba(147, 100, 255, .06)
}

/* Modals */
.modal {
  background: linear-gradient(175deg, #1a1724, #13111c);
  border: 1px solid rgba(147, 100, 255, .06)
}

.co .cb {
  background: linear-gradient(155deg, #1a1724, #13111c);
  border: 1px solid rgba(147, 100, 255, .08)
}

/* Manage items */
.mg-item {
  background: var(--card-grad);
  border: 1px solid rgba(147, 100, 255, .06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15)
}

/* Recurring items */
.ri {
  background: var(--card-grad);
  border: 1px solid rgba(147, 100, 255, .06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15)
}

/* Bookmark items */
.bm-item {
  background: var(--card-grad);
  border: 1px solid rgba(147, 100, 255, .06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15)
}

/* Splash screen */
#splash {
  background: #1a0a2e;
  background-image: radial-gradient(ellipse at 20% 0%, #4c1d95 0%, transparent 50%), radial-gradient(ellipse at 80% 100%, #3b0764 0%, transparent 50%), radial-gradient(ellipse at 50% 50%, #2e1065 0%, transparent 60%), radial-gradient(ellipse at 0% 80%, #5b21b6 0%, transparent 35%), radial-gradient(ellipse at 100% 20%, #1e1b4b 0%, transparent 40%)
}

/* Toast */
.toast {
  background: linear-gradient(135deg, rgba(30, 26, 42, .95), rgba(22, 20, 32, .98));
  border: 1px solid rgba(147, 100, 255, .1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4)
}

/* Trend chart card */
.cw {
  background: var(--card-grad);
  border-radius: var(--rs);
  padding: 8px;
  border: 1px solid rgba(147, 100, 255, .06);
  box-shadow: var(--card-sh)
}

/* Forecast/insights section cards */
.fc-row {
  padding: 3px 0
}

.fc-div {
  border-color: rgba(147, 100, 255, .06) !important
}

/* Dark mode purple shadows */
.ti-icon {
  box-shadow: 0 2px 6px rgba(124, 58, 237, .2)
}

.card {
  box-shadow: 0 4px 20px rgba(124, 58, 237, .12)
}

.ac {
  box-shadow: 0 4px 16px rgba(124, 58, 237, .12) !important
}

.sc {
  box-shadow: 0 2px 8px rgba(124, 58, 237, .1)
}

.sb {
  box-shadow: 0 2px 8px rgba(124, 58, 237, .1)
}

.modal {
  box-shadow: 0 -8px 32px rgba(124, 58, 237, .15)
}

.toast {
  box-shadow: 0 8px 24px rgba(124, 58, 237, .2)
}

.mn button {
  box-shadow: 0 2px 6px rgba(124, 58, 237, .12)
}

.ib {
  box-shadow: 0 2px 6px rgba(124, 58, 237, .1)
}

.goal-card {
  box-shadow: 0 4px 16px rgba(124, 58, 237, .12)
}

.mg-item {
  box-shadow: 0 2px 8px rgba(124, 58, 237, .1)
}

.ri {
  box-shadow: 0 2px 8px rgba(124, 58, 237, .1)
}

.bm-item {
  box-shadow: 0 2px 8px rgba(124, 58, 237, .1)
}

#fab {
  box-shadow: 0 4px 24px rgba(124, 58, 237, .3)
}

.fab-inner {
  box-shadow: 0 4px 20px rgba(124, 58, 237, .25)
}

.cal-day {
  box-shadow: 0 2px 6px rgba(124, 58, 237, .08)
}

.fr-ic {
  box-shadow: 0 2px 6px rgba(124, 58, 237, .15)
}

.ac-ic {
  box-shadow: 0 2px 6px rgba(124, 58, 237, .15)
}

.str {
  box-shadow: 0 4px 16px rgba(124, 58, 237, .12)
}

/* Light mode adjustments */
[data-theme="light"] .hdr {
  background: linear-gradient(135deg, rgba(147, 100, 255, .06), rgba(107, 63, 224, .02));
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04)
}

[data-theme="light"] #nav {
  background: linear-gradient(180deg, rgba(232, 228, 242, .95), rgba(245, 243, 250, .98));
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .04)
}

[data-theme="light"] body,
[data-theme="light"] #app {
  background: #f5f3fa !important
}

[data-theme="light"] .ac {
  background: var(--card-grad)
}

[data-theme="light"] .modal {
  background: linear-gradient(175deg, #f8f6fc, #f0edf8)
}

[data-theme="light"] #splash {
  background: #1a0a2e;
  background-image: radial-gradient(ellipse at 20% 0%, #4c1d95 0%, transparent 50%), radial-gradient(ellipse at 80% 100%, #3b0764 0%, transparent 50%), radial-gradient(ellipse at 50% 50%, #2e1065 0%, transparent 60%), radial-gradient(ellipse at 0% 80%, #5b21b6 0%, transparent 35%), radial-gradient(ellipse at 100% 20%, #1e1b4b 0%, transparent 40%)
}

[data-theme="light"] #fab,
[data-theme="light"] .fab-inner,
[data-theme="light"] .day-fab button {
  background: linear-gradient(135deg, #7c3aed, #5b21b6)
}

[data-theme="light"] .ni.act {
  color: #7c3aed
}

[data-theme="light"] .pill.act {
  background: linear-gradient(135deg, rgba(124, 58, 237, .15), rgba(107, 63, 224, .08)) !important;
  color: #5b21b6 !important
}

[data-theme="light"] .toggle.on {
  background: linear-gradient(135deg, #7c3aed, #5b21b6)
}

/* Bento grid cells - remove default tx-fr borders */
.tx-fields>div[style*="grid"] .tx-fr {
  border-bottom: none !important
}

.tx-fields>div[style*="grid"] .tx-fr.act {
  background: rgba(147, 100, 255, .06) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .03), 0 0 0 1px rgba(147, 100, 255, .15) !important
}

/* ===== LIGHT MODE COMPREHENSIVE FIX ===== */
/* Section containers - override dark gradients */
[data-theme="light"] #stGraphs>div,
[data-theme="light"] #savForecast>div,
[data-theme="light"] #savBills>div,
[data-theme="light"] #savingsContent>div,
[data-theme="light"] #savInsights>div {
  background: #fff !important;
  background-image: none !important;
  border: 1px solid rgba(100, 60, 180, .1) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05) !important
}

/* Section headers in those containers */
[data-theme="light"] #stGraphs>div>div:first-child,
[data-theme="light"] #savForecast>div>div:first-child,
[data-theme="light"] #savBills>div>div:first-child,
[data-theme="light"] #savingsContent>div>div:first-child,
[data-theme="light"] #savInsights>div>div:first-child {
  background: rgba(147, 100, 255, .06) !important;
  border-bottom: 1px solid rgba(100, 60, 180, .08) !important
}

/* Purple text - darker for light mode */
[data-theme="light"] #trendTitle,
[data-theme="light"] #catBarTitle,
[data-theme="light"] .sh span {
  color: #7c3aed !important
}

[data-theme="light"] [style*="color:#c4b5fd"] {
  color: #7c3aed !important
}

[data-theme="light"] [stroke="#c4b5fd"] {
  stroke: #7c3aed !important
}

[data-theme="light"] .sec {
  color: #7c3aed !important
}

[data-theme="light"] .hdr h1 {
  color: var(--text) !important
}

/* Account cards */
[data-theme="light"] .ac {
  background: rgba(147, 100, 255, .04) !important;
  border: 1px solid rgba(100, 60, 180, .1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05) !important
}

[data-theme="light"] .ac::before {
  display: none
}

[data-theme="light"] .ac-ic {
  background: rgba(147, 100, 255, .1) !important;
  border-color: rgba(100, 60, 180, .1) !important
}

[data-theme="light"] .ac-ic svg {
  stroke: #7c3aed !important
}

[data-theme="light"] .ac-tag {
  background: rgba(147, 100, 255, .08) !important;
  color: #6b6678 !important
}

/* Summary cards */
[data-theme="light"] .str {
  background: var(--bg2) !important;
  border: 3px solid #7c3aed !important
}

[data-theme="light"] .sc {
  background: #fff !important;
  border: 1px solid rgba(100, 60, 180, .08) !important
}

/* Numpad keys */
[data-theme="light"] .ck-n {
  background: rgba(147, 100, 255, .06) !important;
  color: var(--text) !important;
  border: 1px solid rgba(100, 60, 180, .08) !important
}

[data-theme="light"] .ck-o {
  background: rgba(147, 100, 255, .1) !important;
  color: #7c3aed !important;
  border: 1px solid rgba(100, 60, 180, .1) !important
}

[data-theme="light"] .ck-eq {
  background: linear-gradient(135deg, #7c3aed, #5b21b6) !important
}

/* TX form */
[data-theme="light"] .tx-btns {
  background: #f5f3fa !important
}

[data-theme="light"] .tx-card {
  background: rgba(147, 100, 255, .04) !important;
  border: 1px solid rgba(100, 60, 180, .08) !important
}

[data-theme="light"] .tx-fr {
  border-bottom-color: rgba(100, 60, 180, .06) !important
}

[data-theme="light"] .tx-fr .fr-ic {
  background: rgba(147, 100, 255, .08) !important
}

[data-theme="light"] .tx-fr .fr-ic svg {
  stroke: #7c3aed !important
}

[data-theme="light"] .tray-cd {
  border-bottom-color: rgba(100, 60, 180, .08) !important
}

/* Tray tiles */
[data-theme="light"] .tray-tile {
  background: rgba(147, 100, 255, .06) !important;
  border-color: rgba(100, 60, 180, .06) !important
}

[data-theme="light"] .tray-tile.sel {
  background: rgba(124, 58, 237, .1) !important;
  border-color: rgba(124, 58, 237, .25) !important
}

[data-theme="light"] .tray-tile.sel .tt-nm {
  color: #7c3aed !important
}

/* Date picker */
[data-theme="light"] .mc-d.sel {
  background: linear-gradient(135deg, #7c3aed, #5b21b6) !important;
  color: #fff !important
}

/* Type tabs */
[data-theme="light"] .tt {
  background: rgba(147, 100, 255, .06) !important;
  border: 1px solid rgba(100, 60, 180, .06) !important
}

[data-theme="light"] .tt button.at {
  background: rgba(124, 58, 237, .1) !important;
  color: #7c3aed !important
}

/* Action buttons */



[data-theme="light"] .tb-c {
  background: rgba(147, 100, 255, .06) !important;
  border: 1px solid rgba(100, 60, 180, .08) !important
}

[data-theme="light"] .tb-ic {
  background: rgba(147, 100, 255, .08) !important;
  color: #7c3aed !important;
  border: 1px solid rgba(100, 60, 180, .08) !important
}

/* Pills */
[data-theme="light"] .pills {
  background: rgba(147, 100, 255, .06) !important;
  border: 1px solid rgba(100, 60, 180, .06) !important
}

/* Frequency tiles/chips */
[data-theme="light"] .freq-chip {
  background: rgba(147, 100, 255, .04) !important;
  border-color: rgba(100, 60, 180, .1) !important
}

[data-theme="light"] .freq-chip.sel {
  background: rgba(124, 58, 237, .1) !important;
  border-color: rgba(124, 58, 237, .3) !important;
  color: #7c3aed !important
}

/* Goal cards */
[data-theme="light"] .goal-card {
  background: rgba(147, 100, 255, .04) !important;
  border: 1px solid rgba(100, 60, 180, .1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05) !important
}

[data-theme="light"] .sv-sphere {
  background: rgba(250, 248, 255, .8) !important;
  border-color: rgba(147, 100, 255, .15) !important;
  box-shadow: inset 0 4px 16px rgba(147, 100, 255, .06), 0 0 16px rgba(147, 100, 255, .05) !important
}

[data-theme="light"] .sv-liquid {
  background: linear-gradient(to top, rgba(139, 92, 246, .3), rgba(167, 139, 250, .12)) !important
}

[data-theme="light"] .sv-pct {
  text-shadow: none !important
}

[data-theme="light"] .bu-bar {
  background: rgba(147, 100, 255, .08) !important
}

/* Manage items */
[data-theme="light"] .mg-item {
  background: rgba(147, 100, 255, .04) !important;
  border: 1px solid rgba(100, 60, 180, .08) !important
}

[data-theme="light"] .ri {
  background: rgba(147, 100, 255, .04) !important;
  border: 1px solid rgba(100, 60, 180, .08) !important
}

[data-theme="light"] .bm-item {
  background: rgba(147, 100, 255, .04) !important;
  border: 1px solid rgba(100, 60, 180, .08) !important
}

/* Settings icons */
[data-theme="light"] .sr-ic {
  background: rgba(147, 100, 255, .08) !important
}

[data-theme="light"] .sr-ic svg {
  stroke: #7c3aed !important
}

/* Inputs */
[data-theme="light"] .fi:focus,
[data-theme="light"] .fs:focus {
  border-color: rgba(124, 58, 237, .3) !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .08) !important
}

/* Modals */
[data-theme="light"] .modal {
  background: #fff !important;
  border: none !important
}

[data-theme="light"] .co .cb {
  background: #fff !important;
  border: 1px solid rgba(100, 60, 180, .1) !important
}

/* Toast */
[data-theme="light"] .toast {
  background: #fff !important;
  border: 1px solid rgba(100, 60, 180, .1) !important;
  color: var(--text) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .1) !important
}

/* Search bar */
[data-theme="light"] .sb {
  background: rgba(147, 100, 255, .04) !important;
  border: 1px solid rgba(100, 60, 180, .08) !important
}

/* Month nav buttons */
[data-theme="light"] .mn button {
  background: rgba(147, 100, 255, .06) !important;
  border: 1px solid rgba(100, 60, 180, .08) !important
}

/* Icon buttons */
[data-theme="light"] .ib {
  background: rgba(147, 100, 255, .06) !important;
  border: 1px solid rgba(100, 60, 180, .08) !important
}

/* Calendar */
[data-theme="light"] .cal-day {
  background: rgba(147, 100, 255, .03) !important;
  border-color: rgba(100, 60, 180, .1) !important
}

[data-theme="light"] .cal-day.other {
  background: transparent !important;
  border-color: transparent !important
}

[data-theme="light"] .cal-day.hol {
  background: rgba(251, 191, 36, .08) !important;
  border-color: rgba(251, 191, 36, .2) !important
}

/* PIN screen */
[data-theme="light"] #pinScreen .pin-lock {
  border-color: rgba(124, 58, 237, .3) !important
}

[data-theme="light"] #pinScreen .pin-lock svg {
  color: #7c3aed !important
}

[data-theme="light"] #pinScreen .pin-dot {
  border-color: rgba(124, 58, 237, .2) !important
}

[data-theme="light"] #pinScreen .pin-dot.filled {
  background: #7c3aed !important;
  border-color: #7c3aed !important
}

[data-theme="light"] #pinScreen .pin-key:active {
  background: rgba(124, 58, 237, .08) !important
}

/* Bento grid cards in tx form */
[data-theme="light"] .tx-fields>div[style*="grid"] .tx-fr {
  background: rgba(147, 100, 255, .04) !important;
  border: 1px solid rgba(100, 60, 180, .1) !important
}

/* Bill dates */
[data-theme="light"] .bill-date.today {
  background: rgba(124, 58, 237, .08) !important;
  border-color: rgba(124, 58, 237, .15) !important
}

[data-theme="light"] .bill-date.today .bd-d {
  color: #7c3aed !important
}

/* Category type badges */
[data-theme="light"] .cat-type.both {
  background: rgba(124, 58, 237, .08) !important;
  color: #7c3aed !important
}

/* Chart wrapper */
[data-theme="light"] .cw {
  background: rgba(147, 100, 255, .03) !important;
  border: 1px solid rgba(100, 60, 180, .06) !important
}

/* Sec headers */
[data-theme="light"] .sec {
  color: #7c3aed !important
}






/* TX/REC fullscreen modal override */
#mo-tx-in,
#mo-rec-in {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  overflow: hidden;
  border-radius: 0;
  border: none;
  padding: max(env(safe-area-inset-top, 20px), 20px) 14px 14px;
  box-sizing: border-box;
  background: var(--bg);
  transform: translateY(100%);
  z-index: 201;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
  opacity: 0
}

#mo-tx.show #mo-tx-in,
#mo-rec.show #mo-rec-in {
  transform: translateY(0);
  opacity: 1
}

#mo-tx-in.closing,
#mo-rec-in.closing {
  transform: translateY(100%) !important;
  opacity: 0 !important;
  transition: transform .25s cubic-bezier(.4, 0, 1, 1), opacity .2s ease !important
}

/* Tray content transitions */
#txTray>* {
  animation: trayIn .2s ease both
}

@keyframes trayIn {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

[data-theme="light"] #mo-tx-in,
[data-theme="light"] #mo-rec-in {
  background: #f5f3fa
}
