#sentence-notebook {
  margin-top: 17px;
  border-top: 1px solid var(--line);
}
.note-summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  cursor: pointer;
  list-style: none;
}
.note-summary::-webkit-details-marker { display: none; }
.note-summary::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin: -3px 3px 0 0;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
details[open] > .note-summary::after { margin-top: 3px; transform: rotate(225deg); }
.note-summary:focus-visible,
.note-field textarea:focus-visible { outline: 3px solid #ad752d; outline-offset: 3px; }
.note-summary:hover .note-title, .note-week .note-summary:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.note-title { font: 700 1.18rem/1.4 var(--serif); }
.note-action, .note-count {
  margin-left: auto;
  color: var(--green);
  font-size: .83rem;
  font-weight: 500;
}
.note-intro, .note-status, .note-range, .note-empty {
  margin: 0;
  color: var(--muted);
  font-size: .87rem;
}
.note-intro { margin-bottom: 11px; }
.note-fields { display: grid; gap: 11px; }
.note-field { display: grid; gap: 4px; min-width: 0; }
.note-field label { color: var(--forest); font-size: .88rem; font-weight: 650; }
.note-field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 54px;
  resize: vertical;
  border: 1px solid #cfdacb;
  border-radius: 7px;
  padding: 8px 10px;
  background: #fdfefa;
  color: var(--ink);
  font: 1rem/1.5 var(--sans);
}
.note-field textarea::placeholder { color: #667166; }
.note-status { margin-block: 8px 13px; font-size: .8rem; }
.note-warning { color: #854b28; }
.note-week {
  padding: 0 12px;
  border: 1px solid #dde4d8;
  border-radius: 8px;
  background: #f4f6ee;
}
.note-week .note-summary { min-height: 44px; font-size: .9rem; }
.note-range { margin-top: -3px; font-size: .79rem; }
.note-entries { margin-block: 8px 12px; }
.note-entry { padding-block: 8px; border-top: 1px solid #dce3d6; }
.note-entry:last-child { padding-bottom: 0; }
.note-entry h4 { margin: 0 0 4px; font-size: .87rem; color: var(--forest); }
.note-entry dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 11px;
  margin: 0;
  font-size: .86rem;
}
.note-entry dt { color: var(--muted); }
.note-entry dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
