/* repocheck Checker: one screen, never scrolls. Built on the host page's
   tokens (--bg/--bg2 surfaces, --ink* text, --line rules, --on buttons).
   Blue is the agent at work; each repo found gets its own color. */

/* The template's floating promo pill (now "Install repocheck") duplicates the
   top bar's Install button and covers content; hide it. */
[data-framer-name="Install repocheck"] { display: none !important; }

.nv .rc {
  --rc-a: #0A84FF;
  position: absolute; inset: 0; box-sizing: border-box; padding: 22px 26px 22px;
  overflow: hidden; color: var(--ink);
}
.nv[data-theme="dark"] .rc { --rc-a: #409CFF; }
.nv .pane:has(> .rc) { overflow: hidden; padding: 0; }
.nv .rc .mono, .nv .rc-path, .nv .rc-qt, .nv .rc-code, .nv .rc-tip b { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

/* ---------------------------------------------------------------- idle */
.nv .rc-idle {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding-bottom: 6vh; box-sizing: border-box;
}
.nv .rc[data-state="run"] .rc-idle { display: none; }
.nv .rc-hero { font-size: 60px; line-height: 1.02; font-weight: 650; letter-spacing: -.045em; }
.nv .rc-sub { margin: 18px 0 0; max-width: 480px; font-size: 17px; line-height: 1.45; color: var(--ink2); letter-spacing: -.01em; }
.nv .rc-in {
  margin-top: 38px; width: min(600px, 100%); height: 62px; box-sizing: border-box;
  display: flex; align-items: center; gap: 4px; padding: 0 7px 0 22px; border-radius: 999px;
  background: var(--bg2); border: 1px solid var(--hair);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .28);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nv .rc-in:focus-within { border-color: var(--line2); box-shadow: 0 24px 48px -26px rgba(0, 0, 0, .34); }
.nv .rc-gh { display: flex; align-items: center; gap: 10px; flex: none; font-size: 17px; color: var(--ink3); cursor: text; }
.nv .rc-gh svg { width: 21px; height: 21px; fill: var(--ink); }
.nv .rc-in input {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent;
  font: 500 17px/1 var(--f); color: var(--ink); letter-spacing: -.01em;
}
.nv .rc-in input::placeholder { color: var(--ink3); font-weight: 400; }
.nv .rc-in .touch { height: 48px; padding: 0 26px; font-size: 15px; flex: none; }
.nv .rc-msg { min-height: 20px; margin: 14px 0 0; font-size: 14px; color: var(--ink2); }
.nv .rc-msg[data-kind="err"] { color: #FF9F0A; }
.nv .rc-try { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--ink3); }
.nv .rc-try button {
  height: 30px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line);
  font: 500 12.5px ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink2);
  transition: background .15s ease, color .15s ease;
}
.nv .rc-try button:hover { background: var(--bg2); color: var(--ink); }
.nv .rc-tok { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nv .rc[data-state="run"] .rc-tok, .nv .rc-tok[hidden] { display: none; }
.nv .rc-tok-btn { font-size: 13px; color: var(--ink3); transition: color .15s ease; }
.nv .rc-tok-btn:hover { color: var(--ink); }
.nv .rc-tok-form { display: flex; align-items: center; gap: 8px; }
.nv .rc-tok-form[hidden] { display: none; }
.nv .rc-tok-form input {
  width: 240px; height: 36px; box-sizing: border-box; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line2); background: var(--bg2); outline: 0; font: 13px var(--f); color: var(--ink);
}
.nv .rc-tok-form .ghost { height: 36px; padding: 0 14px; font-size: 13px; }
.nv .rc-tok-form span { font-size: 12px; color: var(--ink3); }

/* ---------------------------------------------------------------- run */
.nv .rc-run {
  display: none; position: relative; height: 100%; gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(290px, .4fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "top top" "map side" "out out";
}
.nv .rc[data-state="run"] .rc-run { display: grid; }
.nv .rc-run > :not(.rc-fx) { animation: rc-rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.nv .rc-run > :nth-child(2) { animation-delay: .04s; }
.nv .rc-run > :nth-child(3) { animation-delay: .08s; }
.nv .rc-run > :nth-child(4) { animation-delay: .12s; }
@keyframes rc-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.nv .rc-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }

.nv .rc-top { grid-area: top; display: flex; align-items: center; gap: 12px; min-height: 44px; }
.nv .rc-av { width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--bg2); object-fit: cover; }
.nv .rc-av:not([src]) { visibility: hidden; }
.nv .rc-id { min-width: 0; display: flex; flex-direction: column; }
.nv .rc-name { font-size: 18px; font-weight: 650; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv .rc-meta { display: flex; margin-top: 3px; overflow: hidden; white-space: nowrap; }
.nv .rc-meta span { font-size: 12.5px; color: var(--ink2); animation: rc-rise .35s both; }
.nv .rc-meta span + span::before { content: "·"; margin: 0 7px; color: var(--ink3); }
.nv .rc-meta .is-hot { color: var(--ink); font-weight: 600; }
.nv .rc-steps { margin: 0 0 0 auto; padding: 3px; list-style: none; display: flex; gap: 2px; border-radius: 999px; background: var(--bg2); flex: none; }
.nv .rc-steps li {
  display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink3); transition: background .25s ease, color .25s ease;
}
.nv .rc-steps i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .55; }
.nv .rc-steps li[data-s="on"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.nv .rc-steps li[data-s="on"] i { background: var(--rc-a); opacity: 1; animation: rc-pulse 1s ease-in-out infinite; }
.nv .rc-steps li[data-s="done"] { color: var(--ink2); }
.nv .rc-steps li[data-s="done"] i { opacity: 1; background: var(--ink2); }
@keyframes rc-pulse { 50% { transform: scale(1.6); opacity: .55; } }

/* the repo, as a map of its code */
.nv .rc-map, .nv .rc-side { position: relative; min-height: 0; overflow: hidden; border-radius: 20px; background: var(--bg2); box-sizing: border-box; }
.nv .rc-map { grid-area: map; display: flex; flex-direction: column; padding: 0 12px 12px; }
.nv .rc-mh { flex: none; height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 4px; font-size: 12px; }
.nv .rc-path { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--ink2); }
.nv .rc-count { flex: none; color: var(--ink3); font-variant-numeric: tabular-nums; }
.nv .rc-tm { position: relative; flex: 1; min-height: 0; }
.nv .rc-tm canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.nv .rc-tip {
  position: absolute; z-index: 3; pointer-events: none; max-width: min(340px, 80%); padding: 8px 11px;
  border-radius: 10px; background: var(--bg); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .35), 0 0 0 1px var(--line);
}
.nv .rc-tip[hidden] { display: none; }
.nv .rc-tip b { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.35; word-break: break-all; }
.nv .rc-tip span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--ink2); }

/* GitHub, then the sources, then one file */
.nv .rc-side { grid-area: side; display: flex; flex-direction: column; padding: 0 16px 12px; }
.nv .rc-sh { flex: none; height: 40px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.nv .rc-st { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nv .rc-qn { margin-left: auto; flex: none; max-width: 60%; font-style: normal; font-weight: 400; font-size: 12px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv .rc-back { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-left: -6px; border-radius: 8px; color: var(--ink2); }
.nv .rc-back:hover { background: var(--bg); color: var(--ink); }
.nv .rc-back[hidden] { display: none; }
.nv .rc-back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.nv .rc-rows, .nv .rc-cands { list-style: none; margin: 0; padding: 0; }
.nv .rc-rows { flex: none; display: flex; flex-direction: column; }
.nv .rc-q {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; height: 34px;
  border-top: 1px solid var(--line); animation: rc-in .3s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes rc-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.nv .rc-qt { font-size: 11.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv .rc-q:not(.is-code) .rc-qt { color: var(--ink2); }
.nv .rc-qr { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink3); max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv .rc-q.is-hit .rc-qr { color: var(--rc-a); font-weight: 600; }
.nv .rc-q.is-common .rc-qt, .nv .rc-q.is-muted .rc-qt { color: var(--ink3); }
.nv .rc-spin { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line2); border-top-color: var(--rc-a); animation: rc-spin .6s linear infinite; vertical-align: -1px; }
@keyframes rc-spin { to { transform: rotate(360deg); } }

.nv .rc-cands { flex: none; margin-top: 14px; display: flex; flex-direction: column; }
.nv .rc-cand, .nv .rc-src {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  flex: none; height: 44px; animation: rc-in .35s cubic-bezier(.2, .8, .2, 1) both;
}
.nv .rc-sw { display: grid; place-items: center; width: 10px; height: 10px; border-radius: 3px; background: var(--ink3); }
.nv .rc-cand .rc-sw { background: none; }
.nv .rc-cand.is-done .rc-sw { background: #FF9F0A; }
.nv .rc-cand.is-done .rc-sw .rc-spin, .nv .rc-cand.is-gone .rc-sw .rc-spin { display: none; }
.nv .rc-who { min-width: 0; }
.nv .rc-who b { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv .rc-who em { display: block; margin-top: 1px; font-style: normal; font-size: 11.5px; line-height: 1.3; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv .rc-pc { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink2); }
.nv .rc-cand:not(.is-done) .rc-who b { color: var(--ink2); }
.nv .rc-mb { width: 64px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.nv .rc-mb i { display: block; width: 0; height: 100%; border-radius: 2px; background: #FF9F0A; transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.nv .rc-cand.is-gone { opacity: .5; }
.nv .rc-src { margin: 0 -8px; padding: 0 8px; border-radius: 10px; cursor: pointer; outline: 0; transition: background .15s ease; }
.nv .rc-src:hover, .nv .rc-src:focus-visible { background: var(--bg); }
.nv .rc-src .rc-pc { color: var(--ink); font-size: 14px; }
.nv .rc-src.is-common .rc-sw { background: repeating-linear-gradient(135deg, var(--ink3) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--ink3); }
.nv .rc-src.is-rest { cursor: default; }
.nv .rc-src.is-rest:hover { background: none; }
.nv .rc-src.is-rest .rc-sw { background: none; box-shadow: inset 0 0 0 1.5px var(--line2); }
.nv .rc-src.is-rest .rc-pc { color: var(--ink2); }
.nv .rc-act { flex: none; display: flex; padding: 2px 0 6px 22px; }
.nv .rc-act button { font-size: 12px; font-weight: 600; color: var(--rc-a); max-width: 100%; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv .rc-act button:hover { text-decoration: underline; }
.nv .rc-also { margin-top: 8px; font-size: 11.5px; line-height: 1.4; color: var(--ink3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.nv .rc-side[data-mode="file"] .rc-rows, .nv .rc-side[data-mode="file"] .rc-cands { display: none; }
.nv .rc-ql { display: none; }
/* after the verdict: the sources, then what was searched */
.nv .rc-side[data-mode="done"] .rc-cands { order: 1; margin-top: 2px; }
.nv .rc-side[data-mode="done"] .rc-ql { order: 2; display: block; flex: none; margin: 18px 0 2px; font-size: 12px; font-weight: 600; color: var(--ink3); }
.nv .rc-side[data-mode="done"] .rc-rows { order: 3; }
.nv .rc-side[data-mode="done"] .rc-sh { order: 0; }
.nv .rc-side[data-mode="done"] .rc-file { order: 4; }
.nv .rc-file { flex: 1; min-height: 0; margin: 0 -16px -12px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.nv .rc-file[hidden] { display: none; }
.nv .rc-code { padding: 4px 0 14px; font-size: 11.5px; line-height: 18px; }
.nv .rc-ln { display: flex; gap: 12px; padding-right: 16px; white-space: pre; color: var(--ink2); }
.nv .rc-ln i { flex: none; width: 34px; text-align: right; font-style: normal; color: var(--ink3); opacity: .7; }
.nv .rc-ln span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nv .rc-ln.is-m { color: var(--ink); background: color-mix(in srgb, var(--m) 16%, transparent); box-shadow: inset 3px 0 var(--m); }

/* the verdict */
.nv .rc-out {
  grid-area: out; display: flex; align-items: center; gap: 16px; min-height: 84px; box-sizing: border-box;
  padding: 14px 18px 14px 24px; border-radius: 20px; background: var(--bg2);
}
.nv .rc-pct { min-width: 0; font-size: 46px; line-height: 1; font-weight: 650; letter-spacing: -.045em; font-variant-numeric: tabular-nums; transition: color .4s ease; }
.nv .rc-out[data-v="common"] .rc-pct { color: var(--ink2); }
.nv .rc-out[data-v=""] .rc-pct, .nv .rc-out[data-v="none"] .rc-pct { display: none; }
.nv .rc-say { flex: 1; min-width: 0; }
.nv .rc-bar { display: flex; gap: 2px; height: 6px; margin-bottom: 11px; border-radius: 3px; overflow: hidden; background: var(--line); transition: opacity .3s ease; }
.nv .rc-out[data-v="none"] .rc-bar { display: none; }
.nv .rc-bar .is-run { width: 0; background: var(--rc-a); border-radius: 3px; transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.nv .rc-bar i { flex: none; width: 0; height: 100%; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.nv .rc-bar.is-on i { width: var(--w); }
.nv .rc-bar i:nth-child(2) { transition-delay: .08s; } .nv .rc-bar i:nth-child(3) { transition-delay: .16s; } .nv .rc-bar i:nth-child(n+4) { transition-delay: .24s; }
.nv .rc-bar .is-common { background: repeating-linear-gradient(135deg, var(--ink3) 0 2px, transparent 2px 4px); }
.nv .rc-say b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv .rc-say > span { display: block; margin-top: 4px; font-size: 13px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv .rc-again { flex: none; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.nv .rc-out:not([data-v=""]) .rc-again { opacity: 1; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  .nv .rc-run > *, .nv .rc-q, .nv .rc-cand, .nv .rc-src, .nv .rc-meta span { animation: none; }
  .nv .rc-steps li[data-s="on"] i, .nv .rc-spin { animation: none; }
  .nv .rc-bar i { transition: none; }
}

/* ---------------------------------------------------------------- narrow
   The layout follows the checker's own width (a container query), not the
   device flag: a 1000 px laptop window keeps two columns, a phone stacks.
   Padding still follows the device: phones have Navigator's floating bars. */
.nv .rc { container: rc / size; }
.nv[data-phone] .rc { padding: 86px 14px 96px; }
.nv[data-tab] .rc { padding: 22px 24px 84px; }
@container rc (max-width: 900px) {
  .nv .rc .rc-run { grid-template-columns: minmax(0, 1fr) minmax(250px, .46fr); }
  .nv .rc .rc-pct { min-width: 0; font-size: 40px; }
}
@container rc (max-width: 700px) {
  .nv .rc .rc-count { display: none; }
}
@container rc (max-width: 540px) {
  .nv .rc .rc-idle { padding-bottom: 0; }
  .nv .rc .rc-hero { font-size: 40px; }
  .nv .rc .rc-sub { font-size: 15.5px; }
  .nv .rc .rc-in { height: 56px; padding-left: 16px; margin-top: 28px; }
  .nv .rc .rc-gh span { display: none; }
  .nv .rc .rc-in .touch { height: 42px; padding: 0 18px; }
  .nv .rc .rc-tok { bottom: 78px; }
  .nv .rc .rc-tok-form span { display: none; }
  .nv .rc .rc-run {
    gap: 10px; grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1.1fr) minmax(0, 1fr) auto;
    grid-template-areas: "top" "map" "side" "out";
  }
  .nv .rc .rc-steps li { padding: 0 9px; font-size: 0; gap: 0; }
  .nv .rc .rc-steps li[data-s="on"] { font-size: 12px; gap: 6px; }
  .nv .rc .rc-meta span:nth-child(n+3) { display: none; }
  .nv .rc .rc-mh { height: 34px; }
  .nv .rc .rc-count { display: none; }
  .nv .rc .rc-sh { height: 36px; }
  .nv .rc .rc-q { height: 30px; }
  .nv .rc .rc-cand, .nv .rc .rc-src { height: 38px; }
  .nv .rc .rc-cands { margin-top: 8px; }
  .nv .rc .rc-out { padding: 12px 14px 12px 16px; gap: 14px; min-height: 0; }
  .nv .rc .rc-pct { min-width: 0; font-size: 30px; }
  .nv .rc .rc-bar { margin-bottom: 8px; }
  .nv .rc .rc-say b { font-size: 14px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .nv .rc .rc-say > span { display: none; }
  .nv .rc .rc-again { display: none; }
  .nv .rc[data-done] .rc-steps { display: none; }
  /* comparing: room for the candidates, keep the last two searches */
  .nv .rc .rc-side[data-mode="run"][data-phase="compare"] .rc-q:nth-last-child(n+3) { display: none; }
}

/* ---------------------------------------------------------------- premium layer
   Suggestions, the gliding name, rolling digits, the author card and the
   diff. Motion is the browser's own (WAAPI and transitions): no library. */

/* suggestions under the repo field */
.nv .rc-in { position: relative; }
.nv .rc-in .touch { transition: transform .18s cubic-bezier(.2, .8, .2, 1), filter .18s ease; }
.nv .rc-in .touch:active { transform: scale(.96); }
.nv .rc-ac {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  border-radius: 20px; background: var(--bg); text-align: left;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .45), 0 0 0 1px var(--line);
}
.nv .rc-ac[hidden] { display: none; }
.nv .rc-ac li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; height: 52px; padding: 0 12px; border-radius: 14px; cursor: pointer; }
.nv .rc-ac li.is-on { background: var(--bg2); }
.nv .rc-ac img { width: 28px; height: 28px; border-radius: 8px; background: var(--bg2); }
.nv .rc-acn { min-width: 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv .rc-acn > span { color: var(--ink3); font-weight: 400; }
.nv .rc-acn b { font-weight: 650; }
.nv .rc-acn em { display: block; margin-top: 1px; font-style: normal; font-size: 12px; font-weight: 400; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv .rc-acs { font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.nv .rc[data-state="idle"] .rc-try, .nv .rc[data-state="idle"] .rc-msg { transition: opacity .2s ease; }
.nv .rc-in.is-ac ~ .rc-try, .nv .rc-in.is-ac ~ .rc-msg { opacity: 0; }

/* the typed name, gliding into the header */
.rc-ghost { position: fixed; z-index: 2147483000; pointer-events: none; white-space: nowrap; transform-origin: left center; font-weight: 600; letter-spacing: -.02em; color: var(--ink, #f5f5f7); font-family: inherit; }
.nv .rc-name { color: var(--ink); text-decoration: none; transition: opacity .2s ease; }
.nv .rc-name:hover { text-decoration: underline; text-underline-offset: 3px; }

/* the verdict number rolls in */
.nv .rc-pct { display: inline-flex; align-items: flex-start; }
.nv .rc-rd { display: inline-block; height: 1em; overflow: hidden; }
.nv .rc-rdi { display: block; }
.nv .rc-rdi i { display: block; height: 1em; font-style: normal; line-height: 1; text-align: center; }

/* links in the legend */
.nv .rc-src .rc-who a { color: inherit; text-decoration: none; }
.nv .rc-src .rc-who a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* the person behind the source */
.nv .rc-card {
  grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-rows: auto auto; height: auto; gap: 4px 12px;
  margin: 4px -8px 8px; padding: 12px; border-radius: 16px; background: var(--bg);
  box-shadow: inset 3px 0 0 var(--src, var(--ink3)), 0 1px 2px rgba(0, 0, 0, .08);
}
.nv .rc-card:hover { background: var(--bg); }
.nv .rc-cav { grid-row: 1; width: 36px; height: 36px; border-radius: 50%; background: var(--bg2); align-self: start; }
.nv .rc-card .rc-who b { font-size: 14px; }
.nv .rc-card .rc-who em + em { margin-top: 2px; }
.nv .rc-card .rc-pc { align-self: start; font-size: 15px; }
.nv .rc-credit {
  grid-column: 2 / 4; justify-self: start; margin-top: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2);
  transition: background .15s ease, transform .15s cubic-bezier(.2, .8, .2, 1);
}
.nv .rc-credit:hover { background: var(--line); }
.nv .rc-credit:active { transform: scale(.97); }
.nv .rc-credit.is-ok { color: #30D158; }
.nv .rc-act .rc-credit { margin-top: 0; }

/* the diff, grown out of its tile over the map */
.nv .rc-dv {
  grid-area: map; position: relative; z-index: 3; min-height: 0; overflow: hidden; box-sizing: border-box;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); border-radius: 20px; background: var(--bg2);
  container: dv / inline-size; --m: #FF9F0A; --chg: #FFD60A;
}
.nv .rc-dv[hidden] { display: none; }
.nv .rc-dvh { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px 0 10px; }
.nv .rc-dvx, .nv .rc-dvn button { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: var(--ink2); transition: background .15s ease, color .15s ease; }
.nv .rc-dvx:hover, .nv .rc-dvn button:hover { background: var(--bg); color: var(--ink); }
.nv .rc-dvx svg, .nv .rc-dvn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nv .rc-dvn [data-step="1"] svg { transform: scaleX(-1); }
.nv .rc-dvt { min-width: 0; flex: 1; display: flex; align-items: baseline; gap: 10px; }
.nv .rc-dvt b { min-width: 0; font: 600 12.5px ui-monospace, "SF Mono", Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; }
.nv .rc-dvt span { flex: none; font-size: 12px; color: var(--ink3); }
.nv .rc-dvn { flex: none; display: flex; align-items: center; gap: 2px; }
.nv .rc-dvn[hidden] { display: none; }
.nv .rc-dvn em { min-width: 44px; text-align: center; font-style: normal; font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.nv .rc-dvk { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); gap: 0; padding: 0 22px 8px 14px; font-size: 11.5px; color: var(--ink3); }
.nv .rc-dvk span, .nv .rc-dvk a { padding-left: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv .rc-dvk a { grid-column: 3; color: var(--m); font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.nv .rc-dvk a span { padding: 0; font-weight: 400; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; }
.nv .rc-dvk a svg { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nv .rc-dv[data-mode="file"] .rc-dvk { display: none; }
.nv .rc-dvb { position: relative; overflow: auto; overscroll-behavior: contain; padding: 0 22px 16px 14px; scrollbar-width: none; }
.nv .rc-dvb::-webkit-scrollbar { display: none; }
.nv .rc-dvm { position: absolute; right: 6px; top: 96px; bottom: 12px; width: 8px; height: calc(100% - 108px); border-radius: 4px; cursor: pointer; background: var(--line); }
.nv .rc-dv[data-mode="file"] .rc-dvm { top: 56px; height: calc(100% - 68px); }

.nv .rc-dvr { font: 11.5px/18px ui-monospace, "SF Mono", Menlo, monospace; }
.nv .rc-r { display: grid; grid-template-columns: 34px minmax(0, 1fr) 22px 34px minmax(0, 1fr); content-visibility: auto; contain-intrinsic-size: auto 18px; }
.nv .rc-dv[data-mode="file"] .rc-r { grid-template-columns: 40px minmax(0, 1fr); }
.nv .rc-r > i { padding-right: 8px; text-align: right; font-style: normal; color: var(--ink3); opacity: .7; user-select: none; }
.nv .rc-r > code { font: inherit; white-space: pre-wrap; word-break: break-all; color: var(--ink2); padding: 0 6px; }
.nv .rc-r > b { position: relative; }
.nv .rc-r.is-eq > code { background: color-mix(in srgb, var(--m) 9%, transparent); color: var(--ink); }
.nv .rc-r.is-eq > b::before { content: ""; position: absolute; left: 8px; right: 8px; top: 0; bottom: 0; background: var(--m); opacity: .75; }
.nv .rc-r.is-chg > code { background: color-mix(in srgb, var(--chg) 9%, transparent); color: var(--ink); }
.nv .rc-r.is-chg > b::before { content: ""; position: absolute; left: 8px; right: 8px; top: 0; bottom: 0; background: repeating-linear-gradient(180deg, var(--chg) 0 3px, transparent 3px 6px); opacity: .8; }
.nv .rc-r mark { background: color-mix(in srgb, var(--chg) 38%, transparent); color: var(--ink); border-radius: 3px; padding: 0 1px; }
.nv .rc-r.is-here > code:nth-of-type(1) { color: var(--ink); }
.nv .rc-r.is-here > code:nth-of-type(2), .nv .rc-r.is-there > code:nth-of-type(1) { background: repeating-linear-gradient(135deg, transparent 0 4px, var(--line) 4px 5px); }
.nv .rc-r.is-there > code:nth-of-type(2) { color: var(--ink3); }
.nv .rc-r.is-mark > code { background: color-mix(in srgb, var(--m) 14%, transparent); color: var(--ink); box-shadow: inset 3px 0 var(--m); }
.nv .rc-r.is-plain > code { color: var(--ink2); }

/* narrow: one column, their line under ours where they differ */
@container dv (max-width: 620px) {
  .nv .rc-dvk { display: none; }
  .nv .rc-r { grid-template-columns: 34px minmax(0, 1fr); }
  .nv .rc-r > b, .nv .rc-r.is-eq > i:nth-of-type(2), .nv .rc-r.is-eq > code:nth-of-type(2),
  .nv .rc-r.is-here > i:nth-of-type(2), .nv .rc-r.is-here > code:nth-of-type(2),
  .nv .rc-r.is-there > i:nth-of-type(1), .nv .rc-r.is-there > code:nth-of-type(1) { display: none; }
  .nv .rc-r.is-eq > code { box-shadow: inset 3px 0 var(--m); }
  .nv .rc-r.is-chg > code { box-shadow: inset 3px 0 var(--chg); }
  .nv .rc-r.is-chg > code:nth-of-type(2), .nv .rc-r.is-there > code { color: var(--ink3); }
  .nv .rc-r.is-chg > i:nth-of-type(2), .nv .rc-r.is-there > i { opacity: .45; }
}
@container rc (max-width: 540px) {
  .nv .rc .rc-dv { grid-area: auto; grid-row: 2 / span 2; grid-column: 1; }
  .nv .rc .rc-dvt span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nv .rc-in .touch, .nv .rc-credit { transition: none; }
}

/* syntax colors (GitHub's palette, as commits.sh uses it) */
.nv .rc { --s-k: #CF222E; --s-s: #0A3069; --s-n: #0550AE; --s-f: #8250DF; --s-t: #953800; --s-c: #6E7781; --s-a: #116329; }
.nv[data-theme="dark"] .rc { --s-k: #FF7B72; --s-s: #A5D6FF; --s-n: #79C0FF; --s-f: #D2A8FF; --s-t: #FFA657; --s-c: #8B949E; --s-a: #7EE787; }
.nv .rc-r .s-keyword { color: var(--s-k); }
.nv .rc-r .s-string { color: var(--s-s); }
.nv .rc-r .s-number, .nv .rc-r .s-constant { color: var(--s-n); }
.nv .rc-r .s-function, .nv .rc-r .s-macro { color: var(--s-f); }
.nv .rc-r .s-type { color: var(--s-t); }
.nv .rc-r .s-comment { color: var(--s-c); font-style: italic; }
.nv .rc-r .s-attribute { color: var(--s-a); }
.nv .rc-r.is-there > code:nth-of-type(2) span, .nv .rc-r.is-plain > code span { opacity: .85; }

/* a pill that slides under the active step */
.nv .rc-steps { position: relative; }
.nv .rc-steps li { position: relative; z-index: 1; }
.nv .rc-steps li[data-s="on"] { background: none; box-shadow: none; }
.nv .rc-glide { position: absolute; z-index: 0; left: 0; top: 3px; bottom: 3px; width: 0; border-radius: 999px; background: var(--bg); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); opacity: 0; transition: opacity .25s ease; }

/* the latest real fingerprint, scrambling into place */
.nv .rc-hash { flex: none; font: 500 11px ui-monospace, "SF Mono", Menlo, monospace; color: var(--rc-a); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.nv .rc-hash:empty { display: none; }
@container rc (max-width: 700px) { .nv .rc .rc-hash { display: none; } }

/* folded one-sided stretches in the diff */
.nv .rc-fold {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 30px; margin: 4px 0;
  border-radius: 10px; font: 500 11.5px var(--f); color: var(--ink3); background: repeating-linear-gradient(135deg, transparent 0 5px, var(--line) 5px 6px);
  transition: color .15s ease, background-color .15s ease;
}
.nv .rc-fold span { padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--ink2); font-weight: 600; }
.nv .rc-fold:hover { color: var(--ink2); }

/* verdict words rise out of a blur */
.nv .rc-say .rc-w { display: inline-block; }

/* where the source came from, and whether this repo credits it */
.nv .rc-card .rc-up { color: var(--ink2); }
.nv .rc-card .rc-cr { margin-top: 4px; font-weight: 600; }
.nv .rc-card .rc-cr.is-yes { color: #30D158; }
.nv .rc-card .rc-cr.is-no { color: #FF9F0A; }

/* the clock */
.nv .rc-out { position: relative; }
.nv .rc-time { position: absolute; top: 10px; right: 18px; font-size: 11.5px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.nv .rc-out:not([data-v=""]) .rc-time { display: none; }
@container rc (max-width: 540px) { .nv .rc .rc-time { top: 8px; right: 12px; bottom: auto; } }

/* the author card keeps its own height everywhere (the phone rule fixes row heights) */
.nv .rc .rc-src.rc-card { height: auto; }
