.notes-header { align-items: center; }
.notes-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.notes-list-panel,
.notes-editor-panel { min-height: 620px; }
.notes-list-panel { align-self: start; }
.notes-list { display: grid; gap: 8px; max-height: 680px; overflow: auto; }
.note-list__item {
  width: 100%;
  display: grid;
  gap: 5px;
  text-align: left;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  padding: 12px 13px;
  transition: .16s ease;
}
.note-list__item:hover { border-color: rgba(245,185,66,.34); background: rgba(245,185,66,.055); }
.note-list__item.is-active { border-color: rgba(245,185,66,.62); background: rgba(245,185,66,.09); }
.note-list__item strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-list__item span { color: var(--soft); font-size: 12px; line-height: 1.4; }
.note-list__item small { color: var(--muted); font-size: 11px; }
.note-editor { display: grid; gap: 18px; min-height: 580px; }
.note-editor__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.note-editor__top h2 { margin: 0; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.03em; }
.note-editor__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.note-title-input { font-size: 18px; font-weight: 800; }
.note-content-field { min-height: 390px; }
.note-content-input {
  min-height: 390px;
  height: 100%;
  resize: vertical;
  line-height: 1.6;
  font-family: inherit;
  font-size: 15px;
  white-space: pre-wrap;
}
.note-editor__footer { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.notes-empty-editor { min-height: 560px; display: grid; place-items: center; text-align: center; color: var(--muted); }
.notes-empty-editor strong { color: var(--text); font-size: 20px; }
.notes-empty-editor p { margin: 8px 0 18px; }
@media (max-width: 980px) {
  .notes-layout { grid-template-columns: 1fr; }
  .notes-list-panel, .notes-editor-panel { min-height: 0; }
  .notes-list { max-height: 300px; }
  .note-editor__top { flex-direction: column; }
  .note-editor__actions { width: 100%; justify-content: flex-start; }
}
