:root {
  font:
    15px/1.45 "Segoe UI",
    Roboto,
    sans-serif;
  color: #282725;
  background: #f8f7f4;
  --line: #e4e1dc;
  --teal: #087f72;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  background: #faf9f7;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 14px;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #0a9486;
  outline-offset: 2px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 222px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 22px 12px;
  z-index: 3;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 6px 24px;
  font-weight: 730;
  font-size: 21px;
}
.brand b {
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
  border-radius: 50%;
  background: #173d39;
  color: #89dbbf;
  font-size: 27px;
}
.brand small {
  display: block;
  font-size: 12px;
  font-weight: 450;
  color: #686a64;
}
nav {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 6px;
}
nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  background: white;
  text-align: left;
  font-weight: 600;
  padding: 13px 15px;
}
nav i {
  font-style: normal;
  width: 22px;
  text-align: center;
  font-size: 19px;
}
nav [aria-current] {
  background: #fff6e5;
  color: #945000;
  box-shadow: inset 3px 0 #f6ae24;
}
.topbar {
  height: 60px;
  margin-left: 222px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  font-size: 14px;
}
.topbar strong {
  border: 1px solid #b3c1ba;
  border-radius: 12px;
  padding: 6px 12px;
  color: #174e45;
}
main {
  margin: 0 0 0 222px;
  padding: 22px clamp(16px, 3vw, 46px) 75px;
  max-width: 1500px;
}
.heading,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 25px;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 17px;
}
.heading {
  margin-bottom: 16px;
}
#simple,
.link {
  font-size: 12px;
  font-weight: 600;
}
#simple[aria-pressed="true"] {
  color: var(--teal);
  background: #def5ed;
}
.period {
  display: flex;
  gap: 10px;
  margin: 0 0 13px;
  align-items: stretch;
  font-size: 13px;
}
.period > span,
.period > div {
  background: #eeedea;
  border-radius: 10px;
  padding: 6px 12px;
}
.period > div {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 5px;
}
.period button {
  background: transparent;
  border: 0;
  font-size: 20px;
  line-height: 1;
  padding: 4px 10px;
}
.balance {
  background: #192438;
  color: #f6f9fc;
  border: 3px solid #f6b334;
  border-radius: 25px;
  padding: 23px 23px 14px;
  box-shadow: 0 3px 12px #a46e1a12;
}
.balance p,
.balance small,
.cash-net span {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.7px;
  color: #c9d2df;
}
.balance > strong {
  display: block;
  font-size: clamp(31px, 3vw, 44px);
  line-height: 1.25;
  margin: 10px 0;
  font-weight: 750;
  letter-spacing: -1.8px;
}
.saving {
  font-size: 12px;
  color: #b8c4d2;
}
.saving b {
  border-radius: 8px;
  background: #11443e;
  color: #7df1bb;
  padding: 2px 7px;
  margin-right: 5px;
}
.cash-net,
.pair > div {
  background: #263247;
  border: 1px solid #384358;
  border-radius: 12px;
  padding: 10px 13px;
}
.cash-net {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.pair,
.summary {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.pair > div,
.summary > div {
  flex: 1;
  min-width: 0;
}
.pair b,
.summary b {
  display: block;
  font-size: 18px;
  margin-top: 3px;
  color: #66e5b0;
}
.pair div + div b,
.summary div:nth-child(2) b {
  color: #ff93aa;
}
.panel,
#chat,
#accounts,
.search {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px 18px;
}
.panel {
  margin-top: 14px;
}
.panel-head {
  margin-bottom: 8px;
}
.link {
  background: none;
  border: 0;
  color: #315f95;
}
.simple .cash-net,
.simple .saving,
.simple .activity {
  display: none;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 6px;
  overflow-wrap: anywhere;
}
li + li {
  border-top: 1px solid var(--line);
}
li small {
  display: block;
  font-size: 12px;
  color: #676961;
}
li > span {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e3eee8;
  font:
    650 18px "Segoe UI",
    sans-serif;
}
.tx {
  border: 1px solid #e8e4df;
  border-radius: 10px;
  margin-bottom: 5px;
  padding: 10px;
}
.tx.expense {
  background: #faf2ef;
}
.tx.income {
  background: #eef8f1;
}
.tx.transfer {
  background: #eff3f9;
}
.tx.expense > span {
  color: #b72551;
}
.tx.income > span {
  color: #117759;
}
.tx.transfer > span {
  color: #366cb4;
}
.tx small {
  width: fit-content;
  background: #f1efea;
  border-radius: 4px;
  padding: 1px 4px;
  margin-top: 3px;
}
.day {
  font-size: 12px;
  font-weight: 600;
  border: 0;
  color: #565a61;
}
.summary {
  background: #182237;
  border-radius: 12px;
  padding: 13px;
  color: #c2ccda;
  text-align: center;
  font-size: 12px;
}
.summary > div + div {
  border-left: 1px solid #394054;
}
.search {
  margin: 10px 0;
}
.fab {
  position: fixed;
  right: 23px;
  bottom: 23px;
  z-index: 2;
  background: #ffbd28;
  border: 3px solid #ffdb74;
  border-radius: 50%;
  width: 57px;
  height: 57px;
  color: #533512;
  font-size: 30px;
  line-height: 1;
  padding: 0;
  box-shadow: 0 4px 18px #ab70073a;
}
label {
  display: grid;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  margin: 12px 0;
}
input,
select {
  width: 100%;
  border: 1px solid #d8dad5;
  border-radius: 9px;
  padding: 10px;
  background: #fbfaf8;
  color: inherit;
}
dialog {
  width: min(440px, 94vw);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 23px;
  color: inherit;
}
dialog::backdrop {
  background: #17202f80;
}
.types {
  display: flex;
  padding: 4px;
  margin: 14px 0;
  border: 0;
  border-radius: 9px;
  background: #efeeeb;
}
.types legend {
  position: absolute;
  clip-path: inset(50%);
}
.types label {
  position: relative;
  flex: 1;
  text-align: center;
  margin: 0;
  padding: 8px;
  cursor: pointer;
}
.types input {
  position: absolute;
  opacity: 0;
  width: 1px;
}
.types label:has(:checked) {
  background: white;
  color: #a84927;
  border-radius: 7px;
}
.types label:focus-within {
  outline: 2px solid var(--teal);
}
.primary {
  background: #087f72;
  color: white;
}
.primary,
#close {
  margin-top: 7px;
}
#error {
  color: #a11d41;
}
#messages p {
  white-space: pre-line;
  background: #eef6f2;
  border-radius: 10px;
  padding: 10px;
  margin: 7px 0;
}
footer {
  font-size: 12px;
  color: #72736a;
  margin: 16px 0;
}
@media (max-width: 960px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 0;
    border: 0;
  }
  .brand {
    display: none;
  }
  .topbar,
  main {
    margin-left: 0;
  }
  .topbar {
    height: 51px;
    padding: 0 17px;
  }
  main {
    padding: 16px 14px 96px;
  }
  nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 4px 0 max(4px, env(safe-area-inset-bottom));
    gap: 0;
  }
  nav button {
    flex: 1;
    flex-direction: column;
    gap: 0;
    padding: 3px 0;
    font-size: 11px;
  }
  nav [aria-current] {
    background: #fff9ec;
    box-shadow: none;
  }
  .fab {
    bottom: 72px;
    right: 14px;
  }
  .balance {
    padding: 17px 14px 11px;
  }
  .panel {
    padding: 12px;
  }
  .summary b {
    font-size: 14px;
  }
}
/* Layout follows the recorded monthly dashboard. */
:root {
  font-family: Inter, "Segoe UI", sans-serif;
  background: #f7f6f2;
  color: #292c30;
}
.sidebar {
  width: 232px;
  padding: 27px 14px;
  background: #fcfcfa;
}
.brand {
  padding-bottom: 30px;
}
.brand b {
  border-radius: 16px;
  background: #173e38;
  color: #a6e2cc;
}
nav {
  gap: 4px;
}
nav button {
  background: transparent;
  border-radius: 10px;
  font-size: 14px;
  padding: 12px 15px;
}
nav [aria-current] {
  background: #fff1d0;
  color: #8d5b09;
  box-shadow: none;
}
.topbar {
  margin-left: 232px;
  height: 68px;
  padding: 0 34px;
}
main {
  margin-left: 232px;
  max-width: 1440px;
  padding: 30px 36px 86px;
}
.heading {
  margin-bottom: 24px;
}
h1 {
  font-size: 28px;
}
.balance {
  background: linear-gradient(120deg, #131d30, #253246);
  padding: 28px;
  border-radius: 28px;
  border-color: #efbf45;
  box-shadow: 0 5px 24px #b58c2320;
}
.balance > strong {
  font-size: 44px;
  margin: 16px 0;
}
.cash-net {
  margin-top: 23px;
}
.pair > div {
  padding: 16px;
}
.panel {
  padding: 20px;
  border-radius: 18px;
}
.panel-head {
  margin-bottom: 16px;
}
.transaction-name {
  border: 0;
  background: none;
  font-weight: 650;
  text-align: left;
  padding: 0;
  border-radius: 3px;
}
.transaction-name:hover {
  text-decoration: underline;
}
.tx {
  padding: 13px;
  border-radius: 12px;
}
.period {
  margin-bottom: 18px;
}
.period > span,
.period > div {
  border-radius: 20px;
}
.filter {
  max-width: 250px;
}
.fab {
  background: #ffc62f;
  border-color: #ffe49a;
}
#notice:empty {
  display: none;
}
#notice {
  padding: 12px;
  background: #e5f3eb;
  border-radius: 10px;
  margin-top: 20px;
}
dialog {
  max-height: 90vh;
  overflow-y: auto;
}
dialog > p {
  margin: 15px 0;
}
#accounts li {
  padding: 20px 8px;
}
footer {
  margin-top: 30px;
}
@media (min-width: 1100px) {
  #home {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
    gap: 20px;
    align-items: start;
  }
  #home .balance {
    grid-column: 1;
    grid-row: 1;
  }
  #home .wallet {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    height: 100%;
  }
  #home .activity {
    grid-column: 1/-1;
    margin: 0;
  }
  .simple .balance {
    grid-column: 1/-1;
  }
  .simple .wallet {
    grid-column: 1/-1;
    grid-row: auto;
  }
}
@media (max-width: 960px) {
  .sidebar {
    width: auto;
    padding: 0;
  }
  .topbar,
  main {
    margin-left: 0;
  }
  .topbar {
    padding: 0 18px;
    height: 56px;
  }
  main {
    padding: 22px 14px 108px;
  }
  .heading {
    margin-bottom: 18px;
  }
  h1 {
    font-size: 24px;
  }
  nav {
    gap: 0;
    overflow-x: auto;
    justify-content: start;
  }
  nav button {
    min-width: 70px;
    font-size: 10px;
    padding: 7px 3px;
    gap: 2px;
  }
  nav i {
    font-size: 20px;
  }
  .balance {
    padding: 22px 18px;
  }
  .balance > strong {
    font-size: 36px;
  }
  .panel {
    padding: 16px;
  }
  .panel-head {
    flex-wrap: wrap;
  }
  .pair > div {
    padding: 12px;
  }
  .feature-summary strong {
    font-size: 21px;
  }
  .tx > span {
    font-size: 13px;
  }
  .tx > div {
    min-width: 0;
  }
  .transaction-name {
    overflow-wrap: anywhere;
  }
  .fab {
    bottom: 84px;
  }
}
:root {
  --surface: #fff;
  --line: #e4e1dc;
  --teal: #087f72;
  --muted: #6a716c;
}
body {
  background: #f7f6f2;
}
button,
input,
select,
textarea {
  font: inherit;
}
textarea {
  min-height: 90px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  background: var(--surface);
  color: inherit;
}
select {
  width: 100%;
}
.sidebar {
  overflow-y: auto;
}
.sidebar nav {
  padding-bottom: 20px;
}
.sidebar nav button {
  min-height: 44px;
}
nav button:not(:has(i)) {
  padding-left: 22px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 12px 0;
}
.field-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}
.field-grid label {
  margin: 4px 0;
}
.history-tools {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 12px;
  margin: 14px 0;
}
.history-tools label {
  font-size: 12px;
}
.period > select {
  max-width: 160px;
  background: #eeedea;
  border: 0;
  border-radius: 20px;
}
.period #month {
  font-size: 14px;
  font-weight: 650;
}
.worth-breakdown {
  color: #c0cedc;
  font-size: 12px;
  margin-top: 18px;
  line-height: 1.8;
}
.balance .dark-button {
  color: #d5e3e7;
  background: #263247;
  border-color: #384358;
  font-size: 12px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 20px 0;
}
.calendar-grid > b {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.calendar-grid > button {
  min-height: 85px;
  padding: 10px 4px;
  background: var(--surface);
}
.calendar-grid small {
  display: block;
  font-size: 11px;
  margin-top: 8px;
}
.feature-summary {
  display: flex;
  gap: 14px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.feature-summary > div {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  flex: 1;
  min-width: 160px;
}
.feature-summary strong {
  display: block;
  font-size: 24px;
  margin-top: 6px;
}
.inline-add {
  position: static;
  border-radius: 12px;
  width: auto;
  height: auto;
  padding: 10px 22px;
  font-size: 24px;
  margin: 20px 0;
}
dialog {
  width: min(560px, 95vw);
  max-height: 90vh;
}
#generic-error,
#error {
  color: #b72349;
}
input[type="checkbox"] {
  width: auto;
  justify-self: start;
  accent-color: var(--teal);
}
progress {
  accent-color: var(--teal);
  width: 100%;
}
section > p {
  margin: 15px 0;
}
.panel p {
  margin: 12px 0;
}
.panel > button {
  margin-right: 6px;
}
.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 16px 0;
  padding-bottom: 8px;
}
.tabs button {
  white-space: nowrap;
}
.tabs [aria-selected="true"],
.tabs .active {
  background: #fff1d0;
  color: #8d5b09;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
.table-wrap {
  overflow-x: auto;
}
#home-insights {
  grid-column: 1/-1;
}
.chart-bar {
  height: 10px;
  border-radius: 5px;
  background: var(--teal);
  min-width: 2px;
}
.chart-row {
  margin: 16px 0;
}
.chart-row > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  background: #edf4ee;
  border-radius: 7px;
  font-size: 12px;
}
.topbar #household-switch {
  background: transparent;
}
#profile img {
  max-width: 160px;
  border-radius: 12px;
}
#profile .profile-tabs {
  display: flex;
  gap: 7px;
  overflow: auto;
  margin: 16px 0;
  padding-bottom: 8px;
}
#profile .profile-tabs button {
  white-space: nowrap;
}
#profile article {
  margin-top: 15px;
}
.empty {
  padding: 24px;
  color: var(--muted);
}
[data-theme="dark"] {
  color-scheme: dark;
  --surface: #202a35;
  --line: #394450;
  --muted: #a3b2b9;
  color: #e6edf0;
  background: #131c24;
}
[data-theme="dark"] body {
  background: #131c24;
}
[data-theme="dark"] .sidebar,
[data-theme="dark"] .topbar,
[data-theme="dark"] nav,
[data-theme="dark"] .panel,
[data-theme="dark"] dialog,
[data-theme="dark"] .feature-summary > div {
  background: var(--surface);
  color: #e6edf0;
}
[data-theme="dark"] button,
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] .search {
  background: #273543;
  color: #e6edf0;
  border-color: var(--line);
}
[data-theme="dark"] nav [aria-current] {
  background: #594b28;
  color: #ffe7a7;
}
[data-theme="dark"] .tx.expense {
  background: #352830;
}
[data-theme="dark"] .tx.income {
  background: #203a32;
}
[data-theme="dark"] .tx.transfer {
  background: #25354b;
}
[data-theme="dark"] .tx small {
  background: #2c3941;
  color: #bdc7cf;
}
@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    color-scheme: dark;
    --surface: #202a35;
    --line: #394450;
    --muted: #a3b2b9;
    color: #e6edf0;
    background: #131c24;
  }
  [data-theme="system"] body,
  [data-theme="system"] .sidebar,
  [data-theme="system"] .topbar,
  [data-theme="system"] nav,
  [data-theme="system"] .panel,
  [data-theme="system"] dialog {
    background: var(--surface);
    color: #e6edf0;
  }
  [data-theme="system"] input,
  [data-theme="system"] select,
  [data-theme="system"] button {
    background: #273543;
    color: #e6edf0;
  }
}
@media (max-width: 1100px) {
  .history-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .history-tools > label:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 960px) {
  .sidebar {
    overflow: visible;
  }
  .sidebar nav {
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    overflow-x: auto;
  }
  .sidebar nav button {
    padding: 12px 10px;
    min-width: 90px;
    font-size: 11px;
  }
  .sidebar nav button:not(:has(i)) {
    padding-left: 10px;
  }
  .sidebar nav i {
    display: none;
  }
  .calendar-grid > button {
    min-height: 65px;
    font-size: 12px;
  }
  .calendar-grid small {
    font-size: 9px;
  }
  .history-tools {
    gap: 8px;
  }
  .period {
    gap: 5px;
  }
  .period > select {
    max-width: 105px;
  }
  .period #month {
    font-size: 12px;
  }
  .period button {
    padding: 7px;
  }
  .feature-summary strong {
    font-size: 20px;
  }
  #home-insights {
    margin-top: 14px;
  }
}
