:root {
  font-family:
    system-ui,
    -apple-system,
    "Noto Sans SC",
    sans-serif;
  color: #192e29;
  background: #f4f7f5;
  --green: #176a53;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  padding: 22px max(5%, calc((100% - 1100px) / 2));
  background: white;
  border-bottom: 1px solid #dce5df;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  font-size: 25px;
  font-weight: 800;
}
.brand span {
  color: var(--green);
}
small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #6b7d74;
}
nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
main {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 20px;
  min-height: 75vh;
}
h1 {
  font-size: 29px;
  margin: 0 0 8px;
}
h2 {
  font-size: 20px;
}
p {
  line-height: 1.7;
}
.muted {
  color: #6b7d74;
}
.card {
  padding: 24px;
  background: white;
  border: 1px solid #dce5df;
  border-radius: 16px;
  margin: 16px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.grid .card {
  margin: 0;
}
.login {
  max-width: 440px;
  margin: 65px auto;
}
.tag {
  display: inline-block;
  background: #e9f3ed;
  color: #176a53;
  padding: 5px 10px;
  border-radius: 30px;
  font-size: 12px;
}
button,
.btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  display: inline-block;
}
nav button,
.secondary {
  background: #edf2ef;
  color: #254e40;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px;
  margin: 6px 0 16px;
  border: 1px solid #cddbd2;
  border-radius: 8px;
  font: inherit;
  background: white;
}
input[type="checkbox"] {
  width: auto;
  margin: 0 8px 0 0;
}
label {
  font-size: 14px;
  display: block;
}
label.check {
  margin: 12px 0;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.row > * {
  flex: 1;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid #e3ebe5;
  padding: 12px 8px;
}
.scroll {
  overflow: auto;
}
#notice:not(:empty) {
  background: #fff4d9;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 18px;
}
footer {
  text-align: center;
  padding: 24px;
  color: #6b7d74;
  font-size: 13px;
}
[hidden] {
  display: none !important;
}
details {
  margin: 16px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.metric {
  font-size: 38px;
  font-weight: 700;
  color: var(--green);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.calendar-cell {
  border: 1px solid #dce5df;
  border-radius: 8px;
  min-height: 110px;
  padding: 8px;
  background: #fafcfb;
}
.calendar-cell .row {
  justify-content: space-between;
}
.calendar-cell button {
  padding: 5px;
  font-size: 12px;
}
.calendar-event {
  display: block;
  width: 100%;
  text-align: left;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.day-title {
  text-align: center;
  font-weight: 700;
  padding: 8px;
}
.event-cover {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}
.letter-paper {
  max-width: 800px;
  margin: 24px auto;
  padding: 50px;
}
.letter-paper h1 {
  text-align: center;
}
.letter-body {
  font-size: 17px;
  line-height: 2.1;
  margin-top: 36px;
}
@media (max-width: 600px) {
  .calendar-cell {
    padding: 3px;
    min-height: 80px;
  }
  .calendar-event {
    font-size: 10px;
  }
  .letter-paper {
    padding: 20px;
  }
}
@media print {
  header,
  footer,
  nav,
  button,
  #notice,
  details {
    display: none !important;
  }
  main {
    margin: 0;
    padding: 0;
    max-width: none;
  }
  .letter-paper {
    border: 0;
    padding: 10mm;
    max-width: none;
    box-shadow: none;
  }
  .card {
    break-inside: avoid;
  }
  .scroll {
    overflow: visible;
  }
  body {
    background: white;
  }
  a {
    color: black;
    text-decoration: none;
  }
}
