:root {
  color-scheme: light;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #172821;
  background: #f6f8f6;
  line-height: 1.5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid #509d80;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.shell {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}
header {
  background: #fff;
  border-bottom: 1px solid #d7dfdb;
}
.header-inner,
.section-heading,
.brand,
.actions,
.record {
  display: flex;
  align-items: center;
}
.header-inner {
  min-height: 4.5rem;
  justify-content: space-between;
}
.brand {
  gap: 0.7rem;
  font-size: 1.05rem;
}
.brand strong {
  overflow-wrap: anywhere;
}
.monogram,
#brand-logo {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.5rem;
}
.monogram {
  display: grid;
  place-items: center;
  background: #173e31;
  color: white;
  font-weight: 700;
  font-size: 1.15rem;
}
#brand-logo {
  object-fit: contain;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(1.8rem, 4.8vw, 2.7rem);
  font-weight: 640;
  line-height: 1.18;
  letter-spacing: -0.05em;
}
h2 {
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}
.section-heading {
  justify-content: space-between;
  gap: 1rem;
  margin: 2.4rem 0 1.3rem;
}
nav {
  display: flex;
  gap: 1.8rem;
  border-bottom: 1px solid #d7dfdb;
  margin-top: 1.45rem;
}
nav a {
  padding: 0.7rem 0 0.85rem;
  color: #54645b;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
nav a[aria-current="page"] {
  border-color: #216546;
  color: #164d35;
  font-weight: 650;
}
button {
  border-radius: 0.5rem;
  border: 1px solid #c7d2cb;
  background: white;
  color: #263c2f;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  font-weight: 560;
  line-height: 1.35;
}
button:hover {
  background: #edf3ef;
}
button.primary {
  color: #fff;
  background: #21543e;
  border-color: #21543e;
}
button.primary:hover {
  background: #17452f;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.quiet {
  border: none;
  background: none;
}
button.danger {
  background: #913431;
  border-color: #913431;
  color: #fff;
}
.panel,
.login-card,
dialog {
  background: white;
  border: 1px solid #dae2dc;
  border-radius: 0.8rem;
}
.login-card {
  max-width: 28rem;
  margin: clamp(2rem, 12vh, 8rem) auto;
  padding: clamp(1.5rem, 4vw, 2.4rem);
}
.login-card p,
.empty,
.record small,
small,
dialog p {
  color: #5c6c62;
}
.login-card p {
  margin: 0.8rem 0 1.5rem;
}
.login-card form,
.profile-form,
.fields {
  display: grid;
  gap: 1rem;
}
.login-card button {
  margin-top: 0.35rem;
}
label {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  background: white;
  color: inherit;
  border: 1px solid #bac8be;
  border-radius: 0.4rem;
  padding: 0.6rem 0.72rem;
  font-size: 1rem;
  font-weight: 400;
}
textarea {
  resize: vertical;
}
small {
  font-weight: 400;
}
#status:not([hidden]),
.dialog-error:not([hidden]) {
  padding: 0.7rem 0.9rem;
  background: #e9f2eb;
  color: #284c39;
  border-radius: 0.4rem;
}
#status {
  margin: 1rem 0;
}
#status.error,
.dialog-error:not([hidden]) {
  background: #fbebe8;
  color: #7e3028;
}
.empty {
  padding: 2rem;
}
.record {
  padding: 1rem 1.2rem;
  justify-content: space-between;
  gap: 1rem;
}
.record + .record {
  border-top: 1px solid #e4eae6;
}
.record div:first-child {
  min-width: 0;
}
.record strong,
.record small {
  display: block;
  overflow-wrap: anywhere;
}
.record strong {
  font-size: 1rem;
}
.record small {
  margin-top: 0.15rem;
}
.record .actions {
  gap: 0.4rem;
}
.record button {
  font-size: 0.85rem;
}
.profile-form {
  padding: clamp(1.2rem, 3vw, 2rem);
  max-width: 54rem;
  margin-bottom: 3rem;
  gap: 1.8rem;
}
.profile-form > button {
  justify-self: start;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  font-size: 1.08rem;
  font-weight: 620;
  padding: 0;
  margin-bottom: 1rem;
}
.fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wide {
  grid-column: 1/-1;
}
dialog {
  color: inherit;
  width: min(33rem, calc(100% - 2rem));
  padding: 1.5rem;
  max-height: 90dvh;
  box-shadow: 0 1rem 5rem #12211c26;
}
dialog::backdrop {
  background: #16271f66;
}
dialog form {
  display: grid;
  gap: 1.2rem;
}
.actions {
  gap: 0.6rem;
  justify-content: flex-end;
}
@media (max-width: 38rem) {
  .shell {
    width: calc(100% - 2rem);
  }
  nav {
    gap: 1.3rem;
  }
  .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .record {
    align-items: flex-start;
    flex-direction: column;
  }
  .header-inner {
    min-height: 3.8rem;
  }
  .brand {
    font-size: 0.95rem;
  }
  .empty {
    padding: 1.3rem;
  }
}
