@font-face { font-family: "IBM Plex Sans"; src: url(../fonts/ibm-plex-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url(../fonts/atkinson-hyperlegible-mono-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --ground: #F3F2EF; --surface: #FFFFFF; --band: #E9E7E2; --ink: #1D1F22; --ink-2: #4A4D52; --muted: #63676D;
  --line: #D6D3CC; --line-2: #BDB9B0; --control: #7A7D82;
  --mark: #FFE76A; --mark-tint: #FFF6C2;
  --pass: #2E6B34; --pass-tint: #E4EFE3; --fail: #B42318; --fail-tint: #FBE6E3; --flaky: #8A5A00; --flaky-tint: #F7ECD6; --skip: #8B8E93; --skip-tint: #EEEEEC;
  --sans: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 2px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 14px/20px var(--sans); font-variant-numeric: tabular-nums lining-nums; }
h1, h2, h3 { margin: 0; font-weight: 700; }
a { color: var(--ink); text-decoration-color: var(--line-2); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--mark); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -40px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { top: 8px; }
.mono, .mono-id { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0; }
.muted, .cell-sub { color: var(--muted); }
.cell-sub { display: block; font-size: 12px; line-height: 16px; }
.num { text-align: right; white-space: nowrap; }
.is-fail { color: var(--fail); font-weight: 700; }
.is-down { color: var(--fail); }
.noscript { padding: 24px; }

/* Top bar */
.top { background: var(--band); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-row { display: flex; align-items: center; gap: 16px; padding: 8px 24px 0; min-height: 48px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand-mark { width: 20px; height: 20px; align-self: center; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.brand-org { color: var(--ink-2); font-size: 13px; border-left: 1px solid var(--line-2); padding-left: 8px; }
.rel-pick .select { min-width: 150px; font-weight: 700; }
.top-side { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.who, .demo-wrap { position: relative; }
.who-btn { display: grid; text-align: left; background: none; border: 1px solid transparent; border-radius: var(--r); padding: 2px 8px; cursor: pointer; line-height: 16px; }
.who-btn:hover { border-color: var(--line-2); }
.who-name { font-weight: 700; font-size: 13px; }
.who-init { display: none; }
.who-role { font-size: 12px; color: var(--ink-2); }
.tabs ul { list-style: none; margin: 0; padding: 0 16px; display: flex; gap: 2px; }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 10px 10px 9px; text-decoration: none; color: var(--ink-2); font-weight: 500; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.tab-v { font-size: 11px; line-height: 16px; padding: 0 5px; border: 1px solid; border-radius: var(--r); font-weight: 700; }
.tab-v.v-nogo, .rel-v.v-nogo { color: var(--fail); background: var(--fail-tint); }
.tab-v.v-wait, .rel-v.v-wait { color: var(--flaky); background: var(--flaky-tint); }
.tab-v.v-go, .rel-v.v-go { color: var(--pass); background: var(--pass-tint); }

main { padding: 20px 24px 48px; max-width: 1680px; margin: 0 auto; outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.page-title { font-size: 26px; line-height: 32px; letter-spacing: -0.01em; }
.meta-line { margin: 4px 0 0; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.head-ctl { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid var(--control); background: var(--surface); border-radius: var(--r); cursor: pointer; font-weight: 500; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--band); }
.btn:active { background: var(--line); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #3A3D42; }
.btn-quiet { border-color: var(--line-2); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-primary[aria-disabled="true"] { background: var(--ink-2); }
.btn-icon { width: 32px; padding: 0; font-size: 20px; }
.demo-btn { border-style: dashed; }
.link-btn { background: none; border: 0; padding: 4px 2px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; cursor: pointer; color: var(--ink); }
.input { min-height: 32px; border: 1px solid var(--control); border-radius: var(--r); background: var(--surface); padding: 4px 8px; width: 100%; }
.select { width: auto; padding-right: 24px; }
textarea.input { resize: vertical; }
.search { width: 300px; max-width: 100%; }
.field { display: grid; gap: 4px; }
.field label { font-weight: 700; font-size: 13px; }
.help { margin: 4px 0 0; font-size: 12px; line-height: 16px; color: var(--ink-2); }
.form-error { color: var(--fail); font-weight: 700; margin: 8px 0 0; min-height: 0; }
.form-error:empty { display: none; }
.form-actions { display: flex; gap: 8px; margin-top: 16px; }
.seg { display: inline-flex; border: 1px solid var(--control); border-radius: var(--r); background: var(--surface); }
.seg button { border: 0; background: none; padding: 0 12px; min-height: 30px; cursor: pointer; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--mark-tint); font-weight: 700; box-shadow: inset 0 -3px 0 var(--ink); }
.check { display: flex; gap: 8px; align-items: center; padding: 4px 0; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); }
.check.inline { padding: 0; }
.check-n { margin-left: auto; color: var(--muted); font-size: 12px; padding-left: 8px; }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; line-height: 18px; padding: 0 6px; border: 1px solid; border-radius: var(--r); font-weight: 700; white-space: nowrap; }
.tag .mark { width: 8px; height: 8px; display: inline-block; border: 1.5px solid currentColor; }
.tag-pass, .tag-passed, .tag-stable { color: var(--pass); background: var(--pass-tint); }
.tag-pass .mark, .tag-passed .mark, .tag-stable .mark { border-radius: 50%; }
.tag-fail, .tag-failed, .tag-failing, .tag-untriaged { color: var(--fail); background: var(--fail-tint); }
.tag-fail .mark, .tag-failed .mark, .tag-failing .mark, .tag-untriaged .mark { background: currentColor; }
.tag-retry, .tag-retried, .tag-flaky, .tag-waived { color: var(--flaky); background: var(--flaky-tint); }
.tag-skip, .tag-quarantined, .tag-new, .tag-environment, .tag-test { color: var(--ink-2); background: var(--skip-tint); }
.tag-skip .mark, .tag-quarantined .mark { background: repeating-linear-gradient(45deg, currentColor 0 1.5px, transparent 1.5px 3px); }
.tag-product { color: var(--fail); background: var(--surface); }
.tag-product .mark { background: currentColor; }
.tag-environment .mark { border-radius: 50% 50% 0 0; }
.tag-test .mark { transform: rotate(45deg) scale(.8); }

/* The 30-build strip */
.strip { display: block; }
.strip .c-pass { fill: var(--pass); }
.strip .c-fail { fill: var(--fail); }
.strip .c-retry { fill: var(--flaky); }
.strip .c-skip, .strip .c-none { fill: var(--line); }
.strip .strip-mark { fill: none; stroke: var(--ink); stroke-width: 1; }

/* Panes and tables */
.pane { background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; }
.pane-head { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pane-head h2 { font-size: 16px; line-height: 22px; }
.pane-note { color: var(--muted); font-size: 12px; }
.pane-link { margin-left: auto; font-size: 13px; }
.pane-foot { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; }
.table-wrap { overflow-x: auto; }
.grid { border-collapse: collapse; width: 100%; background: var(--surface); }
.grid th, .grid td { padding: 7px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.grid thead th { background: var(--band); font-weight: 700; font-size: 12.5px; color: var(--ink-2); border-bottom: 2px solid var(--ink); white-space: nowrap; position: sticky; top: 0; }
.grid tbody th { font-weight: 500; }
.grid .num { text-align: right; }
.grid tbody tr:hover { background: #FAFAF7; }
.grid tr.is-open, .grid tr.is-open:hover { background: var(--mark-tint); box-shadow: inset 3px 0 0 var(--ink); }
.grid tr.is-quiet { color: var(--ink-2); }
.grid.compact th, .grid.compact td { padding: 5px 10px; vertical-align: top; }
.grid.compact .tag { margin-top: 1px; }
.grid .wrap { white-space: normal; min-width: 180px; }
.sort { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.sort-i { width: 8px; height: 10px; display: inline-block; opacity: .35; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.sort-i.asc { opacity: 1; transform: rotate(180deg); }
.sort-i.desc { opacity: 1; }
.row-link { font-weight: 700; text-decoration: none; }
.row-link:hover { text-decoration: underline; }
.mono-id { white-space: nowrap; }
.col-check { width: 36px; }
.col-check input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.hit { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; cursor: pointer; }
.cell-err { display: block; color: var(--fail); font-size: 12px; line-height: 16px; max-width: 520px; white-space: normal; word-break: break-word; }

/* List toolbar */
.listview { background: var(--surface); border: 1px solid var(--line); }
.toolbar { display: flex; gap: 8px 16px; flex-wrap: wrap; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.failures > .toolbar { border: 1px solid var(--line); border-bottom: 0; }
.tb-main, .tb-side { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter { position: relative; }
.btn-filter .count { background: var(--ink); color: #fff; font-size: 11px; line-height: 16px; min-width: 16px; padding: 0 4px; border-radius: 8px; }
.btn-filter.on { background: var(--mark-tint); border-color: var(--ink); }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.pop { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; min-width: 220px; max-height: 320px; overflow: auto; background: var(--surface); border: 1px solid var(--ink); margin: 0; padding: 6px 12px; box-shadow: 0 6px 18px rgba(29, 31, 34, .12); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #FCFBF8; }
.chip { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--ink); background: var(--mark-tint); border-radius: var(--r); padding: 2px 6px 2px 8px; cursor: pointer; font-size: 13px; }
.chip-x { font-size: 15px; line-height: 1; }
.bulk { display: flex; gap: 12px; align-items: center; padding: 8px 12px; background: var(--ink); color: #fff; }
.bulk .btn { background: transparent; color: #fff; border-color: #fff; }
.bulk .link-btn { color: #fff; }
.pager { display: flex; align-items: center; gap: 8px; padding: 10px 12px; justify-content: flex-end; }
.pager-count { color: var(--ink-2); margin-right: auto; }
.pager-count.solo { margin: 0; padding: 10px 12px; }
.pager-n { color: var(--ink-2); }
.empty { padding: 48px 16px; text-align: center; }
.empty-title { font-weight: 700; font-size: 16px; margin: 0 0 12px; }
.error-pane { background: var(--surface); border: 1px solid var(--fail); padding: 32px; max-width: 560px; }
.error-pane p { margin: 8px 0 16px; }

/* Release */
.rel-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 16px; flex-wrap: wrap; }
.rel-tools { display: flex; gap: 8px; }
.rel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.gates td, .gates th { padding: 12px; vertical-align: top; }
.gate-name a { font-weight: 700; display: block; }
.gate-rule { display: block; color: var(--ink-2); font-size: 12.5px; line-height: 17px; font-weight: 400; margin-top: 2px; max-width: 360px; }
.gate-value { white-space: normal; min-width: 140px; }
.gate-value strong { display: block; }
.gate-detail { display: block; color: var(--muted); font-size: 12px; line-height: 16px; max-width: 240px; margin-left: auto; overflow-wrap: anywhere; }
.gate-fail { background: #FFFCFB; }
.gate-fail .gate-state { box-shadow: inset 3px 0 0 var(--fail); }
.gate-waived .gate-state { box-shadow: inset 3px 0 0 var(--flaky); }
.gate-strip { padding-top: 15px !important; }
.gate-act { text-align: right; white-space: nowrap; }
.waiver { display: grid; justify-items: end; }
.suites th a { font-weight: 700; }
.verdict { background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--ink); padding: 16px; margin-bottom: 16px; }
.verdict.v-nogo { border-top-color: var(--fail); background: var(--surface); }
.verdict.v-wait { border-top-color: var(--flaky); background: var(--surface); }
.verdict.v-go { border-top-color: var(--pass); background: var(--surface); }
.verdict-word { font-size: 34px; line-height: 38px; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.v-nogo .verdict-word { color: var(--fail); }
.v-wait .verdict-word { color: var(--flaky); }
.v-go .verdict-word { color: var(--pass); }
.verdict-reason { margin: 4px 0 0; color: var(--ink-2); }
.to-ship { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.to-ship h3 { font-size: 13px; }
.to-ship ul { margin: 6px 0 0; padding-left: 18px; }
.to-ship li { margin: 4px 0; }
.signers { list-style: none; margin: 0; padding: 0; }
.signer { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.signer:last-child { border-bottom: 0; }
.signer-done { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.signer-note { margin: 0; width: 100%; color: var(--ink-2); font-style: italic; }
.changed { list-style: none; margin: 0; padding: 0; }
.changed li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.changed li:last-child { border-bottom: 0; }
.rel-v { font-size: 12px; font-weight: 700; padding: 0 6px; border: 1px solid; border-radius: var(--r); }
.dlg-lead { margin: 0 0 14px; }

/* Failures */
.cat-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-top: 1px solid var(--line); align-items: center; }
.chip-toggle { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r); padding: 3px 8px; cursor: pointer; font-size: 13px; }
.chip-toggle[aria-pressed="true"] { background: var(--mark-tint); border-color: var(--ink); font-weight: 700; }
.split { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); border: 1px solid var(--line); border-top: 0; background: var(--surface); min-height: 520px; }
.split-list { border-right: 1px solid var(--line); max-height: 1100px; overflow: auto; }
.groups { list-style: none; margin: 0; padding: 0; }
.groups a { display: grid; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); text-decoration: none; }
.groups a:hover { background: #FAFAF7; }
.groups a[aria-current="true"] { background: var(--mark-tint); box-shadow: inset 3px 0 0 var(--ink); }
.g-msg { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: 17px; }
.g-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--ink-2); font-size: 12px; align-items: center; }
.split-detail { padding: 16px 20px 24px; min-width: 0; }
.g-title { font-size: 14px; line-height: 20px; font-weight: 500; background: var(--mark-tint); padding: 8px 10px; border-left: 3px solid var(--fail); overflow-wrap: anywhere; }
.g-top { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; margin: 14px 0; }
.facts-row { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.facts-row dt { font-size: 12px; color: var(--muted); }
.facts-row dd { margin: 0; font-weight: 700; font-size: 15px; }
.g-strip { display: grid; gap: 4px; }
.triage { display: grid; grid-template-columns: 170px 150px minmax(0, 1fr) auto; gap: 12px; align-items: end; padding: 12px; background: #FAF9F6; border: 1px solid var(--line); }
.triage-act { display: flex; gap: 8px; align-items: center; }
.triage-act .help { margin: 0; max-width: 200px; }
.triage-by { grid-column: 1 / -1; margin: 0; }
.g-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; margin-top: 18px; }
.g-body h3 { font-size: 14px; margin-bottom: 8px; }
.occ { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.occ a { display: block; padding: 7px 8px; border-bottom: 1px solid var(--line); text-decoration: none; }
.occ a.on { background: var(--mark-tint); box-shadow: inset 3px 0 0 var(--ink); }
.steps { list-style: none; margin: 10px 0 14px; padding: 0; counter-reset: st; border: 1px solid var(--line); }
.steps li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 10px 5px 30px; border-bottom: 1px solid var(--line); position: relative; font-size: 13px; }
.steps li:last-child { border-bottom: 0; }
.steps li::before { position: absolute; left: 10px; top: 10px; width: 9px; height: 9px; content: ""; }
.st-ok::before { border: 1.5px solid var(--pass); border-radius: 50%; }
.st-fail { background: var(--fail-tint); font-weight: 700; }
.st-fail::before { background: var(--fail); }
.st-skip { color: var(--muted); }
.st-skip::before { border: 1.5px dashed var(--skip); }
.shot-fig { margin: 0 0 14px; }
.shot { display: block; width: 100%; max-width: 640px; height: auto; border: 1px solid var(--line-2); background: #fff; }
.shot-phone { max-width: 220px; }
.shot-fig figcaption { margin-top: 4px; }
.sh-bg { fill: #FBFBFC; } .sh-device { stroke: #9A9DA3; stroke-width: 2; }
.sh-top { fill: #24405E; } .sh-brand { fill: #fff; font: 700 13px var(--sans); }
.sh-top + .sh-brand + .sh-small { fill: #D5DCE4; }
.sh-side { fill: #EEF1F4; } .sh-sel { fill: #D7DFE8; }
.sh-menu { fill: #33404D; font: 400 11px var(--sans); }
.sh-h1 { fill: #1B2733; font: 700 16px var(--sans); }
.sh-small { fill: #66707A; font: 400 10px var(--sans); }
.sh-th { fill: #66707A; font: 700 10px var(--sans); }
.sh-td { fill: #1B2733; font: 400 11px var(--sans); }
.sh-rule { stroke: #E1E5EA; }
.sh-btn { fill: #24405E; } .sh-btn-dim { fill: #9AA8B6; }
.sh-btn-t { fill: #fff; font: 700 11px var(--sans); }
.sh-card { fill: #fff; stroke: #E1E5EA; }
.sh-spinner-box { fill: #fff; stroke: #C9D1DA; }
.sh-sheet { fill: rgba(27, 39, 51, .08); }
.sh-fail { fill: none; stroke: var(--fail); stroke-width: 2.5; stroke-dasharray: 6 3; }
.log-wrap { border: 1px solid var(--line-2); background: #FCFCFA; max-height: 360px; overflow: auto; }
.log { list-style: none; margin: 0; padding: 6px 0; font-size: 12px; line-height: 18px; }
.ll { display: grid; grid-template-columns: 32px 96px minmax(0, 1fr); gap: 8px; padding: 0 10px 0 0; }
.ln { color: var(--muted); text-align: right; user-select: none; }
.ts { color: var(--muted); }
.lt { white-space: pre-wrap; overflow-wrap: anywhere; }
.ll-step .lt { font-weight: 500; }
.ll-stack .lt { color: var(--ink-2); }
.ll-key { background: var(--mark); }
.ll-key .lt { color: var(--fail); font-weight: 700; }

/* Drawer and dialog */
.scrim { position: fixed; inset: 0; background: rgba(29, 31, 34, .32); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100%); background: var(--surface); z-index: 41; display: flex; flex-direction: column; border-left: 1px solid var(--ink); box-shadow: -8px 0 24px rgba(29, 31, 34, .12); outline: none; }
.drawer-head, .dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--band); }
.drawer-head h2, .dialog-head h2 { font-size: 16px; font-family: var(--sans); }
.drawer-body { padding: 16px; overflow: auto; flex: 1; }
.drawer-foot, .dialog-foot { padding: 12px 16px; border-top: 1px solid var(--line); }
.foot-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.foot-row .help { margin: 0; }
.drawer-lead { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.drawer-strip { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.legend { display: flex; gap: 6px; flex-wrap: wrap; }
.drawer-sec { margin-top: 18px; }
.drawer-sec h3 { font-size: 14px; margin-bottom: 8px; }
.facts { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.dialog { position: fixed; left: 50%; top: 12vh; transform: translateX(-50%); width: min(480px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--ink); z-index: 41; box-shadow: 0 8px 24px rgba(29, 31, 34, .16); border-radius: 3px; outline: none; }
.dialog-body { padding: 16px; }
.about p { margin: 0 0 10px; }

/* Menus, toasts, tour */
.menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 35; background: var(--surface); border: 1px solid var(--ink); min-width: 240px; padding: 4px 0; box-shadow: 0 6px 18px rgba(29, 31, 34, .12); }
.menu button { display: grid; width: 100%; text-align: left; background: none; border: 0; padding: 7px 14px; cursor: pointer; }
.menu button:hover, .menu button:focus-visible { background: var(--mark-tint); box-shadow: none; outline: none; }
.menu button.active { box-shadow: inset 3px 0 0 var(--ink); }
.mi-main { font-weight: 700; }
.mi-sub { font-size: 12px; color: var(--ink-2); }
.toasts { position: fixed; bottom: 16px; left: 24px; z-index: 60; display: grid; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r); max-width: 440px; }
.toast-error { background: var(--fail); }
.tour { position: fixed; right: 20px; bottom: 20px; width: min(360px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--ink); border-top: 6px solid var(--mark); padding: 14px 16px; z-index: 45; box-shadow: 0 8px 24px rgba(29, 31, 34, .16); }
.tour h2 { font-size: 16px; }
.tour p { margin: 6px 0 0; }
.tour-n { color: var(--muted); font-size: 12px; margin: 0 0 4px !important; }
.tour-act { display: flex; gap: 8px; margin-top: 12px; }
.tour-target { outline: 3px solid var(--mark); outline-offset: 3px; scroll-margin-top: 104px; }

/* Charts */
.chart-block { margin: 0 0 16px; background: var(--surface); border: 1px solid var(--line); padding: 12px 16px 14px; }
.chart-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-head h3 { font-size: 15px; }
.chart-note { color: var(--muted); font-size: 12px; }
.chart-head .link-btn { margin-left: auto; font-size: 13px; }
.chart-wrap { position: relative; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart:focus-visible { outline-offset: 4px; }
.grid-line { stroke: var(--line); stroke-width: 1; }
.tick { fill: var(--muted); font: 400 11px var(--sans); }
.line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.line.s-ink { stroke: var(--ink); }
.line.s-flaky { stroke: var(--flaky); stroke-dasharray: 5 3; stroke-width: 1.5; }
.line.s-prev { stroke: var(--skip); stroke-width: 1.5; }
.direct { font: 700 11px var(--sans); fill: var(--ink); }
.dot { stroke: var(--surface); stroke-width: 1.5; }
.dot.s-ink { fill: var(--ink); } .dot.s-flaky { fill: var(--flaky); } .dot.s-prev { fill: var(--skip); }
.hover-line { stroke: var(--ink-2); stroke-dasharray: 2 2; }
.mark-line { stroke: var(--ink); stroke-dasharray: 4 3; stroke-width: 1.2; }
.bar.b-fail { fill: var(--fail); opacity: .75; }
.bar.b-changed { fill: var(--ink); }
.bar.b-plain { fill: var(--line-2); }
.bar-label { fill: var(--ink); font: 400 12px var(--sans); }
.bar-val { fill: var(--ink-2); font: 700 11px var(--sans); }
.row-hi { fill: var(--mark-tint); }
.tip { position: absolute; top: 0; transform: translateX(8px); background: var(--ink); color: #fff; padding: 6px 10px; font-size: 12px; line-height: 17px; pointer-events: none; display: grid; min-width: 150px; z-index: 5; border-radius: var(--r); }
.tip.flip { transform: translateX(calc(-100% - 8px)); }
.chart-table { max-height: 320px; overflow: auto; }
.legend-row { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; font-size: 12px; color: var(--ink-2); }
.lg::before { content: ""; display: inline-block; width: 16px; height: 0; border-top: 2px solid; vertical-align: middle; margin-right: 6px; }
.lg.s-ink::before { border-color: var(--ink); }
.lg.s-flaky::before { border-color: var(--flaky); border-top-style: dashed; }
.lg.s-prev::before { border-color: var(--skip); }
.lg.b-fail::before { width: 8px; height: 10px; border: 0; background: var(--fail); opacity: .75; }
.hbars { position: relative; display: grid; gap: 0; padding-bottom: 4px; --lab: 190px; }
.hb-row { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr) 56px; gap: 10px; align-items: center; min-height: 30px; }
.hb-row.on { background: var(--mark-tint); }
.hb-label { text-align: right; font-size: 13px; line-height: 16px; }
.hb-track { position: relative; height: 14px; }
.hb-row:first-child .hb-th { top: 0; }
.hb-fill { display: block; height: 100%; background: var(--line-2); }
.hb-fill.b-changed { background: var(--ink); }
.hb-fill.b-fail { background: var(--fail); }
.hb-val { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.hb-axis { min-height: 22px; border-top: 1px solid var(--line); }
.hb-axis .hb-track { height: 18px; }
.hb-tick { position: absolute; top: 4px; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.hb-th { position: absolute; top: -8px; bottom: -8px; border-left: 1.5px dashed var(--ink); }
.spark { display: block; }
.spark path { fill: none; stroke: var(--ink-2); stroke-width: 1.4; }
.insights { list-style: none; margin: 0 0 16px; padding: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--mark); display: grid; gap: 4px; }
.cov-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.hist-charts { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }

/* Skeleton */
.skeleton { display: none; }
.loading .skeleton { display: grid; gap: 12px; }
.sk { background: var(--band); height: 36px; }
.sk-title { width: 280px; height: 32px; }

@media (prefers-reduced-motion: no-preference) {
  .loading .sk { animation: pulse 1s ease-in-out infinite alternate; }
  @keyframes pulse { to { opacity: .5; } }
  .drawer { animation: slide .18s ease-out; }
  @keyframes slide { from { transform: translateX(24px); opacity: .6; } }
}

@media (min-width: 768px) and (max-width: 1180px) {
  .listview .grid .hide-md { display: none; }
  .listview .grid .wrap { min-width: 120px; }
}
@media (max-width: 1180px) {
  .rel-grid { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .rel-side { display: contents; }
  .verdict { order: -1; }
  .rel-main { order: 0; }
  .rel-side > .pane { order: 1; }
  .cov-grid, .hist-charts { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 340px; }
  .g-body { grid-template-columns: minmax(0, 1fr); }
  .occ { max-height: 220px; overflow: auto; }
}

@media (max-width: 767px) {
  .tour { left: 16px; right: 16px; bottom: 12px; width: auto; padding: 10px 14px; }
  .tour p { font-size: 13px; line-height: 18px; }
  .tour-act { margin-top: 8px; }
  .tour-target { scroll-margin-top: 130px; }
  body { font-size: 15px; line-height: 22px; }
  .top-row { padding: 8px 16px 0; gap: 8px; }
  .brand-org, .tz { display: none; }
  .brand-name { font-size: 15px; }
  .brand { gap: 6px; }
  .rel-pick .select { min-width: 0; max-width: 136px; font-size: 14px; font-weight: 700; padding-left: 6px; }
  .top-side { gap: 6px; }
  .who-btn { width: 44px; height: 44px; padding: 0; border-color: var(--line-2); display: grid; place-items: center; }
  .who-btn .who-role, .who-btn .who-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .who-init { display: block; font-weight: 700; }
  .demo-btn { padding: 0 10px; }
  .tabs ul { padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
  .tabs a { padding: 12px 10px 11px; }
  main { padding: 16px 16px 40px; }
  .page-title { font-size: 22px; line-height: 28px; }
  .btn, .input, .seg button { min-height: 44px; }
  .search { width: 100%; }
  .tb-main, .tb-side { width: 100%; }
  .tb-main .search { flex: 1 1 100%; }
  .verdict-word { font-size: 30px; line-height: 34px; }
  .triage { grid-template-columns: minmax(0, 1fr); }
  .gate-act { text-align: left; }
  .facts { grid-template-columns: 100px minmax(0, 1fr); }
  .ll { grid-template-columns: 24px minmax(0, 1fr); }
  .ll .ts { display: none; }
  .seg { flex-wrap: wrap; }
  .pager { flex-wrap: wrap; }
  .hbars { --lab: 120px; }
  .hb-label { font-size: 12px; }
  .tour { right: 16px; left: 16px; width: auto; bottom: 16px; }
  /* Tables become stacked rows */
  .listview .grid thead, .stackable thead, .gates thead, .suites thead, .coverage-t thead { display: none; }
  .listview .grid tr, .stackable tr, .gates tr, .suites tr, .coverage-t tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .listview .grid th, .listview .grid td, .stackable th, .stackable td, .gates th, .gates td, .suites th, .suites td, .coverage-t th, .coverage-t td { border: 0; padding: 2px 0; text-align: left; min-width: 0; }
  .listview .grid tbody th, .stackable tbody th, .gates tbody th, .suites tbody th, .coverage-t tbody th { grid-column: 1 / -1; }
  .listview .grid td[data-label]::before, .stackable td[data-label]::before, .coverage-t td[data-label]::before, .suites td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); }
  .listview .grid .wrap { grid-column: 1 / -1; min-width: 0; }
  .listview .grid .col-check { grid-column: 1 / -1; }
  .listview .grid .strip-cell { grid-column: 1 / -1; }
  .hit { min-width: 44px; min-height: 44px; justify-content: flex-start; }
  .hit input { width: 24px; height: 24px; }
  .gate-detail { margin-left: 0; }
  .listview .grid .num, .stackable .num, .suites .num, .coverage-t .num, .gates .num { text-align: left; }
  .gates td, .gates th { padding: 2px 0; }
  .gate-fail .gate-state, .gate-waived .gate-state { box-shadow: none; }
  .gates .gate-name, .gates .gate-strip { grid-column: 1 / -1; }
  .suites tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .suites td:last-child, .suites td:nth-child(2) { grid-column: 1 / -1; }
  .grid tr.is-open { box-shadow: inset 3px 0 0 var(--ink); }
  .drawer { width: 100%; border-left: 0; }
  .dialog { top: auto; bottom: 0; transform: translateX(-50%); width: 100%; border-radius: 0; }
  .split-detail { padding: 14px 12px 20px; }
}
@media (max-width: 380px) {
  .top-row { padding: 8px 12px 0; gap: 6px; }
  .brand-name { display: none; }
  .rel-pick .select { max-width: none; font-size: 14px; }
  .demo-btn { padding: 0 8px; }
  .top-side { gap: 4px; }
}

/* failing gates lead; passed gates sit quietly */
.gate-fail { background: #FDF1EF; }
@media (min-width: 768px) { .gate-fail .gate-state { box-shadow: inset 5px 0 0 var(--fail); } }
.gate-fail .gate-name a { font-size: 16px; }
.gate-fail .gate-value strong { font-size: 16px; color: var(--fail); }
.gate-pass td, .gate-pass th { padding-top: 6px; padding-bottom: 6px; }
.gate-pass .gate-name a { font-weight: 500; font-size: 13.5px; color: var(--ink-2); }
.gate-pass .gate-rule { display: none; }
.gate-pass .gate-value strong { font-weight: 500; font-size: 13px; color: var(--muted); }
.gate-pass .gate-detail { color: var(--muted); font-size: 11.5px; }
.gate-pass .gate-strip { padding-top: 8px !important; opacity: .7; }
.gate-pass .gate-strip .muted { font-size: 12.5px; }
