:root {
  font:
    15px/1.5 "Segoe UI",
    Arial,
    sans-serif;
  color: #20392f;
  background: #f7f7f2;
  --green: #244e40;
  --line: #cdd5ca;
  --paper: #fffefa;
  --muted: #546459;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #244a3e;
  color: #fff;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(5vw, 20px);
}
.brand,
#tools,
.actions,
nav,
.dialog-head,
.between {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}
#tools select {
  min-height: 38px;
}
main {
  max-width: 1360px;
  margin: auto;
  padding: 30px max(4.5vw, 18px) 75px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(35px, 4vw, 59px);
  line-height: 1.08;
}
h2 {
  font-size: 29px;
}
h3 {
  font-size: 16px;
}
.heading {
  padding: 28px 0 24px;
}
.heading p,
.muted,
small {
  color: var(--muted);
}
.heading p {
  margin-top: 8px;
}
.between {
  justify-content: space-between;
  align-items: center;
}
.actions {
  flex-wrap: wrap;
}
button,
.button,
select,
input {
  font: inherit;
}
button,
.button {
  border: 1px solid #aabbac;
  background: var(--paper);
  color: var(--green);
  border-radius: 5px;
  padding: 8px 13px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #e7eee6;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #173c2e;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #ba7927;
  outline-offset: 2px;
}
header button {
  background: transparent;
  color: white;
  border-color: #799286;
}
header button:hover {
  background: #395e50;
}
nav {
  border-bottom: 1px solid var(--line);
  gap: 22px;
  flex-wrap: wrap;
}
nav button {
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  padding: 8px 1px 12px;
  font-weight: 500;
}
nav button.active {
  color: var(--green);
  box-shadow: inset 0 -3px var(--green);
  font-weight: 700;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(230px, 0.8fr);
  gap: 32px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin: 0 0 20px;
}
.panel h2,
.panel h3 {
  margin-bottom: 10px;
}
.summary {
  background: #e9eee4;
}
.summary p + p,
details p + p {
  margin-top: 10px;
}
.number {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  background: #ecf0e7;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.scroll {
  overflow: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
td,
th {
  text-align: left;
  padding: 9px 8px;
  border-bottom: 1px solid #e1e5dc;
}
th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 650;
}
th:first-child,
td:first-child {
  padding-left: 0;
}
.right {
  text-align: right;
}
.total {
  font-weight: 700;
}
a {
  color: #285b48;
  text-underline-offset: 3px;
}
details {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.stack {
  display: grid;
  gap: 14px;
}
.stack label,
label.field {
  display: grid;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}
input,
select {
  max-width: 100%;
  min-width: 0;
  border: 1px solid #abb8a9;
  background: white;
  padding: 8px 9px;
  border-radius: 4px;
  color: #20392f;
}
select {
  cursor: pointer;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.login {
  max-width: 450px;
  margin: 10vh auto;
}
.login h1 {
  font-size: 37px;
}
.login p {
  margin: 12px 0 20px;
}
dialog {
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: min(680px, 94vw);
  max-height: 90vh;
  padding: 22px;
}
dialog::backdrop {
  background: rgb(25 43 35/0.42);
}
.dialog-head {
  justify-content: space-between;
  margin-bottom: 15px;
}
.cross {
  display: grid;
  place-items: center;
  padding: 6px;
}
.error {
  color: #872c22;
}
.entry-fields {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 6px 0;
}
.info {
  color: var(--muted);
  margin: 6px 0 12px;
}
.warn {
  color: #774a1f;
}
.empty {
  padding: 10px 0;
  color: var(--muted);
}
#notice:not(:empty) {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #203d31;
  color: white;
  padding: 9px 15px;
  border-radius: 6px;
  z-index: 5;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.compact {
  font-size: 13px;
  padding: 5px 9px;
}
.compare-years {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.compare-years label {
  white-space: nowrap;
}
.top-gap {
  margin-top: 16px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.entry-fields label {
  font-weight: 500;
}
.for-screen {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 760px) {
  main {
    padding-top: 15px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .heading.between {
    align-items: flex-start;
    flex-direction: column;
  }
  .panel {
    padding: 15px;
  }
  nav {
    gap: 14px;
  }
  .brand {
    gap: 6px;
  }
  #tools {
    gap: 6px;
  }
  header {
    padding: 10px 14px;
  }
  .heading {
    padding: 20px 0;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .brand strong {
    font-size: 16px;
  }
  #tools button {
    font-size: 13px;
    padding: 7px;
  }
  .between {
    gap: 6px;
  }
  .scroll table {
    min-width: 340px;
  }
}
@media (max-width: 400px) {
  .brand img {
    width: 25px;
  }
  nav {
    gap: 10px;
  }
  nav button {
    font-size: 14px;
  }
}

[hidden] {
  display: none !important;
}

.grid > * {
  min-width: 0;
}
