/* Generated by tools/build-css.mjs from ds/autogeny/components/bundle.css, minus its
   Google Fonts @import (the fonts come from fonts/fonts.css). Do not edit by hand. */

/* Autogeny components. Every value comes from tokens.css. */
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 27px; }

.ag-label { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.ag-data { font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-variant-numeric: tabular-nums; }
.ag-muted { color: var(--ink-muted); }
.ag-note { font-family: var(--font-body); font-size: 15px; line-height: 23px; color: var(--ink-muted); margin: var(--space-2) 0 0; max-width: var(--measure); }

/* Button */
.ag-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font-family: var(--font-display); font-weight: 500; letter-spacing: 0.005em; border-radius: var(--radius-sm); border: 1px solid var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color 120ms ease, color 120ms ease; }
.ag-btn-md { height: 44px; padding: 0 var(--space-6); font-size: 15px; }
.ag-btn-sm { height: 36px; padding: 0 var(--space-4); font-size: 14px; }
.ag-btn-primary { background: var(--ink); color: var(--on-ink); }
.ag-btn-primary:hover { background: var(--ink-muted); border-color: var(--ink-muted); }
.ag-btn-secondary { background: transparent; color: var(--ink); }
.ag-btn-secondary:hover { background: var(--grid); }
.ag-btn-text { background: transparent; border-color: transparent; color: var(--link); text-decoration: underline; text-underline-offset: 3px; padding-left: 0; padding-right: 0; }
.ag-btn-text:hover { text-decoration-thickness: 2px; }
.ag-btn:focus-visible, .ag-tip:focus-visible, .ag-plot-hit:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.ag-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* StatusMark */
.ag-glyph { display: block; flex: none; }
.ag-status { display: inline-flex; align-items: center; gap: var(--space-1); height: 24px; padding: 0 var(--space-2); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.ag-status-pass { background: var(--pass-soft); color: var(--pass); }
.ag-status-fail { background: var(--fail-soft); color: var(--fail); }
.ag-status-review { background: var(--review-soft); color: var(--review); }
.ag-status-norun { background: var(--norun-soft); color: var(--norun); }
.ag-cell { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: var(--radius-0); }
.ag-cell-pass { background: var(--pass-soft); color: var(--pass); }
.ag-cell-fail { background: var(--fail); color: var(--on-fail); }
.ag-cell-review { background: var(--review-soft); color: var(--review); }
.ag-cell-norun { background: var(--norun-soft); color: var(--norun); }

/* ScoreReadout */
.ag-score { display: grid; gap: var(--space-2); }
.ag-score-figure { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-mono); color: var(--ink); }
.ag-score-value { font-size: 48px; line-height: 52px; font-weight: 500; letter-spacing: -0.02em; }
.ag-score-max { font-size: 20px; line-height: 26px; color: var(--ink-muted); }
.ag-score-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

/* Tables (ResultTable, ResultsGrid) */
.ag-table-wrap { overflow-x: auto; max-width: 100%; }
.ag-results, .ag-grid { border-collapse: collapse; background: var(--paper-raised); width: 100%; }
.ag-results caption, .ag-grid caption { caption-side: top; text-align: left; padding: 0 0 var(--space-3); font-family: var(--font-display); font-size: 18px; line-height: 24px; font-weight: 600; color: var(--ink); }
.ag-results th, .ag-results td, .ag-grid th, .ag-grid td { padding: var(--space-3); border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.ag-results thead th, .ag-grid thead th { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); background: var(--grid); border-bottom: 1px solid var(--rule); white-space: nowrap; }
.ag-results tbody th { font-weight: 400; font-family: var(--font-body); font-size: 15px; line-height: 23px; color: var(--ink); }
.ag-measure { display: block; }
.ag-row-note { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.ag-num { text-align: right !important; }
.ag-results td { font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-variant-numeric: tabular-nums; color: var(--ink); }
.ag-result { font-size: 15px; font-weight: 500; }
.ag-row-fail .ag-result { font-weight: 600; }
.ag-unit, .ag-ref { color: var(--ink-muted); }

.ag-grid-wrap { display: grid; gap: var(--space-3); }
.ag-grid-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.ag-legend-item { display: inline-flex; align-items: center; gap: var(--space-2); }
.ag-count { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.ag-grid tbody th { font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-weight: 400; color: var(--ink); white-space: nowrap; }
.ag-grid td { text-align: center; padding: var(--space-2); }
.ag-grid thead th:not(:first-child) { text-align: center; }
.ag-tip { position: relative; display: inline-flex; border-radius: var(--radius-0); cursor: default; }
.ag-tip::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: var(--space-1) var(--space-2); background: var(--ink); color: var(--on-ink); font-family: var(--font-mono); font-size: 12px; line-height: 16px; white-space: nowrap; pointer-events: none; z-index: 3; visibility: hidden; }
.ag-tip:hover::after, .ag-tip:focus-visible::after { visibility: visible; }

/* AssessmentPlot */
.ag-plot { display: grid; gap: var(--space-3); color: var(--ink); }
.ag-plot-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.ag-plot-legend span { display: inline-flex; align-items: center; gap: var(--space-2); }
.ag-plot-frame { position: relative; background: var(--paper-raised); border: 1px solid var(--rule); }
.ag-plot-frame > svg { display: block; width: 100%; height: auto; overflow: visible; }
.ag-plot-legend svg { display: block; flex: none; }
.ag-plot .zone { fill: var(--pass-soft); }
.ag-plot .gridline { stroke: var(--grid); stroke-width: 1; }
.ag-plot .axis { stroke: var(--mark); stroke-width: 1; }
.ag-plot .threshold { stroke: var(--mark); stroke-width: 1; stroke-dasharray: 4 4; }
.ag-plot .tick { fill: var(--ink-muted); font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.ag-plot .axis-title { fill: var(--ink-muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.ag-plot .zone-label { fill: var(--pass); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.ag-plot .pt { fill: var(--ink); stroke: var(--paper-raised); stroke-width: 2; }
.ag-plot .pt-ring { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.ag-plot .pt-x { stroke: var(--fail); stroke-width: 2.5; stroke-linecap: square; }
.ag-plot .pt-x-ring { stroke: var(--paper-raised); stroke-width: 6; stroke-linecap: square; }
.ag-plot .pt-name { fill: var(--ink); font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.ag-plot .pt-name.is-out { font-weight: 500; }
.ag-plot .pt-cost { fill: var(--ink-muted); font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.ag-plot-hit { fill: transparent; cursor: pointer; outline: none; }
.ag-plot-hit:focus-visible { stroke: var(--ink); stroke-width: 2; }
.ag-plot-tip { position: absolute; transform: translate(-50%, calc(-100% - 14px)); min-width: 200px; padding: var(--space-2) var(--space-3); background: var(--ink); color: var(--on-ink); font-family: var(--font-mono); font-size: 12px; line-height: 18px; pointer-events: none; z-index: 4; }
.ag-plot-tip strong { display: block; font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.ag-plot-tip .row { display: flex; justify-content: space-between; gap: var(--space-4); }
.ag-plot-tip .val { font-weight: 500; font-variant-numeric: tabular-nums; }
.ag-plot details { font-family: var(--font-mono); font-size: 13px; }
.ag-plot summary { cursor: pointer; color: var(--ink-muted); width: max-content; }
.ag-plot summary:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.ag-plot details .ag-table-wrap { margin-top: var(--space-3); }
.ag-plot details td, .ag-plot details th { font-size: 13px; }

@media (prefers-reduced-motion: reduce) { .ag-btn { transition: none; } }
