.notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.notes-section-title {
  font-size: 1rem;
  margin: 0;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.notes-add-btn {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-3);
  font-size: 0.78rem;
  font-weight: 700;
  transition: border-color 0.15s ease;
}

.notes-add-btn:hover {
  border-color: var(--color-text-muted);
}

.notes-add-btn [data-lucide] {
  width: 13px;
  height: 13px;
}

.notes-empty {
  text-align: center;
  padding: var(--space-7) 0;
}

.notes-card {
  cursor: pointer;
  transition: border-color 0.15s ease;
  padding: var(--space-4);
}

.notes-card:hover:not(.notes-card--editing) {
  border-color: var(--color-text-muted);
}

.notes-card--editing {
  cursor: default;
}

.notes-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.notes-card-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.notes-card-date {
  font-size: 0.7rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.notes-card-preview {
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
  white-space: pre-wrap;
}

.notes-card-title-input {
  width: 100%;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  color: var(--color-text);
  font-family: var(--font-app);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.notes-card-title-input:focus,
.notes-card-content-input:focus {
  outline: none;
  border-color: var(--color-text-muted);
}

.notes-card-content-input {
  width: 100%;
  min-height: 180px;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  color: var(--color-text);
  font-size: 0.875rem;
  font-family: var(--font-app);
  line-height: 1.65;
  resize: vertical;
  box-sizing: border-box;
  margin-bottom: var(--space-3);
  transition: border-color 0.15s ease;
}

.notes-card-actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.notes-btn-save {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-4);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-app);
  transition: border-color 0.15s ease;
}

.notes-btn-save:hover {
  border-color: var(--color-text-muted);
}

.notes-btn-delete {
  color: #f85149;
  border: 1px solid rgba(248, 81, 73, 0.25);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3);
  font-size: 0.8rem;
  font-family: var(--font-app);
  transition: border-color 0.15s ease;
}

.notes-btn-delete:hover {
  border-color: #f85149;
}

.notes-btn-cancel {
  color: var(--color-text-muted);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3);
  font-size: 0.8rem;
  font-family: var(--font-app);
  margin-left: auto;
}
