* {
  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;
}

.evidence-status {
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.evidence-status.is-neutral {
  color: #cbd5e1;
  border-color: #334155;
  background: #1f2937;
}

.evidence-status.is-success {
  color: #bbf7d0;
  border-color: #166534;
  background: #052e16;
}

.evidence-status.is-warning {
  color: #fde68a;
  border-color: #92400e;
  background: #422006;
}

.evidence-status.is-error {
  color: #fecaca;
  border-color: #991b1b;
  background: #450a0a;
}

.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;
}

.file-action {
  display: inline-block;
  padding: 8px 10px;
  border: 1px solid #475569;
  border-radius: 4px;
  font: inherit;
  font-size: 13px;
  color: #e5edf5;
  background: #1f2937;
  cursor: pointer;
}

.file-action.is-disabled {
  cursor: default;
  opacity: 0.65;
  pointer-events: none;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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-panel {
  font-size: 13px;
  color: #cbd5e1;
}

.vendor-detail-panel > summary,
.subject-details > summary {
  cursor: pointer;
  margin-bottom: 12px;
  font-weight: 700;
}

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

.summary-table td {
  white-space: pre-wrap;
}

.subject-details {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #334155;
}

.gvl-catalog-section {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.gvl-catalog-section h4 {
  margin: 0;
  font-size: 13px;
  color: #e5edf5;
}

.catalog-list {
  display: grid;
  gap: 6px;
}

.catalog-item {
  border: 1px solid #334155;
  border-radius: 4px;
  background: #182231;
}

.catalog-item summary {
  cursor: pointer;
  padding: 8px 10px;
  color: #e5edf5;
  font-weight: 700;
}

.definition-list {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid #334155;
}

.definition-list dt,
.definition-list dd {
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid #334155;
  overflow-wrap: anywhere;
}

.definition-list dt {
  color: #cbd5e1;
  font-weight: 700;
  background: #0f172a;
}

.definition-list dd {
  color: #e5edf5;
  white-space: pre-wrap;
}

.muted-text {
  max-width: none;
  color: #94a3b8;
}

.secondary-action {
  width: fit-content;
  margin-top: 12px;
}

.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;
  }

  .definition-list {
    grid-template-columns: 1fr;
  }
}
