/* Repometry viewer: light, flat and quiet. Every colour is a token; the dark theme follows the system. */
:root {
  --branch-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.4'%3E%3Ccircle cx='3' cy='2.25' r='1.25'/%3E%3Ccircle cx='3' cy='9.75' r='1.25'/%3E%3Ccircle cx='9' cy='3.75' r='1.25'/%3E%3Cpath d='M3 3.5v5M9 5c0 2.5-6 1.5-6 3.5'/%3E%3C/svg%3E");
  color-scheme: light dark;
  --page: #ffffff;
  --band: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f3f5f7;
  --ink: #0f1720;
  --secondary: #5b6673;
  --muted: #7d8793;
  --rule: #e6e9ed;
  --rule-strong: #cdd3da;
  --accent: #0d8a6c;
  --accent-strong: #0a6f57;
  --accent-soft: #e6f4ef;
  --accent-ink: #0a5a47;
  --selected: #f1f7f5;
  --focus: #2b7fd6;
  --good: #14804a;
  --bad: #c2362b;
  --flag-good: #2f9445;
  --flag-bad: #c63d36;
  --bad-bg: #fdecea;
  /* Line coverage cells in the source gutter: a quiet green, coral for what tests missed, amber for missed branches. */
  --cov-hit-bg: #e2f2e8;
  --cov-hit-ink: #2f6e49;
  --cov-miss-bg: #fbe2df;
  --cov-miss-ink: #a8382e;
  --cov-part-bg: #fbedcd;
  --cov-part-ink: #7d5a10;
  --bad-ink: #9f2a21;
  --warn-bg: #fdf3dc;
  --warn-ink: #81580a;
  --notice: #81580a;
  --notice-bg: #fdf3dc;
  --series: #3a4654;
  --series-2: #c9ced5;
  --event: #b4691d;
  --heat-0: #f7e08a;
  --heat-1: #f5c84a;
  --heat-2: #ef9b3c;
  --heat-3: #e6702f;
  --heat-4: #d33a2f;
  --heat-ink: #3d2a05;
  --neutral-0: #e3e7eb;
  --neutral-1: #c4ccd4;
  --neutral-2: #98a4b0;
  --neutral-3: #6b7987;
  --neutral-4: #435160;
  /*
   * Categories with no worth, such as dependency label sets, largest first: the green and yellow every other chart uses,
   * and between them sky, violet and pink at one clean chroma. Every pair stays apart for colour-blind readers on either
   * theme's surface, so the three are shared and the green and yellow follow the theme as the grades do.
   */
  --cat-0: var(--grade-a);
  --cat-1: oklch(0.76 0.14 227);
  --cat-2: var(--grade-c);
  --cat-3: oklch(0.68 0.14 287);
  --cat-4: oklch(0.76 0.14 347);
  --grade-a: #1f9d5a;
  --grade-b: #74a83a;
  /* A clean amber at the gamut's full chroma rather than a muted ochre, dark enough to carry a white letter. */
  --grade-c: oklch(0.80 0.16 80);
  --grade-d: #ec8a2c;
  --grade-f: #db4a3f;
  --grade-none: #c4ccd4;
  /* Lockfiles: generated, counted apart from the languages and from the ignored files' grey. */
  --lockfile: #d2c3a3;
  --radius: 10px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --content: 92rem;
  --control: 2.25rem;
  --code-keyword: #9a2f6e;
  --code-string: #0a6f57;
  --code-number: #a5560f;
  --chevron-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E");
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237d8793' stroke-width='1.6'/%3E%3C/svg%3E");
  font: 400 100%/1.5 var(--sans);
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0d1117;
    --band: #11161d;
    --surface: #131920;
    --surface-2: #19212a;
    --ink: #e6ebf0;
    --secondary: #a2adb9;
    --muted: #7b8794;
    --rule: #232c36;
    --rule-strong: #34404d;
    --accent: #36c49b;
    --accent-strong: #5bd6b0;
    --accent-soft: #15302a;
    --accent-ink: #bdeedd;
    --selected: #16231f;
    --focus: #6aaaf0;
    --good: #4fcf8b;
    --bad: #ff8478;
    --flag-good: #5fd06a;
    --flag-bad: #f0736b;
    --bad-bg: #3a1c1a;
    --cov-hit-bg: #15301f;
    --cov-hit-ink: #8fd0a9;
    --cov-miss-bg: #3b1d1a;
    --cov-miss-ink: #f0958c;
    --cov-part-bg: #372a10;
    --cov-part-ink: #e6c272;
    --bad-ink: #ffb1a8;
    --warn-bg: #352812;
    --warn-ink: #f2cd7f;
    --notice: #f2cd7f;
    --notice-bg: #2e2412;
    --series: #c3ccd5;
    --series-2: #3a4552;
    --code-keyword: #e48fc4;
    --code-string: #5fd0a6;
    --code-number: #e5a45a;
    --event: #e8a362;
    --heat-0: #c9b04a;
    --heat-1: #dcae3a;
    --heat-2: #e08b35;
    --heat-3: #e0612f;
    --heat-4: #ef4c3f;
    --heat-ink: #1a1203;
    --neutral-0: #26303a;
    --neutral-1: #384552;
    --neutral-2: #52616f;
    --neutral-3: #75869a;
    --neutral-4: #a3b3c3;
    --grade-a: #2aa766;
    --grade-b: #7fae44;
    --grade-c: oklch(0.82 0.16 83);
    --grade-d: #e58835;
    --grade-f: #e2574c;
    --grade-none: #3a4552;
    --lockfile: #5e5440;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { display: flex; flex-direction: column; margin: 0; min-height: 100vh; background: var(--page); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-strong); }
:is(a, button, input, select, summary, [tabindex="0"]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1 { font-size: 1.375rem; font-weight: 650; line-height: 1.2; letter-spacing: -.015em; overflow-wrap: anywhere; }
h2 { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; }
small { font-size: .8125rem; }
code { font-family: var(--mono); font-size: .875em; }
select, input, button { font: inherit; color: inherit; }
select, input:not([type="checkbox"]), .button {
  min-height: var(--control);
  padding: .3rem .65rem;
  font-size: .875rem;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
}
button, select { cursor: pointer; }
/* Every select draws the same chevron with the same inset, instead of each browser's own arrow. */
select { -webkit-appearance: none; appearance: none; padding-right: 2rem; background: var(--surface) no-repeat right .65rem center / .7rem var(--chevron); }
input[type="search"] { min-width: 0; max-width: 100%; }
label { display: grid; gap: .25rem; font-size: .75rem; font-weight: 500; color: var(--secondary); }
label select, label input { color: var(--ink); font-weight: 400; font-size: .875rem; }
.visually-hidden, .fx-field-bare > .fx-field-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-200%); background: var(--surface); z-index: 5; padding: .7rem; }
.skip:focus { transform: none; }

/* Top bar */
.topbar { background: var(--band); border-bottom: 1px solid var(--rule); }
.topbar-inner { max-width: var(--content); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2.5rem); }
.topbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .875rem; padding: .875rem 0 .375rem; }
.topbar-row h1 { line-height: 1.875rem; }
/* The mark: a deep green flag (the r of repo) over three lighter green stems (the m of metrics). Its greens are its
   own; the chart flags keep --flag-good. */
.brand { --brand-flag: #1f6b35; --brand-stems: #5fae6a; display: inline-flex; flex: none; width: 1.875rem; height: 1.875rem; color: var(--brand-stems); text-decoration: none; border-radius: 6px; }
@media (prefers-color-scheme: dark) { .brand { --brand-flag: #8fe08f; --brand-stems: #3f8a4c; } }
.brand-mark { width: 100%; height: 100%; fill: currentColor; }
.brand-flag { fill: var(--brand-flag); }
/* Commit picker: a trigger naming the commit, and a search popover over the whole inspected history. It ends the
   title row, so it adds no height. */
.commit-control { position: relative; width: clamp(16rem, 32vw, 26rem); max-width: 100%; margin-left: auto; }
/* Open, the control widens to the left and the list hangs from it: one frame, square where field and list meet. */
.commit-control.open { width: min(36rem, 100%); z-index: 20; }
.commit-field { position: relative; display: flex; align-items: center; min-height: 32px; background: var(--surface) no-repeat right .6rem center / .7rem var(--chevron); border: 1px solid var(--rule); border-radius: 6px; cursor: text; }
.commit-field:hover { border-color: var(--rule-strong); }
.commit-control:focus-within .commit-field { border-color: var(--accent); }
.commit-control.open .commit-field { border-color: var(--rule-strong); border-bottom-color: var(--rule); border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -1px 8px rgb(15 23 32 / .05); }
.commit-control .commit-search { flex: 1 1 auto; width: 100%; max-width: none; min-height: 30px; margin: 0; padding: .2rem 2rem .2rem .625rem; font: inherit; font-size: .875rem; color: var(--ink); background: transparent; border: 0; border-radius: 0; box-shadow: none; -webkit-appearance: none; appearance: none; }
.commit-control .commit-search:focus, .commit-control .commit-search:focus-visible, .fx-view .qf-input:focus, .fx-view .qf-input:focus-visible { outline: none; box-shadow: none; }
.commit-control:not(.open) .commit-search { color: transparent; caret-color: transparent; }
.commit-control:not(.open) .commit-search::placeholder { color: transparent; }
.commit-entry { position: relative; display: flex; flex: 1 1 auto; align-self: stretch; min-width: 0; }
/* The branch heads the field, set off by a rule: the commits listed are its history. */
.commit-branch { display: inline-flex; align-items: center; gap: .3125rem; flex: 0 1 auto; max-width: 9rem; align-self: stretch; padding: 0 .625rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .8125rem; font-weight: 500; color: var(--secondary); border-right: 1px solid var(--rule); }
.commit-branch::before { content: ""; flex: none; width: .75rem; height: .75rem; background: currentColor; -webkit-mask: var(--branch-glyph) center / contain no-repeat; mask: var(--branch-glyph) center / contain no-repeat; }
.commit-control.open .commit-branch { color: var(--muted); }
.commit-current { position: absolute; inset: 0 2rem 0 .625rem; display: flex; align-items: center; gap: .5rem; min-width: 0; overflow: hidden; pointer-events: none; font-size: .875rem; }
.commit-control.open .commit-current { display: none; }
.commit-current-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--secondary); }
.commit-hash { flex: none; font-family: var(--mono); font-size: .8125rem; color: var(--ink); }
.commit-popover, .qf-popover { position: absolute; top: 100%; left: 0; right: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--rule-strong); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 14px 32px rgb(15 23 32 / .14), 0 2px 6px rgb(15 23 32 / .06); }
.commit-options { max-height: min(24rem, 60vh); margin: 0; padding: 0; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.commit-option { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .625rem; row-gap: .125rem; align-items: baseline; padding: .5rem .875rem; cursor: pointer; }
.commit-option.active, .qf-option.active { background: var(--surface-2); }
.commit-option[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--accent); }
.commit-option-head { display: contents; font-size: .875rem; }
.commit-subject { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.commit-tag { flex: 0 1 auto; min-width: 2.5rem; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 .375rem; font-size: .75rem; font-weight: 500; line-height: 1.125rem; color: var(--accent-ink); background: var(--accent-soft); border-radius: 4px; }
.commit-tag-more { flex: none; min-width: 0; color: var(--secondary); background: var(--rule); }
.commit-option-meta { grid-column: 2; display: flex; align-items: center; gap: .375rem; min-width: 0; overflow: hidden; }
.commit-meta { flex: none; margin-right: .25rem; white-space: nowrap; font-family: inherit; font-size: .75rem; color: var(--muted); }
.commit-option-head .commit-hash { color: var(--secondary); }
.commit-option mark { color: inherit; background: var(--warn-bg); border-radius: 2px; }
.commit-status { margin: 0; padding: .4375rem .875rem; font-size: .75rem; color: var(--muted); border-top: 1px solid var(--rule); }
.tabs { display: flex; gap: .25rem 1.375rem; overflow-x: auto; scrollbar-width: none; margin-bottom: -1px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: inline-flex; align-items: center; gap: .375rem; min-height: 40px; padding: 0 .1rem; color: var(--secondary); font-size: .875rem; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
.tab-count { min-width: 1.25rem; padding: 0 .35rem; border-radius: 999px; background: var(--rule); color: var(--secondary); font-size: .75rem; font-weight: 600; line-height: 1.25rem; text-align: center; font-variant-numeric: tabular-nums; }
.tab-count:empty, .figure-delta:empty { display: none; }

/* Page */
main { max-width: var(--content); margin: 0 auto; padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 3rem; }
main:focus { outline: none; }
#message { color: var(--secondary); }
.detail { color: var(--secondary); font-size: .875rem; }
.empty { padding-block: 1rem; }
.card, .panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.panel { min-width: 0; padding: 1rem 1.25rem; }
.panel > h2, .panel > h3, .fx-view .panel h2 { margin: 0 0 .25rem; font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.panel + .panel { margin-top: 1rem; }
.section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .75rem; }
.section-heading h2 { margin: 0; }
.section-heading .detail { margin-top: .2rem; }
.text-link { font-size: .875rem; font-weight: 500; }

/* Overview */
.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 2.5rem; align-items: start; }
.overview-grid:has(> aside:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem); }
.verdict-card { overflow: hidden; container-type: inline-size; }
/* The six chapters head the chart's card, three to a row: the repository and its supply first, the grades below. */
.verdicts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.verdicts > .verdict:nth-child(3n + 1) { border-left: 0; }
.verdicts > .verdict:nth-child(n + 4) { border-top: 1px solid var(--rule); }
.verdict {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-width: 0;
  min-height: 4.5rem;
  padding: .875rem 1.25rem;
  position: relative;
  background: var(--band);
  border-left: 1px solid var(--rule);
  cursor: pointer;
}
.verdict:has(.verdict-tab[aria-selected="true"]) { background: var(--surface); box-shadow: inset 0 2px 0 var(--accent); }
.verdict:hover:not(:has(.verdict-tab[aria-selected="true"])) { background: var(--surface-2); }
.verdict-text { display: grid; justify-items: start; min-width: 0; }
/* The tab is the area's name; it stretches over the whole cell, so a click anywhere but the detail's link selects it. */
.verdict-tab { padding: 0; font: inherit; font-size: 1rem; font-weight: 600; color: var(--ink); text-align: left; background: none; border: 0; cursor: pointer; }
.verdict-tab::after { content: ""; position: absolute; inset: 0; }
.verdict-tab:focus-visible { outline: none; }
.verdict:has(.verdict-tab:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.verdict-detail { color: var(--secondary); font-size: .875rem; overflow-wrap: anywhere; }
/* A detail that counts something leads to exactly what it counts. */
.verdict-detail a { position: relative; z-index: 1; color: inherit; text-decoration-color: var(--rule-strong); }
@container (max-width: 42rem) {
  .verdicts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verdicts > .verdict:nth-child(n) { border-left: 1px solid var(--rule); }
  .verdicts > .verdict:nth-child(odd) { border-left: 0; }
  .verdicts > .verdict:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}
/* The Digest card: the forge's mark, and a link to the repository beside the name, above the tab's stretched hit area. */
.mark.mark-neutral .mark-forge { width: 1.375rem; height: 1.375rem; fill: currentColor; stroke: none; }
#digest-mark:has(.mark-forge) { color: var(--ink); }
#digest-verdict .verdict-text > button { display: inline; }
.digest-link { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; margin-left: .25rem; vertical-align: -.125rem; border-radius: 4px; color: var(--secondary); }
.digest-link:hover { color: var(--accent-strong); background: var(--surface-2); }
.digest-link svg { width: .875rem; height: .875rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
#digest-verdict .verdict-text { grid-template-columns: auto auto; justify-content: start; align-items: center; }
#digest-verdict .verdict-detail { grid-column: 1 / -1; }
/* The Digest tab's head: the manifest's description in full and its keywords. */
.digest-head { padding: 1.25rem 1.5rem 0; }
.digest-head p { max-width: 70ch; margin: 0; color: var(--ink); }
.digest-keywords { display: flex; flex-wrap: wrap; gap: .375rem; margin: .625rem 0 0; padding: 0; list-style: none; }
.digest-keywords li { padding: .125rem .5rem; border-radius: 999px; font-size: .8125rem; color: var(--secondary); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); }
.mark { flex: none; display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 8px; font-size: 1.25rem; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; }
.grade, .severity { background: var(--grade-none); }
.grade[data-grade="A"], .severity[data-severity="clear"] { background: var(--grade-a); }
/* The grade steps, wherever a grade or a level takes its colour: marks, trend readings, list chips and the badge scale. */
:is(.grade, .trend-reading-grade, .profile-scale-grade)[data-grade="B"], .severity[data-severity="low"], .chip-level[data-level="1"] { background: var(--grade-b); }
:is(.grade, .trend-reading-grade, .profile-scale-grade)[data-grade="C"], .severity[data-severity="medium"], .chip-level[data-level="2"] { background: var(--grade-c); }
:is(.grade, .trend-reading-grade, .profile-scale-grade)[data-grade="D"], .severity[data-severity="high"], .chip-level[data-level="3"] { background: var(--grade-d); }
:is(.grade, .trend-reading-grade, .profile-scale-grade)[data-grade="F"], .severity[data-severity="critical"], .chip-level[data-level="4"] { background: var(--grade-f); }
.ring { color: var(--ink); }
.ring[data-grade="none"] { border: .25rem solid var(--rule); border-radius: 50%; }
.ring svg { width: 2.5rem; height: 2.5rem; }
.ring-track { fill: none; stroke: var(--rule); stroke-width: 4.5; }
.ring-arc { fill: none; stroke: var(--grade-a); stroke-width: 4.5; stroke-linecap: butt; transform: rotate(-90deg); transform-origin: 20px 20px; }
/* The ring takes the coverage grade's colour, as the coverage badge does. */
.ring[data-grade="B"] .ring-arc { stroke: var(--grade-b); }
.ring[data-grade="C"] .ring-arc { stroke: var(--grade-c); }
.ring[data-grade="D"] .ring-arc { stroke: var(--grade-d); }
.ring[data-grade="F"] .ring-arc { stroke: var(--grade-f); }
.severity { font-size: 1.125rem; }
@media (prefers-color-scheme: dark) { .mark:not(.ring) { color: #0d1117; } }
.grade[data-grade="none"], .severity[data-severity="none"] { color: var(--ink); }

.trend { padding: 1rem 1.25rem .5rem; }
.chart { min-width: 0; margin-top: .5rem; }
.legend { margin-top: .35rem; font-size: .8125rem; color: var(--muted); }
.lead { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: .75rem .25rem .875rem; border-top: 1px solid var(--rule); }
/* Legal's five figures share one row; on two columns its project license heads the four counts. */
.lead:has(> :nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.figure { min-width: 0; padding: .5rem 1rem; }
.figure dt { color: var(--secondary); font-size: .8125rem; }
.figure-value { margin-top: .1rem; font-size: clamp(1.5rem, 2vw, 1.75rem); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.figure-delta { min-height: 1.4em; margin-top: .1rem; font-size: .8125rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); }
.figure-delta[data-direction="better"], .tc-tip-change[data-direction="better"] { color: var(--good); }
.figure-delta[data-direction="worse"], .tc-tip-change[data-direction="worse"] { color: var(--bad); }

.overview-aside { min-width: 0; }
.overview-aside .section-heading { margin: 1rem 0 0; }
.overview-hotspot-list { margin: .5rem 0 0; padding: 0; list-style: none; }
/* The Legal ring stands in the compact code map's frame: an empty switch row, the ring, the legend in the readout's place. */
.license-map > .fx-map-heading { height: 2rem; }
.license-wedge path { cursor: default; }
.license-map .license-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1rem; align-content: start; }
.license-legend > div { display: flex; align-items: baseline; gap: .375rem; }
.license-legend dt { display: flex; align-items: center; gap: .375rem; color: var(--secondary); }
.license-legend dd { margin: 0; font-variant-numeric: tabular-nums; }
.license-swatch { flex: none; width: .625rem; height: .625rem; border-radius: 2px; background: var(--band); }
.overview-hotspot-list li + li { border-top: 1px solid var(--rule); }
.overview-hotspot-list a, .overview-hotspot-stub li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; padding-block: .375rem; text-decoration: none; }
.hotspot-name { min-width: 0; }
.hotspot-name strong { display: block; font-weight: 500; overflow-wrap: anywhere; }
.overview-hotspot-list a:hover strong { text-decoration: underline; }
.hotspot-name small { display: block; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.chip {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 1.75rem;
  height: 1.5rem;
  padding: 0 .4rem;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.chip[data-band="0"] { background: var(--heat-0); color: var(--heat-ink); }
.chip[data-band="1"] { background: var(--heat-1); color: var(--heat-ink); }
.chip[data-band="2"] { background: var(--heat-2); color: var(--heat-ink); }
.chip[data-band="3"] { background: var(--heat-3); color: #fff; }
.chip[data-band="4"] { background: var(--heat-4); color: #fff; }

/* Charts */
.tc { display: block; overflow: visible; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.tc-grid { stroke: var(--rule); stroke-width: 1; }
.tc-base, .tc-xtick { stroke: var(--rule-strong); stroke-width: 1; }
.tc-tick, .tc-label { fill: var(--muted); font-size: 13px; }
.tc-line { fill: none; stroke: var(--series); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
/* With its companion alone, the line keeps the companion's grey. */
.tc-line-secondary, .chart-companion-only .tc-line { stroke: var(--series-2); stroke-width: 2; }
.trend-key { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.25rem; margin: 0; font-size: .75rem; color: var(--secondary); }
.trend-key-item { display: inline-flex; align-items: center; gap: .4rem; }
/* Each key entry switches its line: struck through and faded when off; the last line left cannot be switched off. */
button.trend-key-item { min-height: 1.75rem; padding: 0 .375rem; font: inherit; color: inherit; background: none; border: 0; border-radius: 4px; cursor: pointer; }
button.trend-key-item:hover:not(:disabled), .trend-group a:hover { color: var(--ink); background: var(--surface-2); }
button.trend-key-item:disabled { cursor: default; }
button.trend-key-item[aria-pressed="false"] { color: var(--muted); text-decoration: line-through; }
button.trend-key-item[aria-pressed="false"]::before { opacity: .35; }
.trend-key-item::before { content: ""; width: 1rem; height: 2.5px; border-radius: 2px; background: var(--series); }
.trend-key-second::before { height: 2px; background: var(--series-2); }
.tc-dot { fill: var(--surface); stroke: var(--series); stroke-width: 2; }
.tc-dot-current { fill: var(--series); stroke: var(--surface); stroke-width: 2.5; }
.tc-dot-partial { fill: var(--surface); stroke-dasharray: 2 2; }
.tc-value { fill: var(--ink); font-size: 13px; font-weight: 500; paint-order: stroke; stroke: var(--surface); stroke-width: 7px; stroke-linejoin: round; }
.tc-value-current { font-size: 14px; font-weight: 650; }
.tc-bar-better { fill: var(--good); opacity: .75; }
.tc-bar-worse { fill: var(--bad); opacity: .75; }
.tc-bar-current { opacity: 1; }
.tc-missing-mark { stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }
.tc-profile-changed, .tc-profile-unavailable { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 5 4; }
.tc-profile-unavailable { stroke-dasharray: 1 4; }
.tc-zero-mark { stroke: var(--secondary); stroke-width: 2; }
.tc-guide { stroke: var(--rule-strong); stroke-width: 1; pointer-events: none; }
.chart-interactive { position: relative; }
.chart-interactive .tc { cursor: pointer; touch-action: pan-y; }
.tc-point.is-active .tc-dot { r: 5.5; stroke-width: 2.5; }
.tc-hover-dot { pointer-events: none; }
.tc-point:focus, .tc:focus { outline: none; }
.tc:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.tc-point.is-active .tc-bar { opacity: 1; }
.tc-point:focus-visible .tc-dot, .tc-point:focus-visible .tc-bar { stroke: var(--focus); stroke-width: 3; }
.tc-tip {
  position: absolute; z-index: 2; pointer-events: none;
  display: grid; align-content: start; min-width: 9rem; max-width: 16rem;
  /* A cluster's card scrolls inside itself, not the page. */
  max-height: min(22rem, 60vh); overflow-y: auto; overscroll-behavior: contain;
  padding: .5rem .625rem .5625rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: 6px;
  box-shadow: 0 2px 10px rgb(0 0 0 / .08);
  font-size: .8125rem; line-height: 1.35;
}
.tc-tip-entry { display: grid; gap: .125rem; }
.tc-tip-held { pointer-events: auto; }
a.tc-tip-entry { margin-inline: -.375rem; padding-inline: .375rem; border-radius: 4px; color: inherit; text-decoration: none; }
a.tc-tip-entry:hover { background: var(--surface-2); }
.tc-tip-entry + .tc-tip-entry { margin-top: .375rem; padding-top: .4375rem; border-top: 1px solid var(--rule); }
.tc-tip strong { font-weight: 600; }
.tc-tip code { color: var(--muted); font-size: .75rem; }
.tc-tip-subject { max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: .8125rem; }
.tc-tip-value { margin-top: .25rem; font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tc-tip-change { font-size: .8125rem; font-weight: 500; color: var(--secondary); }
.tc-tip-note { color: var(--secondary); }
.tc-flag-best { fill: var(--flag-good); }
.tc-flag-worst { fill: var(--flag-bad); }
.tc-tip-flag { display: flex; align-items: center; gap: .375rem; margin-top: .125rem; font-weight: 500; }
.tc-tip-flag svg { flex: none; width: .6875rem; height: .875rem; }

/* Trends page */
.trend-nav { display: grid; gap: 1.125rem; }
.trend-group-note { margin: -.2rem 0 .3rem; padding: 0 .5rem 0 .75rem; color: var(--muted); font-size: .75rem; }
.trend-group h3 { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 1.5rem; margin: 0 0 .3rem; padding: 0 .5rem 0 .75rem; color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
/* A group's reading: the maintainability grade, or the coverage in its grade's colour, as the badges show them. */
.trend-reading { flex: none; min-width: 1.25rem; padding: 0 .4rem; border-radius: 999px; background: var(--rule); color: var(--secondary); font-size: .75rem; font-weight: 600; letter-spacing: 0; line-height: 1.25rem; text-align: center; text-transform: none; font-variant-numeric: tabular-nums; }
.trend-reading-grade, .chip-level { color: #fff; background: var(--grade-a); }
.trend-group ul { margin: 0; padding: 0; list-style: none; }
.trend-group a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 32px; padding: 0 .5rem 0 .75rem; border-radius: 6px; color: var(--secondary); font-size: .875rem; text-decoration: none; }
.trend-group a[aria-current] { color: var(--ink); background: var(--surface-2); font-weight: 500; }
.trend-value { flex: none; color: var(--ink); font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.trend-select { display: none; }
.trend-main { min-width: 0; }
.trend-frame.panel { padding: 1.25rem 1.5rem 1rem; }
/* What a chart means and how to read it is set like its key: small, secondary grey. */
.trend-frame > .detail { margin: .5rem 0 0; }
.trend-frame > .detail, #trend-detail { font-size: .75rem; color: var(--secondary); }
.trend-frame-tools { display: flex; justify-content: flex-end; margin-bottom: .25rem; }
.trend-frame-tools select { min-height: 2rem; font-size: .8125rem; }
.trend-period select { min-width: 11rem; }
/* License kinds: a step line per kind in the Overview Legal ring's bands, green, amber and grey, a swatch per kind in the key. */
.license-kinds [data-band="0"] { --band: var(--grade-a); }
.license-kinds [data-band="2"] { --band: var(--grade-c); }
.license-kinds [data-band="none"] { --band: var(--grade-none); }
.tc-kind-line { stroke: var(--band); stroke-width: 2.25; }
.tc-kind-dot { stroke: var(--band); }
.tc-kind-dot.tc-dot-current { fill: var(--band); stroke: var(--surface); }
/* No single line for the hover dot to sit on: the card and the guide follow the pointer. */
.tc-kinds .tc-hover-dot { display: none; }
.trend-key-kind { display: inline-flex; align-items: center; gap: .4rem; min-height: 1.75rem; }
.trend-key-count { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Tables */
.table-scroll { overflow: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { padding: .5rem .75rem; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--rule); }
thead th { color: var(--secondary); font-size: .75rem; font-weight: 500; white-space: nowrap; }
tbody th { font-weight: 500; }
tbody tr:hover { background: var(--band); }
tbody tr:last-child > * { border-bottom: 0; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }

/* Projects index */
.project-index tbody a { display: inline-flex; align-items: center; font-weight: 600; }
.grade-inline { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-left: .55rem; border-radius: 5px; color: #fff; font-size: .8125rem; font-weight: 650; vertical-align: middle; }
.project-index td:last-child { color: var(--secondary); white-space: nowrap; }

@media (max-width: 72rem) {
  .overview-grid:has(> aside:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .overview-aside { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 0 2.5rem; align-items: start; }
  .overview-aside > :not(#overview-sunburst) { grid-column: 2; }
  .overview-aside #overview-sunburst { grid-row: 1 / span 4; }
}
@media (max-width: 52rem) {
  .verdicts { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
  .verdict { border-left: 0; border-top: 1px solid var(--rule); }
  .verdict:first-child { border-top: 0; }
  .verdict:has(.verdict-tab[aria-selected="true"]) { box-shadow: inset 3px 0 0 var(--accent); }
  .lead, .lead:has(> :nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead > :first-child:nth-last-child(5) { grid-column: 1 / -1; }
  .overview-aside { display: block; }
  .trends-layout > .trend-picker { order: -1; }
  .trend-nav { display: none; }
  .trend-select { display: grid; }
}
@media (max-width: 40rem) {
  .topbar-row { padding-top: 1rem; }
  .commit-control { width: 100%; margin-left: 0; }
  .commit-control.open { width: 100%; }
  .verdict { min-height: 3.5rem; padding-block: .625rem; gap: .75rem; }
  .verdict .mark, .ring svg { width: 2.125rem; height: 2.125rem; font-size: 1.0625rem; }
  .verdict, .trend { padding-inline: 1rem; }
  .figure { padding-inline: .6rem; }
  .figure-value { font-size: 1.5rem; }
}

/* Links inside lists and tables read by colour; the underline appears on hover. */
:is(table, .fx-ranking, .fx-function-list, .fx-breadcrumbs, .fx-event-list) a:not(:hover) { text-decoration: none; }

/* Touch screens keep 44 px targets; a mouse gets the denser desktop rhythm. */
@media (pointer: coarse) {
  :root { --control: 2.75rem; }
  .tabs a, .trend-group a { min-height: 44px; }
  th, td { padding-block: .625rem; }
}
.lead-empty { grid-column: 1 / -1; margin: 0; padding: .25rem 1rem; font-size: .875rem; color: var(--muted); }
.project-index .topbar-row { padding-bottom: .875rem; }
.project-filter input { width: 15rem; }
.project-sort, .pull-picker { grid-auto-flow: column; align-items: center; gap: .5rem; }
abbr.grade-inline { text-decoration: none; cursor: help; }

/* Every disclosure draws the same chevron as the selects: pointing right while closed, down while open. */
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
details:not(.fx-columns) > summary::before, .fx-unread-toggle::before { content: ""; width: .625rem; height: .625rem; background: currentColor; opacity: .7; -webkit-mask: var(--chevron-mask) center / contain no-repeat; mask: var(--chevron-mask) center / contain no-repeat; transform: rotate(-90deg); transition: transform .12s ease-out; }
details:not(.fx-columns) > summary::before { display: inline-block; flex: none; margin-right: .5rem; vertical-align: .05em; }
details[open]:not(.fx-columns) > summary::before { transform: none; }
.fx-issue-summary::before { position: absolute; top: 50%; left: 1rem; margin: -.3125rem 0 0; }
.fx-issue-summary { position: relative; }
@media (prefers-reduced-motion: reduce) { details > summary::before, .fx-unread-toggle::before { transition: none; } }

/* The Overview hotspot column while the inspection loads: placeholder rows of the real rows' size, or the previous
   commit's map and ranking held dimmed until the new ones arrive. */
.overview-hotspot-stub li > span:first-child { display: grid; gap: .375rem; flex: 1; }
.stub-line { display: block; width: 55%; height: .875rem; border-radius: 3px; background: var(--surface-2); }
.stub-line-short { width: 80%; height: .625rem; }
.stub-chip { flex: none; width: 2.25rem; height: 1.5rem; border-radius: 6px; background: var(--surface-2); }
.overview-stale #overview-sunburst, .overview-stale #overview-hotspot-list { opacity: .45; transition: opacity .15s .1s; }

/* The footer: where the tool lives and on what terms. Light: a hairline, no fill; at the bottom of a short page. */
body > main { flex: 1 0 auto; width: 100%; padding-bottom: 4rem; }
.site-footer { margin-top: auto; }
.site-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; max-width: var(--content); margin: 0 auto; padding: 1rem clamp(1rem, 3vw, 2.5rem) 1.5rem; border-top: 1px solid var(--rule); font-size: .8125rem; color: var(--muted); }
.site-footer p { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; margin: 0; }
.site-footer a { display: inline-flex; align-items: center; gap: .4rem; color: var(--secondary); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer-icon { width: 1rem; height: 1rem; fill: currentColor; }

/* A security level in a list: the letter of the security mark in its grade colour. */
@media (prefers-color-scheme: dark) { .chip-level { color: #0d1117; } }
/* An area with no chart says so once, in the area's own words and what to do about it, not the chart's generic line. */
.verdict-card:has(.lead-empty) #trend[data-empty="true"] .empty { display: none; }
.verdict-card:has(#trend[data-empty="true"]) .lead:has(.lead-empty) { border-top: 0; }
/* A lead figure that counts findings, files or a function leads to them, with a quiet underline. */
.figure-value a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule-strong); text-decoration-thickness: 1px; text-underline-offset: .15em; }
.verdict-detail a:hover, .figure-value a:hover { color: var(--accent-strong); text-decoration-color: currentColor; }

/* Dependencies have no grade: a neutral mark with a package glyph, never a letter or a colour. */
.mark.mark-neutral { color: var(--secondary); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.mark.mark-neutral svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.figure-value .figure-unrecorded { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }

/* The Overview's ring: a wedge per label set, counted beside it, each in its own hue; sets past the fifth share a grey. */
.license-map .deps-ring-legend { display: grid; justify-items: center; height: auto; min-height: 2.75rem; grid-template-rows: none; overflow: visible; }
.deps-ring-legend > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .875rem; }
.deps-ring-legend span { display: inline-flex; align-items: center; gap: .375rem; white-space: nowrap; }
.deps-ring-legend code { font-size: .8125rem; }
/* The package total in the ring's hole. */
.deps-ring-total { fill: var(--ink); font-size: 1.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* The Dependencies table: every cell plain text, versions and paths in the code face. */
.deps-quiet { font-size: .8125rem; color: var(--muted); }
.deps-version { font-family: var(--mono); font-size: .8125rem; color: var(--secondary); white-space: nowrap; }
.deps-lockfile { font-family: var(--mono); font-size: .75rem; color: var(--secondary); white-space: nowrap; }
/* The package's lockfile under its name, in the Overview list's small grey line. */
.deps-name-lockfile { display: block; overflow: hidden; font-size: .75rem; font-weight: 400; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
/* Package names are never broken; beside the side panel they need room, so the page takes one column a little sooner
   than the other split pages and the totals follow the table. Findings comes first, so no sideways scroll hides one. */
@media (min-width: 42.0625rem) { #dependencies .fx-path-column, #dependencies .fx-path-column .fx-entry { white-space: nowrap; } }
@media (max-width: 75rem) {
  #dependencies .fx-split { grid-template-columns: minmax(0, 1fr); row-gap: 1.5rem; }
  #dependencies .fx-split > .fx-splitter { display: none; }
  #dependencies .fx-split > .fx-aside { position: static; margin-top: 0; }
}
/* A package name keeps its tags on its line; the table scrolls sideways instead, as Metrics does. */
.deps-groups-cell { font-size: .8125rem; }
/* A long direct dependency is cut short; its full name is on hover. */
.deps-via { display: inline-block; max-width: 8rem; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; font-size: .8125rem; color: var(--secondary); white-space: nowrap; }
.deps-via code { font-size: .8125rem; color: var(--ink); }
.deps-license { font-size: .8125rem; white-space: nowrap; }
/* The package table's columns are short: it fits the column beside the side panel instead of scrolling sideways, and its
   names (never wrapped) size the first column rather than the file tables' minimum. */
#dependencies .fx-table, #dependencies .fx-table th:first-child { min-width: 0; }
#dependencies td .deps-quiet { white-space: nowrap; }
.deps-empty { margin: .5rem 0 0; color: var(--secondary); }

/* The groups filter sits at the right with Columns; each lockfile is a section headed by its path and ecosystem. */
.deps-groups ~ .fx-columns { margin-left: 0; }
.deps-groups .fx-column-toggles { min-width: 15rem; }
.deps-groups-head { display: flex; align-items: baseline; gap: .375rem; padding: .5rem .875rem .25rem; font-size: .75rem; color: var(--muted); }
.deps-groups-head:not(:first-child) { margin-top: .25rem; border-top: 1px solid var(--rule); }
.deps-groups-head code { font-weight: 600; color: var(--secondary); }

/* The side panel's chain: a step per line, joined by a rule, from the project down to the package. */
.deps-chain, .deps-findings, .deps-advisories { margin: .375rem 0 0; padding: 0; list-style: none; }
.deps-chain, .deps-advisories { font-size: .8125rem; }
.deps-chain li { position: relative; padding: .1875rem 0 .1875rem 1.125rem; overflow-wrap: anywhere; }
.deps-chain li:not(:first-child) { font-family: var(--mono); }
.deps-chain li::before { content: ""; position: absolute; left: .25rem; top: .625rem; width: .4375rem; height: .4375rem; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--neutral-3); }
.deps-chain li + li::after { content: ""; position: absolute; left: calc(.46875rem - .75px); top: calc(-.375rem + 1px); height: calc(.625rem + .375rem - 2px); width: 1.5px; background: var(--neutral-2); }
.deps-chain li:first-child { color: var(--secondary); }
.deps-chain li:last-child { font-weight: 600; }
.deps-chain li:last-child::before { background: var(--neutral-4); box-shadow: none; }
.deps-findings li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem; align-items: baseline; padding: .375rem 0; border-top: 1px solid var(--rule); font-size: .8125rem; }

/* Findings: the most severe level of either kind as the Issues chip, with the count beside it. */
.deps-finding-cell { display: inline-flex; align-items: baseline; gap: .375rem; white-space: nowrap; }
.deps-finding-count { font-size: .8125rem; color: var(--secondary); font-variant-numeric: tabular-nums; }
.deps-advisory-note { margin: .75rem 0 0; }
.deps-advisories li { padding: .5rem 0; border-top: 1px solid var(--rule); }
.deps-advisory-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .5rem; }
.deps-advisory-link { font-family: var(--mono); font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.deps-advisory-summary { margin: .25rem 0 0; color: var(--ink); overflow-wrap: anywhere; }
.deps-advisory-fixed { margin: .125rem 0 0; }

/* The Advisories view: the advisory and its level first; the summary wraps and the chain is cut short, so the table fits
   its column instead of scrolling sideways. Each affected package is a line, and its chain sits on the same line. */
#dependencies .deps-advisory-table th[scope="row"] { padding-block: .4375rem; }
.deps-advisory-line { display: block; max-width: 100%; line-height: 1.5rem; white-space: nowrap; }
.deps-findings a, a.deps-advisory-package { color: var(--ink); text-decoration: none; }
.deps-findings a:hover, .deps-advisory-link:hover, a.deps-advisory-package:hover { text-decoration: underline; }
.deps-advisory-package .deps-version { color: var(--muted); }
.deps-advisory-chain { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; font-size: .8125rem; color: var(--secondary); }
.deps-advisory-fixed-in { font-family: var(--mono); font-size: .8125rem; color: var(--secondary); }
.deps-advisory-text { display: block; min-width: 12rem; font-size: .8125rem; overflow-wrap: anywhere; }
a.deps-finding-cell { color: inherit; text-decoration: none; }
a.deps-finding-cell:hover .deps-finding-count { color: var(--ink); text-decoration: underline; }
