:root {
  --bg: #f4f7f8;
  --card: #ffffff;
  --text: #12242a;
  --muted: #4d6770;
  --line: #d3dee3;
  --accent: #0c7a6b;
  --accent-2: #1252a4;
  --warning: #8d2f1d;
  --mono: "JetBrains Mono", monospace;
  --sans: "Space Grotesk", sans-serif;
  --shadow: 0 14px 26px rgba(12, 27, 35, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 15%, rgba(18, 82, 164, 0.13), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(12, 122, 107, 0.13), transparent 38%),
    var(--bg);
}

.container {
  width: min(1080px, 94vw);
  margin: 1.1rem auto 2rem;
  display: grid;
  gap: 0.75rem;
}

.hero {
  background: linear-gradient(135deg, #0f2f4a, #0f7b66);
  color: #f4fdff;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0.3rem 0 0.5rem;
  font-size: clamp(1.1rem, 2.1vw, 1.5rem);
}

.hero p {
  margin: 0;
  color: #d5ecf5;
  font-size: 0.9rem;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.85rem;
}

.panel h2 {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
}

.collapsible-panel {
  padding: 0;
}

.collapsible-panel > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.collapsible-panel > summary::-webkit-details-marker {
  display: none;
}

.collapsible-panel > summary::after {
  content: "▾";
  font-size: 0.95rem;
  color: var(--muted);
  transform: rotate(-90deg);
  transition: transform 0.2s ease;
}

.collapsible-panel[open] > summary::after {
  transform: rotate(0deg);
}

.collapsible-content {
  padding: 0 0.85rem 0.85rem;
}

.grid {
  display: grid;
  gap: 0.55rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 0.24rem;
  font-size: 0.82rem;
  color: var(--muted);
}

label.full {
  grid-column: 1 / -1;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c6d8df;
  border-radius: 8px;
  padding: 0.45rem 0.58rem;
  color: var(--text);
  background: #fff;
  font-size: 0.88rem;
}

textarea,
pre {
  font-family: var(--mono);
  font-size: 0.8rem;
}

.actions {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.form-section-gap {
  margin-top: 0.7rem;
}

button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.42rem 0.72rem;
  background: linear-gradient(135deg, var(--accent), #0f927f);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.85rem;
}

button:hover {
  filter: brightness(0.95);
}

button.ghost {
  background: #fff;
  color: var(--accent-2);
  border-color: #bed3f0;
}

.reads-meta {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.reads-toolbar {
  margin-top: 0.62rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.65rem;
}

.reads-pagination {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.reads-pagination button {
  padding: 0.3rem 0.56rem;
  font-size: 0.75rem;
}

.reads-page-info {
  min-width: 130px;
  text-align: center;
  color: var(--muted);
  font-size: 0.76rem;
}

.table-wrap {
  margin-top: 0.45rem;
  border: 1px solid #cfe0e8;
  border-radius: 10px;
  overflow: auto;
  background: #fbfeff;
}

.reads-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.reads-table th,
.reads-table td {
  padding: 0.42rem 0.5rem;
  border-bottom: 1px solid #e1ebf0;
  text-align: left;
  font-size: 0.76rem;
}

.reads-table th {
  background: #edf6f8;
  color: #23424c;
  font-weight: 700;
}

.reads-table tbody tr:hover {
  background: #f1f8fa;
}

.reads-table td.empty-row {
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

button.row-action {
  padding: 0.28rem 0.48rem;
  font-size: 0.72rem;
}

.snapshot-box {
  margin-top: 0.65rem;
  min-height: 100px;
  border: 1px dashed #acc2cb;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f6fbfe;
  overflow: hidden;
}

.snapshot-box img {
  display: none;
  max-width: 100%;
  max-height: 260px;
}

pre {
  margin: 0;
  background: #0f1821;
  color: #d9e8fb;
  border-radius: 10px;
  padding: 0.7rem;
  min-height: 130px;
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 840px) {
  .grid.two {
    grid-template-columns: 1fr;
  }

  .reads-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
