:root {
  font:
    16px/1.45 Inter,
    system-ui,
    sans-serif;
  color: #202820;
  background: #f4f3ec;
  --ink: #202820;
  --quiet: #536153;
  --line: #d6dbce;
  --paper: #fffffa;
  --accent: #d9f67e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 76px;
  background: var(--ink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 5vw, 5rem);
}
.brand {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.25rem;
  font-weight: 450;
  letter-spacing: -0.05em;
}
.brand strong {
  font-weight: 730;
}
.mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--ink);
  background: var(--accent);
  font:
    bold italic 1.4rem Georgia,
    serif;
  border-radius: 50%;
  margin-right: 0.45rem;
}
main {
  min-width: 0;
}
#app {
  max-width: 1120px;
  margin: clamp(2rem, 6vw, 5rem) auto;
  padding: 0 1.4rem;
}
.layout {
  display: grid;
  grid-template-columns: minmax(165px, 215px) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
}
nav {
  display: grid;
  align-content: start;
  gap: 4px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #a4af9e;
  background: var(--paper);
  color: var(--ink);
  padding: 0.54rem 0.88rem;
  border-radius: 0.5rem;
  font-weight: 540;
}
button:hover,
button:focus-visible {
  border-color: var(--ink);
  background: #edf2e4;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.primary:hover,
.primary:focus-visible {
  background: #3f5038;
  color: white;
}
.primary.lime {
  background: var(--accent);
  color: var(--ink);
}
#account {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.92rem;
}
#account button {
  background: transparent;
  color: white;
  border-color: #657162;
}
nav button {
  background: transparent;
  border: 0;
  text-align: left;
  padding: 0.7rem 1rem;
}
nav button[aria-current="page"] {
  background: #e0e6d7;
  font-weight: 700;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font:
    600 clamp(2rem, 4vw, 3.35rem)/1.07 Georgia,
    serif;
  letter-spacing: -0.052em;
  margin-bottom: 1.5rem;
}
h2 {
  font-size: 1.02rem;
  margin: 1.45rem 0 0.65rem;
}
.panel,
.row,
.empty {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.1rem;
}
.empty {
  border-style: dashed;
  color: var(--quiet);
}
.rows,
.items {
  display: grid;
  gap: 0.55rem;
}
.row,
.actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.row {
  gap: 0.8rem;
  flex-wrap: wrap;
}
.row .person {
  flex: 1;
  min-width: 104px;
}
.person strong,
.person small {
  display: block;
}
.person small,
.muted {
  color: var(--quiet);
}
.avatar {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  background: #e8ecda;
  border-radius: 0.85rem;
  font-weight: 650;
}
.badge {
  padding: 0.16rem 0.5rem;
  background: #edf1e7;
  border-radius: 1rem;
  font-size: 0.81rem;
}
.actions {
  flex-wrap: wrap;
}
form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}
label {
  display: grid;
  gap: 0.35rem;
  font-weight: 550;
}
input,
select {
  min-width: 0;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #a4af9e;
  border-radius: 0.45rem;
  background: white;
  color: var(--ink);
}
label.check {
  display: flex;
  align-items: center;
}
.check input {
  width: auto;
}
form .actions {
  margin-top: 0.3rem;
}
.search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.search label {
  flex: 1;
}
.hero {
  max-width: 42rem;
  padding: clamp(1.6rem, 5vw, 4rem);
  background: var(--ink);
  border-radius: 1.3rem;
  color: white;
}
.hero p {
  color: #d5dbcb;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
}
#message:not(:empty) {
  padding: 0.7rem 1rem;
  background: #e6efc8;
  text-align: center;
}
.danger {
  color: #863c2d;
}
.more {
  margin: 0.7rem 0;
}
.sr {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #6a8727;
  outline-offset: 2px;
}
@media (max-width: 650px) {
  header {
    height: 62px;
  }
  #app {
    margin-top: 1.4rem;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
  }
  nav button {
    padding: 0.36rem 0.6rem;
  }
  .row .actions {
    width: 100%;
  }
  #account {
    gap: 0.4rem;
  }
  #account > span {
    display: none;
  }
}
