@layer sections {
/* ── Notes ─────────────────────────────────────────────── */
.notes-section {
  max-width: 680px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  padding-bottom: 40px;
}
.note-item {
  margin-bottom: 10px;
}
.note-view {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  transition: border-color var(--t);
}
.note-view:hover { border-color: var(--sage-dot); }
.note-text { font-size: 16px; color: var(--text); line-height: 1.6; margin: 0; }
.note-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.note-date { font-size: 12px; color: var(--faint); }
.note-actions { display: flex; gap: 8px; }
.note-btn {
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  padding: 3px 8px;
}
.note-btn--delete { color: oklch(55% 0.09 8); }
.note-btn--delete form, .note-btn--delete input[type=submit] {
  display: inline;
  color: oklch(55% 0.09 8);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.note-textarea {
  width: 100%;
  min-height: 104px;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  line-height: 1.6;
}
.note-edit-form {
  background: var(--surface);
  border: 1px solid var(--sage-dot);
  border-radius: var(--r-md);
  overflow: hidden;
}
.note-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.note-composer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--t-slow);
}
.note-composer:focus-within { box-shadow: 0 0 0 2px var(--sage-bg); }
.note-composer-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.note-hint { font-size: 12px; color: var(--faint); }
.note-save-btn {
  font-size: 14px;
  font-weight: 500;
  color: var(--sage-fg);
  background: var(--sage-bg);
  border: none;
  border-radius: var(--r-sm);
  padding: 7px 16px;
  cursor: pointer;
  transition: background var(--t-slow);
}
}
