:root {
  font:
    16px/1.5 system-ui,
    sans-serif;
  color: #172824;
  background: #eff3ef;
  font-synthesis: none;
  --ink: #172824;
  --muted: #52645d;
  --line: #e1e8e2;
  --green: #184b3a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #6cac87;
  outline-offset: 3px;
}
.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 46px;
  background: #142f27;
  color: #f0f7ef;
  padding: 32px 22px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: #dbedac;
  border-radius: 10px;
  color: #142f27;
  font:
    700 25px/1 Georgia,
    serif;
  width: 36px;
  height: 36px;
}
nav {
  display: grid;
  gap: 8px;
}
nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #d7e6de;
}
nav a:hover,
nav a:focus-visible {
  background: #24483a;
  color: white;
}
nav a span {
  display: inline-block;
  width: 18px;
  color: #b6d5c1;
  text-align: center;
}
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding: 18px 0 0;
  border-top: 1px solid #36584b;
  font-size: 0.88rem;
}
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #34594a;
  color: #e9f5e8;
  font-size: 0.72rem;
  font-weight: 700;
}
.sidebar-footer small {
  display: block;
  color: #b7cabf;
}
.topbar {
  height: 73px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(18px, 4vw, 58px);
  background: #f9fbf8;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.toggle {
  display: flex;
  border: 1px solid #d5e0d8;
  border-radius: 9px;
  padding: 3px;
  background: #edf2ee;
}
.toggle button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 6px 11px;
}
.toggle button[aria-pressed="true"] {
  background: #fff;
  color: var(--green);
  box-shadow: 0 1px 4px #1a352526;
}
.content {
  max-width: 1440px;
  margin: auto;
  padding: 42px clamp(18px, 4vw, 58px) 60px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font:
    400 clamp(2rem, 4vw, 3.45rem)/1.1 Georgia,
    serif;
  letter-spacing: -0.05em;
}
.page-heading p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.91rem;
}
.primary {
  border: 0;
  border-radius: 9px;
  background: #20533f;
  color: #fff;
  padding: 11px 15px;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}
.primary:hover {
  background: #173c2e;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.metric,
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  min-width: 0;
}
.metric {
  display: grid;
  gap: 8px;
  padding: 22px 24px;
}
.metric > span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.metric strong {
  font-size: clamp(1.25rem, 2.25vw, 2.05rem);
  font-weight: 740;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}
.metric small,
.rows small {
  font-size: 0.78rem;
  color: var(--muted);
}
.metric.total {
  background: #184b3a;
  color: #f9fff7;
  border-color: #184b3a;
}
.metric.total span,
.metric.total small {
  color: #d1e6d8;
}
.columns {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  align-items: start;
}
.card {
  padding: 22px 24px;
  scroll-margin-top: 18px;
}
.card h2,
dialog h2 {
  font-size: 1.16rem;
  letter-spacing: -0.025em;
}
.rows {
  list-style: none;
  padding: 5px 0 0;
  margin: 0;
}
.rows li {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid #edf0ec;
}
.rows li:last-child {
  border: 0;
}
.rows li > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 1.15rem;
  color: #2c5945;
  background: #e8f0e9;
}
.rows .outgoing {
  background: #f6ede5;
  color: #785132;
}
.rows .transfer {
  background: #eaf0f5;
  color: #315570;
}
.rows strong {
  display: block;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}
.rows small {
  display: block;
}
.row-value {
  text-align: right;
  max-width: 170px;
}
.rate {
  margin-top: 8px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}
dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: #fff;
}
dialog::backdrop {
  background: #11282099;
}
dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.close {
  background: #eff3ef;
  border: 0;
  color: var(--ink);
  width: 35px;
  height: 35px;
  border-radius: 8px;
  font-size: 1.2rem;
}
form,
form label {
  display: grid;
  gap: 8px;
}
form {
  gap: 13px;
}
form label {
  font-size: 0.87rem;
  font-weight: 650;
}
input,
select {
  width: 100%;
  min-height: 41px;
  border: 1px solid #b9c8bd;
  border-radius: 8px;
  padding: 7px 9px;
  background: white;
  color: var(--ink);
}
.error,
.success {
  font-size: 0.85rem;
}
.error {
  color: #9c3321;
}
.success {
  color: var(--green);
}
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .sidebar {
    padding-inline: 15px;
  }
}
@media (max-width: 675px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 15px 16px;
    gap: 13px;
  }
  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
  }
  .sidebar nav a {
    padding: 3px 8px;
  }
  .sidebar-footer {
    display: none;
  }
  .topbar {
    height: 54px;
  }
  .content {
    padding-top: 28px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .metric.total {
    grid-column: 1/-1;
  }
  .metric,
  .card {
    padding: 15px;
  }
  .metric strong {
    font-size: 1.25rem;
  }
  .rows li {
    gap: 8px;
  }
  .row-value {
    max-width: 115px;
  }
}

.auth-page { width: min(100%, 510px); margin: 10vh auto 0; }
.auth-page .card { margin-top: 1.5rem; }
.auth-page .card > * + * { margin-top: 1rem; }
.mfa-key { display: block; overflow-wrap: anywhere; margin: 0.75rem 0; }
.section-heading { display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: space-between; align-items: center; }
.secondary { font: inherit; padding: 0.35rem 0.65rem; border: 1px solid currentColor; border-radius: 7px; background: transparent; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: 0.55; }
.topbar-actions { display: flex; align-items: center; gap: 0.5rem; }
.mfa-qr img { display: block; margin: 0.75rem auto 0; max-width: 100%; height: auto; }
.remember-device { display: flex; align-items: center; gap: 0.5rem; }
.remember-device input { width: 1rem; min-height: 1rem; }

.today { margin-bottom: 1.5rem; }
.forecast { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .75rem; margin: .75rem 0; }
.forecast > div { display: grid; gap: .35rem; border: 1px solid currentColor; border-radius: .6rem; padding: .75rem; }
.row-value button { margin-top: .35rem; }
