@import url("/fonts.css");
:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #20332d;
  background: #f5f5f0;
  font-synthesis: none;
  --green: #244d40;
  --muted: #768179;
  --line: #e1e5dc;
  --paper: #fffefa;
  --amber: #8b5b22;
  --red: #a0433c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--paper);
  color: inherit;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 550;
}
button:hover {
  border-color: #829b8b;
  background: #f1f4ed;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
button.primary:hover {
  background: #32614f;
}
button.quiet {
  background: transparent;
  border-color: transparent;
  padding: 8px 10px;
}
button.danger {
  color: var(--red);
}
a {
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1.2px;
  font-weight: 550;
  margin-bottom: 10px;
}
h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
p {
  line-height: 1.6;
}
small,
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100dvh;
}
.sidebar {
  background: #eff1e9;
  border-right: 1px solid var(--line);
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 0 6px 9px;
}
.brandmark {
  display: grid;
  place-items: center;
  color: #f3f3d3;
  background: #244d40;
  border-radius: 14px;
  width: 42px;
  height: 42px;
  font-size: 29px;
  font-weight: 400;
}
.brand-sub {
  margin: 0 0 48px 61px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #617466;
  text-transform: uppercase;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  border: 0;
  text-align: left;
  background: transparent;
  color: #627168;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
}
.nav button.active {
  background: #dce5d6;
  color: #264d3a;
}
.nav-icon {
  font-size: 19px;
  width: 24px;
}
.nav-badge {
  font-size: 11px;
  border-radius: 20px;
  background: #e7ba66;
  color: #5f431b;
  padding: 2px 7px;
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 5px;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 34px;
  height: 34px;
  background: #d9dfcf;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
}
.profile strong {
  display: block;
  font-size: 13px;
}
.profile small {
  font-size: 11px;
}
.main {
  padding: 36px 48px 64px;
  max-width: 1510px;
  width: 100%;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 39px;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: var(--muted);
  font-weight: 600;
}
.top-actions,
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 24px;
}
.heading p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 10px;
  background: #fffefa;
  color: #59705e;
  white-space: nowrap;
}
.pill.warn {
  color: #885823;
  background: #fbf0db;
  border-color: #eddbb9;
}
.banner {
  background: #f7efdd;
  border: 1px solid #eaddbf;
  padding: 15px 18px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  gap: 12px;
  margin: 18px 0 26px;
  color: #775622;
}
.banner.demo {
  background: #e7eee3;
  border-color: #d4e0cd;
  color: #3e5b3e;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.metric {
  padding: 23px 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-width: 0;
}
.metric.accent {
  background: #264d40;
  color: #fcfbef;
  border-color: #264d40;
}
.metric .label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 17px;
}
.metric.accent .label,
.metric.accent small {
  color: #c6d4c4;
}
.value {
  font-size: 34px;
  font-weight: 550;
  letter-spacing: -1.3px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.value small {
  font-size: 17px;
  letter-spacing: -0.4px;
}
.metric .sub {
  font-size: 11px;
  margin-top: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.metric.accent .sub {
  color: #c2d0bc;
}
.metric progress {
  margin-top: 16px;
  height: 5px;
}
.grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 25px;
  min-width: 0;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.card-header h2 {
  margin: 0;
}
.card-header small {
  font-size: 11px;
}
.list {
  display: grid;
  gap: 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid #edf0e8;
}
.row:first-child {
  border-top: 0;
}
.row-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #eff1e8;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 17px;
}
.row-info {
  min-width: 0;
  flex: 1;
}
.row-title {
  font-size: 13px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.row-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}
.row-amount {
  font-size: 14px;
  font-weight: 550;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.negative {
  color: var(--red);
}
.positive {
  color: #426742;
}
.empty {
  padding: 30px 5px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.empty strong {
  display: block;
  color: #38503c;
  font-size: 18px;
  font-weight: 550;
  margin-bottom: 8px;
}
.note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.report {
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-line;
}
.report-summary {
  margin: 20px 0;
}
.allocation-form > .row,
.saving-goal > .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 16px;
  font-size: 14px;
}
.allocation-form > .row strong,
.saving-goal > .row strong {
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .allocation-form > .row,
  .saving-goal > .row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0;
  }
  .allocation-form > .row strong,
  .saving-goal > .row strong {
    text-align: left;
  }
}
.report-summary > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e9df;
}
.report-summary span {
  color: #58695f;
  max-width: 55%;
}
.report-summary strong {
  text-align: right;
}
.report-summary small {
  display: block;
  font-weight: 400;
  color: #6b7a70;
  margin-top: 4px;
}
.source {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin: 14px 0;
  background: var(--paper);
}
.source pre {
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f3f4ed;
  padding: 12px;
  border-radius: 8px;
  color: #556154;
  max-height: 180px;
  overflow: auto;
}
.source .actions {
  margin-top: 15px;
}
.source h3 {
  margin: 0 0 8px;
}
.accounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.account {
  padding: 23px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.account .value {
  font-size: 25px;
  margin: 20px 0 8px;
}
.account h3 {
  margin: 10px 0 0;
}
.account .actions {
  margin-top: 16px;
}
.account button {
  font-size: 11px;
  padding: 7px 9px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #556456;
  margin-bottom: 16px;
}
input,
select,
textarea {
  border: 1px solid #d6ded0;
  border-radius: 8px;
  background: #fffefa;
  color: #233b2d;
  padding: 11px 12px;
  width: 100%;
  min-width: 0;
}
textarea {
  min-height: 105px;
  resize: vertical;
  line-height: 1.5;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #b3c9a5;
  outline-offset: 2px;
}
label.check {
  display: flex;
  align-items: start;
  gap: 10px;
  line-height: 1.5;
}
label.check input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fffefa;
  padding: 28px;
  width: min(580px, calc(100% - 28px));
  max-height: 90dvh;
  color: inherit;
  box-shadow: 0 25px 90px #18281f33;
}
dialog::backdrop {
  background: #15231c66;
  backdrop-filter: blur(4px);
}
dialog h2 {
  padding-right: 30px;
}
.close {
  position: absolute;
  right: 14px;
  top: 12px;
  font-size: 20px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.error {
  color: var(--red);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  max-width: 440px;
  width: 100%;
  padding: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.login .brand {
  margin-bottom: 28px;
}
.login h1 {
  font-size: 27px;
}
.login .primary {
  width: 100%;
}
.login .note {
  margin: 15px 0;
}
.login .actions {
  justify-content: center;
  margin-top: 15px;
}
.login .actions button {
  font-size: 12px;
}
.loading {
  height: 100dvh;
  display: grid;
  align-content: center;
  text-align: center;
  font-size: 35px;
  gap: 15px;
}
.loading span {
  font-size: 14px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #203e2f;
  color: #fffefa;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 13px;
  box-shadow: 0 8px 30px #17291b22;
  max-width: 90vw;
  z-index: 10;
  display: none;
}
#toast.visible {
  display: block;
}
progress {
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  background: #dce5d5;
}
progress::-webkit-progress-bar {
  background: #ffffff26;
  border-radius: 5px;
}
progress::-webkit-progress-value {
  background: #afc491;
  border-radius: 5px;
}
progress::-moz-progress-bar {
  background: #afc491;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  font-weight: 550;
}
td,
th {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td input {
  min-width: 95px;
  padding: 8px;
}
details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 14px;
}
code {
  font-size: 12px;
  background: #edf0e6;
  padding: 3px 5px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
pre.code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #edf0e6;
  padding: 16px;
  border-radius: 10px;
  font-size: 12px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.hide,
[hidden] {
  display: none !important;
}
.status-dot {
  height: 6px;
  width: 6px;
  background: #d39c41;
  border-radius: 50%;
  display: inline-block;
}
.block {
  width: 100%;
}
.mobile-only {
  display: none;
}
@media (min-width: 1450px) {
  .main {
    padding: 42px 60px;
  }
  .metrics {
    gap: 22px;
  }
  .value {
    font-size: 40px;
  }
  .metric {
    padding: 27px 30px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 28px 14px;
  }
  .main {
    padding: 28px;
  }
  .brand-sub {
    margin-left: 10px;
  }
  .value {
    font-size: 28px;
  }
  .metric {
    padding: 20px;
  }
  .accounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    height: auto;
    width: 100%;
    z-index: 4;
    padding: 7px 7px max(7px, env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid var(--line);
    background: #f5f6eef7;
    backdrop-filter: blur(12px);
  }
  .sidebar > .brand,
  .brand-sub,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    display: flex;
    justify-content: space-around;
    gap: 0;
  }
  .nav button {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    padding: 8px 5px;
    min-width: 59px;
    font-size: 10px;
    position: relative;
  }
  .nav-icon {
    font-size: 20px;
  }
  .nav-badge {
    position: absolute;
    right: 3px;
    top: 0;
    padding: 1px 4px;
    font-size: 9px;
  }
  .main {
    padding: 22px 18px 110px;
  }
  .topbar {
    margin-bottom: 28px;
  }
  .top-actions .pill {
    display: none;
  }
  .eyebrow {
    font-size: 9px;
  }
  h1 {
    font-size: 28px;
  }
  .heading p {
    font-size: 12px;
  }
  .heading {
    margin-bottom: 20px;
  }
  .heading > .pill {
    display: none;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .metric {
    padding: 19px 16px;
    border-radius: 13px;
  }
  .metric.accent {
    grid-column: 1/-1;
    order: -1;
  }
  .metric.accent .value {
    font-size: 38px;
  }
  .metric .value {
    font-size: 27px;
  }
  .metric .label {
    font-size: 11px;
    margin-bottom: 12px;
  }
  .metric .sub {
    font-size: 10px;
  }
  .metric.accent progress {
    margin-top: 13px;
  }
  .banner {
    font-size: 12px;
    padding: 13px 14px;
    margin: 16px 0 20px;
  }
  #pending-banner {
    flex-direction: column;
  }
  #pending-banner button {
    align-self: flex-start;
  }
  .card {
    padding: 20px;
  }
  .accounts {
    gap: 12px;
  }
  .account {
    padding: 17px;
  }
  .account .value {
    font-size: 21px;
  }
  .account h3 {
    font-size: 13px;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .account .actions {
    gap: 3px;
  }
  button {
    padding: 10px 13px;
    font-size: 13px;
  }
  .card-header h2 {
    font-size: 17px;
  }
  .report {
    font-size: 14px;
  }
  .row-title {
    font-size: 12px;
  }
  .row-amount {
    font-size: 13px;
  }
  .row-icon {
    width: 33px;
    height: 33px;
  }
  .mobile-only {
    display: block;
  }
  #toast {
    bottom: 95px;
  }
  .login-card {
    padding: 27px;
  }
  .table-wrap {
    margin: 0 -8px;
  }
  dialog {
    padding: 24px 20px;
  }
  .topbar .primary {
    padding: 10px 12px;
  }
}
