/* views.css: chrome for the drawn views — the Blueprint lattice containers
   (Coverage and New experiment impact), the Overview's Kinetic bands and
   block sculpture, and the Aurora density overlay above any sky. */

/* ---------------- blueprint lattice ---------------- */
#coverage-lattice, #exp-impact-lattice { position: relative; }
.lattice-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; cursor: grab; touch-action: none;
}
.lattice-canvas:active { cursor: grabbing; }
.lattice-log {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  display: inline-flex; gap: 6px; align-items: center;
  font: 500 10px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); cursor: pointer; user-select: none;
}
.lattice-log input { accent-color: var(--corona); margin: 0; }
.lattice-log:hover { color: var(--ink-2); }

/* ---------------- kinetic bands ---------------- */
#overview-bands {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px;
  margin-bottom: 16px; border-radius: var(--radius-lg); overflow: hidden;
}
.kin-band { padding: 18px 20px 16px; min-width: 0; }
.kin-band small {
  display: block; font: 500 10.5px/1.4 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px;
}
.kin-band b {
  font: 500 42px/1 var(--mono); font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.kin-unit { font: 500 18px/1 var(--mono); opacity: 0.7; margin-left: 4px; }
@media (max-width: 1100px) {
  #overview-bands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------- kinetic sculpture ---------------- */
#overview-sculpture .panel-head { align-items: center; }
#overview-sculpture .kin-turn { margin-left: auto; padding: 4px 12px; font-size: 12px; }
.kin-stage { position: relative; height: 380px; }
.kin-stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; touch-action: none;
}

/* ---------------- aurora density overlay ---------------- */
.density-overlay {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 3; opacity: 0.55;
}

/* ---------------- the Reports view ---------------- */
/* A report is read top to bottom like a document, so the panels are given
   prose measure and generous spacing rather than the dashboard's density.
   Measured figures sit above written ones and never share a panel with them,
   which is the run set template's own rule. */

#view-reports .panel { margin-bottom: 18px; }

.rep-head .panel-head h2 {
  font: 500 15px/1.3 var(--mono); letter-spacing: 0.01em; color: var(--ink);
}
.rep-intent {
  margin: 0 0 16px; color: var(--ink-2);
  font: 13.5px/1.65 var(--sans); text-wrap: pretty;
}
.rep-intent b { color: var(--ink); font-weight: 500; }
.rep-missing { color: var(--ink-3); }

/* Quoted callouts, as the run set documents write them: a status block at the
   head of an article, a warning over a machine-written draft. */
.rep-callout {
  margin: 0 0 14px; padding: 8px 0 8px 12px;
  border-left: 2px solid var(--hairline-2); color: var(--ink-2);
  font: 13px/1.6 var(--sans);
}
.rep-callout p { margin: 0 0 6px; }
.rep-callout p:last-child { margin-bottom: 0; }
.rep-callout.is-warning { border-left-color: var(--warn); }

/* An analysis a language model drafted and nobody has read. It is marked on
   the page rather than merely in the file, because the one thing this view
   exists to keep apart is a measured number and a written judgment, and an
   unread draft is a third thing again. */
.rep-draft {
  border-left: 3px solid var(--warn); padding: 10px 0 10px 12px;
  background: var(--warn-dim); border-radius: 0 4px 4px 0;
  color: var(--ink-2);
}

.rep-para {
  margin: 0 0 14px; color: var(--ink-2);
  font: 13px/1.6 var(--sans); text-wrap: pretty;
}
.rep-para code { font-size: 12px; }

/* the key-and-value table of what was tested */
.rep-kv td:first-child {
  color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 11px; width: 30%; white-space: nowrap;
}
.rep-kv td:last-child { color: var(--ink); white-space: normal; }

/* a cell row opens in place rather than navigating away */
#rep-cells tbody tr.rep-row { cursor: pointer; }
#rep-cells tbody tr.rep-row.is-open td { background: rgba(var(--corona-rgb), 0.12); color: var(--ink); }
.rep-detail td { background: var(--well); padding: 14px 14px 16px 0; }
.rep-detail .current-grid { margin-bottom: 4px; }

/* A report uses the same visual grammar for ordered task sequences as Live
   Analysis. The filled box is one source tree carried through several tasks;
   the plain boxes are cells that started independently. */
#rep-cells.has-sequences tbody.rep-group > tr > td:first-child {
  border-left: 1px solid var(--rep-group-edge); padding-left: 12px;
}
#rep-cells.has-sequences tbody.rep-group > tr > td:last-child {
  border-right: 1px solid var(--rep-group-edge); padding-right: 12px;
}
#rep-cells.has-sequences tbody.rep-group > tr:first-child > td {
  border-top: 1px solid var(--rep-group-edge);
}
#rep-cells.has-sequences tbody.rep-group > tr:last-child > td {
  border-bottom: 1px solid var(--rep-group-edge);
}
#rep-cells.has-sequences tbody.rep-sequence {
  --rep-group-edge: rgba(var(--hair-rgb), 0.34);
}
#rep-cells.has-sequences tbody.rep-sequence > tr > td {
  background: rgba(var(--corona-rgb), 0.05);
}
#rep-cells.has-sequences tbody.rep-sequence > tr.rep-row > td:first-child {
  padding-left: 28px;
}
#rep-cells.has-sequences tbody.rep-solo {
  --rep-group-edge: var(--hairline-2);
}
#rep-cells.has-sequences tbody.rep-group-gap td {
  height: 9px; padding: 0; border: 0; background: none;
}
#rep-cells tr.rep-chain-heading td {
  width: auto; overflow: visible; white-space: normal; padding: 12px 14px;
  background: rgba(var(--corona-rgb), 0.10);
  border-bottom-color: rgba(var(--hair-rgb), 0.22);
}
#rep-cells .rep-chain-title {
  color: var(--ink-2); font: 500 12px/1.4 var(--mono); letter-spacing: 0.02em;
}
#rep-cells .rep-chain-title b { color: var(--ink); font-weight: 600; }
#rep-cells .rep-chain-explanation {
  color: var(--ink-2); font: 12px/1.5 var(--sans); margin-top: 3px;
}
#rep-cells .rep-chain-stop {
  color: var(--attn); font: 12px/1.5 var(--sans); margin: 7px 0 0;
}
#rep-cells .rep-chain-stop b { color: var(--bad); font-weight: 600; }
#rep-cells .rep-chain-step {
  display: block; color: var(--corona-2); font: 500 10px/1.3 var(--mono);
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 3px;
}
#rep-cells td.rep-task-cell { white-space: normal; }

.rep-flags {
  margin: 10px 0 0; font: 11.5px/1.5 var(--mono); color: var(--warn);
  letter-spacing: 0.04em;
}
.rep-why {
  margin: 10px 0 0; color: var(--ink-2);
  font: 12.5px/1.6 var(--sans);
}
.rep-why b { color: var(--ink); font-weight: 500; }

.rep-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px 30px; }
.rep-half h3 {
  margin: 0 0 6px; font: 500 12px/1.4 var(--mono); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--corona-2);
}
.rep-half .data-table small { color: var(--ink-3); }

/* written analysis, rendered from the run set's own markdown. No width cap:
   the operator ruled on 2026-09-03 that prose fills the panel, after the
   82ch column read as a wall of forced line breaks on a wide screen. */
.rep-prose { color: var(--ink-2); font: 13.5px/1.7 var(--sans); }
.rep-prose h2, .rep-prose h3, .rep-prose h4 {
  margin: 22px 0 8px; color: var(--ink); font-family: var(--serif);
  font-weight: 500; letter-spacing: 0;
}
.rep-prose h2 { font-size: 19px; }
.rep-prose h3 { font-size: 16px; }
.rep-prose h4 { font-size: 14px; }
.rep-prose > :first-child { margin-top: 0; }
.rep-prose p { margin: 0 0 12px; text-wrap: pretty; }
.rep-prose ul { margin: 0 0 12px; padding-left: 20px; }
.rep-prose li { margin-bottom: 5px; }
.rep-prose b { color: var(--ink); font-weight: 500; }
.rep-prose code { font-size: 12.5px; }
.rep-prose .table-wrap { margin: 0 0 14px; }
