.notes-toolbar{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);
  gap:16px;
  align-items:start;
  margin-bottom:16px;
}

.note-search,
.note-compose{margin:0}

.note-search>label{
  display:block;
  margin-bottom:8px;
}

.note-search-row{
  display:flex;
  gap:9px;
}

.note-search-row input{
  min-width:0;
  flex:1;
}

.note-search>small{
  display:block;
  margin-top:10px;
  color:var(--muted);
  line-height:1.45;
}

.note-compose textarea{
  width:100%;
  min-height:108px;
}

.note-compose>.button{
  width:100%;
  margin-top:10px;
}

.notes-list{
  display:grid;
  gap:12px;
}

.note-card{
  margin:0;
  padding:18px 20px;
}

.note-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}

.note-meta small{
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
  text-align:right;
}
.note-meta-actions{display:flex;align-items:center;gap:10px}.note-delete{margin:0}.note-delete .button{min-height:30px;padding:6px 9px;font-size:11px}

.note-source{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(54,196,181,.14);
  color:#176E66;
  font-size:10px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:.025em;
  text-transform:uppercase;
}

.note-source.project_note{
  background:rgba(255,184,38,.18);
  color:#76520A;
}

.note-source.contact_note{
  background:rgba(252,89,38,.11);
  color:#A63B1A;
}

.note-card p{
  margin:0;
  color:var(--ink);
  font-size:14px;
  line-height:1.65;
  overflow-wrap:anywhere;
}

.note-empty{text-align:center}
.note-empty h2{margin:0 0 8px}
.note-empty p{margin:0}

@media(max-width:900px){
  .notes-toolbar{grid-template-columns:1fr}
  .note-search-row{flex-wrap:wrap}
  .note-search-row input{flex-basis:100%}
  .note-search-row .button{flex:1 1 120px}
  .note-meta{align-items:flex-start;flex-direction:column;gap:7px}
  .note-meta small{text-align:left}.note-meta-actions{align-items:flex-start;flex-direction:column}
}
