* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #fafbfc;
  color: #1f2329;
  font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e4e7eb;
  display: flex;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 16px;
}

h1 {
  font-size: 14px;
  font-weight: 600;
}

button,
select,
input {
  font: inherit;
}

button {
  background: #f6f8fa;
  border: 1px solid #d1d5da;
  border-radius: 4px;
  cursor: pointer;
  padding: 4px 8px;
}

button:hover {
  background: #eef2f7;
}

button.danger {
  border-color: #f0b8bd;
  color: #b31d28;
}

.header-controls {
  align-items: center;
  display: flex;
  gap: 10px;
}

.header-controls label {
  align-items: center;
  display: flex;
  gap: 4px;
}

#message {
  color: #6a737d;
  min-width: 110px;
}

#message.error {
  color: #cb2431;
  font-weight: 600;
}

main {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  height: calc(100vh - 42px);
}

#filters {
  border-right: 1px solid #e4e7eb;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

#filters label {
  color: #6a737d;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  gap: 2px;
}

#filters input,
#filters select {
  border: 1px solid #d1d5da;
  border-radius: 3px;
  padding: 4px 6px;
}

#f-status {
  min-height: 166px;
}

#list {
  border-right: 1px solid #e4e7eb;
  overflow: auto;
}

table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

th:nth-child(1),
td:nth-child(1) {
  width: 72px;
}

th:nth-child(2),
td:nth-child(2) {
  width: 86px;
}

th:nth-child(3),
td:nth-child(3) {
  width: 64px;
}

th:nth-child(4),
td:nth-child(4) {
  width: 58px;
}

th:nth-child(5),
td:nth-child(5) {
  width: 48px;
}

th {
  background: #f6f8fa;
  border-bottom: 1px solid #e4e7eb;
  color: #6a737d;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 8px;
  position: sticky;
  text-align: left;
  top: 0;
}

td {
  border-bottom: 1px solid #eef0f2;
  cursor: pointer;
  overflow: hidden;
  padding: 6px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.path-cell {
  min-width: 160px;
}

tr:hover td {
  background: #f6f8fa;
}

tr.selected td {
  background: #dbe9ff;
}

.status-pill {
  border-radius: 999px;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  min-width: 38px;
  padding: 4px 7px;
  text-align: center;
}

.status-2xx {
  background: #dcffe4;
  color: #22863a;
}

.status-3xx {
  background: #fff5b1;
  color: #735c0f;
}

.status-4xx {
  background: #ffeef0;
  color: #cb2431;
}

.status-5xx {
  background: #ffdce0;
  color: #b31d28;
}

#detail {
  overflow: auto;
  padding: 12px;
}

nav {
  border-bottom: 1px solid #e4e7eb;
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

nav button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  padding: 6px 10px;
}

nav button.active {
  border-color: #0366d6;
  color: #0366d6;
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

pre {
  background: #f6f8fa;
  border-radius: 4px;
  overflow: auto;
  padding: 10px;
  white-space: pre-wrap;
  word-break: break-all;
}

.hdr {
  color: #6a737d;
  font-size: 11px;
  letter-spacing: .5px;
  margin: 8px 0;
  text-transform: uppercase;
}

.kv {
  display: grid;
  gap: 2px 12px;
  grid-template-columns: auto 1fr;
}

.kv dt {
  color: #6a737d;
}

.json-key {
  color: #0366d6;
}

.json-str {
  color: #22863a;
}

.json-num {
  color: #b08800;
}

.json-bool {
  color: #cb2431;
}
