.snapshot-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  margin-bottom: 28px;
  background: var(--panel);
}
.snapshot-stat {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}
.snapshot-stat:last-child {
  border: 0;
}
.snapshot-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 5px;
  font-weight: 550;
}
.snapshot-stat span {
  font-size: 11px;
  color: var(--muted);
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
}
.current-investigation {
  padding: 4px 0 26px;
}
.current-investigation h2 {
  font-size: 25px;
  margin: 16px 0 12px;
  max-width: 640px;
}
.current-investigation p {
  color: #b4c6c8;
  font-size: 14px;
  margin: 12px 0;
}
.latest-label {
  color: var(--red);
  font-size: 11px;
}
.signal-figure {
  margin: 20px 0 12px;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}
.signal-figure canvas {
  display: block;
  width: 100%;
  height: 118px;
}
.signal-figure figcaption {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.chart-figure {
  margin: 0;
}
.chart-figure canvas {
  width: 100%;
  height: 200px;
  display: block;
}
.legend {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 8px;
  height: 8px;
  background: var(--green);
}
.legend i.red {
  background: var(--red);
}
.comparison {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.comparison p {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
}
.comparison table td {
  padding: 12px 8px;
}
.comparison table th {
  padding: 10px 8px;
}
.comparison h3 {
  margin: 12px 0;
}
.insight-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.insight {
  border-top: 2px solid var(--line);
  padding: 18px 0;
}
.insight .kicker {
  color: var(--cyan);
}
.insight h3 {
  margin: 10px 0;
}
.insight p {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0;
}
.insight .badge {
  margin: 8px 0;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  flex: 1;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0 12px;
  border-radius: 4px;
}
.search-box svg {
  color: var(--muted);
}
.search-box input {
  border: 0;
  background: none;
  width: 100%;
  outline-offset: -2px;
}
.atlas-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
}
.family-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-self: start;
}
.family-button {
  border: 0;
  background: none;
  color: var(--muted);
  text-align: left;
  padding: 11px 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-left: 2px solid transparent;
  font-size: 12px;
}
.family-button.active {
  border-color: var(--cyan);
  background: var(--panel-2);
  color: var(--text);
}
.family-button small {
  color: var(--muted);
}
.result-count {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 16px;
}
.source-title-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--text);
  text-align: left;
  line-height: 1.6;
  font-size: 13px;
}
.source-title-button:hover {
  color: var(--cyan);
}
.phase-cell {
  white-space: nowrap;
  color: var(--cyan);
  width: 100px;
}
.path-cell {
  max-width: 250px;
  overflow-wrap: anywhere;
}
.opportunity {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) minmax(180px, 0.45fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.opportunity h3 {
  font-size: 18px;
  margin: 8px 0;
}
.opportunity p {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0;
}
.opportunity-aside {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.opportunity-aside .kicker {
  margin-top: 10px;
}
.priority {
  font:
    11px ui-monospace,
    monospace;
  color: var(--amber);
}
.stack-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  margin: 20px 0;
}
.stack-step {
  padding: 20px;
  border-right: 1px solid var(--line);
}
.stack-step:last-child {
  border: 0;
}
.stack-step svg {
  color: var(--cyan);
  margin-bottom: 18px;
}
.stack-step h3 {
  font-size: 14px;
}
.stack-step p {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0;
}
.stack-number {
  font:
    11px ui-monospace,
    monospace;
  color: var(--muted);
  margin-bottom: 8px;
}
.stack-boundary {
  border-left: 3px solid var(--amber);
  padding: 16px 20px;
  background: #211e16;
  margin: 22px 0;
  color: #e3d6b8;
}
.stack-boundary p {
  font-size: 13px;
}
.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
}
.review-form {
  border-left: 1px solid var(--line);
  padding-left: 28px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.review-form h3 {
  margin-bottom: 6px;
}
.review-form label {
  display: grid;
  gap: 7px;
}
.review {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.review p {
  font-size: 13px;
  margin: 12px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.review .mono {
  color: var(--muted);
}
.brief-note {
  font-size: 12px;
  color: var(--muted);
  padding: 12px 0;
}
.limit {
  font-size: 12px;
  color: var(--amber);
  margin: 15px 0;
  padding-left: 12px;
  border-left: 2px solid #6b5631;
}
.comparison-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
@media (max-width: 1000px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .comparison {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
  .insight-list {
    grid-template-columns: 1fr 1fr;
  }
  .stack-flow {
    grid-template-columns: 1fr;
  }
  .stack-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .stack-step svg {
    margin-bottom: 5px;
  }
  .reviews-layout {
    grid-template-columns: 1fr;
  }
  .review-form {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0;
  }
  .opportunity {
    grid-template-columns: 90px minmax(0, 1fr);
  }
  .opportunity-aside {
    grid-column: 2;
    border: 0;
    padding: 0;
  }
  .workspace-heading {
    align-items: start;
  }
  .revision {
    min-width: 190px;
    max-width: 240px;
  }
}
@media (max-width: 650px) {
  .topbar {
    padding: 0 18px;
    height: 64px;
  }
  .top-actions {
    gap: 7px;
  }
  .top-actions > #environment {
    display: none;
  }
  .workspace {
    padding: 25px 18px 0;
  }
  .workspace-heading {
    display: block;
    margin-bottom: 16px;
  }
  h1 {
    font-size: 27px;
  }
  .revision {
    margin-top: 20px;
    text-align: left;
    max-width: none;
    min-width: 0;
  }
  .revision select {
    width: 100%;
    max-width: none;
  }
  .tabs {
    gap: 24px;
    margin-bottom: 18px;
  }
  .snapshot-strip {
    grid-template-columns: 1fr 1fr;
  }
  .snapshot-stat {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }
  .snapshot-stat:nth-child(2) {
    border-right: 0;
  }
  .snapshot-stat strong {
    font-size: 21px;
  }
  .current-investigation h2 {
    font-size: 22px;
  }
  .overview-grid {
    gap: 16px;
  }
  .insight-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .atlas-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .family-list {
    flex-direction: row;
    overflow-x: auto;
    max-width: 100%;
  }
  .family-button {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
    padding: 10px;
  }
  .path-cell {
    display: none;
  }
  .phase-cell {
    white-space: normal;
    width: 70px;
  }
  .opportunity {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .opportunity-aside {
    grid-column: auto;
  }
  .toolbar {
    gap: 8px;
  }
  .search-box {
    min-width: 100%;
    width: 100%;
  }
  .toolbar select {
    flex: 1;
  }
  .section-head {
    align-items: start;
  }
  footer {
    flex-direction: column;
  }
  .notice {
    padding: 12px 18px;
  }
  .access {
    padding: 28px 20px;
    margin: 48px 0;
  }
  .access h1 {
    font-size: 45px;
  }
  .source-actions .secondary {
    font-size: 11px;
  }
  .source-meta {
    font-size: 10px;
  }
  .markdown-body h1 {
    font-size: 22px;
  }
  .markdown-body h2 {
    font-size: 19px;
  }
  dialog {
    padding: 18px;
  }
}
.current-investigation > .text-button {
  margin-right: 16px;
}
.phase-cell {
  min-width: 88px;
  white-space: nowrap;
}
@media print {
  body {
    background: white;
    color: black;
  }
  .topbar,
  .tabs,
  .toolbar,
  .review-form,
  .source-actions,
  .icon-button,
  .secondary,
  .text-button {
    display: none !important;
  }
  .workspace {
    padding: 0;
    max-width: none;
  }
  .muted,
  p,
  .kicker,
  footer {
    color: #333 !important;
  }
  .badge {
    color: #333 !important;
  }
  .overview-grid,
  .reviews-layout {
    display: block;
  }
  .comparison {
    border: 0;
    padding: 20px 0;
  }
  .snapshot-strip,
  th {
    background: white;
  }
  .source-title-button {
    color: black;
  }
  .rule-section {
    break-inside: avoid;
  }
}
.library-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0 24px;
  border-bottom: 1px solid var(--line);
}
.experiment-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.experiment-title {
  display: block;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 19px;
  font-weight: 600;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.experiment-title:hover {
  color: var(--cyan);
}
.experiment-implication {
  max-width: 80ch;
  color: var(--muted);
}
.experiment-reading {
  padding: 24px 0;
}
.experiment-reading .source-markdown {
  margin: 20px 0;
  max-width: 80ch;
}
.coverage-details {
  margin: 24px 0;
  padding: 16px 0;
  overflow-wrap: anywhere;
}
.file-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.file-row p {
  margin: 6px 0 0;
}
.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 24px 0;
}
.figure-tile {
  margin: 0;
  min-width: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.figure-tile p {
  overflow-wrap: anywhere;
}
.figure-tile h3 {
  font-size: 18px;
  margin: 16px 0 8px;
}
.figure-open {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  padding: 0;
  border: 1px solid var(--line);
  background: #101416;
  cursor: zoom-in;
}
.figure-open img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.source-figure {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 700px) {
  .figure-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .experiment-title {
    font-size: 17px;
  }
}
