body {
  font-family: sans-serif;
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  color: #222;
}

h1 { font-size: 1.4rem; }
h2 { font-size: 1.1rem; }

.tabs { margin-bottom: 1rem; }

.tab-btn {
  padding: 0.5rem 1rem;
  cursor: pointer;
  border: 1px solid #ccc;
  background: #f5f5f5;
}

.tab-btn.active {
  background: #333;
  color: #fff;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

textarea, input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.4rem;
  margin: 0.3rem 0 0.8rem;
}

button[type="submit"] {
  padding: 0.5rem 1.2rem;
  cursor: pointer;
}

.result {
  margin-top: 1rem;
  padding: 0.8rem;
  background: #f8f8f8;
  border: 1px solid #ddd;
  white-space: pre-wrap;
  word-break: break-word;
}

.doc-item {
  border-bottom: 1px solid #eee;
  padding: 0.6rem 0;
}

.doc-item:last-child { border-bottom: none; }

.doc-score { color: #666; font-size: 0.85rem; }

.ingest-columns {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ingest-column {
  flex: 1;
  min-width: 260px;
}

#documents-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

#documents-table th,
#documents-table td {
  border-bottom: 1px solid #eee;
  padding: 0.5rem;
  text-align: left;
  font-size: 0.9rem;
}
