* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: #242d32;
  background: #f6f8f8;
  font:
    15px/1.6 "Inter",
    "Microsoft YaHei UI",
    sans-serif;
}
header {
  background: #1b3835;
  color: white;
  padding: 12px 4vw;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}
header strong {
  font-size: 20px;
  flex: 1;
}
header span {
  font-size: 13px;
}
main {
  max-width: 1320px;
  margin: auto;
  padding: 32px 4vw;
}
h1 {
  font-size: 28px;
  margin: 8px 0 20px;
}
h2 {
  font-size: 20px;
  margin: 10px 0;
}
button,
select,
input,
textarea {
  font: inherit;
}
button {
  background: white;
  border: 1px solid #bfcac7;
  color: #224940;
  padding: 6px 13px;
  border-radius: 5px;
  cursor: pointer;
}
button:hover,
button:focus-visible {
  border-color: #287e63;
  background: #ecf6f0;
}
.primary {
  background: #17634f;
  color: white;
}
.primary:hover {
  background: #194e41;
  color: white;
}
.bar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.bar h1,
.bar h2 {
  flex: 1;
}
label {
  display: grid;
  gap: 4px;
  margin: 12px 0;
}
input,
textarea,
select {
  width: 100%;
  padding: 8px;
  border: 1px solid #b7c6c0;
  border-radius: 4px;
  background: white;
  color: #192a26;
}
textarea {
  min-height: 84px;
  resize: vertical;
}
dialog {
  border: 1px solid #bec8c6;
  width: min(580px, 94vw);
  max-height: 86vh;
  border-radius: 8px;
  padding: 20px;
}
dialog::backdrop {
  background: #0a211b66;
}
output {
  display: block;
  color: #99431e;
}
#status:not(:empty) {
  padding: 8px 4vw;
  background: #fff0db;
}
.signin {
  margin: 10vh auto;
  width: min(360px, 95%);
}
.list {
  border-top: 1px solid #cbd4d1;
  margin: 16px 0;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #d7dfdd;
  padding: 12px 3px;
  flex-wrap: wrap;
}
.row strong {
  flex: 1;
  min-width: 140px;
}
.muted,
small {
  color: #576664;
}
.shell {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  margin-top: 24px;
}
nav {
  display: grid;
  align-content: start;
  gap: 2px;
  border-right: 1px solid #ced8d1;
  padding-right: 10px;
}
nav button {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 12px;
}
nav button.current {
  background: #dcece5;
  font-weight: 650;
}
.metric {
  display: inline-grid;
  padding: 12px 26px 12px 0;
  color: #486158;
}
.metric b {
  font-size: 29px;
  color: #24382e;
}
.detail {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.preview {
  max-width: 260px;
  max-height: 160px;
  object-fit: contain;
}
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.empty {
  padding: 18px 0;
  color: #687974;
}
@media (max-width: 720px) {
  main {
    padding: 18px;
  }
  .shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  nav {
    display: flex;
    overflow: auto;
    border: 0;
    padding: 0;
  }
  nav button {
    white-space: nowrap;
  }
  header span {
    display: none;
  }
  .row strong {
    min-width: 90px;
  }
}
.bar select {
  width: auto;
  min-width: 125px;
}
.row span {
  overflow-wrap: anywhere;
}
.row small {
  max-width: 100%;
  overflow-wrap: anywhere;
}
body {
  background: #f8f9fa;
  color: #24282d;
  font-family: Inter, "Microsoft YaHei UI", sans-serif;
}
header {
  background: #fff;
  color: #253b37;
  border-bottom: 1px solid #dce0e3;
}
header strong {
  font-size: 18px;
}
main {
  max-width: 1380px;
}
h1 {
  font-size: 27px;
}
h2 {
  font-size: 18px;
}
.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid #cbd2d6;
  margin: 10px 0 24px;
  background: white;
}
.summary-strip .metric {
  padding: 14px 20px;
  border-right: 1px solid #e0e4e7;
}
.metric b {
  font-variant-numeric: tabular-nums;
}
.metric:last-child {
  border: 0;
}
.summary-strip .metric:last-child b {
  color: #96521f;
}
.recent {
  margin: 20px 0 30px;
}
.recent button {
  display: block;
  border: 0;
  border-bottom: 1px solid #e2e6e7;
  border-radius: 0;
  background: none;
  text-align: left;
  width: 100%;
  padding: 7px 0;
  color: #38586a;
}
.shell {
  grid-template-columns: 184px minmax(0, 1fr);
}
nav {
  padding-block: 8px;
  border-top: 2px solid #29685e;
}
nav button {
  border-radius: 3px;
}
.row small {
  background: #eef1f3;
  border-radius: 4px;
  padding: 2px 8px;
}
.primary {
  background: #155c50;
}
.native-editor [contenteditable] {
  min-height: 150px;
  border-block: 1px solid #ced8d5;
  padding: 12px;
  outline-color: #488a7b;
}
.native-editor img {
  max-width: 100%;
  max-height: 190px;
}
.native-editor [title] {
  font-size: 13px;
  min-width: 30px;
  height: 31px;
  padding: 3px;
  margin: 2px;
}
.native-editor [title] .font-bold {
  font-weight: 700;
}
.native-editor .italic {
  font-style: italic;
}
.native-editor .underline {
  text-decoration: underline;
}
.native-editor .line-through {
  text-decoration: line-through;
}
.native-editor button:disabled {
  opacity: 0.65;
}
.media-select {
  padding: 8px;
  background: white;
}
.media-select header {
  padding: 2px 5px;
  min-height: 35px;
}
.media-select img {
  width: 55px;
  height: 40px;
  object-fit: contain;
  vertical-align: middle;
}
.native-editor button:disabled {
  cursor: wait;
}
.native-editor .note-media {
  display: block;
}
.native-editor .flex {
  display: flex;
  flex-wrap: wrap;
}
.native-editor .justify-end {
  justify-content: flex-end;
}
.native-editor button.bg-btnPrimary {
  background: #155c50;
  color: white;
  margin-block: 8px;
}
.monthbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 12px;
}
.calendar .grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: #d6dddd;
  border: 1px solid #d6dddd;
}
.calendar .grid > div {
  background: #fff;
  min-width: 0;
}
.calendar .grid > div:nth-child(-n + 7) {
  text-align: center;
  background: #edf2f0;
  padding: 6px;
}
.day {
  padding: 6px;
  min-height: 69px;
  font-size: 13px;
}
.day.outside {
  color: #748179;
  background: #f5f6f6;
}
.day p {
  font-size: 12px;
  overflow-wrap: anywhere;
  margin: 2px 0;
  color: #245450;
}
.review {
  max-height: 44vh;
  overflow: auto;
  border-block: 1px solid #dee4e1;
}
.review small {
  display: block;
  color: #805220;
}
.bar select {
  max-width: 100%;
}
@media (max-width: 720px) {
  .summary-strip {
    grid-template-columns: 1fr 1fr;
  }
  .summary-strip .metric {
    padding: 9px 14px;
  }
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
  }
  nav button {
    text-align: center;
    font-size: 14px;
    padding: 7px 3px;
  }
  .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .row strong,
  .row details,
  .row > span {
    grid-column: 1/-1;
  }
  .row button {
    width: 100%;
  }
  .row small {
    justify-self: start;
  }
  .calendar .day {
    min-height: 48px;
    padding: 2px;
  }
  .day p {
    font-size: 11px;
  }
  .calendar .grid > div:nth-child(-n + 7) {
    font-size: 12px;
    padding: 3px 0;
  }
  .recent button {
    overflow-wrap: anywhere;
  }
}
.directory-shell {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 32px;
}
.directory-nav {
  position: sticky;
  top: 18px;
  align-self: start;
}
.directory-content h1,
.directory-content h2 {
  scroll-margin-top: 20px;
}
.packet-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.packet-body img {
  max-width: 100%;
}
@media (max-width: 860px) {
  .directory-shell {
    display: block;
  }
  .directory-nav {
    display: none;
  }
}
