/* 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: color-mix(in srgb, var(--rc-a) 55%, var(--line2)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rc-a) 16%, transparent), 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 {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--bg2);
  font: 500 12.5px ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink2);
  transition: background .15s ease, color .15s ease, transform .25s cubic-bezier(.34, 1.4, .64, 1);
}
.nv .rc-try button img { width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.nv .rc-try button:active { transform: scale(.95); }
.nv .rc-try button:hover { background: color-mix(in srgb, var(--ink) 12%, var(--bg2)); color: var(--ink); }

/* ---------------------------------------------------------------- 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 li > 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;
  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);  }

/* 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-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: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; margin-top: 3px; font-size: 11.5px; line-height: 1.35; }
  .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:hover { transform: translateY(-.5px); }
.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: 0 1px 2px rgba(0, 0, 0, .1), 0 8px 24px -14px rgba(0, 0, 0, .35);
}
.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; --num: 40px; --gap: 14px;
}
.nv .rc-dv[hidden] { display: none; }
/* the header: back, the file, how much of it is the same, the next file */
.nv .rc-dvh { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 14px 8px 12px; box-sizing: border-box; }
.nv .rc-dvx, .nv .rc-dvn button { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; color: var(--ink2); transition: background .15s ease, color .15s ease, transform .16s cubic-bezier(.2, .8, .2, 1); }
.nv .rc-dvx { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nv .rc-dvx:hover, .nv .rc-dvn button:hover { background: color-mix(in srgb, var(--ink) 11%, transparent); color: var(--ink); }
.nv .rc-dvx:active, .nv .rc-dvn button:active { transform: scale(.9); }
.nv .rc-dvx svg, .nv .rc-dvn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; 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; flex-direction: column; gap: 4px; }
.nv .rc-dvt b { display: flex; min-width: 0; font: 650 13.5px/1.25 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: -.01em; }
.nv .rc-dvt b .d { flex: 0 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; direction: rtl; font-weight: 500; color: var(--ink3); }
.nv .rc-dvt b .f { flex: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.nv .rc-dvt > span { display: flex; gap: 14px; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 11.5px; line-height: 1.3; color: var(--ink3); font-variant-numeric: tabular-nums; }
.nv .rc-dvt > span span { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.nv .rc-dvt > span i { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.nv .rc-dvp { flex: none; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--m); background: color-mix(in srgb, var(--m) 15%, transparent); }
.nv .rc-dvp[hidden] { display: none; }
.nv .rc-dvn { flex: none; display: flex; align-items: center; padding: 2px; border-radius: 13px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nv .rc-dvn[hidden] { display: none; }
.nv .rc-dvn em { min-width: 46px; text-align: center; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink2); font-variant-numeric: tabular-nums; }
/* each side under its repo */
.nv .rc-dvk { display: grid; grid-template-columns: minmax(0, 1fr) var(--gap) minmax(0, 1fr); padding: 0 24px 8px 14px; }
.nv .rc-dvk > * { display: flex; align-items: center; gap: 8px; min-width: 0; height: 34px; padding: 0 10px 0 8px; border-radius: 11px; font-size: 12px; text-decoration: none; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nv .rc-dvk .is-there { grid-column: 3; transition: background .15s ease; }
.nv .rc-dvk .is-there:hover { background: color-mix(in srgb, var(--m) 14%, transparent); }
.nv .rc-dvk img { flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--bg); }
.nv .rc-dvk b { flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; color: var(--ink); }
.nv .rc-dvk .is-there b { color: var(--m); }
.nv .rc-dvk span span, .nv .rc-dvk a span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 11.5px ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink3); }
.nv .rc-dvk a svg { flex: none; width: 14px; height: 14px; fill: none; stroke: var(--ink3); stroke-width: 1.9; 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 24px 16px 14px; scrollbar-width: none; }
.nv .rc-dvb::-webkit-scrollbar { display: none; }
.nv .rc-dvm { position: absolute; right: 8px; top: 112px; bottom: 14px; width: 6px; height: calc(100% - 126px); border-radius: 3px; cursor: pointer; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nv .rc-dv[data-mode="file"] .rc-dvm { top: 70px; height: calc(100% - 84px); }

/* the code: lines that are the same carry the source's color on their numbers
   and a breath of it behind; what differs is marked word by word; the rest
   stays quiet */
.nv .rc-dvr { font: 12px/19px ui-monospace, "SF Mono", Menlo, monospace; }
.nv .rc-r { display: grid; grid-template-columns: var(--num) minmax(0, 1fr) var(--gap) var(--num) minmax(0, 1fr); content-visibility: auto; contain-intrinsic-size: auto 19px; }
.nv .rc-dv[data-mode="file"] .rc-r { grid-template-columns: var(--num) minmax(0, 1fr); }
.nv .rc-r > i { padding-right: 10px; text-align: right; font-style: normal; font-size: 11px; color: var(--ink3); opacity: .6; user-select: none; }
.nv .rc-r > code { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink3); padding: 0 8px 0 calc(8px + 2ch); text-indent: -2ch; }
.nv .rc-r.is-eq > code, .nv .rc-r.is-mark > code { background: color-mix(in srgb, var(--m) 6%, transparent); color: var(--ink); }
.nv .rc-r.is-eq > i, .nv .rc-r.is-mark > i { color: var(--m); opacity: .85; }
.nv .rc-r.is-chg > code { background: color-mix(in srgb, var(--chg) 9%, transparent); color: var(--ink); }
.nv .rc-r.is-chg > i { color: var(--chg); opacity: .85; }
.nv .rc-r mark { background: color-mix(in srgb, var(--chg) 34%, transparent); color: var(--ink); border-radius: 4px; padding: 1px 2px; margin: 0 -1px; }
.nv .rc-r.is-here > code:nth-of-type(1) { color: var(--ink2); }
.nv .rc-r.is-plain > code { color: var(--ink2); }
/* a run of matching lines reads as one rounded block */
.nv .rc-r.is-eq:not(.is-eq + .is-eq) > code, .nv .rc-r.is-mark:not(.is-mark + .is-mark) > code, .nv .rc-r.is-chg:not(.is-chg + .is-chg) > code { border-top-left-radius: 8px; border-top-right-radius: 8px; }
.nv .rc-r.is-eq:not(:has(+ .is-eq)) > code, .nv .rc-r.is-mark:not(:has(+ .is-mark)) > code, .nv .rc-r.is-chg:not(:has(+ .is-chg)) > code { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }

/* narrow: one column, their line under ours where they differ */
@container dv (max-width: 620px) {
  .nv .rc-dvk { grid-template-columns: minmax(0, 1fr); padding-right: 22px; }
  .nv .rc-dvk .is-here { display: none; }
  .nv .rc-dvk .is-there { grid-column: 1; }
  .nv .rc-dvt > span, .nv .rc-dvt b .d { display: none; }
  .nv .rc-dvp { padding: 6px 10px; font-size: 12px; }
  .nv .rc-dvr { font-size: 11.5px; line-height: 18px; }
  .nv .rc-dv { --num: 34px; }
  .nv .rc-r { grid-template-columns: var(--num) 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-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; }
  .nv .rc-r.is-chg > code:nth-of-type(1) { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; }
  .nv .rc-r.is-chg > code:nth-of-type(2) { border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; }
  .nv .rc-dvm { top: 104px; height: calc(100% - 118px); }
}
@container rc (max-width: 540px) {
  .nv .rc .rc-dv { grid-area: auto; grid-row: 2 / span 2; grid-column: 1; }
  .nv .rc .rc-dvh { gap: 8px; padding-left: 10px; padding-right: 10px; }
}
@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; }

/* files streaming past while the agent reads */
.nv .rc-q.is-file .rc-qt { color: var(--ink2); }
.nv .rc-q.is-file:last-child .rc-qt { color: var(--ink); }
.nv .rc-q.is-file .rc-qr { color: var(--rc-a); font-weight: 500; }

/* ---------------------------------------------------------------- the live-analysis stage
   (checker/stage.js) narrates the agent's real work. Desktop: on top of the
   side column while the agent works. Phones: the main area above the map. */
.nv .rc-stage { display: none; grid-area: stage; position: relative; min-height: 0; overflow: hidden; border-radius: 20px; background: var(--bg2); }
.nv .rc[data-stage="1"] .rc-stage { display: block; }
.nv .rc[data-stage="1"] .rc-run {
  grid-template-rows: auto minmax(0, 1.05fr) minmax(0, 1fr) auto;
  grid-template-areas: "top top" "map stage" "map side" "out out";
}
/* after the verdict the side column is the legend; the stage gives it the room */
.nv .rc[data-stage="1"][data-done] .rc-run { grid-template-rows: auto minmax(0, 0fr) minmax(0, 1fr) auto; }
.nv .rc[data-stage="1"][data-done] .rc-stage { display: none; }
.nv .rc[data-stage="1"]:not([data-done]) .rc-side { display: none; }
.nv .rc[data-stage="1"]:not([data-done]) .rc-run { grid-template-areas: "top top" "map stage" "map stage" "out out"; }
@container rc (max-width: 540px) {
  .nv .rc[data-stage="1"] .rc-run, .nv .rc[data-stage="1"]:not([data-done]) .rc-run {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1.15fr) minmax(0, .85fr) auto;
    grid-template-areas: "top" "stage" "map" "out";
  }
  .nv .rc[data-stage="1"][data-done] .rc-run { grid-template-areas: "top" "side" "map" "out"; grid-template-rows: auto minmax(0, 1.05fr) minmax(0, .95fr) auto; }
  /* the stage narrates each phase, so phones give the repo name the room */
  .nv .rc[data-stage="1"] .rc-steps { display: none; }
}

/* the author card: no edge; the percentage carries the source's color */
.nv .rc-card .rc-pc { color: var(--src, var(--ink)); }

/* repocheck Checker: the live analysis stage (checker/stage.js).
   Sized by its container (a container query on .rcs), drawn on the host
   page's tokens: --ink/--ink2/--ink3 text, --bg cards on the --bg2 panel,
   --line rules, --rc-a blue (the agent at work). Orange is "found
   elsewhere", yellow a changed word. Motion is transform and opacity. */

.rcs {
  --rcs-a: var(--rc-a, #0A84FF);
  --rcs-o: #FF9F0A;          /* found elsewhere: fills, rings, links */
  --rcs-ot: #C93400;         /* the same as text on a light page (Apple's accessible orange) */
  --rcs-chg: #FFD60A;        /* a changed word */
  --rcs-ok: #248A3D;
  --rcs-card: var(--bg, #FFFFFF);
  --rcs-cell: var(--line, rgba(20, 20, 30, .07));
  --rcs-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --rcs-lh: 17px;
  --rcs-ui: cubic-bezier(.22, 1, .36, 1); --rcs-ui-d: 420ms;
  --rcs-soft: cubic-bezier(.22, 1, .36, 1); --rcs-soft-d: 600ms;
  position: absolute; inset: 0; overflow: hidden; container: rcs / size;
  font-family: var(--f, -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif);
  font-size: 12px; line-height: 1.35; color: var(--ink, #17171A);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.nv[data-theme="dark"] .rcs { --rcs-ot: #FF9F0A; --rcs-ok: #30D158; --rcs-cell: rgba(255, 255, 255, .075); }
.rcs *, .rcs *::before, .rcs *::after { box-sizing: border-box; }
.rcs .rcs-vis { position: absolute; inset: 0; }
.rcs .rcs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rcs .rcs-probe { position: absolute; left: -999px; top: 0; visibility: hidden; font: 11.5px var(--rcs-mono); white-space: pre; }
.rcs code, .rcs .rcs-mono { font-family: var(--rcs-mono); }

/* syntax (the page's GitHub palette when present) */
.rcs .s-k { color: var(--s-k, #CF222E); }
.rcs .s-s { color: var(--s-s, #0A3069); }
.rcs .s-n { color: var(--s-n, #0550AE); }
.rcs .s-f { color: var(--s-f, #8250DF); }
.rcs .s-t { color: var(--s-t, #953800); }
.rcs .s-c { color: var(--s-c, #6E7781); font-style: italic; }
.rcs .s-a { color: var(--s-a, #116329); }

/* a card on the panel */
.rcs .rcs-card { position: relative; border-radius: 14px; background: var(--rcs-card); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.nv[data-theme="dark"] .rcs .rcs-card { box-shadow: none; }
.rcs .rcs-card.is-ghost { background: transparent; box-shadow: none; }
.rcs .rcs-ghost { position: absolute; background: var(--rcs-card); pointer-events: none; }
.rcs .rcs-av { display: block; flex: none; border-radius: 50%; background: var(--line2, rgba(20, 20, 30, .13)); object-fit: cover; }
.rcs .rcs-fx { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.rcs .rcs-flyer { position: absolute; margin: 0; transition: none !important; will-change: transform; }

/* the rolling number */
.rcs .rcs-odo { display: inline-flex; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rcs .rcs-dg { position: relative; display: inline-block; height: 1.2em; overflow: clip; }
.rcs .rcs-dp { display: inline-block; height: 1.2em; line-height: 1.2em; visibility: hidden; }
.rcs .rcs-ds { position: absolute; left: 0; right: 0; top: 0; display: block; transition: transform .42s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.rcs .rcs-ds i { display: block; height: 1.2em; line-height: 1.2em; font-style: normal; text-align: center; }
.rcs .rcs-dx { display: inline-block; height: 1.2em; line-height: 1.2em; }

/* spinner */
.rcs .rcs-spin { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 50%; border: 1.5px solid var(--line2, rgba(20, 20, 30, .13)); border-top-color: var(--rcs-a); animation: rcs-spin .7s linear infinite; }
@keyframes rcs-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ header */
.rcs .rcs-hd { position: absolute; left: 0; right: 0; top: 0; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; }
.rcs .rcs-live { position: relative; width: 12px; height: 12px; flex: none; }
.rcs .rcs-live .rcs-spin { position: absolute; inset: 0; width: auto; height: auto; transition: opacity .3s ease; }
.rcs .rcs-dot { position: absolute; inset: 2.5px; border-radius: 50%; background: var(--ink3); opacity: 0; transform: scale(.4); transition: opacity .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1); }
.rcs[data-scene="done"] .rcs-live .rcs-spin { opacity: 0; }
.rcs[data-scene="done"] .rcs-dot { opacity: 1; transform: none; }
.rcs[data-found] .rcs-dot { background: var(--rcs-o); }
.rcs .rcs-ttl { display: grid; min-width: 0; font-size: 13px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2em; }
.rcs .rcs-ttl > span { grid-area: 1 / 1; white-space: nowrap; }
.rcs .rcs-ctr { margin-left: auto; display: inline-flex; align-items: baseline; font-size: 12px; line-height: 1.2em; color: var(--ink2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rcs .rcs-ctr .rcs-odo { color: var(--ink); font-weight: 600; }
.rcs .rcs-ctr .rcs-odo[hidden] { display: none; }
.rcs .rcs-ctr .rcs-odo:not([hidden]) + .rcs-cs { margin-left: .3em; }

/* ------------------------------------------------------------ the phases */
.rcs .rcs-body { position: absolute; left: 0; right: 0; top: 40px; bottom: 0; }
.rcs .rcs-under { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.rcs .rcs-sc {
  position: absolute; inset: 0 12px 12px; z-index: 1; display: flex; flex-direction: column; gap: 8px; min-height: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .14s ease-in, transform .24s ease-in, visibility 0s linear .24s;
}
.rcs .rcs-sc.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease .16s, transform var(--rcs-soft-d) var(--rcs-soft) .16s, visibility 0s; }
.rcs .rcs-sc.is-off { transform: translateY(-6px); }
.rcs .rcs-lbl { flex: none; width: 58px; font-size: 10.5px; color: var(--ink3); white-space: nowrap; }

/* ------------------------------------------------------------ read */
.rcs .rcs-lens { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.rcs .rcs-lh { flex: none; display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 12px; font: 11px var(--rcs-mono); }
.rcs .rcs-path { display: flex; min-width: 0; color: var(--ink3); white-space: nowrap; }
.rcs .rcs-path span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rcs .rcs-path b { flex: none; font-weight: 600; color: var(--ink2); }
.rcs .rcs-ffp { margin-left: auto; flex: none; font-family: var(--f, system-ui); font-size: 10.5px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.rcs .rcs-code {
  position: relative; flex: 1; min-height: 0; overflow: hidden; font: 11.5px/var(--rcs-lh) var(--rcs-mono);
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 16px), transparent);
}
.rcs .rcs-page { position: absolute; inset: 0 0 4px; display: flex; overflow: hidden; }
.rcs .rcs-page.is-old { z-index: 0; }
.rcs .rcs-gut { position: relative; flex: none; padding: 0 10px 0 6px; text-align: right; color: var(--ink3); transition: transform .26s var(--rcs-ui); will-change: transform; }
.rcs .rcs-gut b { position: relative; display: block; height: var(--rcs-lh); font-weight: 400; opacity: .8; }
.rcs .rcs-gut u { position: absolute; right: -6px; top: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: var(--rcs-a); opacity: .3; transform: scale(.75); transition: opacity .2s ease, transform .3s cubic-bezier(.22, 1, .36, 1); }
.rcs .rcs-gut u.is-on { opacity: 1; transform: none; }
.rcs .rcs-src { position: relative; flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
.rcs .rcs-pan { position: relative; width: max-content; min-width: 100%; transition: transform .26s var(--rcs-ui); will-change: transform; }
.rcs .rcs-ln { position: relative; height: var(--rcs-lh); white-space: pre; color: var(--ink2); }
.rcs .rcs-win {
  position: absolute; left: 0; top: 0; height: var(--rcs-lh); width: 0; border-radius: 4px; opacity: 0;
  background: color-mix(in srgb, var(--rcs-a) 15%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rcs-a) 55%, transparent);
  transition: transform .15s cubic-bezier(.22, 1, .36, 1), width .15s cubic-bezier(.22, 1, .36, 1), opacity .15s ease;
}
.rcs .rcs-win.is-new { transition: opacity .15s ease; }
.rcs .rcs-mech { position: relative; flex: none; display: flex; flex-direction: column; gap: 6px; }
.rcs .rcs-row { display: flex; align-items: center; gap: 8px; height: 22px; padding-left: 2px; transition: opacity .25s ease; }
.rcs .rcs-toks {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap;
  font: 11px var(--rcs-mono); -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent);
}
.rcs .rcs-toks b { display: inline-grid; place-items: center; flex: none; min-width: 15px; height: 17px; padding: 0 3px; border-radius: 4px; font-size: 10.5px; font-weight: 600; color: var(--rcs-a); background: color-mix(in srgb, var(--rcs-a) 13%, transparent); }
.rcs .rcs-toks span, .rcs .rcs-toks i { flex: none; font-style: normal; }
.rcs .rcs-toks i { color: var(--ink3); }
.rcs .rcs-cells {
  position: relative; flex: 1; min-width: 0; height: 22px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5px, #000 calc(100% - 5px), transparent); mask-image: linear-gradient(90deg, transparent, #000 5px, #000 calc(100% - 5px), transparent);
}
.rcs .rcs-cell {
  position: absolute; left: 0; top: 0; width: calc((100% - 12px) / 4); height: 22px; display: grid; place-items: center; border-radius: 6px;
  font: 500 10.5px var(--rcs-mono); color: var(--ink2); background: var(--rcs-cell); font-variant-numeric: tabular-nums;
  transition: transform .17s cubic-bezier(.22, 1, .36, 1), background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.rcs .rcs-cell.is-min { color: var(--rcs-a); box-shadow: inset 0 0 0 1px var(--rcs-a); }
.rcs .rcs-cell.is-pick { color: #fff; background: var(--rcs-a); box-shadow: none; }
.rcs .rcs-drop { position: absolute; left: 0; top: 0; padding: 1px 5px; border-radius: 5px; font: 600 9px/12px var(--rcs-mono); color: #fff; background: var(--rcs-a); white-space: nowrap; pointer-events: none; will-change: transform, opacity; }
.rcs .rcs-pats { position: absolute; left: 0; right: 0; top: 0; opacity: 0; pointer-events: none; }
.rcs .rcs-pl { display: flex; gap: 6px; min-width: 0; overflow: hidden; }
.rcs .rcs-pl span { flex: none; height: 22px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 11px; background: var(--rcs-cell); font-size: 11px; color: var(--ink2); white-space: nowrap; }
.rcs .rcs-pl .is-hot { color: var(--rcs-ot); font-weight: 600; }
.rcs .rcs-read.is-pats .rcs-kg, .rcs .rcs-read.is-pats .rcs-rail { opacity: 0; }
.rcs .rcs-read.is-pats .rcs-pats { opacity: 1; }
.rcs .rcs-tot { flex: none; display: flex; align-items: baseline; gap: 8px; height: 32px; padding: 0 2px; }
.rcs .rcs-big { font-size: 26px; font-weight: 650; letter-spacing: -.025em; line-height: 1.2em; }
.rcs .rcs-tl { font-size: 12px; color: var(--ink2); }
.rcs .rcs-kw { margin-left: auto; font: 10.5px var(--rcs-mono); color: var(--ink3); white-space: nowrap; }

/* ------------------------------------------------------------ search */
.rcs .rcs-q { flex: none; display: grid; padding: 9px 12px 11px; }
.rcs .rcs-ql { grid-area: 1 / 1; min-width: 0; }
.rcs .rcs-qh { display: flex; align-items: center; gap: 10px; height: 16px; font: 11px var(--rcs-mono); }
.rcs .rcs-qat { display: flex; min-width: 0; color: var(--ink3); white-space: nowrap; }
.rcs .rcs-qat span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rcs .rcs-qat b { flex: none; font-weight: 600; color: var(--ink2); }
.rcs .rcs-qat em { flex: none; font-style: normal; color: var(--ink3); }
.rcs .rcs-qk { margin-left: auto; flex: none; font-family: var(--f, system-ui); font-size: 10.5px; color: var(--ink3); }
.rcs .rcs-qt { position: relative; display: grid; align-content: center; margin-top: 7px; height: calc(3 * 19px); font: 13px/19px var(--rcs-mono); }
.rcs .rcs-qb, .rcs .rcs-qx { grid-area: 1 / 1; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rcs .rcs-qb { color: var(--ink3); opacity: .55; }
.rcs .rcs-qx { color: var(--ink); }
.rcs .rcs-scan { position: absolute; left: -1px; top: -2px; bottom: -2px; width: 2px; border-radius: 1px; background: var(--rcs-a); box-shadow: 0 0 10px 1px color-mix(in srgb, var(--rcs-a) 55%, transparent); opacity: 0; pointer-events: none; }
.rcs .rcs-res { flex: none; display: grid; height: 52px; padding: 0 2px; }
.rcs .rcs-rl { grid-area: 1 / 1; min-width: 0; }
.rcs .rcs-rh { display: flex; align-items: baseline; gap: 8px; height: 20px; white-space: nowrap; }
.rcs .rcs-rh b { flex: none; font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.rcs .rcs-rh span { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--ink2); }
.rcs .rcs-rl.is-wait .rcs-rh { align-items: center; }
.rcs .rcs-rl.is-wait .rcs-rh span { color: var(--ink3); }
.rcs .rcs-rl.is-hit .rcs-rh b { color: var(--rcs-ot); }
.rcs .rcs-rl.is-common .rcs-rh b { color: var(--ink2); }
.rcs .rcs-rl.is-lim .rcs-rh b { color: var(--ink3); }
.rcs .rcs-chips { display: flex; gap: 6px; margin-top: 6px; height: 24px; overflow: hidden; }
.rcs .rcs-chips:empty { display: none; }
.rcs .rcs-note { margin-top: 5px; height: 24px; line-height: 24px; font-size: 12px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcs .rcs-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 24px; max-width: 124px; padding: 0 9px 0 3px; border-radius: 12px; background: var(--rcs-card); font-size: 11.5px; }
.rcs .rcs-chip .rcs-av { width: 18px; height: 18px; }
.rcs .rcs-chip b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.rcs .rcs-chip b span { font-weight: 400; color: var(--ink3); }
.rcs .rcs-chip.is-more { padding: 0 9px; color: var(--ink3); }
.rcs .rcs-hist { --pitch: 26px; position: relative; flex: 1; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 18px), transparent); }
.rcs .rcs-si { position: absolute; left: 0; right: 0; top: 0; transition: transform var(--rcs-soft-d) var(--rcs-soft); will-change: transform; }
.rcs .rcs-hr { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; align-items: center; gap: 9px; height: 26px; padding: 0 2px; font-size: 11px; }
.rcs .rcs-hr > i { width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1.25px var(--ink3); }
.rcs .rcs-hr code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; color: var(--ink2); }
.rcs .rcs-hr > span { display: inline-flex; align-items: center; color: var(--ink3); font-variant-numeric: tabular-nums; }
.rcs .rcs-hr.is-hit > i { background: var(--rcs-o); box-shadow: none; }
.rcs .rcs-hr.is-hit > span { color: var(--rcs-ot); font-weight: 600; }
.rcs .rcs-hr.is-common > i { background: var(--ink3); box-shadow: none; opacity: .6; }
.rcs .rcs-hr.is-lim > i { border-radius: 1px; height: 1.5px; background: var(--ink3); box-shadow: none; }

/* ------------------------------------------------------------ compare */
.rcs .rcs-f { flex: none; display: grid; padding: 10px 12px 10px; }
.rcs .rcs-fl { grid-area: 1 / 1; min-width: 0; }
.rcs .rcs-fh { display: flex; align-items: center; gap: 8px; height: 20px; }
.rcs .rcs-fh .rcs-av { width: 20px; height: 20px; }
.rcs .rcs-fn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.rcs .rcs-fn span { color: var(--ink2); }
.rcs .rcs-fn b { font-weight: 650; }
.rcs .rcs-fw { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--ink3); white-space: nowrap; }
.rcs .rcs-fw.is-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line2); border-top-color: var(--rcs-a); animation: rcs-spin .7s linear infinite; }
.rcs .rcs-eq { display: grid; grid-template-columns: repeat(5, auto); justify-content: start; align-items: baseline; column-gap: 9px; row-gap: 0; margin-top: 8px; }
.rcs .rcs-eq > span { display: inline-flex; justify-content: flex-end; font: 600 21px/1.2 var(--rcs-mono); letter-spacing: -.03em; white-space: nowrap; }
.rcs .rcs-eq > i { font: 400 17px/1.2 var(--rcs-mono); font-style: normal; color: var(--ink3); }
.rcs .rcs-en, .rcs .rcs-ep { color: var(--rcs-ot); }
.rcs .rcs-ed { color: var(--ink); }
.rcs .rcs-ep .rcs-pc { font-weight: 500; }
.rcs .rcs-fl.is-zero .rcs-en, .rcs .rcs-fl.is-zero .rcs-ep { color: var(--ink3); }
.rcs .rcs-eq em { font-style: normal; font-size: 10.5px; color: var(--ink3); white-space: nowrap; }
.rcs .rcs-eq em:nth-of-type(1) { text-align: right; }
.rcs .rcs-fs { margin-top: 5px; font-size: 11px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.rcs .rcs-sl { flex: none; display: flex; justify-content: space-between; gap: 8px; height: 14px; padding: 0 2px; margin-bottom: -2px; font-size: 10.5px; color: var(--ink3); }
.rcs .rcs-pairs { --pitch: 50px; position: relative; flex: 1; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 14px), transparent); }
.rcs .rcs-pair { position: relative; height: 44px; padding: 4px 10px 4px 8px; border-radius: 10px; background: var(--rcs-card); transition: opacity .3s ease; }
.rcs .rcs-pair.is-past { opacity: .5; }
.rcs .rcs-pr { position: relative; z-index: 1; display: grid; grid-template-columns: 14px 3.4ch minmax(0, 1fr); align-items: center; column-gap: 6px; height: 18px; font: 11px/18px var(--rcs-mono); }
.rcs .rcs-pr .rcs-av { width: 14px; height: 14px; box-shadow: 0 0 0 2px var(--rcs-card); }
.rcs .rcs-pr > i { font-style: normal; font-size: 10px; text-align: right; color: var(--ink3); font-variant-numeric: tabular-nums; }
.rcs .rcs-pr code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: pre; color: var(--ink); }
.rcs .rcs-pr.is-there code { color: var(--ink2); }
.rcs .rcs-pr mark { color: inherit; background: color-mix(in srgb, var(--rcs-chg) 42%, transparent); border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.rcs .rcs-pr .rcs-ell { color: var(--ink3); }
.rcs .rcs-link { position: absolute; z-index: 0; left: 14.25px; top: 13px; width: 1.5px; height: 18px; border-radius: 1px; background: var(--rcs-o); transform-origin: top; }
.rcs .rcs-pair.is-chg .rcs-link, .rcs .rcs-pair.is-ren .rcs-link { background: repeating-linear-gradient(180deg, var(--rcs-o) 0 3px, transparent 3px 5px); }
.rcs .rcs-pt { display: none; }
.rcs .rcs-cands { flex: none; display: flex; gap: 2px; height: 46px; }
.rcs .rcs-cd { flex: none; display: grid; grid-template-rows: 30px 14px; justify-items: center; align-items: center; width: 44px; transition: opacity .3s ease; }
.rcs .rcs-ring { position: relative; width: 30px; height: 30px; }
.rcs .rcs-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.rcs .rcs-ring circle { fill: none; stroke: var(--line2); stroke-width: 2; }
.rcs .rcs-ring circle.fg { stroke: var(--rcs-o); stroke-linecap: round; transition: stroke-dashoffset .6s cubic-bezier(.22, 1, .36, 1); }
.rcs .rcs-ring .rcs-av { position: absolute; inset: 5px; width: 20px; height: 20px; }
.rcs .rcs-cn, .rcs .rcs-cm { display: none; }
.rcs .rcs-cp { font-size: 10.5px; color: var(--ink3); font-variant-numeric: tabular-nums; line-height: 14px; }
.rcs .rcs-cd.is-focus .rcs-cp { color: var(--ink); font-weight: 650; }
.rcs .rcs-cd.is-done:not(.is-focus) .rcs-cp { color: var(--ink2); }
.rcs .rcs-cd.is-gone { opacity: .4; }
.rcs .rcs-cd.is-wait .rcs-ring circle:first-child { stroke-dasharray: 2 3; }

/* ------------------------------------------------------------ done */
.rcs .rcs-done { gap: 8px; }
.rcs .rcs-dc { flex: none; padding: 11px 12px 12px; }
.rcs .rcs-dk { font-size: 10.5px; color: var(--ink3); height: 14px; }
.rcs .rcs-dh { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.rcs .rcs-dh .rcs-av { width: 30px; height: 30px; }
.rcs .rcs-dn { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rcs .rcs-dn b { font-size: 14px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcs .rcs-dn em { font-style: normal; font-size: 11px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcs .rcs-dm { display: grid; gap: 3px; margin-top: 10px; font-size: 12.5px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.rcs .rcs-dm span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcs .rcs-dm b { color: var(--ink); font-weight: 650; }
.rcs .rcs-dm b.o { color: var(--rcs-ot); }
.rcs .rcs-dt { margin-top: 5px; font-size: 14px; font-weight: 650; }
.rcs .rcs-pair.is-top { flex: none; }
.rcs .rcs-pair.is-extra, .rcs .rcs-pair.is-extra2 { display: none; }
@container rcs (min-height: 350px) { .rcs .rcs-done:not(:has(.rcs-oth)) .rcs-pair.is-extra { display: block; } }
.rcs .rcs-oth { flex: none; display: grid; padding: 0 2px; }
.rcs .rcs-or { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto 4ch; align-items: center; column-gap: 8px; height: 26px; font-size: 12px; }
.rcs .rcs-or .rcs-av { width: 18px; height: 18px; }
.rcs .rcs-on { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcs .rcs-on span { color: var(--ink3); }
.rcs .rcs-of { font-size: 11px; color: var(--ink3); }
.rcs .rcs-or b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink2); }
.rcs .rcs-df { flex: none; display: grid; gap: 6px; padding: 2px 2px 0; }
.rcs .rcs-au { display: flex; align-items: center; gap: 8px; height: 20px; font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; }
.rcs .rcs-au .rcs-av { width: 20px; height: 20px; }
.rcs .rcs-au b { color: var(--ink); font-weight: 600; }
.rcs .rcs-au span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rcs .rcs-cr { font-size: 12px; font-weight: 600; }
.rcs .rcs-cr.is-yes { color: var(--rcs-ok); }
.rcs .rcs-cr.is-no { color: var(--rcs-ot); }

/* ------------------------------------------------------------ sizes */
/* a tall side column (desktop): bigger code, the candidates as a list,
   each pair captioned with its file */
@container rcs (min-height: 440px) {
  .rcs { --rcs-lh: 18px; }
  .rcs .rcs-hd { height: 44px; }
  .rcs .rcs-body { top: 44px; }
  .rcs .rcs-code, .rcs .rcs-probe { font-size: 12px; }
  .rcs .rcs-sc { gap: 10px; }
  .rcs .rcs-eq > span { font-size: 22px; }
  .rcs .rcs-pairs { --pitch: 62px; }
  .rcs .rcs-pair { height: 56px; padding-top: 18px; }
  .rcs .rcs-pt { display: block; position: absolute; left: 8px; right: 10px; top: 3px; font-size: 10.5px; line-height: 14px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rcs .rcs-link { top: 27px; }
  .rcs .rcs-hist { --pitch: 28px; }
  .rcs .rcs-hr { height: 28px; }
  .rcs .rcs-cands { flex-direction: column; gap: 0; height: auto; }
  .rcs .rcs-cd { width: auto; grid-template-columns: 24px minmax(0, 1fr) auto 4ch; grid-template-rows: 30px; column-gap: 8px; justify-items: stretch; }
  .rcs .rcs-ring { width: 24px; height: 24px; }
  .rcs .rcs-ring .rcs-av { inset: 4px; width: 16px; height: 16px; }
  .rcs .rcs-cn { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
  .rcs .rcs-cn span { color: var(--ink3); }
  .rcs .rcs-cm { display: block; font: 10.5px var(--rcs-mono); color: var(--ink3); white-space: nowrap; }
  .rcs .rcs-cp { font-size: 12px; text-align: right; }
  .rcs .rcs-dc { padding: 13px 14px 14px; }
  .rcs .rcs-pair.is-extra, .rcs .rcs-pair.is-extra2 { display: block; }
  .rcs .rcs-dm { font-size: 13px; }
}
@container rcs (max-width: 352px) {
  .rcs .rcs-eq > span { font-size: 19px; }
  .rcs .rcs-eq { column-gap: 7px; }
  .rcs .rcs-lbl { width: 54px; }
  .rcs .rcs-kw { display: none; }
  .rcs .rcs-chip { max-width: 150px; }
}
/* a short phone panel */
@container rcs (max-height: 335px) {
  .rcs .rcs-hd { height: 36px; }
  .rcs .rcs-body { top: 36px; }
  .rcs .rcs-sc { gap: 7px; inset: 0 10px 10px; }
  .rcs .rcs-lh { height: 24px; }
  .rcs .rcs-tot { height: 28px; }
  .rcs .rcs-big { font-size: 23px; }
  .rcs .rcs-win.is-new { transition: opacity .15s ease; }
.rcs .rcs-mech { gap: 5px; }
  .rcs .rcs-qt { font-size: 12.5px; line-height: 18px; height: calc(3 * 18px); margin-top: 5px; }
  .rcs .rcs-q { padding: 8px 11px 9px; }
  .rcs .rcs-res { height: 50px; }
  .rcs .rcs-f { padding: 8px 11px 8px; }
  .rcs .rcs-eq { margin-top: 6px; }
  .rcs .rcs-fs { display: none; }
  .rcs .rcs-sl { display: none; }
  .rcs .rcs-dm { margin-top: 7px; gap: 2px; }
  .rcs .rcs-or:nth-child(n+2) { display: none; }
  .rcs .rcs-df { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .rcs *, .rcs *::before, .rcs *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .rcs .rcs-sc, .rcs .rcs-sc.is-on { transform: none; transition: opacity .12s ease, visibility 0s !important; }
  .rcs .rcs-spin { animation: none !important; }
}

/* The Checker's result (checker/result.js): two repos, a flow diagram, a few
   facts, what to do next. Desktop: the side column. Phones: the main panel,
   with the verdict's number and sentence inside it. */

.nv .rc-res {
  grid-area: res; position: relative; min-height: 0; overflow: hidden; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 20px; background: var(--bg2);
  --res-track: #C9C9D1; --src: var(--ink);
}
.nv[data-theme="dark"] .rc-res { --res-track: #3A3A42; }
.nv .rc-res[hidden] { display: none; }
.nv .rc[data-res="1"][data-done] .rc-run { grid-template-columns: minmax(0, 1fr) minmax(350px, .62fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "top top" "map res" "out out"; }
.nv .rc[data-res="1"][data-done] .rc-side, .nv .rc[data-res="1"][data-done] .rc-stage { display: none; }

/* the two repos; the code went from the left one to the right one */
.nv .res-vs { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.nv .res-vs:has(.res-repo:only-child) { grid-template-columns: minmax(0, 1fr); }
.nv .res-repo {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px 8px 8px; border-radius: 15px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--ink) 5.5%, transparent); transition: background .15s ease, transform .25s cubic-bezier(.34, 1.4, .64, 1);
}
@media (hover: hover) { .nv .res-repo:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); transform: translateY(-1px); } }
.nv .res-repo:active { transform: scale(.97); }
.nv .res-repo img { flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--bg); }
.nv .res-repo span { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.nv .res-repo b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; }
.nv .res-repo em { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-style: normal; font-size: 11.5px; color: var(--ink3); }
.nv .res-repo.is-b { flex-direction: row-reverse; text-align: right; padding: 8px 8px 8px 12px; }
.nv .res-link { display: grid; place-items: center; width: 26px; color: var(--src); }
.nv .res-link svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: res-nudge 1.9s cubic-bezier(.4, 0, .2, 1) infinite; }
.nv .res-link[data-known="0"] svg { display: none; }
@keyframes res-nudge { 0%, 55%, 100% { transform: translateX(-2px); } 28% { transform: translateX(3px); } }

/* the verdict in a line (phones; wider screens keep it in the footer) */
.nv .res-say { display: none; flex: none; align-items: center; gap: 13px; }
.nv .res-pct { flex: none; font-size: 46px; line-height: 1; font-weight: 750; letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--src); }
.nv .rc-res[data-v="none"] .res-pct { color: #30D158; }
.nv .res-say span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nv .res-say span b { font-size: 15px; line-height: 1.22; font-weight: 650; letter-spacing: -.015em; }
.nv .res-say span b i { font-style: normal; font-weight: 600; color: var(--ink3); }
.nv .res-say span em { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-style: normal; font-size: 12px; line-height: 1.35; color: var(--ink2); }

/* the flow diagram */
.nv .res-flow { flex: 1; min-height: 84px; position: relative; }
.nv .res-flow svg { display: block; width: 100%; height: 100%; overflow: visible; }
.nv .res-flow .rcf-f:not([data-path=""]) { cursor: pointer; }
.nv .res-flow .rcf-rb { transition: opacity .2s ease; }
@media (hover: hover) { .nv .res-flow:hover .rcf-rb { opacity: .5; } .nv .res-flow .rcf-rb:hover { opacity: 1; } }
.nv .res-flow[aria-hidden="true"] { display: none; }

/* a few facts */
.nv .res-facts { flex: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nv .res-facts li { display: inline-flex; align-items: center; gap: 5px; height: 27px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 550; color: var(--ink2); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nv .res-facts li b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.nv .res-facts li svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.nv .res-facts .is-yes { color: #30D158; background: color-mix(in srgb, #30D158 15%, transparent); }
.nv .res-facts .is-no { color: var(--src); background: color-mix(in srgb, var(--src) 15%, transparent); }

/* what to do next: one wide button, then small ones */
.nv .res-cta { flex: none; display: flex; gap: 8px; }
.nv .res-row { display: flex; gap: 8px; }
.nv .res-go {
  position: relative; overflow: hidden; flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 16px; border-radius: 16px;
  font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; color: var(--on-ink); background: var(--on);
  transition: transform .25s cubic-bezier(.34, 1.4, .64, 1), filter .15s ease;
}
.nv .res-go::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%); transform: translateX(-120%); animation: res-shine 4.2s cubic-bezier(.4, 0, .2, 1) 1.6s infinite; pointer-events: none; }
.nv:not([data-theme="dark"]) .res-go::after { background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .22) 50%, transparent 62%); }
@keyframes res-shine { 0% { transform: translateX(-120%); } 26%, 100% { transform: translateX(120%); } }
.nv .res-go span { overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .nv .res-go:hover { transform: translateY(-1px) scale(1.012); filter: brightness(1.06); } }
.nv .res-go:active { transform: scale(.965); }
.nv .res-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 48px; height: 48px; border-radius: 16px; color: var(--ink); text-decoration: none;
  background: color-mix(in srgb, var(--ink) 7.5%, transparent); transition: background .15s ease, transform .25s cubic-bezier(.34, 1.4, .64, 1);
}
@media (hover: hover) { .nv .res-btn:hover { background: color-mix(in srgb, var(--ink) 13%, transparent); } .nv .res-btn:hover svg { transform: rotate(-12deg) scale(1.1); } .nv .res-btn[data-do="again"]:hover svg { transform: rotate(-150deg); } }
.nv .res-btn:active { transform: scale(.92); }
.nv .res-go svg, .nv .res-btn svg { flex: none; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.nv .res-go:focus-visible, .nv .res-btn:focus-visible, .nv .res-repo:focus-visible { outline: 2px solid color-mix(in srgb, #409CFF 80%, transparent); outline-offset: 2px; }

/* phones: the result is the screen; the map waits underneath */
@container rc (max-width: 540px) {
  .nv .rc[data-res="1"][data-done] .rc-run { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) clamp(96px, 20%, 150px); grid-template-areas: "top" "res" "map"; }
  .nv .rc[data-res="1"][data-done] .rc-out { display: none; }
  .nv .rc-res { gap: 12px; padding: 14px; }
  .nv .res-say { display: flex; }
  .nv .res-repo { gap: 8px; padding: 7px 10px 7px 7px; }
  .nv .res-repo.is-b { padding: 7px 7px 7px 10px; }
  .nv .res-repo img { width: 32px; height: 32px; border-radius: 10px; }
  .nv .res-say span em { -webkit-line-clamp: 4; }
  .nv .pr-card header b { white-space: normal; line-height: 1.2; }
  .nv .res-go { height: 50px; }
  .nv .res-btn { width: 50px; height: 50px; }
}
@container rc (max-width: 540px) and (max-height: 560px) { .nv .res-facts { display: none; } }

/* ---------------------------------------------------------------- the pull request, drafted */
.nv .rc-pr { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; }
.nv .pr-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.nv:not([data-theme="dark"]) .pr-scrim { background: rgba(20, 20, 30, .3); }
.nv .pr-card {
  position: relative; box-sizing: border-box; width: min(580px, 100%); max-height: 100%; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 26px;
  background: var(--bg2); box-shadow: 0 0 0 1px var(--hair, rgba(255, 255, 255, .08)), 0 40px 100px -24px rgba(0, 0, 0, .75);
}
.nv .pr-card header { display: flex; align-items: center; gap: 12px; }
.nv .pr-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; background: linear-gradient(180deg, #5BE584 0%, #30D158 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 14px -6px rgba(48, 209, 88, .7); }
.nv .pr-ic svg, .nv .pr-x svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.nv .pr-card header div { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nv .pr-card header b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15.5px; font-weight: 680; letter-spacing: -.02em; }
.nv .pr-card header em { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-style: normal; font-size: 12.5px; color: var(--ink3); }
.nv .pr-card header em a { color: var(--ink2); text-decoration: none; font-weight: 600; }
.nv .pr-x { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink2); background: color-mix(in srgb, var(--ink) 7%, transparent); transition: transform .25s cubic-bezier(.34, 1.4, .64, 1), background .15s ease; }
.nv .pr-x svg { width: 17px; height: 17px; stroke-width: 2.8; }
.nv .pr-x:hover { background: color-mix(in srgb, var(--ink) 13%, transparent); transform: rotate(90deg); }
.nv .pr-body { min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.nv .pr-img { display: grid; place-items: center; aspect-ratio: 880 / 420; overflow: hidden; border-radius: 16px; background: var(--bg); }
.nv .pr-img img { display: block; width: 100%; height: 100%; }
.nv .pr-wait { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink3); }
.nv .pr-wait i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--ink) 16%, transparent); border-top-color: var(--rc-a); animation: rc-spin .7s linear infinite; }
.nv .pr-note { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink2); }
.nv .pr-note:empty { display: none; }
.nv .pr-note b { color: var(--ink); font-weight: 650; }
.nv .pr-note code { padding: 1px 6px; border-radius: 6px; font: 600 12px ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.nv .pr-card footer { display: flex; justify-content: flex-end; gap: 8px; }
.nv .pr-card footer:not(:has(:not([hidden]))) { display: none; }
.nv .pr-copy { width: auto; padding: 0 16px; font-size: 13.5px; font-weight: 600; }
.nv .pr-copy[hidden], .nv .pr-open[hidden] { display: none; }
.nv .pr-open { flex: none; padding: 0 20px; }
@container rc (max-width: 540px) {
  .nv .rc-pr { place-items: end center; padding: 8px; }
  .nv .pr-card { padding: 16px; border-radius: 26px; }
  .nv .pr-open { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .nv .res-link svg, .nv .res-go::after { animation: none; } }

/* nothing found anywhere: a seal where the flow would be */
.nv .res-flow.is-clear { display: grid; place-items: center; }
.nv .res-flow.is-clear svg { width: auto; height: min(84%, 168px); aspect-ratio: 1; }
.nv .res-flow.is-clear .res-ring { animation: res-draw .9s cubic-bezier(.3, .7, .2, 1) .15s forwards; }
.nv .res-flow.is-clear .res-tick { animation: res-draw .5s cubic-bezier(.3, .7, .2, 1) .8s forwards; }
@keyframes res-draw { to { stroke-dashoffset: 0; } }
