@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;450;500;550;600;650;700;750;800&display=swap");
:root {
  font-family: "Be Vietnam Pro", sans-serif;
  color: #2e303c;
  background: #f8f9fc;
  font-synthesis: none;
  font-size: 13px;
  --purple: #7b61c8;
  --muted: #94939f;
  --line: #eeeef3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
button,
a {
  transition:
    background 0.18s,
    transform 0.18s,
    color 0.18s;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #baa5ef;
  outline-offset: 3px;
}
button:hover {
  filter: brightness(0.97);
}
a {
  text-decoration: none;
  color: inherit;
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.sidebar {
  width: 232px;
  position: fixed;
  inset: 0 auto 0 0;
  background: white;
  border-right: 1px solid var(--line);
  padding: 35px 21px 0;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -1.4px;
  padding-left: 15px;
  color: #35313f;
}
.brand-icon {
  background: var(--purple);
  color: white;
  border-radius: 12px;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  margin-right: 10px;
  transform: rotate(-7deg);
}
.brand-icon .icon {
  width: 23px;
  height: 23px;
}
.brand-dot {
  color: #a088d5;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 32px;
  background: #faf9fc;
  border: 1px solid #f0edf5;
  border-radius: 9px;
  padding: 12px 10px;
}
.workspace-icon {
  display: grid;
  place-items: center;
  background: #eae3f8;
  color: #8263b8;
  width: 31px;
  height: 33px;
  border-radius: 7px;
  font-size: 14px;
}
.workspace b {
  font-size: 11px;
}
.workspace small,
.profile small {
  display: block;
  color: #a3a0ac;
  font-size: 10px;
  margin-top: 5px;
}
.workspace > .icon,
.workspace > [data-icon] {
  margin-left: auto;
  color: #aaa;
}
.nav-label {
  font-size: 9px;
  color: #a19ea9;
  letter-spacing: 1.1px;
  margin: 0 12px 14px;
  font-weight: 600;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
nav button,
.settings {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 13px 15px;
  font-weight: 500;
  color: #777480;
  border-radius: 8px;
  width: 100%;
  font-size: 12px;
}
nav button.active,
.settings.active {
  background: #efeafa;
  color: #7c5bc1;
}
nav button.active {
  font-weight: 650;
}
nav button:hover,
.settings:hover {
  background: #f5f2fa;
}
.nav-count {
  margin-left: auto;
  border-radius: 5px;
  font-size: 10px;
  background: #f1eaf9;
  color: #896bb7;
  padding: 2px 6px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 55px;
}
.little-note {
  background: #f8f7fb;
  border: 1px solid #efecf5;
  border-radius: 11px;
  padding: 20px 15px 13px;
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
}
.little-note > .icon,
.little-note > [data-icon] {
  color: #9983c1;
  display: block;
  margin-bottom: 12px;
}
.little-note b {
  font-size: 12px;
  line-height: 1.9;
  font-weight: 550;
}
.little-note p {
  font-size: 10px;
  color: #aaa4b5;
  line-height: 1.9;
  margin-bottom: 12px;
}
.note-line {
  width: 90px;
  height: 70px;
  border: 1px solid #e1d9ee;
  border-radius: 50%;
  position: absolute;
  right: -44px;
  bottom: -25px;
  box-shadow:
    0 0 0 9px #f0edf7,
    0 0 0 10px #e8e1f1;
}
.settings {
  margin-bottom: 15px;
}
.profile {
  border-top: 1px solid var(--line);
  padding: 19px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
}
.avatar {
  height: 34px;
  width: 34px;
  border-radius: 50%;
  background: #f1e4d8;
  color: #a17d59;
  display: grid;
  place-items: center;
  font-weight: 600;
  border: 3px solid #fff;
  outline: 1px solid #eee6e0;
}
.avatar.small {
  width: 33px;
  height: 33px;
  font-size: 11px;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #91b59c;
  border-radius: 100%;
  margin-left: auto;
}
main {
  margin-left: 232px;
}
header {
  height: 77px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 38px;
}
.breadcrumb {
  font-size: 11px;
  color: #a19da9;
}
.breadcrumb span {
  margin: 0 13px;
  color: #ccc;
}
.breadcrumb b {
  font-weight: 500;
  color: #686373;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 23px;
}
.saved {
  font-size: 10px;
  color: #9894a0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.saved i {
  width: 6px;
  height: 6px;
  background: #95b29d;
  border-radius: 50%;
}
.icon-button {
  border: 0;
  background: transparent;
  position: relative;
  display: grid;
  place-items: center;
  padding: 7px;
  color: #898392;
}
.icon-button i {
  position: absolute;
  top: 5px;
  right: 7px;
  width: 5px;
  height: 5px;
  background: #aa90d7;
  border: 1px solid #fff;
  border-radius: 50%;
}
.main-content {
  padding: 32px 38px 0;
  max-width: 1550px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 1.7px;
  color: #a6a0b0;
  margin-bottom: 9px;
}
h1 {
  font-size: 25px;
  letter-spacing: -0.8px;
  margin: 0;
  font-weight: 650;
}
.sun {
  display: inline-block;
  color: #d6b576;
  font-size: 26px;
  font-weight: 400;
  margin-left: 7px;
}
.page-heading p {
  font-size: 11px;
  color: #96909f;
  margin: 9px 0 0;
}
.date-button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e9e7ef;
  border-radius: 7px;
  background: #fff;
  padding: 10px 12px;
  font-size: 10px;
  color: #79717f;
}
.date-button .icon {
  width: 15px;
  height: 15px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.summary-card {
  background: #fff;
  border: 1px solid #eeecf2;
  border-radius: 12px;
  padding: 21px 22px 18px;
  position: relative;
  overflow: hidden;
}
.summary-card.available {
  background: #8070c6;
  background: linear-gradient(110deg, #8170c8, #8b78cd);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 14px #7964bc15;
}
.card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 550;
  position: relative;
  z-index: 1;
  gap: 8px;
}
.card-label > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.card-label .icon {
  width: 17px;
  height: 17px;
  color: #9686b9;
}
.available .card-label .icon {
  color: #e6defa;
}
.pill {
  font-size: 8px;
  white-space: nowrap;
  padding: 5px 7px;
  border-radius: 4px;
  background: #ffffff25;
  font-weight: 400;
}
.orange-pill {
  background: #fcf2e7;
  color: #bf956b;
}
.green-pill {
  background: #edf5ef;
  color: #7a9b85;
}
.reserve-toggle {
  border: 1px solid #e0d8ef;
  border-radius: 5px;
  background: #f5f1fb;
  color: #8063ad;
  padding: 6px 8px;
  font-size: 9px;
  white-space: nowrap;
  flex-shrink: 0;
}
.reserve-toggle:hover {
  background: #ebe2f7;
}
.big-money {
  font-size: 30px;
  letter-spacing: -0.7px;
  font-weight: 600;
  margin: 24px 0 21px;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.currency {
  font-size: 0.71em;
  font-weight: 450;
  margin-left: 3px;
}
.debt-number {
  color: #bf936d;
}
.card-foot {
  font-size: 9px;
  color: #aaa3b2;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}
.card-foot .icon {
  width: 12px;
  height: 12px;
  margin-left: auto;
}
.available .card-foot {
  color: #e2dbf4;
}
.tiny-dot {
  width: 5px;
  height: 5px;
  background: #d0f0d8;
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
}
.card-art {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  right: -91px;
  bottom: -108px;
  box-shadow:
    0 0 0 22px #ffffff04,
    0 0 0 23px #ffffff0c,
    0 0 0 47px #ffffff03,
    0 0 0 48px #ffffff0b;
}
.principle {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 13px 1px 23px;
  font-size: 9px;
  color: #9992a4;
}
.principle > .icon {
  width: 13px;
  height: 13px;
  color: #aa9cbd;
}
.principle b {
  font-weight: 400;
  color: #aaa4b2;
}
.principle-spark {
  margin-left: auto;
  color: #baaad8;
  font-size: 20px;
}
.quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ece9f0;
  background: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 25px;
}
.quick-actions > span {
  font-size: 10px;
  color: #9a92a1;
  margin-right: auto;
}
.quick-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #ebe7f0;
  background: white;
  padding: 9px 15px;
  border-radius: 7px;
  font-size: 10px;
}
.quick-actions b {
  font-weight: 500;
}
.quick-actions .icon {
  width: 16px;
  height: 16px;
}
.orange-text {
  color: #c49a75;
}
.green-text {
  color: #7f9f8b !important;
}
.purple-text {
  color: #9277c6;
}
.muted {
  color: #999;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}
h2 {
  font-size: 13px;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.15px;
}
.count {
  display: inline-grid;
  place-items: center;
  margin-left: 5px;
  border: 1px solid #eae6f0;
  border-radius: 5px;
  color: #a397b4;
  font-size: 9px;
  min-width: 19px;
  height: 18px;
  font-weight: 400;
}
.text-button {
  border: 0;
  background: transparent;
  color: #9278be;
  font-size: 10px;
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.text-button .icon {
  width: 13px;
  height: 13px;
}
.wallet-grid {
  display: grid;
  grid-template-columns: repeat(var(--wallet-columns, 4), minmax(0, 1fr));
  gap: 15px;
}
.wallet-expand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 12px;
  padding: 11px 16px;
  border: 1px solid #eae7f0;
  border-radius: 8px;
  background: #fff;
  color: #9278be;
  font-size: 11px;
}
.wallet-expand:hover {
  background: #f3eefb;
}
.wallet-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #eae7f0;
  border-radius: 10px;
  padding: 17px 18px;
  text-align: left;
  position: relative;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.wallet-card:hover {
  border-color: #c4b3e4;
  transform: translateY(-2px);
}
.wallet-transfer {
  border: 0;
  border-radius: 6px;
  background: #f8f5fc;
  color: #9278be;
  font-size: 16px;
  padding: 5px 9px;
}
.wallet-delete {
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #a26970;
  font-size: 10px;
  padding: 7px 0;
  margin-top: 10px;
}
.wallet-delete:hover {
  color: #91444d;
  text-decoration: underline;
}
.wallet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 13px;
}
.icon-tile {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 9px;
}
.icon-tile .icon {
  width: 18px;
  height: 18px;
}
.orange {
  background: #fcf1e8;
  color: #c39a70;
}
.blue {
  background: #ecf0fb;
  color: #7c96cc;
}
.pink {
  background: #fbeef5;
  color: #c08aa9;
}
.purple {
  background: #f0eafb;
  color: #a18bc9;
}
.green {
  background: #edf5ef;
  color: #87a58f;
}
.wallet-arrow {
  font-size: 16px;
  color: #c2bbc9;
}
.wallet-card > b {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 550;
}
.wallet-card small {
  font-size: 9px;
  color: #aaa2b1;
  margin: 5px 0 14px;
}
.wallet-card strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.saving-badge {
  font-size: 7px;
  color: #ad9cbc;
  position: absolute;
  bottom: 5px;
  right: 9px;
}
.wallet-section {
  margin-bottom: 25px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.panel {
  border: 1px solid #eae7f0;
  border-radius: 11px;
  background: #fff;
  padding: 20px 21px;
}
.panel .section-heading {
  margin-bottom: 19px;
}
.section-heading select {
  background: #faf9fc;
  border: 1px solid #ece8f2;
  padding: 6px 8px;
  border-radius: 5px;
  color: #9b91a5;
  font-size: 9px;
}
.chart-body {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 187px;
}
.donut {
  width: 165px;
  height: 165px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transform: rotate(-90deg);
  position: relative;
}
.donut > div {
  background: #fff;
  width: 127px;
  height: 127px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(90deg);
}
.donut small {
  font-size: 9px;
  color: #a49aac;
}
.donut strong {
  font-size: 22px;
  font-weight: 550;
  margin: 9px 0;
}
.donut > div > span {
  font-size: 8px;
  color: #b2a9ba;
}
.chart-legend {
  flex: 1;
}
.chart-legend > div:not(.legend-caption) {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 7px;
  margin: 16px 0;
  font-size: 10px;
}
.chart-legend > div > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9a91a4;
}
.chart-legend i {
  height: 7px;
  width: 7px;
  border-radius: 2px;
}
.chart-legend b {
  font-size: 10px;
  font-weight: 500;
}
.chart-legend small {
  grid-column: 2;
  text-align: right;
  font-size: 8px;
  color: #aea5b8;
}
.legend-caption {
  font-size: 8px;
  line-height: 1.8;
  color: #b0a7b9;
  border-top: 1px dashed #eee9f4;
  padding-top: 11px;
  margin-top: 17px;
}
.chart-note {
  border-top: 1px solid #f1edf5;
  padding-top: 15px;
  margin-top: 21px;
  display: flex;
  gap: 7px;
  align-items: center;
  color: #aea3b8;
  font-size: 8px;
}
.chart-note .icon {
  width: 14px;
  height: 14px;
  color: #b49dcf;
}
.debt-group-label {
  font-size: 8px;
  letter-spacing: 0.65px;
  display: flex;
  gap: 6px;
  align-items: center;
  color: #a899b0;
  margin: 13px 0 5px;
}
.orange-dot {
  background: #d4aa80;
}
.purple-dot {
  background: #b09bcc;
}
.debt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f0f6;
}
.debt-scroll {
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #c5b6df #f6f2fb;
  scrollbar-gutter: stable;
  padding-right: 10px;
}
.debt-filter-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.debt-filter-bar label {
  flex: 1;
  min-width: 155px;
  margin: 0;
  font-size: 9px;
}
.debt-filter-bar select {
  padding: 8px 10px;
  font-size: 10px;
  background: #faf8fd;
}
.debt-filter-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-bottom: 3px;
}
.debt-filter-total span {
  color: #a394b0;
  font-size: 9px;
}
.debt-filter-total strong {
  font-size: 12px;
  font-weight: 550;
}
.debt-scroll-full {
  max-height: min(560px, 65vh);
}
.debt-scroll:focus-visible {
  outline: 2px solid #baa5ef;
  outline-offset: 3px;
  border-radius: 5px;
}
.debt-scroll-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #a394b0;
  font-size: 9px;
  white-space: nowrap;
}
.debt-scroll-hint .icon {
  width: 12px;
  height: 12px;
}
.debt-avatar {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.debt-avatar .icon {
  width: 15px;
  height: 15px;
}
.debt-info b {
  font-size: 10px;
  font-weight: 500;
}
.debt-info small {
  display: block;
  font-size: 8px;
  color: #ada2b6;
  margin-top: 5px;
}
.debt-amount {
  margin-left: auto;
  text-align: right;
}
.debt-amount > b {
  font-size: 11px;
  font-weight: 500;
}
.debt-amount button {
  border: 0;
  background: none;
  color: #aa90c6;
  font-size: 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  margin-top: 4px;
  padding: 0;
}
.debt-amount .icon {
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
}
.debt-note {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #b4aaba;
  font-size: 8px;
  padding-top: 13px;
}
.debt-note .icon {
  width: 12px;
  height: 12px;
}
.transactions {
  padding-bottom: 8px;
}
.transaction-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 15px;
}
.tabs {
  display: flex;
  gap: 5px;
}
.tabs button {
  border: 0;
  border-radius: 5px;
  background: none;
  font-size: 9px;
  color: #aaa0b2;
  padding: 7px 10px;
}
.tabs button.selected {
  color: #8c6ebe;
  background: #f0eafa;
  font-weight: 500;
}
.transaction-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  color: #afa6b6;
}
.transaction-date .icon {
  width: 12px;
  height: 12px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  text-align: left;
}
th {
  font-size: 8px;
  font-weight: 450;
  letter-spacing: 0.5px;
  color: #afa4b8;
  padding: 11px 12px;
  background: #fbfafd;
}
th:first-child {
  border-radius: 5px 0 0 5px;
}
td {
  padding: 12px;
  font-size: 10px;
  border-bottom: 1px solid #f3f0f6;
  color: #a295ad;
}
td:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #655b70;
}
td:first-child b {
  font-weight: 500;
}
tr:last-child td {
  border: 0;
}
.transaction-icon {
  display: grid;
  place-items: center;
  height: 29px;
  width: 29px;
  border-radius: 8px;
}
.transaction-icon .icon {
  height: 15px;
  width: 15px;
}
.category-tag {
  font-size: 8px;
  background: #f7f5fa;
  padding: 4px 7px;
  border-radius: 4px;
  color: #a394b0;
}
th:last-child,
td:last-child {
  text-align: right;
}
.amount {
  color: #6e617b;
  font-weight: 550;
  font-size: 11px;
}
.empty {
  padding: 40px !important;
  text-align: center !important;
  display: table-cell !important;
}
.empty-small {
  font-size: 10px;
  color: #a699af;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 0 24px;
  font-size: 8px;
  color: #b4aaba;
  gap: 20px;
}
footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
}
footer .icon {
  width: 11px;
  height: 11px;
}
.footer-spark {
  font-size: 17px;
  margin-left: 4px;
  color: #b49dcd;
}
.savings-hero {
  padding: 45px;
  background: #eee8f8;
  border-radius: 14px;
  text-align: center;
  margin-bottom: 30px;
}
.savings-hero .icon-tile {
  margin: 0 auto 20px;
}
.savings-hero h2 {
  font-size: 23px;
}
.savings-hero p {
  color: #8d7d9d;
  font-size: 12px;
}
.savings-hero .primary {
  margin: 20px auto 0;
}
.settings-panel h2 {
  margin: 10px 0 15px;
}
.settings-panel p {
  line-height: 1.9;
  color: #93859e;
  max-width: 700px;
  margin-bottom: 20px;
}
.settings-panel button {
  margin-bottom: 28px;
}
.primary,
.secondary {
  border-radius: 7px;
  padding: 11px 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  font-size: 11px;
  border: 1px solid #e8e0ef;
  background: #fff;
}
.primary {
  background: #8267c4;
  border-color: #8267c4;
  color: white;
}
.primary .icon {
  width: 16px;
  height: 16px;
}
.negative {
  color: #bd716e;
}
dialog {
  border: 1px solid #e9e0f2;
  border-radius: 16px;
  width: 460px;
  max-width: calc(100% - 30px);
  padding: 27px;
  color: #3f344a;
  box-shadow: 0 30px 100px #34204c30;
}
dialog::backdrop {
  background: #27203165;
  backdrop-filter: blur(4px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-head h2 {
  font-size: 20px;
}
.modal-head .eyebrow {
  font-size: 7px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #80718b;
  margin-bottom: 17px;
}
input,
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #e5ddeb;
  border-radius: 7px;
  background: white;
  color: #5b4b67;
  outline-color: #ac91d7;
}
input[name="amount"] {
  font-size: 23px;
  letter-spacing: 1px;
  padding: 16px 12px;
}
.form-row {
  display: flex;
  gap: 12px;
}
.form-row label {
  flex: 1;
  min-width: 0;
}
.form-notice {
  background: #f6f1fc;
  padding: 14px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.form-help {
  font-size: 10px;
  color: #a08cae;
  line-height: 1.9;
}
.form-error {
  font-size: 11px;
  color: #bb5e5e;
  line-height: 1.8;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 23px;
}
.modal-actions .primary {
  min-width: 150px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #463558;
  color: white;
  padding: 14px 23px;
  border-radius: 9px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 100;
  font-size: 12px;
  box-shadow: 0 5px 20px #30203920;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1450px) {
  .main-content {
    padding-top: 38px;
  }
  .summary-card {
    padding: 25px;
  }
  .big-money {
    font-size: 36px;
  }
  .wallet-card {
    min-height: 175px;
  }
  .chart-body {
    min-height: 210px;
  }
  .donut {
    width: 182px;
    height: 182px;
  }
  .donut > div {
    width: 142px;
    height: 142px;
  }
  .debt-row {
    padding: 13px 0;
  }
  .card-foot {
    font-size: 10px;
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 205px;
    padding-left: 15px;
    padding-right: 15px;
  }
  main {
    margin-left: 205px;
  }
  .main-content {
    padding: 27px 25px 0;
  }
  header {
    padding: 0 25px;
  }
  .summary-grid {
    gap: 12px;
  }
  .summary-card {
    padding: 18px 15px;
  }
  .big-money {
    font-size: 26px;
  }
  .card-label {
    font-size: 10px;
  }
  .pill {
    font-size: 7px;
    padding: 4px;
  }
  .card-foot {
    font-size: 8px;
  }
  .quick-actions {
    gap: 7px;
    padding: 11px;
  }
  .quick-actions button {
    padding: 9px 10px;
    font-size: 9px;
  }
  .chart-body {
    gap: 18px;
  }
  .donut {
    width: 135px;
    height: 135px;
  }
  .donut > div {
    width: 104px;
    height: 104px;
  }
  .donut strong {
    font-size: 18px;
  }
  .chart-legend b {
    font-size: 9px;
  }
  .panel {
    padding: 18px 16px;
  }
  .detail-grid {
    gap: 16px;
  }
  .chart-legend > div:not(.legend-caption) {
    font-size: 9px;
  }
  .wallet-card {
    padding: 15px;
  }
  .wallet-card strong {
    font-size: 18px;
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 75px;
    padding: 25px 10px;
  }
  .brand {
    font-size: 0;
    padding: 0;
  }
  .brand-icon {
    margin: 0 auto;
  }
  .brand-dot,
  .workspace,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    margin-top: 45px;
  }
  nav button {
    font-size: 0;
    padding: 14px 17px;
    gap: 0;
  }
  nav .nav-count {
    display: none;
  }
  main {
    margin-left: 75px;
  }
  .card-label {
    flex-wrap: wrap;
    gap: 8px;
  }
  .pill {
    font-size: 7px;
  }
  .big-money {
    font-size: 25px;
  }
  .card-foot {
    font-size: 7px;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .chart-body {
    flex-direction: column;
    gap: 0;
  }
  .chart-legend {
    width: 100%;
  }
  .chart-legend > div:not(.legend-caption) {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
  }
  .chart-legend small {
    display: none;
  }
  .legend-caption {
    display: none;
  }
  .debt-row {
    padding: 19px 0;
  }
  .wallet-grid {
    gap: 10px;
  }
  .wallet-card {
    padding: 13px;
  }
  .wallet-card strong {
    font-size: 17px;
  }
  .saving-badge {
    font-size: 6px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    width: 100%;
    height: 62px;
    top: auto;
    bottom: 0;
    border-top: 1px solid #e9e2f2;
    padding: 5px 8px;
    overflow-x: auto;
  }
  .brand {
    display: none;
  }
  nav {
    margin: 0;
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
  }
  nav button {
    flex: 1 1 0;
    min-width: 0;
    font-size: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 7px 2px;
  }
  nav button .icon {
    width: 18px;
    height: 18px;
  }
  main {
    margin: 0 0 62px;
    min-width: 0;
  }
  header {
    height: 58px;
    padding: 0 18px;
    min-width: 0;
  }
  .header-right {
    gap: 15px;
    min-width: 0;
  }
  .saved {
    font-size: 8px;
  }
  .breadcrumb {
    font-size: 9px;
  }
  .breadcrumb span {
    margin: 0 7px;
  }
  .main-content {
    padding: 23px 17px 0;
    min-width: 0;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 10px;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1.1px;
  }
  h1 {
    font-size: 21px;
  }
  .sun {
    font-size: 20px;
  }
  .page-heading p {
    font-size: 9px;
    line-height: 1.8;
    max-width: 220px;
  }
  .date-button {
    font-size: 0;
    padding: 8px;
    margin-top: 20px;
  }
  .date-button .icon {
    width: 17px;
    height: 17px;
  }
  .date-button span:last-child {
    display: none;
  }
  .summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .summary-card.available {
    grid-column: 1/-1;
  }
  .summary-card.available .card-label {
    font-size: 12px;
  }
  .summary-card.available .big-money {
    font-size: 36px;
    margin: 19px 0;
  }
  .summary-card {
    padding: 16px 14px;
  }
  .summary-card .big-money {
    font-size: 23px;
    margin: 17px 0;
  }
  .summary-card:not(.available) .card-label {
    font-size: 9px;
  }
  .summary-card:not(.available) .card-label .icon {
    display: none;
  }
  .summary-card:not(.available) .pill {
    font-size: 6px;
  }
  .card-foot {
    font-size: 7px;
    white-space: normal;
    line-height: 1.6;
  }
  .available .card-foot {
    font-size: 9px;
  }
  .card-foot .icon {
    display: none;
  }
  .principle {
    font-size: 8px;
    line-height: 1.8;
    margin: 12px 0 18px;
  }
  .principle b {
    display: block;
  }
  .quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
  }
  .quick-actions > span {
    grid-column: 1/-1;
    font-size: 9px;
    margin-bottom: 3px;
  }
  .quick-actions button {
    padding: 10px;
    font-size: 10px;
  }
  .wallet-grid {
    grid-template-columns: repeat(
      var(--mobile-wallet-columns, 2),
      minmax(0, 1fr)
    );
    gap: 12px;
  }
  .wallet-card {
    padding: 15px;
    min-height: 156px;
  }
  .wallet-card strong {
    font-size: 20px;
  }
  .wallet-card small {
    font-size: 9px;
  }
  .wallet-card > b {
    font-size: 11px;
  }
  .saving-badge {
    font-size: 7px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .chart-body {
    flex-direction: row;
    gap: 25px;
    min-height: 185px;
  }
  .donut {
    width: 155px;
    height: 155px;
  }
  .donut > div {
    width: 119px;
    height: 119px;
  }
  .chart-legend > div:not(.legend-caption) {
    display: grid;
  }
  .chart-legend small {
    display: block;
  }
  .legend-caption {
    display: block;
    font-size: 7px;
  }
  .chart-note {
    margin-top: 7px;
    font-size: 8px;
  }
  .panel {
    padding: 18px;
  }
  .debt-row {
    padding: 13px 0;
  }
  .debt-info b {
    font-size: 11px;
  }
  .debt-info small {
    font-size: 9px;
  }
  .debt-amount > b {
    font-size: 12px;
  }
  .debt-amount button {
    font-size: 9px;
  }
  .debt-note {
    font-size: 8px;
  }
  .transaction-date {
    display: none;
  }
  .tabs {
    gap: 1px;
  }
  .tabs button {
    font-size: 8px;
    padding: 6px 8px;
  }
  .transactions {
    padding: 17px 12px 6px;
  }
  .transactions h2 {
    margin-left: 5px;
  }
  .transactions th,
  .transactions td {
    padding: 10px 8px;
  }
  td:first-child {
    min-width: 160px;
  }
  footer {
    font-size: 7px;
    align-items: flex-start;
    line-height: 1.8;
  }
  footer > span:last-child {
    display: none;
  }
  .savings-hero {
    padding: 30px 18px;
  }
  .savings-hero h2 {
    font-size: 20px;
  }
  .settings-panel p {
    font-size: 11px;
  }
  .settings-panel {
    padding: 25px 20px;
  }
  .debt-filter-bar {
    align-items: stretch;
  }
  .debt-filter-bar label {
    min-width: 0;
  }
  .debt-filter-total {
    align-items: flex-start;
  }
  dialog {
    width: calc(100% - 20px);
    max-width: none;
    max-height: calc(100dvh - 20px);
    margin: auto;
    padding: 20px;
    overflow-y: auto;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .modal-actions {
    flex-direction: column-reverse;
  }
  .modal-actions .primary,
  .modal-actions .secondary {
    width: 100%;
  }
  #toast {
    width: 90%;
    text-align: center;
    bottom: 78px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (max-width: 430px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .summary-card.available {
    grid-column: auto;
  }
  .summary-card.available .big-money {
    font-size: clamp(27px, 9vw, 36px);
  }
  .wallet-grid {
    grid-template-columns: 1fr;
  }
  .wallet-card {
    min-height: 132px;
  }
  .chart-body {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .donut {
    margin: 0 auto;
  }
  .chart-legend > div:not(.legend-caption) {
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .chart-legend small {
    display: block;
  }
  .saved,
  .breadcrumb > :not(b) {
    display: none;
  }
  .header-right {
    gap: 9px;
  }
}
.section-heading select {
  width: auto;
  flex-shrink: 0;
}
.mobile-settings {
  display: none;
}
@media (max-width: 700px) {
  nav .mobile-settings {
    display: flex;
  }
  .chart-legend > div > span {
    white-space: nowrap;
  }
}

.debt-kind-toggle {
  display: block;
  margin-top: 7px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #9278be;
  font-size: 9px;
  text-align: left;
}
.debt-kind-toggle:hover {
  text-decoration: underline;
}

.debt-info small.debt-due-alert {
  color: #bb6756;
  font-weight: 500;
}

[hidden] {
  display: none !important;
}
body:not(.authenticated) > .sidebar,
body:not(.authenticated) > main {
  display: none;
}
body.authenticated .auth-shell {
  display: none;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 80px;
  max-width: 1140px;
  margin: auto;
  padding: 60px 40px;
}
.auth-intro .brand {
  display: flex;
  width: fit-content;
  padding: 0;
  margin-bottom: 64px;
  font-size: 36px;
}
.auth-intro .brand-icon {
  margin-right: 12px;
}
.auth-intro h1 {
  font-size: 38px;
  line-height: 1.45;
  letter-spacing: -1.3px;
  margin: 18px 0;
}
.auth-intro > p {
  color: #95879e;
  line-height: 1.9;
  max-width: 385px;
  font-size: 13px;
  margin-bottom: 32px;
}
.auth-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8a77a1;
  margin: 18px 0;
  font-size: 12px;
}
.auth-benefit .icon {
  width: 18px;
  height: 18px;
}
.auth-card {
  border: 1px solid #e9e1f2;
  border-radius: 18px;
  background: #fff;
  padding: 30px;
  box-shadow: 0 12px 50px #76608c08;
}
.auth-tabs {
  display: flex;
  padding: 5px;
  background: #f7f4fc;
  border-radius: 9px;
  margin-bottom: 32px;
}
.auth-tabs button {
  flex: 1;
  border: 0;
  padding: 10px 8px;
  color: #9c8daa;
  background: transparent;
  border-radius: 6px;
  font-size: 12px;
}
.auth-tabs .selected {
  background: #fff;
  color: #8061b3;
  box-shadow: 0 2px 6px #4830590b;
}
.auth-card h2 {
  font-size: 23px;
}
.auth-description {
  margin: 12px 0 27px;
  color: #a092ac;
  font-size: 11px;
  line-height: 1.8;
}
.auth-card fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.auth-card input {
  padding: 13px;
}
.auth-card .primary {
  width: 100%;
  padding: 13px;
}
.auth-footnote {
  text-align: center;
  font-size: 10px;
  line-height: 1.9;
  color: #aea1b8;
  margin: 20px 0 0;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.password-form {
  max-width: 420px;
  margin: 20px 0 35px;
}
#sync-status {
  max-width: 180px;
}
@media (max-width: 800px) {
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 460px;
    padding: 35px 20px;
  }
  .auth-intro .brand {
    margin-bottom: 25px;
    font-size: 30px;
  }
  .auth-intro h1 {
    font-size: 25px;
  }
  .auth-intro > p,
  .auth-benefit {
    display: none;
  }
  .auth-card {
    padding: 25px;
  }
  .auth-card h2 {
    font-size: 20px;
  }
  .auth-tabs {
    margin-bottom: 22px;
  }
}
