:root {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #233f3c;
  background: #f5f5f0;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 88px;
  max-width: 1240px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid #dce3dc;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-size: 17px;
  font-weight: 650;
}
.mark {
  background: #235c50;
  color: #fff;
  border-radius: 13px;
  padding: 4px 12px;
  font-size: 27px;
}
.badge {
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 8px 11px;
  background: #e6ede5;
  border-radius: 7px;
  white-space: nowrap;
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 45px 30px;
}
h1 {
  font-size: 38px;
  font-weight: 550;
  letter-spacing: -1.4px;
  margin: 12px 0;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 10px 0 26px;
  font-weight: 600;
}
p {
  line-height: 1.6;
}
.muted {
  color: #71817a;
}
.eyebrow {
  color: #668274;
  font-weight: 700;
  letter-spacing: 1.8px;
  font-size: 10px;
}
.small {
  font-size: 12px;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid #e0e6de;
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 5px 20px #23453604;
}
.login {
  max-width: 490px;
  margin: 30px auto;
}
.login h1 {
  margin: 18px 0 15px;
  font-size: 42px;
}
.login form {
  margin-top: 32px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 9px;
}
input {
  width: 100%;
  min-width: 0;
  padding: 14px 12px;
  font: inherit;
  color: #243e37;
  background: #fafbf8;
  border: 1px solid #dce3da;
  border-radius: 9px;
  min-height: 49px;
}
input:focus,
button:focus-visible {
  outline: 3px solid #91b7a1;
  outline-offset: 3px;
}
button {
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  background: #275d4e;
  color: #fff;
  padding: 15px 18px;
  min-height: 48px;
  font-weight: 600;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.secondary {
  background: #edf1eb;
  color: #365c4d;
}
.login button,
#save {
  width: 100%;
  justify-content: space-between;
  margin-top: 24px;
}
button span {
  font-size: 20px;
}
.personTabs {
  display: flex;
  gap: 8px;
  margin: 28px 0 24px;
  width: max-content;
  background: #e6ebe3;
  padding: 5px;
  border-radius: 12px;
}
.person {
  min-width: 126px;
  background: transparent;
  color: #607568;
}
.person.active {
  background: #fff;
  color: #245b4b;
  box-shadow: 0 2px 6px #283b2510;
}
.layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(450px, 1.45fr);
  gap: 24px;
  align-items: start;
}
.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}
.numbers input {
  font-size: 27px;
  padding: 17px 10px;
}
.unit {
  display: block;
  font-size: 12px;
  color: #809084;
  margin-top: 8px;
}
.measurement .small {
  margin-top: 20px;
}
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.dateRange {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 13px 0 22px;
}
.actions button {
  padding: 11px 13px;
  font-size: 12px;
}
.summary {
  background: #f0f5ed;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}
.summary strong {
  font-size: 23px;
  font-weight: 550;
  display: block;
  margin-top: 7px;
}
.summary span {
  font-size: 11px;
  color: #637b6b;
}
.entry {
  padding: 18px 0;
  border-bottom: 1px solid #e9eee6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.entry time {
  font-size: 12px;
  color: #75867b;
}
.entry strong {
  display: block;
  font-size: 20px;
  font-weight: 600;
  margin-top: 5px;
}
.entry small {
  font-size: 12px;
  color: #6c8073;
  font-weight: 400;
}
.entry button {
  padding: 10px;
  min-height: 44px;
  font-size: 12px;
  background: #f1f4ee;
  color: #3e6653;
}
.entry .delete {
  color: #8e4941;
  background: transparent;
}
footer {
  font-size: 11px;
  color: #7c897f;
  text-align: center;
  margin-top: 32px;
}
#message {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #234d40;
  color: white;
  padding: 16px 22px;
  box-shadow: 0 4px 24px #1233;
  border-radius: 12px;
  z-index: 5;
  max-width: 90vw;
  width: max-content;
}
#message.error {
  background: #8a4037;
}
[hidden] {
  display: none !important;
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .intro {
    align-items: flex-start;
  }
  h1 {
    font-size: 30px;
  }
  .intro > .secondary {
    font-size: 11px;
    padding: 10px;
  }
  .card {
    padding: 24px;
  }
}
@media (max-width: 480px) {
  header {
    height: 72px;
    padding: 0 18px;
  }
  .brand {
    font-size: 14px;
  }
  .badge {
    font-size: 9px;
  }
  main {
    padding: 28px 16px;
  }
  .intro {
    display: block;
  }
  .intro > .secondary {
    margin-top: 8px;
  }
  h1 {
    font-size: 28px;
  }
  .login h1 {
    font-size: 35px;
  }
  .login {
    margin: 12px auto;
  }
  .card {
    border-radius: 17px;
    padding: 22px 18px;
  }
  .numbers {
    gap: 8px;
  }
  .numbers input {
    font-size: 24px;
  }
  .entry {
    align-items: flex-start;
  }
  .entry .entryactions {
    display: flex;
    flex-direction: column;
  }
  .summary {
    gap: 10px;
    padding: 15px;
  }
  .summary strong {
    font-size: 20px;
  }
  .personTabs {
    width: 100%;
  }
  .person {
    flex: 1;
    min-width: 0;
  }
  .sectionhead {
    align-items: flex-start;
  }
  .sectionhead h2 {
    font-size: 21px;
  }
}
.layout > * {
  min-width: 0;
}
.dateRange > * {
  min-width: 0;
}
input[type="date"],
input[type="datetime-local"] {
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
