@import url("/fonts.css");
:root {
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #253e36;
  background: #f6f5f0;
  font-synthesis: none;
  --green: #315f4f;
  --muted: #768078;
  --line: #e1e4dc;
  --paper: #fffefa;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  padding: 11px 16px;
  color: inherit;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover {
  background: #e8eee5;
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
  box-shadow: 0 3px 7px #315f4f12;
}
.primary:hover {
  background: #244c3f;
}
.subtle {
  background: transparent;
  border-color: transparent;
}
.danger,
.error {
  color: #a34335;
}
.hidden {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
h1 {
  font-size: 40px;
  letter-spacing: -1.5px;
  margin-bottom: 0;
}
h2 {
  font-size: 27px;
  line-height: 1.25;
}
p {
  line-height: 1.65;
}
.muted,
small {
  color: var(--muted);
  line-height: 1.6;
}
.eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 15px;
}
.brand {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -1px;
  text-decoration: none;
  color: #315746;
}
aside {
  position: fixed;
  width: 246px;
  inset: 0 auto 0 0;
  padding: 38px 24px;
  background: #eeefe7;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
aside > .eyebrow {
  font-size: 8px;
  margin-top: 14px;
  margin-bottom: 52px;
}
nav {
  display: grid;
  gap: 8px;
}
nav a {
  display: flex;
  gap: 14px;
  text-decoration: none;
  color: #68766c;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
}
nav a.active {
  background: #dfe6d9;
  color: #284c3d;
  font-weight: 600;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 12px;
  display: grid;
  gap: 12px;
}
.sidebar-bottom small {
  overflow-wrap: anywhere;
}
#sync-status {
  color: #4a775e;
}
main {
  margin-left: 246px;
  padding: 48px 6%;
  max-width: 1600px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 38px;
}
header .eyebrow {
  font-size: 9px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  margin-bottom: 26px;
}
.intro p {
  margin: 0;
}
.pill {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11px;
}
.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
}
.toolbar input {
  flex: 1;
  min-width: 100px;
}
input,
textarea,
select {
  background: var(--paper);
  border: 1px solid #dce0d6;
  border-radius: 8px;
  padding: 12px;
  color: #263f35;
  width: 100%;
}
input:focus,
textarea:focus {
  border-color: #537b62;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
.toolbar select {
  width: 170px;
}
.entry-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px 25px;
  margin-bottom: 13px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 22px;
  cursor: pointer;
  box-shadow: 0 3px 9px #293a2910;
}
.entry-card:hover {
  border-color: #b4c6b3;
}
.entry-date {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
.entry-date strong {
  display: block;
  font: 29px Georgia;
  color: #536551;
  margin-bottom: 5px;
}
.entry-card h3 {
  font-size: 16px;
  font-weight: 550;
  margin: 0 0 9px;
}
.entry-card p {
  font-size: 13px;
  color: #7b8077;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.entry-meta {
  display: flex;
  gap: 10px;
  font-size: 10px;
  margin-top: 15px;
  color: #778372;
}
.category {
  background: #edf0e6;
  color: #647558;
  border-radius: 5px;
  padding: 4px 8px;
}
.entry-money {
  font-size: 14px;
  color: #5c6b54;
  white-space: nowrap;
}
.empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
}
.empty h2 {
  color: #455e4a;
}
.empty-icon {
  font-size: 50px;
  color: #acb99a;
  margin-bottom: 24px;
}
.panel {
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 22px;
  max-width: 850px;
}
.panel h2 {
  font-size: 25px;
}
.panel p {
  font-size: 14px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #607064;
  margin-bottom: 18px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.check input {
  width: 18px;
  height: 18px;
}
form button {
  margin-top: 6px;
}
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.suggestions button {
  font-size: 12px;
  border-radius: 24px;
}
#answer {
  white-space: pre-wrap;
  line-height: 1.7;
  margin-top: 24px;
}
.banner {
  background: #eaf0e2;
  border: 1px solid #dce4d2;
  border-radius: 9px;
  padding: 16px;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 13px;
}
.stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.stat {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  flex: 1;
  min-width: 150px;
}
.stat strong {
  display: block;
  font: 28px Georgia;
  margin: 10px 0;
}
.stat small {
  display: block;
}
.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: #e9eee2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12%;
  min-height: 100dvh;
}
.auth-story .brand {
  position: absolute;
  top: 45px;
}
.auth-story h1 {
  font-size: 64px;
  margin-bottom: 30px;
}
.auth-story p {
  color: #788670;
  font-size: 16px;
}
.story-note {
  margin-top: 60px;
  font-size: 9px;
  letter-spacing: 2px;
  color: #78906b;
}
.auth-form {
  max-width: 440px;
  width: 100%;
  padding: 30px;
  align-self: center;
  justify-self: center;
}
.auth-form .primary {
  width: 100%;
  margin-top: 10px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  width: min(660px, 95vw);
  max-height: 94dvh;
  color: inherit;
  background: var(--paper);
  box-shadow: 0 20px 80px #122c3833;
}
dialog::backdrop {
  background: #1e302b66;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.dialog-head button {
  padding: 0 10px;
  font-size: 25px;
  border: 0;
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.dialog-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
}
.file-picker {
  border: 1px dashed #b8c7af;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.file-picker input {
  font-size: 11px;
  border: 0;
  padding: 4px;
  background: none;
}
.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #294d3e;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  z-index: 20;
  display: none;
  box-shadow: 0 6px 24px #0002;
  max-width: 90vw;
}
#notice.visible {
  display: block;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  background: var(--paper);
}
th,
td {
  text-align: left;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
tr[data-id] {
  cursor: pointer;
}
tr[data-id]:hover {
  background: #eef1e7;
}
.user-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.user-row span {
  flex: 1;
}
.user-row select {
  width: 145px;
}
#audit {
  font-size: 12px;
  line-height: 2;
}
.pending {
  color: #9a7940;
}
.source-link {
  display: block;
  color: #315f4f;
  margin-top: 8px;
}
.auth-error {
  min-height: 20px;
}
@media (max-width: 950px) {
  aside {
    width: 200px;
    padding: 30px 16px;
  }
  main {
    margin-left: 200px;
    padding: 35px 5%;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input {
    flex-basis: 100%;
  }
  h1 {
    font-size: 34px;
  }
  .auth-story h1 {
    font-size: 50px;
  }
}
@media (max-width: 650px) {
  aside {
    inset: auto 0 0;
    width: auto;
    height: 72px;
    padding: 6px;
    background: #eeefe7f5;
    z-index: 5;
    border-top: 1px solid var(--line);
    backdrop-filter: blur(15px);
  }
  aside > .brand,
  aside > .eyebrow,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    justify-content: space-around;
    gap: 0;
  }
  nav a {
    flex-direction: column;
    gap: 3px;
    font-size: 18px;
    padding: 5px 9px;
    align-items: center;
  }
  nav a span {
    font-size: 8px;
  }
  main {
    margin: 0;
    padding: 28px 20px 100px;
  }
  header {
    align-items: flex-start;
    margin-bottom: 28px;
  }
  header .primary {
    font-size: 0;
    padding: 12px;
  }
  header .primary::after {
    content: "＋ Capture";
    font-size: 12px;
  }
  h1 {
    font-size: 33px;
  }
  .intro {
    font-size: 12px;
  }
  .entry-card {
    padding: 17px 14px;
    gap: 12px;
    grid-template-columns: 44px 1fr;
  }
  .entry-date {
    padding-right: 10px;
  }
  .entry-money {
    grid-column: 2;
  }
  .entry-card h3 {
    font-size: 15px;
  }
  .toolbar select {
    width: 145px;
  }
  .toolbar button {
    font-size: 12px;
  }
  .panel {
    padding: 22px;
  }
  .auth {
    display: block;
  }
  .auth-story {
    min-height: auto;
    padding: 90px 30px 25px;
  }
  .auth-story .brand {
    top: 25px;
  }
  .auth-story h1 {
    font-size: 42px;
    margin-bottom: 15px;
  }
  .auth-story p,
  .story-note {
    display: none;
  }
  .auth-form {
    padding: 30px;
    margin: auto;
  }
  dialog {
    padding: 23px;
  }
  .user-row {
    flex-wrap: wrap;
  }
  .user-row span {
    flex-basis: 100%;
  }
  #notice {
    bottom: 88px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
