.banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

#noteForm select {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #cad5e3;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

.material-badge {
  padding: 3px 7px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #1d4ed8;
  font-weight: 800;
}

.note-card .source-line {
  margin-bottom: 9px;
  color: #1d4ed8;
  font-weight: 750;
}

.banner-delete {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.18);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 650px) {
  .banner-actions {
    margin-top: 18px;
    flex-wrap: wrap;
  }

  .banner-actions .primary {
    margin-top: 0 !important;
  }
}

.source-file-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.source-file-button {
  margin: 0;
  padding: 13px 8px;
  border: 1px solid #b9c8db;
  border-radius: 11px;
  background: #f7faff;
  color: #1d4ed8;
  text-align: center;
  cursor: pointer;
}

.source-file-button input { display: none; }
.selected-files { display: grid; gap: 5px; margin-top: 9px; color: #64748b; font-size: 12px; }
.selected-files span { padding: 6px 8px; border-radius: 7px; background: #edf3fb; }
.attachment-list { display: grid; gap: 9px; }
.chapter-pages { display: flex; overflow-x: auto; gap: 12px; padding: 5px 2px 14px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.chapter-page { flex: 0 0 min(82vw, 420px); margin: 0; scroll-snap-align: start; }
.chapter-page .note-photo { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 10px; background: #eef2f7; }
.chapter-page figcaption { padding: 7px 3px 0; color: #475569; font-size: 12px; font-weight: 800; }
.pdf-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; padding: 13px; border: 1px solid #d5dfec; border-radius: 11px; background: #f8fafc; }
.pdf-file span, .pdf-file small { display: block; }
.pdf-file small { margin-top: 3px; color: #64748b; }
.pdf-file a { white-space: nowrap; color: #1d4ed8; font-weight: 800; }
.missing-file { padding: 10px; border-radius: 9px; background: #fff1f2; color: #be123c; }

@media (max-width: 650px) {
  .source-file-actions { grid-template-columns: 1fr; }
  .pdf-file { align-items: flex-start; flex-direction: column; }
}
