:root {
  color-scheme: light dark;
  font-family: system-ui, sans-serif;
}

body {
  margin: 0;
  background: #f5f5f7;
}

header {
  position: sticky;
  top: 0;
  background: #1f2933;
  color: white;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

header h1 {
  margin: 0;
  font-size: 18px;
}

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

.toolbar input, .toolbar select, .toolbar button {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #444;
}

main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 20px;
}

.record-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.record-meta {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 12px;
  color: #555;
  background: #eceff1;
}

.media-slot img, .media-slot video, .media-slot audio {
  width: 100%;
  display: block;
}

.record-text {
  padding: 10px 12px;
  font-size: 13px;
}

.record-text p {
  margin: 4px 0;
}

.labels {
  color: #3366cc;
}
