/* Phase 2: high-density research views. Geometry and colors use shell tokens. */
[hidden] {
    display: none !important;
}

button,
select,
input {
    font-family: var(--font-sans);
}

button,
select {
    cursor: pointer;
}

select,
input {
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-control);
    outline: none;
    background: var(--bg-surface);
    color: var(--ink-secondary);
    font-size: 11px;
}

select:focus-visible,
input:focus-visible {
    border-color: var(--accent);
    outline: 1px solid var(--accent);
    outline-offset: -1px;
}

button:focus-visible,
[role="button"]:focus-visible,
tr:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: -1px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.context-iteration {
    margin-left: auto;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.status-dot {
    border-color: var(--status-warn);
    background: var(--status-warn);
}

.rail-snapshot {
    display: contents;
}

.rail-section {
    padding-block: 20px;
}

.brief-title {
    display: -webkit-box;
    max-height: 5.4em;
    margin: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    font-family: var(--font-editorial);
    font-size: 18px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

[data-rail-domain="live"].rail-snapshot {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

[data-rail-domain="live"] .brief-title {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-hairline);
    font-size: 16px;
}

.metric-weights {
    display: grid;
    gap: 7px;
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--border-hairline);
}

.metric-weights > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.metric-weights dt,
.metric-weights dd {
    font-family: var(--font-mono);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.metric-weights dt {
    color: var(--ink-muted);
    letter-spacing: 0.04em;
}

.metric-weights dd {
    margin: 0;
    color: var(--ink-secondary);
}

.agent-matrix {
    display: grid;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.agent-matrix li {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
}

.agent-state {
    width: 6px;
    height: 6px;
    border: 1px solid var(--ink-muted);
    border-radius: 50%;
}

.state-complete {
    border-color: var(--status-pass);
    background: var(--status-pass);
}

.state-running {
    border-color: var(--accent);
    background: var(--accent);
    animation: agent-pulse 1.8s ease-in-out infinite;
}

@keyframes agent-pulse {
    50% { opacity: 0.35; }
}

.agent-name {
    color: var(--ink-secondary);
    font-size: 11px;
}

.agent-metric,
.iteration-name,
.iteration-stats {
    font-family: var(--font-mono);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.agent-metric {
    color: var(--ink-muted);
    white-space: nowrap;
}

.iteration-timeline {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.iteration-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 10px 1fr auto;
    gap: 7px;
    padding: 0 0 25px 0;
}

.iteration-timeline li:last-child {
    padding-bottom: 0;
}

.iteration-timeline li:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 9px;
    bottom: -2px;
    left: 3px;
    width: 1px;
    background: var(--border-strong);
}

.iteration-node {
    position: relative;
    z-index: 1;
    width: 7px;
    height: 7px;
    margin-top: 4px;
    border: 1px solid var(--ink-muted);
    border-radius: 50%;
    background: var(--bg-subtle);
}

.iteration-timeline li:first-child .iteration-node {
    border-color: var(--accent);
    background: var(--accent);
}

.iteration-name {
    color: var(--ink-secondary);
}

.iteration-stats {
    color: var(--ink-muted);
}

.iteration-note {
    grid-column: 2 / -1;
    color: var(--ink-muted);
    font-size: 10px;
}

.rail-footnote {
    border-top: 1px solid var(--border-hairline);
}

.arena-heading {
    padding-right: 16px;
}

.arena-domain-control {
    display: flex;
    align-items: center;
    gap: 9px;
}

.arena-domain-control select {
    max-width: 218px;
    height: 27px;
    padding: 2px 24px 2px 8px;
    border-color: transparent;
    background: transparent;
    color: var(--ink-secondary);
}

.arena-domain-control select:hover {
    border-color: var(--border-hairline);
    background: var(--bg-subtle);
}

.hypothesis-arena {
    grid-template-rows: 52px 41px minmax(0, 1fr) 32px;
}

.view-tabs {
    display: flex;
    align-items: stretch;
    gap: 22px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-hairline);
}

.view-tab {
    position: relative;
    padding: 0;
    background: transparent;
    color: var(--ink-muted);
    font-size: 11px;
}

.view-tab::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: transparent;
}

.view-tab:hover,
.view-tab.is-active {
    color: var(--ink-primary);
}

.view-tab.is-active::after {
    background: var(--accent);
}

.snapshot-stamp {
    align-self: center;
    margin-left: auto;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.04em;
}

.arena-canvas {
    display: block;
    padding: 0;
}

.arena-snapshot {
    min-height: 100%;
}

.arena-view {
    min-width: 0;
}

.tournament-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 24px 22px;
}

.tournament-intro p {
    max-width: 58ch;
    margin-top: 9px;
    color: var(--ink-secondary);
    font-family: var(--font-editorial);
    font-size: 17px;
    line-height: 1.45;
}

.iteration-badge {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    column-gap: 5px;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 8px;
    white-space: nowrap;
}

.iteration-badge strong {
    grid-row: 2;
    color: var(--ink-primary);
    font-size: 24px;
    font-weight: 400;
}

.iteration-badge > span {
    grid-row: 2;
    font-size: 10px;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px;
    border-top: 1px solid var(--border-hairline);
    border-bottom: 1px solid var(--border-hairline);
    background: var(--bg-subtle);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 2px;
}

.filter-button {
    padding: 5px 7px;
    border-radius: 2px;
    background: transparent;
    color: var(--ink-muted);
    font-size: 10px;
}

.filter-button:hover,
.filter-button.is-active {
    background: var(--bg-active);
    color: var(--ink-primary);
}

.filter-button span {
    margin-left: 3px;
    font-family: var(--font-mono);
    font-size: 8px;
}

.table-tools {
    display: flex;
    gap: 6px;
}

.search-control {
    position: relative;
    display: block;
}

.search-control svg {
    position: absolute;
    top: 7px;
    left: 7px;
    width: 12px;
    height: 12px;
    color: var(--ink-muted);
    pointer-events: none;
}

.search-control input {
    width: 146px;
    height: 27px;
    padding: 3px 7px 3px 25px;
}

.sort-control select {
    width: 90px;
    height: 27px;
    padding: 3px 5px;
}

.table-scroll {
    overflow-x: auto;
}

.hypothesis-table {
    width: 100%;
    min-width: 590px;
    border-collapse: collapse;
    table-layout: fixed;
}

.hypothesis-table th {
    height: 31px;
    padding: 0 10px;
    border-bottom: 1px solid var(--border-hairline);
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-align: left;
    white-space: nowrap;
}

.hypothesis-table th:first-child,
.hypothesis-table td:first-child {
    padding-left: 24px;
}

.hypothesis-table th:last-child,
.hypothesis-table td:last-child {
    padding-right: 20px;
}

.rank-column { width: 61px; }
.elo-column { width: 100px; }
.matchups-column { width: 81px; }
.scores-column { width: 69px; }

.hypothesis-row {
    cursor: pointer;
    outline: none;
    transition: background-color var(--motion-standard);
}

.hypothesis-row:hover {
    background: var(--bg-subtle);
}

.hypothesis-row.is-selected {
    background: var(--accent-soft);
    box-shadow: inset 2px 0 0 var(--accent);
}

.hypothesis-row td {
    height: 85px;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-hairline);
    vertical-align: middle;
}

.rank-cell {
    white-space: nowrap;
}

.rank-value,
.rank-change,
.elo-cell,
.matchup-cell,
.score-cell,
.state-label,
.lineage-label {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.rank-value {
    color: var(--ink-secondary);
    font-size: 12px;
}

.rank-change {
    display: block;
    margin-top: 4px;
    color: var(--ink-muted);
    font-size: 8px;
}

.rank-up {
    color: var(--status-pass);
}

.hypothesis-title-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.hypothesis-cell h2 {
    min-width: 0;
    font-family: var(--font-editorial);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.hypothesis-cell p {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    color: var(--ink-secondary);
    font-size: 10px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.state-label {
    flex-shrink: 0;
    padding: 1px 4px;
    border: 1px solid var(--border-hairline);
    border-radius: 2px;
    color: var(--ink-muted);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.state-label.state-evolved {
    border-color: var(--accent);
    color: var(--accent);
}

.state-label.state-pruned {
    border-color: transparent;
    background: var(--status-pruned-bg);
    color: var(--status-pruned);
}

.lineage-label {
    display: block;
    margin-top: 6px;
    color: var(--ink-muted);
    font-size: 8px;
}

.elo-cell strong {
    display: block;
    font-size: 15px;
    font-weight: 500;
}

.rating-track {
    display: block;
    width: 62px;
    height: 2px;
    margin-top: 9px;
    background: var(--bg-active);
}

.rating-track > span {
    display: block;
    width: var(--rating);
    height: 100%;
    background: var(--accent);
}

.matchup-cell {
    color: var(--ink-secondary);
    font-size: 10px;
    white-space: nowrap;
}

.matchup-separator {
    margin: 0 3px;
    color: var(--ink-muted);
}

.score-cell > div {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--ink-secondary);
    font-size: 9px;
}

.score-cell > div + div {
    margin-top: 8px;
}

.score-track {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--bg-active);
}

.score-track i {
    display: block;
    width: var(--score);
    height: 100%;
    background: var(--ink-muted);
}

.table-caption {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    color: var(--ink-muted);
    font-size: 9px;
}

.table-empty {
    padding: 40px 24px;
    color: var(--ink-muted);
    text-align: center;
}

.status-divider {
    margin: 0 8px;
    color: var(--border-strong);
}

/* Directed SVG lineage */
.lineage-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 26px 24px 20px;
}

.lineage-intro h2 {
    margin-top: 6px;
    font-family: var(--font-editorial);
    font-size: 26px;
    font-weight: 400;
}

.lineage-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    padding: 0 24px 18px;
    border-bottom: 1px solid var(--border-hairline);
    color: var(--ink-muted);
    font-size: 9px;
}

.lineage-legend > span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-line {
    width: 16px;
    height: 1px;
    background: var(--border-strong);
}

.legend-crossover {
    background: var(--accent);
}

.legend-pruned {
    height: 0;
    border-top: 1px dashed var(--status-pruned);
    background: none;
}

.legend-node {
    width: 6px;
    height: 6px;
    border: 1px solid var(--ink-muted);
    border-radius: 50%;
}

.lineage-scroll {
    overflow-x: auto;
    padding: 12px 24px 0;
}

.lineage-graph {
    display: block;
    width: 100%;
    min-width: 690px;
    height: auto;
}

.generation-guides text {
    fill: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.06em;
}

.generation-guides path {
    fill: none;
    stroke: var(--border-hairline);
    stroke-dasharray: 2 5;
}

.lineage-edges path {
    fill: none;
    stroke: var(--border-strong);
    stroke-width: 1;
    color: var(--ink-muted);
}

.lineage-edges .edge-crossover {
    stroke: var(--accent);
    color: var(--accent);
}

.lineage-edges .edge-pruned {
    stroke: var(--status-pruned);
    stroke-dasharray: 3 4;
    opacity: 0.6;
}

.lineage-node {
    cursor: pointer;
    outline: none;
}

.lineage-node rect {
    fill: var(--bg-surface);
    stroke: var(--border-strong);
    stroke-width: 1;
    transition: fill var(--motion-standard), stroke var(--motion-standard);
}

.lineage-node:hover rect,
.lineage-node:focus-visible rect {
    fill: var(--bg-subtle);
    stroke: var(--accent);
}

.lineage-node.is-selected rect {
    fill: var(--accent-soft);
    stroke: var(--accent);
}

.node-indicator {
    fill: var(--bg-surface);
    stroke: var(--ink-muted);
    stroke-width: 1;
}

.node-evolved .node-indicator {
    fill: var(--accent);
    stroke: var(--accent);
}

.node-pruned rect {
    stroke-dasharray: 3 3;
    opacity: 0.75;
}

.node-pruned .node-indicator {
    fill: var(--status-pruned);
    stroke: var(--status-pruned);
}

.node-id,
.node-state,
.node-elo,
.node-rating-label {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.node-id {
    fill: var(--ink-primary);
    font-size: 11px;
}

.node-state {
    fill: var(--ink-muted);
    font-size: 8px;
}

.node-elo {
    fill: var(--ink-primary);
    font-size: 16px;
}

.node-rating-label {
    fill: var(--ink-muted);
    font-size: 8px;
}

.node-rating {
    stroke: var(--bg-active);
    stroke-width: 2;
}

.node-rating-value {
    stroke: var(--accent);
    stroke-width: 2;
}

.node-pruned .node-rating-value {
    stroke: var(--ink-muted);
}

.lineage-caption {
    padding: 0 24px 24px;
    color: var(--ink-muted);
    font-size: 10px;
}

/* Paper-first report */
.meta-review {
    max-width: 68ch;
    margin: 0 auto;
    padding: 48px 24px 60px;
}

.paper-header {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-strong);
}

.paper-header h2 {
    margin-top: 16px;
    font-family: var(--font-editorial);
    font-size: 34px;
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.paper-deck {
    margin-top: 16px;
    color: var(--ink-secondary);
    font-family: var(--font-editorial);
    font-size: 18px;
    line-height: 1.5;
}

.paper-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.04em;
}

.meta-review > section {
    padding-top: 32px;
}

.meta-review h3 {
    display: flex;
    gap: 12px;
    margin: 0 0 18px;
    font-family: var(--font-editorial);
    font-size: 23px;
    font-weight: 500;
}

.meta-review h3 > span {
    padding-top: 6px;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 400;
}

.meta-review section > p {
    margin-top: 14px;
    color: var(--ink-secondary);
    font-family: var(--font-editorial);
    font-size: 17px;
    line-height: 1.7;
}

.citation-link {
    padding: 0 2px;
    background: transparent;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 11px;
    vertical-align: 0.15em;
}

.citation-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.paper-comparison {
    margin-top: 24px;
    border-top: 1px solid var(--border-strong);
    border-bottom: 1px solid var(--border-strong);
}

.paper-comparison > div,
.paper-comparison > button {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr 1.4fr;
    width: 100%;
    padding: 9px 0;
    background: transparent;
    color: var(--ink-secondary);
    font-family: var(--font-mono);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    text-align: left;
}

.paper-comparison > div {
    color: var(--ink-muted);
    font-size: 8px;
}

.paper-comparison > button {
    border-top: 1px solid var(--border-hairline);
}

.paper-comparison > button:hover {
    color: var(--accent);
}

.research-roadmap {
    margin: 0;
    padding: 0;
    counter-reset: roadmap;
    list-style: none;
}

.research-roadmap li {
    position: relative;
    padding: 0 0 18px 28px;
    color: var(--ink-secondary);
    font-family: var(--font-editorial);
    font-size: 16px;
    line-height: 1.55;
    counter-increment: roadmap;
}

.research-roadmap li::before {
    content: "0" counter(roadmap);
    position: absolute;
    left: 0;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 9px;
    line-height: 2.7;
}

.paper-note {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-hairline);
    color: var(--ink-muted);
    font-size: 10px;
    line-height: 1.6;
}

/* Evidence inspector */
.evidence-inspector {
    display: grid;
    grid-template-rows: 52px minmax(0, 1fr);
    min-height: 0;
}

.inspector-scroll {
    min-height: 0;
}

.inspector-selection {
    padding: 22px 20px 20px;
}

.selection-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.selection-id,
.selection-elo,
.selection-scores dt,
.selection-scores dd,
.matchup-summary,
.matchup-change,
.reference-index {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.selection-id {
    color: var(--accent);
    font-size: 11px;
    font-weight: 500;
}

.selection-elo {
    color: var(--ink-muted);
    font-size: 9px;
}

.selection-elo strong {
    color: var(--ink-primary);
    font-size: 13px;
    font-weight: 500;
}

.selection-meta .state-label {
    margin-left: auto;
}

.selection-title {
    margin: 16px 0 0;
    font-family: var(--font-editorial);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.28;
}

.selection-summary {
    margin-top: 12px;
    color: var(--ink-secondary);
    font-size: 12px;
    line-height: 1.6;
}

.selection-scores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0 0;
    padding-top: 15px;
    border-top: 1px solid var(--border-hairline);
}

.selection-scores dt {
    color: var(--ink-muted);
    font-size: 8px;
}

.selection-scores dd {
    margin: 3px 0 0;
    color: var(--ink-secondary);
    font-size: 11px;
}

.inspector-tabs {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    gap: 20px;
    padding: 0 20px;
    border-top: 1px solid var(--border-hairline);
    border-bottom: 1px solid var(--border-hairline);
    background: var(--bg-surface);
}

.inspector-tab {
    position: relative;
    height: 39px;
    padding: 0;
    background: transparent;
    color: var(--ink-muted);
    font-size: 11px;
}

.inspector-tab::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: transparent;
}

.inspector-tab:hover,
.inspector-tab.is-active {
    color: var(--ink-primary);
}

.inspector-tab.is-active::after {
    background: var(--accent);
}

.inspector-panel {
    padding: 0 20px 30px;
}

.critique-section {
    padding-top: 24px;
}

.critique-section h3 {
    margin: 0 0 12px;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.critique-section p,
.critique-list {
    color: var(--ink-secondary);
    font-size: 12px;
    line-height: 1.7;
}

.critique-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.critique-list li {
    position: relative;
    padding-left: 13px;
}

.critique-list li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 4px;
    height: 1px;
    background: var(--ink-muted);
}

.critique-risks {
    margin-top: 24px;
    padding: 18px 0 0 13px;
    border-top: 1px solid var(--border-hairline);
    border-left: 2px solid var(--status-warn);
}

.critique-risks h3 {
    color: var(--status-warn);
}

.verification-section {
    margin-top: 24px;
    padding: 18px 14px;
    border-top: 1px solid var(--border-hairline);
    background: var(--bg-subtle);
}

.verification-section .micro-label {
    display: block;
    margin-top: 14px;
    font-size: 8px;
}

.matchup-summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 0 15px;
    color: var(--ink-muted);
    font-size: 9px;
}

.matchup-record {
    color: var(--ink-secondary);
}

.matchup-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--border-hairline);
}

.matchup-opponent {
    display: flex;
    align-items: center;
    gap: 9px;
    background: transparent;
    color: var(--ink-primary);
    font-family: var(--font-mono);
    font-size: 11px;
    text-align: left;
}

.matchup-outcome {
    color: var(--ink-muted);
    font-size: 8px;
}

.matchup-outcome.outcome-win {
    color: var(--status-pass);
}

.matchup-outcome.outcome-loss {
    color: var(--status-pruned);
}

.matchup-change {
    font-size: 11px;
}

.matchup-item p {
    grid-column: 1 / -1;
    color: var(--ink-secondary);
    font-size: 11px;
    line-height: 1.65;
}

.inspector-footnote {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border-hairline);
    color: var(--ink-muted);
    font-size: 10px;
    line-height: 1.6;
}

.citation-context {
    padding: 22px 0;
    color: var(--ink-muted);
    font-size: 11px;
    line-height: 1.6;
}

.reference-item {
    padding: 0 0 24px;
}

.reference-item + .reference-item {
    padding-top: 22px;
    border-top: 1px solid var(--border-hairline);
}

.reference-index {
    color: var(--accent);
    font-size: 9px;
}

.reference-item h3 {
    margin: 8px 0 0;
    font-family: var(--font-editorial);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
}

.reference-byline {
    margin-top: 8px;
    color: var(--ink-muted);
    font-size: 10px;
}

.reference-item blockquote {
    margin: 15px 0 0;
    padding-left: 12px;
    border-left: 1px solid var(--border-strong);
    color: var(--ink-secondary);
    font-size: 11px;
    line-height: 1.7;
}

.reference-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 9px;
    text-decoration: none;
}

.reference-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.reference-link svg {
    width: 11px;
    height: 11px;
}

@media (prefers-reduced-motion: reduce) {
    .state-running {
        animation: none;
    }
}

@media (min-width: 1700px) {
    .hypothesis-cell h2 {
        font-size: 19px;
    }

    .hypothesis-row td {
        height: 94px;
    }
}

@media (max-width: 1350px) {
    .table-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 7px;
    }

    .table-tools {
        justify-content: space-between;
    }

    .search-control {
        flex: 1;
    }

    .search-control input {
        width: 100%;
    }

    .hypothesis-cell h2 {
        font-size: 16px;
    }

    .state-label {
        display: none;
    }

    .selection-meta .state-label {
        display: inline-block;
    }

    .snapshot-stamp,
    .context-iteration {
        display: none;
    }
}
