* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Arial, sans-serif;
  color: #e5edf5;
  background: #111827;
}

.explorer {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.explorer-header {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #334155;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 24px;
  font-weight: 700;
}

h2 {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
}

p {
  max-width: 760px;
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
}

.back-link {
  width: fit-content;
  color: #bfdbfe;
  font-size: 13px;
}

.panel {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid #334155;
}

.snapshot-list-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #334155;
  border-radius: 4px;
  background: #1f2937;
}

.fetch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.rebuild-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.fetch-status {
  min-height: 18px;
  font-size: 13px;
  color: #cbd5e1;
}

.vendor-detail-form {
  display: grid;
  grid-template-columns: auto minmax(120px, 180px) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.vendor-overview {
  margin-top: 18px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #cbd5e1;
}

.vendor-overview summary {
  cursor: pointer;
  font-weight: 700;
}

.vendor-detail-form label {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
}

.vendor-detail-form input {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #475569;
  border-radius: 4px;
  font: inherit;
  font-size: 13px;
  color: #e5edf5;
  background: #0f172a;
}

button {
  padding: 8px 10px;
  border: 1px solid #475569;
  border-radius: 4px;
  font: inherit;
  font-size: 13px;
  color: #e5edf5;
  background: #1f2937;
}

button:disabled {
  cursor: default;
  opacity: 0.65;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #1f2937;
}

th,
td {
  padding: 10px 12px;
  border: 1px solid #334155;
  text-align: left;
  vertical-align: top;
}

th {
  color: #cbd5e1;
  font-weight: 700;
  background: #182231;
}

.snapshot-list {
  min-width: 820px;
  border: 0;
}

.snapshot-list tbody tr {
  cursor: pointer;
}

.snapshot-list tbody tr:hover,
.snapshot-list tbody tr:focus {
  outline: 0;
  background: #263449;
}

.snapshot-list tbody tr.is-selected {
  background: #1e3a5f;
  box-shadow: inset 3px 0 0 #60a5fa;
}

.snapshot-list .numeric {
  text-align: right;
}

.snapshot-list .sha-cell,
.snapshot-list .url-cell {
  overflow-wrap: anywhere;
}

.snapshot-summary {
  margin-top: 18px;
}

.summary-table th {
  width: 260px;
}

.summary-table td {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.vendor-detail-result {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.vendor-detail-section h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.empty-state {
  padding: 10px 12px;
  border: 1px solid #334155;
  border-radius: 4px;
  background: #1f2937;
}

.technical-details {
  margin-top: 12px;
  font-size: 13px;
  color: #cbd5e1;
}

.technical-details summary {
  cursor: pointer;
}

.technical-details pre {
  max-height: 220px;
  margin: 10px 0 0;
  padding: 10px 12px;
  overflow: auto;
  border: 1px solid #334155;
  border-radius: 4px;
  color: #e5edf5;
  background: #0f172a;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .explorer {
    padding: 16px;
  }

  .summary-table th {
    width: 160px;
  }

  .vendor-detail-form {
    grid-template-columns: 1fr;
  }
}
