/* Hari Villa — record notes (design 019). Shown on the record edit surface. */
.notes-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 0.9rem; }
.note-row {
  border-left: 3px solid var(--line);
  padding: 0.15rem 0 0.15rem 0.7rem;
}
.note-body { white-space: pre-wrap; line-height: 1.5; color: var(--ink); }
.note-meta {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.note-act {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.78rem;
  color: var(--navy);
  text-decoration: underline;
  cursor: pointer;
}
.note-act:hover { color: var(--gold); }
.note-row textarea, .note-form textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}
.note-form { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }

/* Read-only record view (design 019 follow-on) — key/value rows that stack
   on narrow screens so nothing overflows at 320px. */
.record-view .record-meta { display: flex; align-items: center; gap: 0.5rem;
  flex-wrap: wrap; margin-bottom: 0.8rem; }
.record-fields { display: flex; flex-direction: column; gap: 0.6rem; margin: 0; }
.rv-row { display: flex; flex-direction: column; gap: 0.1rem; }
.rv-row dt { font-size: 0.78rem; color: var(--muted); }
.rv-row dd { margin: 0; color: var(--ink); line-height: 1.45; word-break: break-word; }

/* Record attachments (design 023). */
.attach-add { display: inline-block; margin-bottom: 0.7rem; cursor: pointer; }
/* The "Add files" label starts its own line under the form fields, so it must
   align with them — cancel the 0.5rem left margin `.reveal-btn` adds for inline
   use (the 6px offset measured on /add-record). Compound selector wins on
   specificity regardless of stylesheet order. */
.attach-add.reveal-btn { margin-left: 0; }
.attach-list { display: flex; flex-direction: column; gap: 0.4rem; }
.attach-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.attach-name { color: var(--navy); font-weight: 600; text-decoration: none; word-break: break-word; }
.attach-name:hover { color: var(--gold); text-decoration: underline; }
.attach-meta { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.attach-copy {
  flex: 0 0 auto; min-height: 44px; padding: 0 0.8rem;
  border: 1px solid var(--gold); border-radius: 8px;
  background: rgba(201, 162, 39, 0.08); color: var(--gold);
  font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer;
}
.attach-copy:hover { background: rgba(201, 162, 39, 0.16); }
.attach-copy.is-copied { border-color: var(--green); background: rgba(30, 142, 90, 0.1); color: var(--green); }
@media (min-width: 900px) { .attach-copy { min-height: 32px; } }
.attach-progress { margin: 0.5rem 0; }
