:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: #203a34;
  background: #f5f5ef;
  font-synthesis: none;
  --green: #173d35;
  --muted: #77837c;
  --line: #e2e6de;
  --red: #b2553e;
}
* {
  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;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 11px 16px;
  color: var(--green);
  font-weight: 600;
}
button:hover {
  background: #edf1ea;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
button.danger {
  color: var(--red);
}
button.flat {
  border: 0;
  background: transparent;
}
button.small {
  padding: 7px 10px;
  font-size: 13px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #7b8f7d;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brandmark {
  background: var(--green);
  color: #e6efd5;
  border-radius: 13px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 29px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
}
header {
  height: 90px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}
.shell {
  max-width: 1180px;
  margin: auto;
  padding: 0 38px 48px;
}
.header-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.role {
  border: 1px solid #d5decf;
  background: #eaf0e2;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 0 0 28px;
}
.intro h1 {
  font-size: 30px;
  font-weight: 600;
  margin: 8px 0 10px;
  letter-spacing: -1px;
}
.intro p {
  font-size: 14px;
  margin: 0;
  color: var(--muted);
}
.nav {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.nav button {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 13px 23px;
  margin-bottom: -1px;
  color: var(--muted);
}
.nav button.active {
  border-bottom: 3px solid var(--green);
  color: var(--green);
}
.region-switch {
  display: flex;
  background: #e9ede4;
  padding: 4px;
  border-radius: 10px;
  width: fit-content;
  gap: 3px;
  margin-bottom: 22px;
}
.region-switch button {
  border: 0;
  background: transparent;
  font-size: 13px;
  padding: 8px 19px;
}
.region-switch button.active {
  background: white;
  box-shadow: 0 1px 4px #203a3412;
}
.overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.money-card {
  padding: 26px;
  border-radius: 17px;
  background: var(--green);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.money-card.sg {
  background: #e4e9d7;
  color: var(--green);
}
.money-card:after {
  content: "";
  position: absolute;
  right: -30px;
  top: -80px;
  border: 1px solid #ffffff1c;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
}
.money-card.sg:after {
  border-color: #173d3512;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  font-size: 15px;
}
.currency {
  border: 1px solid #ffffff40;
  padding: 5px 9px;
  font-size: 11px;
  letter-spacing: 1px;
  border-radius: 5px;
}
.sg .currency {
  border-color: #173d3528;
}
.balance-label {
  font-size: 12px;
  opacity: 0.66;
}
.balance {
  font-size: 38px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  margin: 7px 0 23px;
  font-weight: 500;
}
.balance span {
  font-size: 18px;
  margin-right: 7px;
  opacity: 0.65;
}
.card-bottom {
  border-top: 1px solid #ffffff26;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 18px;
  font-size: 12px;
}
.sg .card-bottom {
  border-color: #173d351c;
}
.card-bottom strong {
  display: block;
  font-size: 18px;
  margin-top: 8px;
  font-weight: 500;
}
.note {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 13px 0 26px;
}
.grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.panel-title h2 {
  font-size: 16px;
  margin: 0;
  font-weight: 600;
}
.panel-title span {
  font-size: 12px;
  color: var(--muted);
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 165px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  gap: 6px;
}
.empty-symbol {
  font-size: 30px;
  opacity: 0.45;
  margin-bottom: 6px;
}
.empty strong {
  font-size: 14px;
  color: #4a6257;
  font-weight: 500;
}
.empty button {
  margin-top: 12px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #edf0e9;
}
.row:last-child {
  border: 0;
}
.row-main {
  min-width: 0;
  flex: 1;
}
.row-main strong {
  font-weight: 500;
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.row-main small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.7;
}
.amount {
  text-align: right;
  white-space: nowrap;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.income {
  color: #287a5c;
}
.expense {
  color: #b2553e;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  font-size: 11px;
  background: #eff3eb;
  padding: 4px 7px;
  color: #687764;
  margin-right: 7px;
}
.icon-dot {
  display: grid;
  place-items: center;
  border-radius: 11px;
  width: 38px;
  height: 38px;
  background: #eef4eb;
  color: #388065;
  font-size: 22px;
  flex-shrink: 0;
}
.icon-dot.expense {
  background: #faf0e9;
  color: #b2553e;
}
.clickable {
  cursor: pointer;
}
.clickable:hover {
  background: #f7f9f3;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
.toolbar h2 {
  font-size: 16px;
}
.filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.filters .search {
  grid-column: span 2;
}
label {
  display: block;
  font-size: 12px;
  color: #617369;
}
label input,
label select,
label textarea {
  margin-top: 7px;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #dce2d6;
  background: white;
  border-radius: 9px;
  padding: 11px 12px;
  color: #203a34;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #6f917b;
  box-shadow: 0 0 0 3px #76926a18;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
input[type="checkbox"] {
  width: auto;
}
a {
  color: var(--green);
}
.subtotals {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
  font-size: 13px;
}
.subtotal {
  background: #eef2e8;
  padding: 12px 15px;
  border-radius: 9px;
  line-height: 1.9;
}
.subtotal strong {
  font-size: 15px;
}
.account-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.account-card:last-child {
  border: 0;
}
.account-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
.account-card p {
  color: var(--muted);
  font-size: 12px;
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.account-actions {
  display: flex;
  gap: 6px;
}
.footer {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #8c958c;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.login-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.login-story {
  background: var(--green);
  color: white;
  padding: 60px 9%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-story .brandmark {
  background: #e3ead4;
  color: var(--green);
}
.login-story .brand small {
  color: #95afa0;
}
.login-story h1 {
  font-size: 48px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -2px;
}
.login-story p {
  font-size: 15px;
  color: #b7c9bb;
  line-height: 2;
}
.story-tag {
  font-size: 11px;
  letter-spacing: 3px;
  color: #adc5ad;
}
.login-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-box {
  width: 340px;
}
.login-box h2 {
  font-size: 27px;
  margin: 0 0 10px;
  font-weight: 500;
}
.login-box p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.login-box label {
  margin: 22px 0;
}
.login-box button {
  width: 100%;
  padding: 14px;
}
.login-bottom {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}
.error {
  color: #aa4639;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-line;
  margin-top: 12px;
}
.hidden,
[hidden] {
  display: none !important;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: min(620px, calc(100% - 24px));
  max-height: 90dvh;
  color: #203a34;
  box-shadow: 0 25px 100px #122c3240;
}
dialog::backdrop {
  background: #11282088;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 19px;
  margin: 0;
  font-weight: 600;
}
.modal-content {
  padding: 24px 26px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.detail-amount {
  font-size: 36px;
  letter-spacing: -1px;
  text-align: center;
  margin: 10px 0 25px;
}
.details {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  font-size: 13px;
  line-height: 1.8;
}
.details dt {
  color: var(--muted);
}
.details dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.audit {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.audit summary {
  cursor: pointer;
  color: var(--green);
}
.audit pre {
  overflow: auto;
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-all;
}
.audit details {
  margin-top: 12px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  border-radius: 10px;
  background: var(--green);
  color: white;
  font-size: 13px;
  box-shadow: 0 5px 25px #173d3533;
  z-index: 9;
  display: none;
  max-width: 90%;
}
#network {
  background: #fff0d6;
  color: #81551b;
  padding: 12px;
  text-align: center;
  font-size: 13px;
}
.voided {
  opacity: 0.6;
}
.bar {
  height: 5px;
  background: #edf0e6;
  border-radius: 5px;
  margin-top: 8px;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: #91a77f;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b1c495;
  outline-offset: 3px;
}
@media (min-width: 800px) {
  .mobile-brand {
    display: none;
  }
}
@media (max-width: 800px) {
  .shell {
    padding: 0 18px 25px;
  }
  header {
    height: 76px;
    margin-bottom: 26px;
  }
  .header-tools {
    gap: 3px;
  }
  .header-tools .install {
    display: none;
  }
  .intro {
    align-items: center;
  }
  .intro h1 {
    font-size: 25px;
  }
  .intro p {
    font-size: 12px;
    max-width: 235px;
    line-height: 1.7;
  }
  .intro button {
    padding: 12px;
  }
  .overview {
    gap: 12px;
  }
  .money-card {
    padding: 20px;
  }
  .balance {
    font-size: 28px;
  }
  .card-top {
    margin-bottom: 23px;
  }
  .card-bottom strong {
    font-size: 16px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 18px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .nav button {
    flex: 1;
    padding: 13px 12px;
  }
  .footer {
    gap: 20px;
    line-height: 1.7;
  }
  .login-page {
    display: block;
  }
  .login-story {
    display: none;
  }
  .login-side {
    min-height: 100dvh;
    padding: 30px;
  }
  .mobile-brand {
    margin-bottom: 54px;
  }
  .form-grid {
    gap: 15px;
  }
  .modal-content {
    padding: 20px;
  }
  .modal-head {
    padding: 18px 20px;
  }
  .account-card {
    align-items: flex-start;
  }
  .account-actions {
    flex-direction: column;
  }
  .details {
    grid-template-columns: 80px 1fr;
  }
  .balance span {
    font-size: 14px;
  }
}
@media (max-width: 420px) {
  .overview {
    grid-template-columns: 1fr;
  }
  .balance {
    font-size: 35px;
    margin-bottom: 18px;
  }
  .card-top {
    margin-bottom: 18px;
  }
  .card-bottom {
    padding-top: 14px;
  }
  .header-tools .role {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .brand {
    gap: 8px;
    font-size: 14px;
  }
  .brandmark {
    width: 36px;
    height: 36px;
  }
  .intro p {
    max-width: 220px;
  }
  .region-switch {
    width: 100%;
  }
  .region-switch button {
    flex: 1;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .amount {
    font-size: 14px;
  }
}

progress.bar {
  display: block;
  width: 100%;
  border: 0;
  appearance: none;
}
progress.bar::-webkit-progress-bar {
  background: #edf0e6;
  border-radius: 5px;
}
progress.bar::-webkit-progress-value {
  background: #91a77f;
  border-radius: 5px;
}
progress.bar::-moz-progress-bar {
  background: #91a77f;
  border-radius: 5px;
}
.currency-note {
  font-size: 10px;
  margin-top: 6px;
}
.detail-currency {
  font-size: 15px;
}
