* {
  box-sizing: border-box;
}

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

.explorer {
  width: min(1180px, 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,
h3,
p {
  margin: 0;
}

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

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

h3 {
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #cbd5e1;
}

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

.section-help {
  margin-bottom: 4px;
}

.request-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 10px;
  margin: 8px 0 0;
}

.request-overview div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #334155;
  border-radius: 4px;
  background: #1f2937;
}

.request-overview dt {
  margin: 0 0 6px;
  font-size: 12px;
  color: #cbd5e1;
}

.request-overview dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

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

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

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

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

.request-list {
  min-width: 980px;
  border: 0;
}

.request-list th,
.request-list td {
  padding: 8px 10px;
  vertical-align: top;
}

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

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

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

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

.request-list .path-cell,
.request-list .origin-cell {
  max-width: 260px;
  overflow-wrap: anywhere;
}

.request-groups {
  display: grid;
  gap: 16px;
}

.request-context-card {
  padding: 14px;
  border: 1px solid #334155;
  border-radius: 4px;
  background: #172033;
}

.request-context-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.request-context-summary div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #334155;
  border-radius: 4px;
  background: #1f2937;
}

.request-context-summary dt {
  margin: 0 0 5px;
  font-size: 12px;
  color: #cbd5e1;
}

.request-context-summary dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.request-detail {
  margin-top: 18px;
}

.inspector-table th,
.inspector-table td {
  vertical-align: top;
}

.inspector-table th {
  width: 230px;
}

.inspector-table .inspector-value {
  overflow-wrap: anywhere;
  word-break: break-word;
  user-select: text;
}

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

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

.inspector-details summary {
  cursor: pointer;
}

.inspector-details pre {
  max-height: 260px;
  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;
  }

  .request-overview {
    grid-template-columns: 1fr;
  }

  .request-context-summary {
    grid-template-columns: 1fr;
  }

  .inspector-table th {
    width: 150px;
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  .request-context-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
