.explorer {
  max-width: 1440px;
  padding: 60px 5vw 90px;
  margin: auto;
}
.explorer h1 {
  font: 450 clamp(54px, 7vw, 104px)/0.98 var(--studio-font);
  letter-spacing: -0.065em;
  margin: 22px 0;
}
.explorer h2 {
  font: 450 clamp(25px, 3vw, 40px)/1.12 var(--studio-font);
  letter-spacing: -0.04em;
}
.explorer h3,
.explorer h4 {
  font: 550 14px/1.4 var(--studio-font);
}
.explorer p {
  line-height: 1.6;
}
.explorer-intro {
  max-width: 680px;
  font-size: 18px;
}
.recorded-notice {
  border-left: 3px solid var(--ink);
  background: var(--surface);
  padding: 18px 22px;
  max-width: 920px;
  font-size: 13px;
}
.explorer button,
.explorer select {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 15px;
  font: 500 12px var(--studio-font);
  cursor: pointer;
}
.explorer button[aria-selected="true"],
.explorer button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.explorer button:disabled {
  cursor: default;
  opacity: 0.45;
}
.explorer :focus-visible {
  outline: 3px solid #5e77e8;
  outline-offset: 3px;
}
.explorer-toolbar,
.playback-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.explorer-toolbar {
  justify-content: space-between;
  padding: 22px 0;
}
.explorer-toolbar label {
  font-size: 13px;
}
.explorer-toolbar select {
  max-width: 100%;
}
.evidence-matrix {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 20px;
}
.evidence-matrix button {
  text-align: left;
  display: grid;
  gap: 10px;
}
.evidence-matrix strong {
  font: 11px var(--mono);
}
.explorer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.explorer-grid section {
  min-width: 0;
  padding: 22px;
}
.explorer-grid h2 {
  font-size: 21px;
}
.explorer-source {
  border-right: 1px solid var(--line);
}
.explorer pre,
.investigation pre {
  font: 11px/1.7 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 510px;
  overflow: auto;
  background: var(--surface);
  padding: 18px;
  border-radius: 8px;
}
.explorer-run-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.playback-controls button {
  padding: 10px;
  min-width: 38px;
}
.evidence-impact {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 14px 0 20px;
}
.evidence-impact strong {
  font: 450 58px/1 var(--studio-font);
  letter-spacing: -0.06em;
}
.evidence-impact span {
  font: 12px/1.6 var(--studio-font);
}
#evidence-scrubber {
  width: 100%;
  accent-color: var(--ink);
  margin: 16px 0;
}
#evidence-step {
  font: 12px var(--mono);
}
#evidence-event {
  min-height: 44px;
  font-size: 13px;
}
#evidence-processes {
  font: 12px/1.8 var(--mono);
}
.explorer-section {
  margin-top: 55px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.explorer details,
.investigation details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.explorer summary,
.investigation summary {
  cursor: pointer;
  font: 500 14px/1.5 var(--studio-font);
}
.explorer .failed summary {
  color: #ba382c;
}
.explorer li {
  font: 11px/1.9 var(--mono);
  overflow-wrap: anywhere;
}
.explorer-provenance code {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.evaluation-table-wrap {
  overflow-x: auto;
}
.evaluation-table {
  width: 100%;
  border-collapse: collapse;
  font: 12px/1.6 var(--mono);
}
.evaluation-table th,
.evaluation-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.evaluation-table caption {
  text-align: left;
  padding: 12px;
  font-family: var(--studio-font);
}
.skip-evidence {
  position: absolute;
  top: -100px;
  left: 20px;
}
.skip-evidence:focus {
  top: 12px;
  z-index: 100;
  background: var(--paper);
  padding: 12px;
}
.investigation p {
  max-width: 850px;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .evidence-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .explorer-grid {
    grid-template-columns: 1fr;
  }
  .explorer-source {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 600px) {
  .explorer {
    padding: 36px 20px 60px;
  }
  .explorer-grid section {
    padding: 15px;
  }
  .explorer-toolbar label {
    width: 100%;
  }
  .explorer-toolbar select {
    display: block;
    width: 100%;
    margin-top: 8px;
  }
  .explorer button {
    padding: 10px;
  }
  .explorer pre {
    padding: 12px;
    font-size: 10px;
  }
  .explorer-intro {
    font-size: 16px;
  }
  .recorded-notice {
    padding: 14px;
  }
  .studio-header nav {
    gap: 12px;
  }
  .studio-header nav a {
    font-size: 11px;
  }
}
