.edit-note {
  margin-top: 13px;
  border: 0;
  background: none;
  color: #1d6b50;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  padding: 0;
  cursor: pointer;
}
.no-scroll { overflow: hidden; }
.edit-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #101b1788;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
}
.edit-sheet {
  width: min(100%, 680px);
  max-height: 92dvh;
  overflow: auto;
  background: #fffdfa;
  border-radius: 24px 24px 18px 18px;
  padding: 24px;
  box-shadow: 0 -20px 70px #0003;
}
.edit-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; }
.edit-heading h2 { font-family: Georgia, serif; font-size: 30px; font-weight: 500; margin: 0; }
.close-button { width: 38px; height: 38px; border: 1px solid #dedbd2; border-radius: 50%; background: #fff; font-size: 25px; line-height: 1; cursor: pointer; }
.edit-sheet > label:not(:first-of-type) { margin-top: 16px; }
.edit-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; align-items: end; margin-top: 22px; }
.edit-actions .save-button { margin: 0; }
.edit-actions .secondary { height: 48px; }
.notion-fallback { display: block; text-align: center; color: #68736e; font-size: 11px; margin-top: 8px; }
@media (max-width: 520px) {
  .edit-overlay { padding: 0; }
  .edit-sheet { max-height: 96dvh; border-radius: 22px 22px 0 0; padding: 20px 16px; }
  .edit-actions { grid-template-columns: 1fr; }
  .edit-actions .save-button { order: -1; }
}

/* Keep tags visually quiet, consistent with the Business Command page. */
.tag-picker .selected-tags span {
  background: transparent;
  border: 1px solid #d8d5cc;
  color: #7b827e;
  font-weight: 500;
}
.notes-list .meta span {
  background: transparent;
  border: 1px solid #d8d5cc;
  color: #7b827e;
  font-weight: 500;
}
