@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --bg: #f6f7f9;
  --ink: #182b2a;
  --muted: #7a8987;
  --green: #176d57;
  --lime: #d8efa2;
  --line: #e8eeeb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px "DM Sans",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  background: white;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--ink);
}
button:hover {
  border-color: var(--green);
  background: #eef5ef;
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
aside {
  position: fixed;
  width: 233px;
  inset: 0 auto 0 0;
  background: white;
  border-right: 1px solid var(--line);
  padding: 34px 23px;
  display: flex;
  flex-direction: column;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  font: 800 21px Manrope;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo {
  background: var(--green);
  color: var(--lime);
  font-size: 30px;
  border-radius: 11px;
  width: 37px;
  height: 40px;
  text-align: center;
}
.by {
  position: absolute;
  top: 43px;
  left: 48px;
  letter-spacing: 2px;
  font: 9px "DM Sans";
}
aside > small {
  font-size: 9px;
  letter-spacing: 1.1px;
  margin: 63px 0 17px;
  color: var(--muted);
}
nav button {
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 13px 15px;
  margin: 3px 0;
  color: #6e7f7b;
  display: flex;
  gap: 12px;
}
nav button.active {
  background: #eaf3ed;
  color: var(--green);
  font-weight: 700;
}
nav b {
  font-size: 18px;
  width: 22px;
}
.side-bottom {
  margin-top: auto;
  display: flex;
  gap: 10px;
  font-size: 12px;
}
.side-bottom small {
  font-size: 10px;
  color: var(--muted);
}
.avatar {
  border-radius: 50%;
  padding: 11px 15px;
  background: #eee9df;
}
main {
  margin-left: 233px;
  padding: 38px 40px 20px;
  max-width: 1750px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: var(--green);
  font-weight: 700;
}
h1 {
  font: 800 29px Manrope;
  margin: 10px 0;
}
p {
  color: var(--muted);
  line-height: 1.6;
}
header p {
  margin: 0;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
select,
input {
  border: 1px solid #dde5e0;
  padding: 10px;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  max-width: 100%;
}
.demo-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #edf2e8;
  border: 1px solid #e1e9d9;
  border-radius: 9px;
  padding: 9px 15px;
  color: #67765f;
  font-size: 11px;
  margin-bottom: 23px;
}
.demo-bar button {
  background: none;
  border: 0;
  font-size: 11px;
  font-weight: 700;
}
.demo-bar i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #83a15e;
  border-radius: 50%;
  margin-right: 5px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 23px;
}
.card,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px;
}
.card .label {
  color: #73857e;
  font-size: 12px;
}
.card strong {
  display: block;
  font: 800 27px Manrope;
  margin: 15px 0 9px;
  letter-spacing: -1px;
}
.card small {
  font-size: 10px;
  color: var(--muted);
}
.card.hero {
  background: #175b4b;
  color: white;
  border-color: #175b4b;
}
.hero .label,
.hero small {
  color: #c2dbce;
}
.mini-icon {
  float: right;
  color: #819b90;
  background: #f1f6f2;
  border-radius: 7px;
  padding: 7px;
}
.hero .mini-icon {
  background: #347362;
  color: #d9efa8;
}
.grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 22px;
}
.panel {
  margin-bottom: 22px;
}
.panel h2 {
  font: 800 15px Manrope;
  margin: 0 0 6px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.panel-head p,
.caption {
  font-size: 11px;
  margin: 4px 0;
  color: var(--muted);
}
.badge {
  font-size: 10px;
  padding: 5px 8px;
  background: #edf5ee;
  color: var(--green);
  border-radius: 5px;
}
.chart {
  width: 100%;
  height: 190px;
}
.legend {
  display: flex;
  gap: 18px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
}
.wheel-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}
.wheel {
  position: relative;
  flex: 0 0 178px;
  height: 178px;
  border-radius: 50%;
  background: conic-gradient(#d8e8dc 0 75%, #1b735b 75% 83.33%, #e9eedf 83.33%);
  border: 8px solid #f4f7f2;
  display: grid;
  place-items: center;
}
.wheel:before {
  content: "";
  position: absolute;
  inset: 24px;
  background: white;
  border-radius: 50%;
}
.wheel-center {
  position: relative;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}
.wheel-center strong {
  display: block;
  color: var(--ink);
  font: 800 24px Manrope;
  margin: 5px;
}
.wheel-label {
  position: absolute;
  inset: 0;
  transform: rotate(var(--r));
}
.wheel-label span {
  display: block;
  text-align: center;
  font-size: 8px;
  padding-top: 1px;
  transform: rotate(calc(-1 * var(--r)));
}
.event {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.event small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.tip {
  background: #eff4e6;
  border: 1px solid #e1e9d5;
  border-radius: 11px;
  padding: 18px;
  margin-top: 18px;
}
.tip h3 {
  font-size: 12px;
  margin: 0 0 6px;
}
.tip p {
  font-size: 11px;
  margin: 0;
  color: #6d7c62;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
td,
th {
  padding: 13px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
th {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}
td:last-child,
th:last-child {
  text-align: right;
}
.merchant {
  display: flex;
  gap: 10px;
  align-items: center;
}
.merchant-icon {
  background: #f2f5ee;
  border-radius: 9px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #6d806e;
}
.positive {
  color: var(--green);
}
.negative {
  color: #344c45;
}
.progress {
  height: 7px;
  border-radius: 6px;
  background: #eff2ed;
  overflow: hidden;
}
.progress div {
  height: 100%;
  background: #6c9f80;
  border-radius: 6px;
}
.budget-row {
  margin: 19px 0;
}
.budget-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 9px;
}
.budget-meta small {
  color: var(--muted);
}
.link {
  background: none;
  border: 0;
  color: var(--green);
  font-size: 11px;
  padding: 3px;
}
footer {
  display: flex;
  gap: 15px;
  align-items: center;
  color: #8a9891;
  font-size: 9px;
  letter-spacing: 1px;
  margin-top: 25px;
}
footer span {
  margin-right: auto;
  letter-spacing: 0;
}
footer button {
  font-size: 10px;
  padding: 5px 8px;
}
.tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tools input {
  flex: 1;
}
.full {
  grid-column: 1/-1;
}
.drop {
  border: 1px dashed #8eaf9c;
  background: #f5f9f4;
  border-radius: 12px;
  padding: 35px;
  text-align: center;
}
.drop h3 {
  font: 800 20px Manrope;
}
.drop p {
  font-size: 12px;
}
.steps {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}
.steps span {
  background: #eef3ec;
  padding: 9px;
  border-radius: 5px;
  font-size: 11px;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label {
  display: block;
  font-size: 12px;
  margin: 10px 0;
}
label input,
label select {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.subscription {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.subscription .grow {
  flex: 1;
}
.subscription h3 {
  margin: 0 0 4px;
  font-size: 14px;
}
.subscription p {
  margin: 0;
  font-size: 11px;
}
.goals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.goal-icon {
  font-size: 30px;
  margin-bottom: 20px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  width: 480px;
  max-width: 94vw;
  padding: 28px;
  color: var(--ink);
}
dialog::backdrop {
  background: #142c2577;
}
.close {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  background: none;
}
.empty {
  padding: 35px;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: var(--ink);
  color: white;
  border-radius: 9px;
  display: none;
  z-index: 10;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.month-card {
  background: white;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 10px;
  min-height: 130px;
}
.month-card.current {
  border-color: var(--green);
  background: #f0f6eb;
}
.month-card h3 {
  font-size: 13px;
}
.notice {
  font-size: 12px;
  background: #fff7e6;
  padding: 13px;
  border-radius: 7px;
  color: #7f704d;
}
.tablewrap {
  overflow: auto;
}
@media (min-width: 1500px) {
  .chart {
    height: 230px;
  }
  .wheel {
    flex-basis: 210px;
    height: 210px;
  }
}
@media (max-width: 1150px) {
  main {
    padding: 25px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .cards {
    gap: 10px;
  }
  .card {
    padding: 17px;
  }
  .card strong {
    font-size: 23px;
  }
  .wheel-wrap {
    justify-content: center;
  }
  header {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 760px) {
  aside {
    position: static;
    width: auto;
    padding: 18px;
    border-bottom: 1px solid var(--line);
  }
  aside > small,
  .side-bottom,
  .by {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 14px;
  }
  nav button {
    width: auto;
    white-space: nowrap;
    padding: 10px;
    font-size: 11px;
  }
  nav b {
    display: none;
  }
  main {
    margin: 0;
    padding: 20px 14px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .card strong {
    font-size: 23px;
  }
  .demo-bar {
    align-items: flex-start;
    gap: 8px;
  }
  .demo-bar button {
    max-width: 120px;
  }
  .actions {
    flex-wrap: wrap;
  }
  h1 {
    font-size: 26px;
  }
  .panel {
    padding: 17px;
  }
  .goals,
  .month-grid {
    grid-template-columns: 1fr 1fr;
  }
  .wheel-wrap {
    gap: 10px;
  }
  .wheel {
    flex-basis: 160px;
    height: 160px;
  }
  footer {
    flex-wrap: wrap;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  table {
    min-width: 520px;
  }
}
@media print {
  aside,
  header .actions,
  .demo-bar,
  footer,
  button,
  .tools {
    display: none !important;
  }
  main {
    margin: 0;
    padding: 0;
  }
  .card,
  .panel {
    break-inside: avoid;
  }
  .grid {
    display: block;
  }
  body {
    background: white;
  }
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
[hidden] {
  display: none !important;
}
#saveStatus {
  position: fixed;
  right: 18px;
  bottom: 12px;
  max-width: min(720px, 95vw);
  background: #e7efe7;
  color: #315441;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  z-index: 30;
}
#saveStatus:empty {
  display: none;
}
.save-failed main,
.save-failed aside {
  pointer-events: none;
  opacity: 0.5;
}
.save-failed #saveStatus {
  background: #fff0d4;
  color: #754b1a;
}
.save-failed #saveStatus button {
  margin: 5px;
}
#authRoot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background: radial-gradient(ellipse at top right, #d7e7c5, transparent 65%);
}
.auth-card {
  width: 440px;
  max-width: 95vw;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 25px 70px #243d2710;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 800 24px Manrope;
  margin-bottom: 14px;
}
.auth-card h1 {
  font-size: 25px;
}
.auth-card label {
  margin: 18px 0;
}
.auth-card form > button {
  width: 100%;
  margin: 8px 0 20px;
}
.auth-error {
  color: #a34e31;
  font-size: 12px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.auth-card .eyebrow {
  font-size: 9px;
}
#passwordForm {
  margin-top: 20px;
}
@media print {
  #saveStatus,
  #authRoot {
    display: none !important;
  }
}
textarea {
  font: inherit;
  width: 100%;
  padding: 10px;
  border: 1px solid #dde5e0;
  border-radius: 7px;
  resize: vertical;
  margin-top: 6px;
}
.file-intro {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #eff5ea;
  border-radius: 10px;
  padding: 18px;
  margin: 15px 0;
}
.file-intro > span {
  font-size: 30px;
  color: #4b8064;
}
.file-intro p {
  font-size: 12px;
  margin: 6px 0 0;
}
.file-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 15px 0 25px;
}
.file-summary > div {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.file-summary strong {
  font: 800 22px Manrope;
}
.file-summary span {
  font-size: 11px;
  color: var(--muted);
}
.file-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.file-folders button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  margin: 3px 0;
  font-size: 11px;
  padding: 12px 9px;
}
.file-folders button span {
  float: right;
  color: #8a9a90;
}
.file-folders button.chosen {
  background: #eaf3e6;
  color: var(--green);
  font-weight: 700;
}
.file-list .tools {
  gap: 7px;
}
.file-list .tools input {
  min-width: 160px;
}
.file-list .tools select {
  font-size: 11px;
  padding: 8px;
}
.file-name {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
  max-width: 340px;
}
.file-name b {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.file-name small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.file-icon {
  padding: 10px 6px;
  min-width: 38px;
  background: #f2eee7;
  border-radius: 8px;
  color: #a2825d;
  font-size: 10px;
}
.file-icon.csv {
  background: #e8f2e8;
  color: #397452;
}
.file-table td {
  padding: 17px 6px;
}
.file-table {
  min-width: 600px;
}
.file-empty {
  padding: 35px 15px;
  text-align: center;
  background: #fafbf9;
  border-radius: 10px;
}
.file-empty > span {
  display: block;
  font-size: 40px;
  color: #99b19d;
}
.file-empty p {
  font-size: 12px;
}
.badge.imported {
  background: #dfeedd;
  color: #366b46;
}
.source-file {
  padding: 12px;
  background: #eef4e9;
  border-radius: 7px;
  font-size: 11px;
}
@media (max-width: 900px) {
  .file-layout {
    grid-template-columns: 1fr;
  }
  .file-folders {
    display: flex;
    overflow: auto;
    gap: 6px;
  }
  .file-folders button {
    width: auto;
    white-space: nowrap;
  }
  .file-folders button span {
    float: none;
    margin-left: 8px;
  }
  .file-summary > div {
    display: block;
  }
  .file-summary span {
    display: block;
    margin-top: 5px;
  }
  .file-summary strong {
    font-size: 20px;
  }
}
