:root {
  color-scheme: light;
  font-family: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  color: #20382a;
  background: #f8f5ec;
  font-size: 16px;
  line-height: 1.55;
  --paper: #fffdf7;
  --ink: #20382a;
  --muted: #506257;
  --green: #28563e;
  --pale: #e8efdf;
  --line: #d9ddcf;
  --accent: #f9cd75;
  --warning: #8d351a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.03rem;
}
a {
  color: inherit;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.62;
}
:focus-visible {
  outline: 3px solid #116c92;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.layout {
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
}
.site-header {
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 4.25rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.brand img {
  border-radius: 0.8rem;
}
#app {
  padding-block: 1.65rem 3.5rem;
  display: grid;
  gap: 1.25rem;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: clamp(1rem, 4vw, 1.65rem);
  min-width: 0;
}
.intro {
  display: grid;
  gap: 0.8rem;
}
.intro p,
.install-panel p,
.note,
.empty,
.supporting {
  color: var(--muted);
}
.hero {
  background: #28563e;
  color: #fffdf4;
  border-color: #28563e;
}
.hero p {
  color: #edf5e8;
}
.hero .balance {
  display: block;
  margin-top: 0.55rem;
}
.balance {
  font-size: clamp(1.7rem, 5vw, 3.75rem);
  line-height: 1.08;
  font-weight: 840;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.accounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.account {
  display: grid;
  gap: 0.65rem;
  text-align: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(0.65rem, 3vw, 1.25rem);
  min-width: 0;
  font-weight: 760;
}
.account .balance {
  font-size: clamp(1.15rem, 3vw, 2.1rem);
}
.account[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.account:disabled {
  opacity: 1;
}
.dashboard {
  display: grid;
  gap: 1rem;
}
.chores {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block: 0.9rem;
}
.chore {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.55rem;
  align-items: center;
  text-align: start;
  padding: 0.7rem;
  min-height: 4.9rem;
  background: var(--pale);
  border: 1px solid transparent;
  border-radius: 0.85rem;
  font-weight: 730;
}
.chore:hover {
  border-color: var(--green);
}
.chore .icon {
  grid-row: span 2;
  font-size: 1.4rem;
}
.chore small,
.details {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--paper);
  text-decoration: none;
  font-weight: 750;
  white-space: normal;
  text-align: center;
}
.primary {
  color: #fffdf8;
  background: var(--green);
  border-color: var(--green);
}
.primary:hover,
.account[aria-pressed="true"]:hover {
  background: #17462d;
}
.secondary:hover {
  background: var(--pale);
}
.add-entry {
  flex: 1 0 auto;
}
.danger {
  color: var(--warning);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.section-head {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}
.tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.22rem;
  border-radius: 0.8rem;
  background: var(--pale);
}
.tabs button {
  border-color: transparent;
  background: transparent;
}
.tabs button[aria-pressed="true"] {
  background: var(--paper);
}
.rows {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
}
.rows li {
  border-top: 1px solid var(--line);
  padding: 0.8rem 0;
}
.entry-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.55rem;
}
.entry-value {
  flex: 0 1 auto;
  text-align: end;
  font-weight: 820;
  color: var(--green);
  white-space: nowrap;
}
.entry-value.negative {
  color: var(--warning);
}
.entry-actions {
  margin-top: 0.45rem;
}
.entry-actions .button {
  font-size: 0.84rem;
}
.note {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.audit {
  display: grid;
  gap: 0.45rem;
}
.audit-values {
  display: grid;
  gap: 0.3rem;
  overflow-wrap: anywhere;
}
.audit-values > div {
  background: var(--pale);
  padding: 0.5rem 0.7rem;
  border-radius: 0.65rem;
}
.audit-values strong {
  display: block;
  font-size: 0.84rem;
}
.more {
  margin-top: 0.7rem;
}
.settings {
  display: grid;
  gap: 0.8rem;
}
.settings details {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}
.settings summary,
.expense-options summary {
  font-weight: 760;
  cursor: pointer;
  min-height: 2.75rem;
  display: list-item;
}
.settings details p,
.settings details .actions {
  margin-bottom: 0.7rem;
}
.announcements:empty {
  display: none;
}
.message {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--pale);
  overflow-wrap: anywhere;
}
.message.error {
  background: #fae9db;
  color: var(--warning);
}
.demo {
  font-size: 0.86rem;
  color: var(--warning);
}
dialog {
  width: min(100% - 1.25rem, 28rem);
  max-height: calc(100dvh - 1.5rem);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  color: var(--ink);
  background: var(--paper);
  padding: 1.2rem;
}
dialog::backdrop {
  background: rgba(23, 35, 25, 0.63);
}
dialog h2 {
  margin-bottom: 0.7rem;
}
dialog form,
.editor-fields {
  display: grid;
  gap: 0.8rem;
}
dialog label {
  display: grid;
  gap: 0.25rem;
  font-weight: 740;
}
dialog input,
dialog select,
dialog textarea {
  display: block;
  border: 1px solid #a4ad9f;
  border-radius: 0.65rem;
  background: #fffdf8;
  padding: 0.55rem;
  color: var(--ink);
  min-height: 2.8rem;
  min-width: 0;
  width: 100%;
}
dialog textarea {
  resize: vertical;
}
.login-page {
  max-width: 35rem;
  display: grid;
  gap: 1rem;
  padding-block: 2rem;
}
.login-panel {
  display: grid;
  gap: 0.9rem;
}
.install-panel {
  display: grid;
  gap: 0.55rem;
}
@media (min-width: 52rem) {
  #app {
    padding-block: 2.1rem 4rem;
  }
  .dashboard {
    grid-template-columns: minmax(17rem, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }
  .audit-values {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 26rem) {
  .layout {
    width: min(100% - 1.25rem, 64rem);
  }
  .chore {
    grid-template-columns: 1fr;
  }
  .chore .icon {
    grid-row: auto;
  }
  .entry-title {
    flex-wrap: wrap;
  }
  .entry-value {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
