@import url("/styles/fonts.css");
:root {
  color-scheme: dark;
  --bg: #111513;
  --panel: #1a1e1b;
  --panel2: #202521;
  --line: #2d332d;
  --text: #f0f2e9;
  --muted: #a0a79f;
  --accent: #c6ed91;
  --green: #91c29d;
  --rose: #d3aab9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px "Avenir Next",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  background: transparent;
  border: 0;
}
small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  background: #151916;
  border-right: 1px solid var(--line);
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
}
.brand > span:last-child {
  font-weight: 350;
  color: #c5d0bd;
}
.brandmark {
  font-size: 30px;
  background: var(--accent);
  color: #222c1a;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -7px;
  padding-right: 5px;
  border-radius: 10px;
  margin-right: 11px;
  font-style: italic;
}
.brandmark span {
  font-size: 25px;
}
.workspace {
  margin: 40px 0 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 9px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.avatar {
  width: 32px;
  height: 32px;
  background: #30382e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  color: #d6e6cd;
}
.tiny {
  width: 30px;
  height: 30px;
}
.chevron {
  margin-left: auto;
}
.nav-label {
  font-size: 11px;
  letter-spacing: 1.7px;
  color: #818c80;
  margin: 0 13px 12px;
}
nav {
  display: grid;
  gap: 6px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 7px;
  color: #a5afa3;
  font-size: 13px;
}
nav a.active {
  color: var(--accent);
  background: #283224;
}
nav a:hover {
  background: #242b23;
}
svg.icon {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.badge {
  margin-left: auto;
  background: #3d4430;
  color: #d5e6b6;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
}
.sidebar-bottom {
  margin-top: auto;
}
.privacy {
  font-size: 11px;
  color: #c2cdbb;
  padding: 20px 10px;
}
.privacy small {
  margin-left: 15px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 7px;
}
.profile {
  display: flex;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  width: 100%;
  align-items: center;
  text-align: left;
  gap: 10px;
  font-size: 12px;
}
.profile > span:last-child {
  margin-left: auto;
}
.shell {
  margin-left: 238px;
}
header {
  height: 78px;
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
.breadcrumb {
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 14px;
  color: #566051;
}
.breadcrumb b {
  font-weight: 450;
  color: #d8dfd2;
}
.header-right {
  display: flex;
  gap: 20px;
  align-items: center;
}
.muted {
  color: var(--muted);
}
.icon-button {
  padding: 4px;
  display: flex;
}
main {
  padding: 35px 40px 30px;
  max-width: 1600px;
  margin: auto;
}
h1 {
  font-size: 29px;
  font-weight: 550;
  letter-spacing: -0.8px;
  margin: 0 0 7px;
}
h2 {
  font-size: 15px;
  font-weight: 550;
  margin: 0;
}
h3 {
  font-size: 14px;
  margin: 0;
}
p {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 27px;
}
.page-heading p {
  font-size: 12px;
}
.actions {
  display: flex;
  gap: 10px;
}
.btn {
  padding: 10px 15px;
  background: var(--panel2);
  border: 1px solid #3b4436;
  border-radius: 7px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover {
  background: #343d2d;
}
.btn.primary {
  background: var(--accent);
  color: #243019;
  border-color: var(--accent);
  font-weight: 600;
}
.demo-banner {
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: #232c21;
  color: #cadcbe;
  border-radius: 6px;
  margin-bottom: 20px;
}
.demo-banner button {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 11px;
}
.summary {
  display: grid;
  grid-template-columns: 1.65fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 26px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
}
.networth {
  background: #c7eaa0;
  color: #24331c;
  border: 0;
  position: relative;
  overflow: hidden;
}
.networth p,
.networth small {
  color: #4d6441;
}
.metric-label {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.metric {
  font-size: 31px;
  letter-spacing: -1px;
  margin-top: 12px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.metric .currency {
  font-size: 18px;
  opacity: 0.65;
  margin-right: 5px;
}
.metric-note {
  margin-top: 9px;
  font-size: 11px;
  color: var(--muted);
}
.networth .metric-note {
  color: #405c32;
}
.positive {
  color: var(--green);
}
.negative {
  color: #d6b2a3;
}
.mini-bars {
  height: 26px;
  display: flex;
  gap: 4px;
  align-items: end;
  position: absolute;
  right: 24px;
  bottom: 25px;
}
.mini-bars i {
  width: 6px;
  background: #7da45d;
  border-radius: 2px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-top p {
  font-size: 11px;
  margin-top: 3px;
}
.text-link {
  font-size: 11px;
  color: #cbd9bf;
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: #b6c0af;
}
.legend span:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 6px;
}
.legend span:last-child:before {
  background: #667560;
}
.chart {
  height: 190px;
  display: flex;
  gap: 14px;
}
.y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #939d8f;
  font-size: 11px;
  padding-bottom: 24px;
  min-width: 32px;
}
.plot {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: end;
  padding: 0 5px 25px;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 40px,
    #2b312a 41px,
    transparent 42px
  );
}
.bar-group {
  height: 100%;
  width: 11%;
  display: flex;
  gap: 5px;
  align-items: end;
  position: relative;
}
.bar {
  width: 45%;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
}
.bar.expense {
  background: #56644f;
}
.bar-group label {
  position: absolute;
  bottom: -23px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #a2ad9b;
  font-size: 11px;
}
.chart-note {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 15px;
  font-size: 11px;
  color: #aebba5;
}
.chart-note b {
  color: #dbe7d1;
  font-weight: 500;
}
.account {
  padding: 17px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.account:last-of-type {
  border-bottom: 0;
}
.provider {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #223b2a;
  color: #a5dfa4;
  font-weight: 700;
  font-size: 12px;
}
.provider.momo {
  background: #452239;
  color: #f4b5d8;
}
.provider.cash {
  background: #30372e;
  color: #c5d1ba;
}
.account-info {
  flex: 1;
}
.account-info b {
  font-size: 12px;
  font-weight: 500;
}
.account-amount {
  text-align: right;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #293626;
  color: #b7d79f;
  font-size: 11px;
}
.pill.pending {
  background: #3b3322;
  color: #ddc28f;
}
.source-note {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 15px;
  color: #98a38e;
}
.review-strip {
  display: flex;
  gap: 12px;
  background: #292a20;
  border: 1px solid #414333;
  border-radius: 9px;
  padding: 15px 20px;
  margin-bottom: 26px;
  align-items: center;
}
.review-strip svg {
  color: #d9da9e;
}
.review-strip b {
  font-size: 12px;
  font-weight: 500;
}
.review-strip p {
  font-size: 11px;
}
.review-strip button {
  margin-left: auto;
  white-space: nowrap;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
th {
  color: #87927f;
  font-weight: 450;
  font-size: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 13px 0;
  border-bottom: 1px solid #282e27;
}
tr:last-child td {
  border: 0;
}
td:last-child,
th:last-child {
  text-align: right;
}
.transaction-name {
  display: flex;
  align-items: center;
  gap: 11px;
}
.transaction-icon {
  width: 32px;
  height: 32px;
  background: #2d332b;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c5cdbd;
}
.transaction-name b {
  font-weight: 500;
}
.category {
  background: #282e26;
  color: #b9c5b0;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
}
.provider-inline {
  display: flex;
  align-items: center;
  gap: 7px;
}
.provider-inline i {
  height: 6px;
  width: 6px;
  background: #97c98a;
  border-radius: 50%;
}
.provider-inline.momo i {
  background: #cc7caa;
}
.amount {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.budget-row {
  margin: 22px 0;
}
.budget-title {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 9px;
}
.budget-title span:last-child {
  color: var(--muted);
}
.progress {
  height: 5px;
  background: #30392b;
  border-radius: 4px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}
.budget-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.goal-box {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.goal-box p {
  font-size: 11px;
  margin: 7px 0 12px;
}
footer {
  display: flex;
  justify-content: space-between;
  margin: 0 40px;
  padding: 18px 0 25px;
  color: #778370;
  font-size: 11px;
  border-top: 1px solid var(--line);
}
.filters {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
.filters input {
  flex: 1;
}
input,
select,
textarea {
  background: #141914;
  border: 1px solid #414b3b;
  color: var(--text);
  border-radius: 7px;
  padding: 11px;
  min-width: 0;
}
textarea {
  width: 100%;
  min-height: 100px;
}
label.field {
  display: grid;
  gap: 8px;
  font-size: 12px;
  margin: 18px 0;
}
.empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
}
.setup {
  max-width: 760px;
}
.setup .card {
  margin-bottom: 20px;
}
.setup ol {
  padding-left: 22px;
  color: #b8c1b1;
  line-height: 1.9;
}
.setup code {
  white-space: pre-wrap;
  word-break: break-word;
  color: #c6e7a6;
  font-size: 11px;
}
dialog {
  background: #1b211a;
  color: var(--text);
  border: 1px solid #45503e;
  border-radius: 14px;
  padding: 32px;
  width: min(520px, 94vw);
  max-height: 90vh;
}
dialog::backdrop {
  background: #000a;
}
dialog .close {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 25px;
  color: #aab7a0;
}
dialog h2 {
  font-size: 22px;
  margin-bottom: 10px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #d0edb3;
  color: #24301c;
  padding: 12px 22px;
  border-radius: 8px;
  display: none;
  z-index: 10;
}
.review-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.review-item p {
  font-size: 12px;
  margin: 8px 0;
}
.review-item .actions {
  margin-top: 12px;
}
.warning {
  color: #dec594;
  font-size: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
::selection {
  background: #c6ed91;
  color: #172111;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: #475340;
  border-radius: 4px;
}
@media (min-width: 1450px) {
  main {
    padding-top: 44px;
  }
  .summary {
    gap: 24px;
  }
  .metric {
    font-size: 36px;
  }
  .card {
    padding: 27px;
  }
  .chart {
    height: 220px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding: 25px 15px;
  }
  .shell {
    margin-left: 200px;
  }
  main {
    padding: 28px 24px;
  }
  .two-col {
    gap: 16px;
    grid-template-columns: 1.5fr 1fr;
  }
  .summary {
    gap: 12px;
  }
  .card {
    padding: 18px;
  }
  .metric {
    font-size: 26px;
  }
  header {
    padding: 0 24px;
  }
  footer {
    margin: 0 24px;
  }
  .legend {
    gap: 8px;
  }
  .metric-note {
    font-size: 11px;
  }
}
@media (max-width: 780px) {
  .sidebar {
    position: fixed;
    inset: auto 0 0 0;
    height: 67px;
    width: 100%;
    padding: 0;
    z-index: 5;
    border-right: 0;
    border-top: 1px solid var(--line);
    background: #171e18;
  }
  .brand,
  .workspace,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    justify-content: space-around;
    gap: 0;
    height: 100%;
  }
  nav a {
    font-size: 11px;
    padding: 8px 5px;
    gap: 4px;
    flex-direction: column;
    justify-content: center;
    border-radius: 0;
    flex: 1;
  }
  nav .badge {
    display: none;
  }
  .shell {
    margin-left: 0;
  }
  header {
    height: 58px;
    padding: 0 20px;
  }
  .header-right {
    gap: 12px;
  }
  .header-right .muted {
    display: none;
  }
  main {
    padding: 25px 18px 20px;
  }
  .page-heading {
    align-items: start;
    gap: 10px;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading .actions .btn {
    padding: 8px;
    font-size: 11px;
  }
  .summary {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .networth {
    grid-column: span 2;
    padding: 24px;
  }
  .metric {
    font-size: 27px;
  }
  .networth .metric {
    font-size: 36px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .review-strip {
    padding: 14px;
    gap: 10px;
  }
  .review-strip p {
    max-width: 200px;
  }
  .review-strip .btn {
    font-size: 11px;
    padding: 8px;
  }
  .card {
    padding: 20px;
  }
  .table-wrap td,
  .table-wrap th {
    padding-right: 18px;
  }
  .table-wrap td:last-child {
    padding-right: 0;
  }
  footer {
    margin: 0 18px 70px;
    font-size: 11px;
  }
  footer > span:last-child {
    display: none;
  }
  .demo-banner {
    font-size: 11px;
    gap: 12px;
  }
  .chart {
    height: 200px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters input {
    flex-basis: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .goal-box {
    margin-bottom: 5px;
  }
}
.two-col > * {
  min-width: 0;
}
.summary > * {
  min-width: 0;
}
@media (max-width: 780px) {
  .page-heading {
    flex-direction: column;
    gap: 18px;
  }
  .page-heading .actions {
    width: 100%;
  }
  .page-heading .actions .btn {
    padding: 10px 13px;
    white-space: nowrap;
  }
  .table-wrap {
    max-width: 100%;
  }
  .review-strip {
    align-items: flex-start;
  }
  .review-strip button {
    align-self: center;
  }
}

@media (max-width: 780px) {
  nav a {
    font-size: 10px;
    min-height: 48px;
  }
  .filters input,
  .filters select,
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .btn {
    min-height: 42px;
  }
  .metric-note {
    font-size: 11px;
  }
}
.language-picker {
  display: inline-flex;
  align-items: center;
}
.language-picker select {
  padding: 6px 9px;
  font-size: 12px;
  max-width: 120px;
  min-height: 34px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html[lang="vi"] .sidebar nav a {
  font-size: 12px;
}
@media (max-width: 780px) {
  html[lang="vi"] .sidebar nav a {
    font-size: 10px;
  }
  .header-right {
    gap: 8px;
  }
  .language-picker select {
    font-size: 12px;
    max-width: 105px;
  }
  .breadcrumb span {
    margin: 0 6px;
  }
  .breadcrumb {
    max-width: 170px;
  }
  .header-right .tiny {
    display: none;
  }
}
