/* Блокнот проекта: колонка по центру, листается вся страница, а не поле.
   Снизу большой запас — строка, которую пишешь, не прилипает к краю окна. */

.notes {
  flex-grow: 1; min-height: 0;
  overflow-y: auto; cursor: text;
  padding: 64px 44px 40vh;
  scrollbar-width: thin; scrollbar-color: var(--field-border) transparent;
  mask-image: linear-gradient(to bottom, transparent 0, #000 28px);
}
.notes::-webkit-scrollbar { width: 6px; }
.notes::-webkit-scrollbar-thumb { background: var(--field-border); border-radius: 3px; }

.notes-sheet { position: relative; max-width: 660px; margin: 0 auto; }

.notes textarea {
  display: block; width: 100%; padding: 0; overflow: hidden;
  background: none; border: 0; resize: none; outline: none;
  font-family: var(--sans); font-size: 16px; line-height: 1.8; color: var(--fg-row);
  caret-color: var(--fg-strong);
}
.notes textarea::placeholder { color: var(--tick); }
.notes textarea::selection { background: var(--selection); }

/* Button over the selected text: solid like the toast, with the shadow of the project menu. */
.notes-make-task {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px; white-space: nowrap;
  background: var(--solid); color: var(--solid-fg); border: 0; border-radius: var(--radius); cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.notes-make-task:hover { background: var(--solid-hover); }
.notes-make-task[hidden] { display: none; }

/* Статус живёт в шапке, а не всплывает поверх текста. */
.notes-meta {
  display: flex; align-items: center; gap: 14px; margin: 0;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--tick);
  font-variant-numeric: tabular-nums;
}
.notes-state { opacity: 0; transition: opacity .4s ease; }
.notes-state.on { opacity: 1; transition-duration: .12s; }
.notes-state.err { opacity: 1; color: var(--fg-strong); }

@media (max-width: 900px) {
  .notes { padding: 36px 20px 40vh; }
  .notes-meta [data-notes-count] { display: none; }
}
