[hidden] {
  display: none !important;
}
:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #243b37;
  background: #f5f6f2;
  font-synthesis: none;
  font-size: 14px;
  --green: #143c37;
  --muted: #7b8882;
  --line: #e7ebe3;
  --lime: #c9edbd;
  --white: #fff;
  --red: #b85245;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #85ae91;
  outline-offset: 3px;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 600;
  margin-bottom: 8px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
p {
  line-height: 1.7;
}
small,
.muted {
  color: var(--muted);
}
.loading {
  padding: 15vh;
  text-align: center;
}
.shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 38px 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 650;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.brand span {
  margin-bottom: 2px;
}
.side-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #a0aaa3;
  margin: 48px 14px 16px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav button {
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
  border: 0;
  background: none;
  border-radius: 9px;
  padding: 14px;
  color: #77857e;
  font-weight: 500;
}
.nav button.active {
  color: var(--green);
  background: #eaf1e7;
}
.nav button:hover {
  background: #f2f5ef;
}
.icon {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  flex-shrink: 0;
}
.sidebar-foot {
  margin-top: auto;
}
.side-note {
  padding: 18px 14px;
  border-radius: 12px;
  background: #f5f7f1;
  color: #6c7d70;
  font-size: 12px;
  line-height: 1.8;
}
.side-note strong {
  display: block;
  color: #486347;
  margin-bottom: 4px;
}
.profile {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-top: 26px;
  padding: 10px 2px;
}
.avatar {
  background: #f0e9db;
  color: #746953;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
}
.profile b {
  font-size: 12px;
  display: block;
}
.profile small {
  font-size: 10px;
}
.logout {
  background: none;
  border: 0;
  color: #8b9691;
  margin-left: auto;
  padding: 8px;
}
.main {
  padding: 0 42px 44px;
  max-width: 1600px;
  width: 100%;
  margin: auto;
}
.topbar {
  height: 91px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  color: #8a948e;
  font-size: 12px;
}
.crumb {
  color: #33473e;
}
.top-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.status {
  display: flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 6px;
  height: 6px;
  background: #60947a;
  border-radius: 100%;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}
.page-head p {
  margin: 0;
  color: #839088;
  font-size: 13px;
}
.eyebrow {
  color: #829180;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 16px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 500;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.button.soft {
  background: #edf3e7;
  border-color: transparent;
  color: #315d3e;
}
.button.danger {
  color: var(--red);
}
.button.link {
  background: none;
  border: 0;
  padding: 0;
  color: #648061;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stats {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 25px;
}
.stat {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  padding: 23px 25px;
  min-height: 150px;
}
.stat.hero {
  position: relative;
  background: var(--green);
  color: #fff;
  overflow: hidden;
  border: 0;
}
.stat.hero:after {
  content: "";
  width: 230px;
  height: 230px;
  border: 1px solid #ffffff15;
  border-radius: 50%;
  position: absolute;
  right: -80px;
  top: -100px;
  box-shadow:
    0 0 0 27px #ffffff05,
    0 0 0 54px #ffffff03;
  pointer-events: none;
}
.stat-label {
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  color: #7e8b81;
}
.hero .stat-label {
  color: #c4d9cc;
}
.stat-value {
  font-size: 29px;
  font-weight: 550;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.stat-value .unit {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  margin-right: 7px;
  opacity: 0.75;
}
.stat small {
  font-size: 11px;
}
.hero small {
  color: #acc6b6;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
  gap: 12px;
}
.section-head h2 {
  margin: 0;
}
.section-head small {
  font-size: 11px;
}
.account-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 27px;
}
.account-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  position: relative;
  min-width: 0;
}
.account-card .bankrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.bank-logo {
  width: 33px;
  height: 33px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f7ede8;
  color: #a35940;
  font-size: 9px;
  font-weight: 750;
}
.bank-logo.cash {
  background: #edf3df;
  color: #648356;
}
.bank-logo.card {
  background: #e9edf5;
  color: #697c9f;
}
.bankrow b {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}
.bankrow small {
  font-size: 10px;
}
.currency {
  margin-left: auto;
  background: #f5f6f1;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 9px;
  font-weight: 600;
  color: #7c887f;
}
.balance {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 8px 0;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 11px;
}
.card-foot small {
  font-size: 10px;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 24px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  min-width: 0;
}
.panel .section-head {
  margin-bottom: 23px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  color: #98a198;
  font-size: 9px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0 10px 14px;
}
td {
  border-top: 1px solid #f0f2ed;
  padding: 16px 10px;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td:last-child,
th:last-child {
  text-align: right;
  padding-right: 0;
}
.merchant-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}
.merchant-cell b {
  font-size: 12px;
  display: block;
  font-weight: 550;
  margin-bottom: 4px;
}
.merchant-cell small {
  font-size: 10px;
}
.transaction-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f1f3e9;
  display: grid;
  place-items: center;
  color: #7b8f60;
}
.transaction-icon.income {
  background: #eaf3ef;
  color: #608d78;
}
.transaction-icon.transfer {
  background: #edf0f6;
  color: #7790a5;
}
.pill {
  display: inline-block;
  font-size: 10px;
  border-radius: 5px;
  padding: 5px 8px;
  background: #f5f5ef;
  color: #939584;
}
.amount {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 550;
}
.positive {
  color: #53886b;
}
.negative {
  color: var(--red);
}
.donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 20px auto;
  width: 166px;
  height: 166px;
}
.donut {
  width: 166px;
  height: 166px;
  border-radius: 50%;
  background: #f0f3e8;
  transform: rotate(-90deg);
}
.donut-hole {
  position: absolute;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 12px;
  color: #899585;
}
.donut-hole b {
  color: #344d38;
  font-size: 24px;
  letter-spacing: -1px;
  margin: 5px 0;
}
.legend {
  margin-top: 28px;
}
.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  color: #75806f;
  font-size: 11px;
}
.legend-row i {
  height: 7px;
  width: 7px;
  border-radius: 2px;
}
.legend-row b {
  margin-left: auto;
  color: #59694f;
  font-size: 11px;
  font-weight: 500;
}
.rate-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 23px;
  border-top: 1px solid var(--line);
  padding: 20px 0 0;
  color: #8a9688;
  font-size: 11px;
  flex-wrap: wrap;
}
.rate-strip strong {
  font-weight: 500;
  color: #65795e;
}
.rate-strip .right {
  margin-left: auto;
}
.empty {
  text-align: center;
  padding: 36px 15px;
  color: #899784;
  font-size: 12px;
  line-height: 1.8;
}
.empty strong {
  display: block;
  color: #4c6450;
  margin-bottom: 7px;
  font-weight: 500;
}
.notice {
  background: #f0f3e7;
  border: 1px solid #e6ebd7;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 12px;
  color: #788260;
  line-height: 1.7;
}
.notice a {
  font-weight: 600;
}
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.filters input {
  flex: 1;
  min-width: 180px;
}
.filters select {
  width: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.full {
  grid-column: 1/-1;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #607366;
  font-size: 12px;
  font-weight: 500;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #dfe5db;
  border-radius: 7px;
  padding: 12px;
  background: #fff;
  color: #314b39;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #83a18b;
  box-shadow: 0 0 0 3px #729a7710;
}
input:disabled,
select:disabled {
  background: #f2f4ee;
}
textarea {
  resize: vertical;
  min-height: 75px;
}
input[type="checkbox"] {
  width: auto;
}
input[type="month"] {
  max-width: 165px;
}
dialog {
  border: 0;
  border-radius: 17px;
  padding: 28px;
  width: min(560px, calc(100% - 28px));
  max-height: 92dvh;
  color: #314b39;
  box-shadow: 0 25px 100px #17302630;
}
dialog::backdrop {
  background: #19322c70;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.dialog-head h2 {
  margin: 0;
  font-size: 22px;
}
.close {
  border: 0;
  background: #f0f3eb;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #788b74;
  font-size: 20px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 23px;
}
.form-help {
  font-size: 11px;
  color: #8a9785;
  line-height: 1.6;
  margin: 0;
}
.error {
  color: var(--red);
  font-size: 12px;
  line-height: 1.5;
  min-height: 0;
}
.error:not(:empty) {
  padding: 12px;
  background: #fdf0ec;
  border-radius: 6px;
  margin-top: 14px;
}
.type-tabs {
  display: flex;
  background: #f1f4ed;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 23px;
  gap: 4px;
}
.type-tabs button {
  flex: 1;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #8a9884;
  font-size: 12px;
}
.type-tabs button.selected {
  background: #fff;
  color: #31583a;
  box-shadow: 0 1px 4px #00000008;
}
.big-amount {
  font-size: 27px;
  padding: 17px;
}
.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.auth-art {
  background: var(--green);
  padding: 60px;
  color: #eaf5e8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-art h1 {
  font-size: 65px;
  max-width: 520px;
  font-weight: 450;
  line-height: 1.07;
  letter-spacing: -3px;
}
.auth-art p {
  color: #9ab8a7;
  max-width: 400px;
}
.auth-art .rings {
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid #bddabc25;
  border-radius: 50%;
  right: -250px;
  top: 25%;
  box-shadow:
    0 0 0 65px #bddabc07,
    0 0 0 130px #bddabc04;
  pointer-events: none;
}
.auth-form {
  padding: 50px;
  display: grid;
  place-content: center;
}
.auth-form > div {
  width: min(370px, 100%);
}
.auth-form h2 {
  font-size: 27px;
  margin-bottom: 10px;
}
.auth-form form {
  display: grid;
  gap: 19px;
  margin-top: 30px;
}
.auth-form .button {
  padding: 14px;
}
.auth-form small {
  display: block;
  font-size: 11px;
  line-height: 1.7;
  margin-top: 25px;
}
.rule-row {
  display: flex;
  gap: 15px;
  padding: 20px 0;
  align-items: center;
  border-top: 1px solid var(--line);
}
.rule-row:first-of-type {
  border-top: 0;
}
.rule-row h3 {
  margin: 0 0 7px;
}
.rule-row .rule-detail {
  flex: 1;
}
.rule-row small {
  font-size: 11px;
  line-height: 1.7;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.settings-grid form {
  display: grid;
  gap: 18px;
}
.settings-grid h2 {
  margin-bottom: 0;
}
.progress {
  height: 4px;
  background: #f1f3ed;
  border-radius: 5px;
  margin-top: 16px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: #8caa83;
}
.text-button {
  border: 0;
  background: none;
  color: #69815c;
  font-size: 11px;
  padding: 5px;
}
.mobile-brand {
  display: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #234b3e;
  color: #fff;
  padding: 14px 22px;
  border-radius: 9px;
  font-size: 12px;
  z-index: 100;
  transition: transform 0.2s;
  max-width: 90vw;
  box-shadow: 0 10px 35px #15342d25;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
}
.mobile-add {
  display: none;
}
.no-wrap {
  white-space: nowrap;
}
@media (min-width: 1500px) {
  .main {
    padding-left: 58px;
    padding-right: 58px;
  }
  .stat {
    min-height: 165px;
  }
  .stat-value {
    font-size: 34px;
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding: 30px 15px;
  }
  .main {
    padding: 0 24px 35px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 20px;
  }
  .stat-value {
    font-size: 25px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .account-strip {
    gap: 12px;
  }
  .spending-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .spending-panel .section-head {
    grid-column: 1/-1;
  }
  .spending-panel .legend {
    margin-top: 10px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    bottom: 0;
    top: auto;
    height: 68px;
    width: 100%;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 10;
    border-top: 1px solid var(--line);
    border-right: 0;
  }
  .sidebar > .brand,
  .side-label,
  .sidebar-foot {
    display: none;
  }
  .nav {
    flex-direction: row;
    justify-content: space-around;
    height: 100%;
    gap: 0;
  }
  .nav button {
    flex-direction: column;
    font-size: 9px;
    gap: 5px;
    padding: 12px 7px;
    border-radius: 0;
    min-width: 50px;
  }
  .nav button.active {
    background: none;
    color: #355e39;
    border-top: 2px solid #548252;
    padding-top: 10px;
  }
  .nav button .icon {
    height: 19px;
    width: 19px;
  }
  .main {
    padding: 0 18px 100px;
  }
  .topbar {
    height: 68px;
    margin-bottom: 25px;
  }
  .mobile-brand {
    display: flex;
    font-size: 21px;
    gap: 8px;
  }
  .mobile-brand img {
    width: 28px;
    height: 28px;
  }
  .crumb {
    display: none;
  }
  .top-actions > .status {
    display: none;
  }
  .page-head {
    margin-bottom: 22px;
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 25px;
  }
  .page-head p {
    font-size: 12px;
    max-width: 240px;
  }
  .page-head > .actions > .button:not(.primary) {
    display: none;
  }
  .page-head .button {
    padding: 11px;
  }
  .page-head .button .wide {
    display: none;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 26px;
  }
  .stat.hero {
    grid-column: 1/-1;
    padding: 22px;
    min-height: 155px;
  }
  .stat {
    padding: 17px;
    min-height: 132px;
  }
  .stat-value {
    font-size: 22px;
  }
  .stat.hero .stat-value {
    font-size: 33px;
  }
  .stat-label {
    font-size: 11px;
    margin-bottom: 18px;
  }
  .stat small {
    font-size: 10px;
  }
  .stat-value .unit {
    font-size: 12px;
  }
  .account-strip {
    grid-template-columns: repeat(3, 240px);
    overflow: auto;
    margin-right: -18px;
    padding-right: 18px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }
  .account-card {
    scroll-snap-align: start;
    padding: 18px;
  }
  .account-grid {
    grid-template-columns: 1fr;
    overflow: visible;
    margin-right: 0;
    padding: 0;
  }
  .columns {
    gap: 18px;
  }
  .panel {
    padding: 19px;
  }
  .section-head h2 {
    font-size: 16px;
  }
  th,
  td {
    padding-left: 6px;
    padding-right: 6px;
  }
  .hide-mobile {
    display: none;
  }
  .spending-panel {
    display: block;
  }
  .spending-panel .legend {
    margin-top: 20px;
  }
  .rate-strip {
    gap: 12px;
    font-size: 10px;
  }
  .rate-strip .right {
    margin: 0;
    width: 100%;
  }
  .notice {
    font-size: 11px;
  }
  .auth {
    display: block;
  }
  .auth-art {
    padding: 25px 28px 30px;
    min-height: 230px;
  }
  .auth-art h1 {
    font-size: 37px;
    letter-spacing: -1.5px;
    margin-top: 32px;
    margin-bottom: 15px;
  }
  .auth-art p,
  .auth-art > small {
    display: none;
  }
  .auth-form {
    padding: 35px 25px;
    display: block;
  }
  .auth-form > div {
    width: 100%;
    max-width: 400px;
    margin: auto;
  }
  .form-grid {
    gap: 15px;
    grid-template-columns: 1fr 1fr;
  }
  dialog {
    padding: 22px;
  }
  .form-grid .mobile-full {
    grid-column: 1/-1;
  }
  .rule-row {
    flex-wrap: wrap;
  }
  .rule-row .rule-detail {
    min-width: 150px;
  }
  .rule-row > .actions {
    width: 100%;
    justify-content: flex-end;
  }
  .filters {
    gap: 8px;
  }
  .filters select {
    flex: 1;
    width: 100px;
    font-size: 12px;
  }
  #toast {
    bottom: 83px;
  }
  .settings-grid {
    gap: 18px;
  }
  .top-actions {
    gap: 10px;
  }
}
