/* repocheck Checker, standalone: a macOS window on an ASCII-shader desktop.
   repocheck's own shell and tokens (the Checker view, checker.css, builds on
   them). Original code: no template markup or styles. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root { color-scheme: light dark; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { overflow: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }

.nv {
  --f: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --desk: #DCDCE2; --win: #FFFFFF; --side: rgba(246, 246, 249, .6); --bg: #FFFFFF; --bg2: #F1F1F4;
  --ink: #17171A; --ink2: #55555D; --ink3: #8A8A93;
  --line: rgba(20, 20, 30, .07); --line2: rgba(20, 20, 30, .13); --hair: rgba(20, 20, 30, .09);
  --on: #17171A; --on-ink: #FFFFFF; --sel: rgba(20, 20, 30, .07);
  --shader-bg: rgb(220, 220, 226); --shader-ink: rgb(70, 70, 82);
  position: fixed; inset: 0; font-family: var(--f); color: var(--ink);
}
.nv[data-theme="dark"] {
  --desk: #08080A; --win: #141417; --side: rgba(24, 24, 28, .5); --bg: #141417; --bg2: #1C1C20;
  --ink: #F3F3F5; --ink2: #A2A2AB; --ink3: #6C6C75;
  --line: rgba(255, 255, 255, .07); --line2: rgba(255, 255, 255, .13); --hair: rgba(255, 255, 255, .09);
  --on: #F3F3F5; --on-ink: #0B0B0D; --sel: rgba(255, 255, 255, .09);
  --shader-bg: rgb(8, 8, 10); --shader-ink: rgb(150, 150, 165);
}

/* the desktop: the shader canvas, behind everything */
.ascii { position: fixed; inset: 0; width: 100%; height: 100%; display: block; background: var(--desk, #08080A); }

/* the window */
.nv .desk { position: absolute; inset: 0; display: grid; place-items: center; padding: 34px; }
.nv .win {
  position: relative; width: min(1380px, 100%); height: min(900px, 100%);
  display: grid; grid-template-columns: 252px minmax(0, 1fr); border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--hair), 0 30px 90px -20px rgba(0, 0, 0, .55), 0 8px 24px -8px rgba(0, 0, 0, .3);
}
.nv[data-theme="dark"] .win { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 90px -20px rgba(0, 0, 0, .8), 0 8px 24px -8px rgba(0, 0, 0, .5); }

/* the sidebar: frosted, the desktop showing through */
.nv .side {
  display: flex; flex-direction: column; min-height: 0; padding: 14px 10px 12px;
  background: var(--side); -webkit-backdrop-filter: blur(28px) saturate(1.7); backdrop-filter: blur(28px) saturate(1.7);
}
.nv .lights { display: flex; gap: 8px; padding: 2px 6px 18px; }
.nv .lights button { display: grid; place-items: center; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .18); transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), filter .15s ease; }
.nv .lights button:nth-child(1) { background: #FF5F57; } .nv .lights button:nth-child(2) { background: #FEBC2E; } .nv .lights button:nth-child(3) { background: #28C840; }
.nv .lights svg { width: 8px; height: 8px; fill: none; stroke: rgba(0, 0, 0, .58); stroke-width: 1.7; stroke-linecap: round; opacity: 0; transition: opacity .12s ease; }
@media (hover: hover) { .nv .lights:hover svg { opacity: 1; } .nv .lights button:hover { transform: scale(1.14); } }
.nv .lights button:active { filter: brightness(.82); }
.nv .lights button:focus-visible { outline: 2px solid color-mix(in srgb, #409CFF 80%, transparent); outline-offset: 2px; }
.nv .app { display: flex; align-items: center; gap: 11px; padding: 10px; margin-bottom: 12px; border-radius: 12px; background: var(--sel); }
.nv .app img { width: 36px; height: 36px; border-radius: 9px; }
.nv .app b { display: block; font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.nv .app span { display: block; margin-top: 1px; font-size: 12px; color: var(--ink3); }
.nv .nav, .nv .list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.nv .item, .nv .list button {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 8px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; text-align: left; color: var(--ink); transition: background .12s ease;
}
.nv .item:hover, .nv .list button:hover { background: var(--sel); }
.nv .item.is-on { background: var(--sel); font-weight: 600; }
.nv .ic { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--c); color: #fff; }
.nv .ic svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nv .sec { display: flex; justify-content: space-between; padding: 18px 8px 6px; font-size: 11.5px; font-weight: 600; color: var(--ink3); }
.nv .sec[hidden] { display: none; }
.nv .list button { height: 40px; gap: 10px; }
.nv .list img { flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--bg2); }
.nv .list .nm { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
.nv .list b { display: block; font-size: 13px; font-weight: 600; }
.nv .list span.o { display: block; font-size: 11.5px; color: var(--ink3); font-weight: 400; }
.nv .list em { flex: none; font-style: normal; font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.nv .recent button { height: 32px; }
.nv .foot { margin-top: auto; padding: 12px 8px 0; font-size: 11.5px; line-height: 1.4; color: var(--ink3); }

/* the main area: toolbar, then the Checker */
/* smoked glass: the code field shows between the Checker's panels */
.nv .main {
  position: relative; display: grid; grid-template-rows: 52px minmax(0, 1fr); min-width: 0; min-height: 0;
}
.nv .tool { display: flex; align-items: center; gap: 6px; padding: 0 12px 0 14px; }
.nv .tool .title { font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.nv .tool .sub { font-size: 12.5px; color: var(--ink3); }
.nv .sp { flex: 1; }
.nv .act { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--ink2); transition: background .15s ease, color .15s ease; }
.nv .act:hover { background: var(--bg2); color: var(--ink); }
.nv .act svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nv[data-theme="dark"] .act .i-moon, .nv:not([data-theme="dark"]) .act .i-sun { display: none; }
.nv .act.menu { display: none; }
.nv .pane { position: relative; min-height: 0; }
.nv .pane[hidden], .nv .how[hidden] { display: none; }

/* buttons the Checker uses */
.nv .touch {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  background: var(--on); color: var(--on-ink); font-weight: 600; letter-spacing: -.01em;
  transition: filter .15s ease, transform .18s cubic-bezier(.2, .8, .2, 1);
}
.nv .touch:hover { filter: brightness(1.12); }
.nv .ghost {
  display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2);
  transition: background .15s ease;
}
.nv .ghost:hover { background: var(--bg2); }

/* the Checker inside the window: its own panes sit on the window's surface */
.nv .main .rc { padding: 18px 20px 18px; }

/* narrower windows: a slimmer sidebar */
@media (max-width: 1100px) {
  .nv .win { grid-template-columns: 216px minmax(0, 1fr); }
  .nv .desk { padding: 18px; }
}
/* phones and small tablets: the window is the screen; the sidebar slides in */
@media (max-width: 760px) {
  .nv .desk { padding: 0; }
  .nv .win { width: 100%; height: 100%; border-radius: 0; grid-template-columns: minmax(0, 1fr); box-shadow: none; }
  .nv .side {
    position: absolute; z-index: 20; inset: 0 auto 0 0; width: min(300px, 84vw); padding-top: 18px;
    transform: translateX(-102%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
    background: var(--side); box-shadow: 20px 0 60px -20px rgba(0, 0, 0, .5);
  }
  body.side-open .nv .side { transform: none; }
  .nv .lights { display: none; }
  .nv .act.menu { display: grid; margin-left: -6px; }
  .nv .tool { padding: 0 10px 0 12px; }
  .nv .tool .sub { display: none; }
  .nv .main .rc { padding: 12px 12px 14px; }
}
@media (prefers-reduced-motion: reduce) { .nv .side { transition: none; } }

/* before a check, the window is glass: the code field shows behind the prompt */
.nv .main { --glass: 84%; background: color-mix(in srgb, var(--win) var(--glass), transparent); }
.nv .main:has(.pane:not([hidden]) .rc[data-state="idle"]) { --glass: 58%; }
/* a clear field behind the prompt, the glyphs alive around it */
.nv .main:has(.pane:not([hidden]) .rc[data-state="idle"])::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--win) 90%, transparent) 0, transparent 84px),
    radial-gradient(ellipse 60% 52% at 50% 48%, var(--win) 0%, color-mix(in srgb, var(--win) 95%, transparent) 52%, transparent 100%);
}
@media (max-width: 760px) { .nv .main:has(.pane:not([hidden]) .rc[data-state="idle"])::before { background: linear-gradient(180deg, color-mix(in srgb, var(--win) 90%, transparent) 0, transparent 70px), radial-gradient(ellipse 130% 44% at 50% 45%, var(--win) 0%, color-mix(in srgb, var(--win) 95%, transparent) 55%, transparent 100%); } }
.nv .main > * { position: relative; }

/* the status pill in the app card */
.nv .app .stat { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 2px 8px 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--ink3); background: var(--bg2); }
.nv .app .stat i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink3); }
.nv .app .stat em { font-style: normal; }
.nv .app .stat[data-on="1"] { color: #30D158; background: color-mix(in srgb, #30D158 14%, transparent); }
.nv .app .stat[data-on="1"] i { background: #30D158; box-shadow: 0 0 0 3px color-mix(in srgb, #30D158 25%, transparent); }

/* the window opens like a macOS window: rising out of a soft blur */
/* opacity and transform only, and nothing held afterwards: a filter (even
   a finished one) would cut the sidebar's frosted glass off from the desktop */
@keyframes win-open { from { opacity: 0; transform: translateY(12px) scale(.982); } }
.nv .win { animation: win-open .6s cubic-bezier(.22, 1, .36, 1) backwards; }
@media (prefers-reduced-motion: reduce) { .nv .win { animation: none; } }

/* the toolbar's brand shows when the sidebar is a drawer */
.nv .tool .brand { display: none; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.nv .tool .brand img { border-radius: 6px; }
@media (max-width: 760px) {
  .nv .tool .brand { display: flex; }
  .nv .tool .title { display: none; }
}

/* light: white glass washes out against the grey field, so the window stays
   nearly opaque and the panels keep their edges */
.nv:not([data-theme="dark"]) .main { --glass: 90%; }
.nv:not([data-theme="dark"]) .main:has(.pane:not([hidden]) .rc[data-state="idle"]) { --glass: 64%; }

/* ================================================================ sidebar
   Desktop: it collapses into the toolbar, as a macOS window's does.
   Phones: a floating glass drawer on a spring; the window steps back. */
.nv { --sw: 252px; }
@media (max-width: 1100px) { .nv { --sw: 216px; } }
.nv .win { grid-template-columns: var(--sw) minmax(0, 1fr); }
.nv .side { width: var(--sw); padding: 12px 10px 14px; overflow: hidden; container: side / size; }
.nv .side-top { display: flex; align-items: center; justify-content: space-between; height: 30px; margin: 0 0 12px; padding-left: 8px; }
.nv .side-top .lights { display: flex; padding: 0; }
.nv .act .i-side { width: 19px; height: 19px; stroke-width: 1.5; }
.nv .act .i-side .pf { fill: currentColor; stroke: none; opacity: 0; transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(.2); transition: opacity .22s ease, transform .4s cubic-bezier(.32, .72, 0, 1); }
.nv .side .i-side .pf { opacity: .5; transform: none; }
@media (hover: hover) { .nv .tool .side-t:hover .i-side .pf { opacity: .3; transform: none; } .nv .side .side-x:hover .i-side .pf { opacity: .15; transform: scaleX(.4); } }
.nv .tool .lights.tl, .nv .tool .side-t { display: none; }
.nv .scrim { display: none; }
@keyframes fade-in { from { opacity: 0; } }
@media (min-width: 761px) {
  .nv .win { transition: grid-template-columns .5s cubic-bezier(.32, .72, 0, 1); }
  .nv .side { transition: transform .5s cubic-bezier(.32, .72, 0, 1), opacity .32s ease; }
  .nv .win.closed { grid-template-columns: 0px minmax(0, 1fr); }
  .nv .win.closed .side { transform: translate3d(-100%, 0, 0); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .5s cubic-bezier(.32, .72, 0, 1), opacity .32s ease, visibility 0s .5s; }
  .nv .win.closed .tool .lights.tl { display: flex; padding: 0 10px 0 4px; animation: fade-in .35s ease .12s backwards; }
  .nv .win.closed .tool .side-t { display: grid; animation: fade-in .35s ease .12s backwards; }
}

/* the app card */
.nv .app { margin-bottom: 10px; background: none; padding: 6px 8px 10px; }
.nv .app img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .4); }

/* lists: one highlight glides under the pointer; a pill marks the view showing */
.nv .side .nav, .nv .side .list { position: relative; }
.nv .side li.hl, .nv .side li.on-pill { position: absolute; left: 0; right: 0; top: 0; height: 32px; border-radius: 9px; pointer-events: none; }
.nv .side li.hl { background: color-mix(in srgb, var(--ink) 5%, transparent); opacity: 0; }
.nv .side li.on-pill { background: var(--sel); }
.nv .side .nav > li:not(.hl):not(.on-pill), .nv .side .list > li:not(.hl) { position: relative; }
.nv .side .item, .nv .side .list button { background: none !important; transition: transform .16s cubic-bezier(.2, .8, .2, 1); }
.nv .side .item:active, .nv .side .list button:active { transform: scale(.975); }
.nv .list .go {
  flex: none; margin-left: auto; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; font-style: normal;
  color: #0A84FF; background: color-mix(in srgb, #0A84FF 13%, transparent);
  opacity: 0; transform: translateX(-5px); transition: opacity .18s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.nv[data-theme="dark"] .list .go { color: #409CFF; background: color-mix(in srgb, #409CFF 16%, transparent); }
.nv .list button:hover .go, .nv .list button:focus-visible .go { opacity: 1; transform: none; }
@media (hover: none) { .nv .list .go { opacity: 1; transform: none; } }
.nv .recent em { padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 650; color: var(--ink2); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.nv .recent em[data-hi="1"] { color: #FF9F0A; background: color-mix(in srgb, #FF9F0A 15%, transparent); }
.nv .sec { padding: 16px 8px 6px; }

/* share: the arrow becomes a check once the link is copied */
.nv .act.share .i-ok { display: none; stroke: #30D158; stroke-width: 2.2; }
.nv .act.share.did svg:not(.i-ok) { display: none; }
.nv .act.share.did .i-ok { display: block; stroke-dasharray: 22; stroke-dashoffset: 22; animation: ok-draw .36s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes ok-draw { to { stroke-dashoffset: 0; } }
.nv .act:active { transform: scale(.9); }
.nv .act { transition: background .15s ease, color .15s ease, transform .16s cubic-bezier(.2, .8, .2, 1); }
.nv .toast {
  position: absolute; z-index: 40; left: 50%; bottom: 46px; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 999px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 600; letter-spacing: -.01em;
  color: var(--on-ink); background: var(--on); box-shadow: 0 12px 32px -10px rgba(0, 0, 0, .5);
  opacity: 0; transform: translate3d(-50%, 14px, 0) scale(.96); pointer-events: none;
  transition: opacity .2s ease, transform .5s cubic-bezier(.32, 1.35, .5, 1);
}
.nv .toast.on { opacity: 1; transform: translate3d(-50%, 0, 0) scale(1); }

/* phones: the drawer */
@media (max-width: 760px) {
  .nv .side {
    position: absolute; z-index: 20; inset: 8px auto 8px 8px; width: min(312px, calc(100vw - 52px)); padding: 12px 10px 16px;
    border-radius: 28px; transform: translate3d(calc(-100% - 12px), 0, 0); transition: none;
    background: color-mix(in srgb, var(--win) 74%, transparent);
    -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
    box-shadow: 0 30px 70px -14px rgba(0, 0, 0, .55), 0 6px 18px -6px rgba(0, 0, 0, .3);
    will-change: transform;
  }
  .nv[data-theme="dark"] .side { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 30px 70px -14px rgba(0, 0, 0, .8), 0 6px 18px -6px rgba(0, 0, 0, .5); }
  body.side-open .nv .side { transform: none; }
  .nv .win { grid-template-columns: minmax(0, 1fr); }
  .nv .side .lights { display: flex; }
  .nv .side-top { padding-left: 10px; margin-bottom: 10px; }
  .nv .tool .side-t { display: grid; margin-left: -6px; }
  .nv .scrim { display: block; position: absolute; inset: 0; z-index: 15; background: rgba(0, 0, 0, .38); opacity: 0; pointer-events: none; }
  .nv:not([data-theme="dark"]) .scrim { background: rgba(10, 10, 20, .2); }
  body.side-open .nv .scrim { pointer-events: auto; }
  .nv .main { transform-origin: 100% 50%; }
  .nv .main.pushed { border-radius: 26px; overflow: hidden; }
  .nv .item { height: 40px; font-size: 15px; }
  .nv .side li.hl, .nv .side li.on-pill { height: 40px; border-radius: 11px; }
  .nv .list button { height: 48px; }
  .nv .list b { font-size: 14.5px; }
  .nv .list span.o { font-size: 12.5px; }
  .nv .list img { width: 30px; height: 30px; border-radius: 8px; }
  .nv .recent button { height: 40px; }
  .nv .toast { bottom: auto; top: calc(10px + env(safe-area-inset-top, 0px)); transform: translate3d(-50%, -14px, 0) scale(.96); }
  .nv .toast.on { transform: translate3d(-50%, 0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .nv .win, .nv .side { transition: none !important; } }

/* the appearance switch, at the foot of the sidebar */
.nv .side-end { margin-top: auto; padding: 18px 2px 0; }
.nv .seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 34px; padding: 3px; border-radius: 11px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nv .seg-th {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 8px;
  background: var(--win); box-shadow: 0 1px 3px rgba(0, 0, 0, .14), 0 3px 10px -4px rgba(0, 0, 0, .25);
  transition: transform .45s cubic-bezier(.34, 1.3, .5, 1);
}
.nv[data-theme="dark"] .seg-th { background: #3A3A40; box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .12), 0 3px 10px -4px rgba(0, 0, 0, .6); }
.nv .seg[data-v="dark"] .seg-th { transform: translateX(100%); }
.nv .seg button { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink3); transition: color .2s ease; }
.nv .seg button[aria-checked="true"] { color: var(--ink); }
.nv .seg svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block !important; }
@media (max-width: 760px) { .nv .seg { height: 40px; border-radius: 13px; } .nv .seg-th { border-radius: 10px; } .nv .seg button { font-size: 14px; } }

/* ================================================================ nothing scrolls
   Every view fits its window; where there is less room, less is shown. */
.nv *, .nv { scrollbar-width: none; }
.nv *::-webkit-scrollbar { display: none; }

/* ---------------------------------------------------------------- icons
   One family: thick strokes, round ends. Tiles are small app icons. */
.nv .act { width: 34px; height: 34px; border-radius: 11px; }
.nv .act svg { width: 21px; height: 21px; stroke-width: 2.3; overflow: visible; }
.nv .act .i-side { width: 21px; height: 21px; stroke-width: 2.3; }
.nv .act svg * { transform-box: fill-box; transform-origin: center; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.nv .act .i-side .pf { transform-origin: 0 50%; }
@media (hover: hover) {
  .nv .act:hover .i-sun { transform: rotate(45deg); }
  .nv .act:hover .i-moon { transform: rotate(-14deg) scale(1.06); }
  .nv .act.share:hover .arr { transform: translateY(-2px); }
}
.nv .act > svg { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.nv .ic {
  width: 26px; height: 26px; border-radius: 8.5px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 78%, #fff) 0%, var(--c) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 3px 8px -3px color-mix(in srgb, var(--c) 70%, transparent);
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.nv .ic svg { width: 16px; height: 16px; stroke-width: 2.6; }
@media (hover: hover) { .nv .item:hover .ic, .nv .steps li:hover .ic { transform: rotate(-8deg) scale(1.1); } }
.nv .item { height: 36px; gap: 11px; font-size: 14px; }
.nv .side li.hl, .nv .side li.on-pill { height: 36px; border-radius: 10px; }
.nv .act:focus-visible, .nv .item:focus-visible, .nv .list button:focus-visible, .nv .live:focus-visible, .nv .seg button:focus-visible { outline: 2px solid color-mix(in srgb, #409CFF 80%, transparent); outline-offset: 1px; }
.nv :focus:not(:focus-visible) { outline: none; }

/* ---------------------------------------------------------------- the live card */
.nv .live {
  display: block; width: 100%; margin: 0 0 12px; padding: 13px 13px 14px; border-radius: 18px; text-align: left; color: var(--ink);
  background: color-mix(in srgb, var(--ink) 5.5%, transparent);
  transition: transform .25s cubic-bezier(.34, 1.4, .64, 1), background .2s ease;
}
@media (hover: hover) { .nv .live:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); transform: scale(1.012); } }
.nv .live:active { transform: scale(.975); }
.nv .live-hd { display: flex; align-items: center; gap: 8px; height: 18px; margin-bottom: 12px; }
.nv .live-k { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 650; letter-spacing: -.01em; }
.nv .live-n { flex: none; font: 600 11.5px ui-monospace, "SF Mono", Menlo, monospace; font-style: normal; color: var(--ink3); font-variant-numeric: tabular-nums; }
.nv .live-n:empty { display: none; }
.nv .live[data-mode="done"] .live-n { font: 750 17px/1 var(--f); letter-spacing: -.03em; color: var(--live-c, var(--ink)); }
/* four dots, one per step; the one at work is long */
.nv .live-dots { flex: none; display: flex; align-items: center; gap: 4px; }
.nv .live-dots i { width: 6px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 16%, transparent); transition: width .45s cubic-bezier(.34, 1.4, .64, 1), background .25s ease; }
.nv .live-dots i[data-s="done"] { background: color-mix(in srgb, var(--ink) 46%, transparent); }
.nv .live-dots i[data-s="on"] { width: 18px; background: #0A84FF; }
.nv[data-theme="dark"] .live-dots i[data-s="on"] { background: #409CFF; }
.nv .live[data-mode="done"] .live-dots i { background: var(--live-c, #FF9F0A); }
.nv .live canvas { display: block; width: 100%; height: 108px; }
.nv .live-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.8em; margin-top: 12px; font-size: 12px; line-height: 1.4; color: var(--ink2); overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- how it works: one screen */
.nv .how { display: flex; flex-direction: column; justify-content: center; gap: 22px; min-height: 0; overflow: hidden; padding: 20px 40px 28px; container: how / size; }
.nv .how > * { width: 100%; max-width: 900px; margin: 0 auto; }
.nv .how-hd { display: flex; align-items: center; gap: 16px; }
.nv .how-hd img { flex: none; border-radius: 13px; box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .55); }
.nv .how h2 { margin: 0 0 4px; font-size: 26px; font-weight: 680; letter-spacing: -.03em; }
.nv .how-hd p { margin: 0; max-width: 620px; font-size: 14.5px; line-height: 1.45; color: var(--ink2); }
.nv .steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.nv .steps li { grid-column: span 2; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 17px; border-radius: 20px; background: var(--bg2); }
.nv .steps li:nth-child(n+4) { grid-column: span 3; }
.nv .steps .ic { width: 36px; height: 36px; border-radius: 11px; }
.nv .steps .ic svg { width: 21px; height: 21px; stroke-width: 2.5; }
.nv .steps b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
.nv .steps b span { flex: none; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; font: 700 11px var(--f); color: var(--ink2); background: color-mix(in srgb, var(--ink) 9%, transparent); }
.nv .steps p { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink2); }
@media (max-height: 700px) { .nv .how { gap: 14px; padding-top: 10px; padding-bottom: 14px; } }
@media (max-width: 760px) { .nv .how { justify-content: flex-start; gap: 16px; padding: 8px 14px 16px; } }
@container how (max-height: 560px) {
  .nv .how-hd p { display: none; }
  .nv .steps li { gap: 9px; padding: 12px 14px 13px; }
  .nv .steps p { font-size: 12.5px; line-height: 1.4; }
}
@container how (max-height: 440px) { .nv .steps p { display: none; } .nv .how-hd { display: none; } }
@container how (max-width: 640px) {
  .nv .how-hd img { width: 44px; height: 44px; }
  .nv .how h2 { font-size: 22px; }
  .nv .how-hd p { font-size: 13.5px; }
  .nv .steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .nv .steps li, .nv .steps li:nth-child(n+4) { grid-column: auto; flex-direction: row; gap: 13px; padding: 13px 14px; border-radius: 18px; }
  .nv .steps .ic { width: 34px; height: 34px; }
  .nv .steps p { margin-top: 3px; font-size: 12.5px; line-height: 1.4; }
}
@container how (max-width: 640px) and (max-height: 640px) { .nv .how-hd p { display: none; } .nv .steps li { padding: 10px 12px; } }
@container how (max-width: 640px) and (max-height: 540px) { .nv .steps p { display: none; } }

/* ---------------------------------------------------------------- the sidebar always fits
   The top (app, card, views) and the foot (appearance) keep their place; the
   lists between them give way. Shorter windows show fewer recent checks,
   then none, then a smaller card, then no examples. */
.nv .side > * { flex: none; }
.nv .side .side-lists { flex: 1 1 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; -webkit-mask-image: linear-gradient(#000 calc(100% - 22px), transparent); mask-image: linear-gradient(#000 calc(100% - 22px), transparent); }
.nv .side .side-lists > * { flex: none; }
.nv .side-end { margin-top: 0; padding-top: 10px; }
.nv .recent > li:nth-child(n+5) { display: none; }                 /* three recent checks at most (the first li is the highlight) */
@container side (max-height: 800px) { .nv .recent > li:nth-child(n+4) { display: none; } }
@container side (max-height: 730px) { .nv .side .sec-recent, .nv .side .recent { display: none; } }
@container side (max-height: 660px) { .nv .live canvas { height: 76px; } .nv .live-t { -webkit-line-clamp: 1; height: 1.4em; } .nv .side .sec { padding-top: 10px; } }
@container side (max-height: 570px) { .nv .side .ex, .nv .side .sec:not(.sec-recent) { display: none; } }
@container side (max-height: 430px) { .nv .side .live { display: none; } }
@media (max-width: 760px) {
  .nv .item { height: 42px; font-size: 15px; }
  .nv .side li.hl, .nv .side li.on-pill { height: 42px; border-radius: 12px; }
  .nv .ic { width: 28px; height: 28px; border-radius: 9px; }
  .nv .ic svg { width: 17px; height: 17px; }
  .nv .live canvas { height: 124px; }
  .nv .live-k { font-size: 14px; }
  .nv .live-t { font-size: 13px; }
  .nv .act { width: 38px; height: 38px; }
  .nv .act svg, .nv .act .i-side { width: 23px; height: 23px; }
}

@media (max-width: 760px) {
  @container side (max-height: 880px) { .nv .recent > li:nth-child(n+4) { display: none; } }
  @container side (max-height: 840px) { .nv .recent > li:nth-child(n+3) { display: none; } }
  @container side (max-height: 800px) { .nv .side .sec-recent, .nv .side .recent { display: none; } }
  @container side (max-height: 730px) { .nv .live canvas { height: 92px; } }
  @container side (max-height: 690px) { .nv .live canvas { height: 76px; } .nv .live-t { -webkit-line-clamp: 1; height: 1.4em; } }
  @container side (max-height: 640px) { .nv .side .ex, .nv .side .sec:not(.sec-recent) { display: none; } }
}

/* ================================================================ effects (fx.js) */
/* lines that rise out of their own mask */
.nv .fx-line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; white-space: nowrap; }
.nv .fx-line > span { display: block; transform-origin: 0 100%; will-change: transform; }
/* the paragraph that parts around the pointer; the veil opens at the lens */
.nv .fx-flow { position: relative; text-align: left; transition: height .25s cubic-bezier(.2, .8, .2, 1); }
.nv .fx-seg { position: absolute; left: 0; top: 0; white-space: pre; will-change: transform; }
.nv .fx-lens { position: absolute; left: 0; top: 0; z-index: 2; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .2s ease; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #409CFF 70%, transparent), 0 0 26px -4px color-mix(in srgb, #409CFF 60%, transparent); }
.nv .main:has(.pane:not([hidden]) .rc[data-state="idle"])::before { -webkit-mask-image: radial-gradient(circle var(--hr, 0px) at var(--hx, -99px) var(--hy, -99px), transparent calc(100% - 1.5px), #000 100%); mask-image: radial-gradient(circle var(--hr, 0px) at var(--hx, -99px) var(--hy, -99px), transparent calc(100% - 1.5px), #000 100%); }
.nv .main:not(:has(.pane:not([hidden]) .rc[data-state="idle"])) .fx-lens { display: none; }

/* the Dock: where the window goes when it is minimized or closed */
.nv .dock { position: absolute; z-index: 5; left: 50%; bottom: 14px; transform: translate3d(-50%, 0, 0); padding: 7px; border-radius: 22px; background: color-mix(in srgb, var(--win) 46%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.7); backdrop-filter: blur(24px) saturate(1.7); box-shadow: 0 0 0 1px var(--hair), 0 18px 44px -14px rgba(0, 0, 0, .6); }
.nv .dock[hidden] { display: none; }
.nv .dock-app { position: relative; display: block; width: 54px; height: 54px; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); transform-origin: 50% 100%; }
.nv .dock-app img { display: block; width: 100%; height: 100%; border-radius: 13px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6); }
.nv .dock-app i { position: absolute; left: 50%; bottom: -5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink2); opacity: 0; transition: opacity .2s ease; }
.nv .dock[data-run="1"] .dock-app i { opacity: 1; }
.nv .dock-app em { position: absolute; left: 50%; bottom: calc(100% + 16px); transform: translate(-50%, 6px); padding: 5px 11px; border-radius: 9px; font-style: normal; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--ink); background: color-mix(in srgb, var(--win) 80%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px var(--hair), 0 8px 20px -8px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .25s cubic-bezier(.34, 1.4, .64, 1); }
@media (hover: hover) { .nv .dock-app:hover { transform: scale(1.3) translateY(-5px); } .nv .dock-app:hover em { opacity: 1; transform: translate(-50%, 0) scale(.77); } }
.nv .dock-app:active img { filter: brightness(.75); }
/* zoomed: the window takes the screen */
body.win-full .nv .desk { padding: 0; }
body.win-full .nv .win { width: 100%; height: 100%; border-radius: 0; }

/* notifications arrive as a Mac's do: a banner sliding in at the top right */
@media (min-width: 761px) {
  .nv .toast { left: auto; right: 16px; top: 16px; bottom: auto; max-width: 340px; display: flex; align-items: center; gap: 11px; padding: 11px 16px 11px 12px; border-radius: 18px; font-size: 13px; color: var(--ink); background: color-mix(in srgb, var(--win) 72%, transparent); -webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8); box-shadow: 0 0 0 1px var(--hair), 0 18px 44px -14px rgba(0, 0, 0, .6); transform: translate3d(calc(100% + 30px), 0, 0); transition: opacity .25s ease, transform .55s cubic-bezier(.3, 1.3, .4, 1); }
  .nv .toast::before { content: ""; flex: none; width: 30px; height: 30px; border-radius: 8px; background: url("/logo.svg") center / cover; }
  .nv .toast.on { transform: translate3d(0, 0, 0); }
}

/* the pull request sheet drops out of the toolbar on wide screens */
@container rc (min-width: 541px) {
  .nv .rc-pr { place-items: start center; padding: 0 20px 20px; }
  .nv .rc-pr .pr-card { border-radius: 0 0 24px 24px; transform-origin: 50% 0; }
}

/* every spinner is a braille one */
.nv .rc-spin, .nv .rcs .rcs-spin, .nv .pr-wait i {
  width: 1.1ch; height: 1em; border: 0 !important; border-radius: 0; overflow: hidden; display: inline-block; vertical-align: -1px; animation: none;
  font: 700 12px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--rc-a, #409CFF);
}
.nv .rc-spin::before, .nv .rcs .rcs-spin::before, .nv .pr-wait i::before { content: "⠋\A⠙\A⠹\A⠸\A⠼\A⠴\A⠦\A⠧\A⠇\A⠏"; display: block; white-space: pre; line-height: 1em; animation: fx-braille .8s steps(10) infinite; }
@keyframes fx-braille { to { transform: translateY(-10em); } }
@media (prefers-reduced-motion: reduce) { .nv .rc-spin::before, .nv .rcs .rcs-spin::before, .nv .pr-wait i::before { animation: none; } }

/* the phone's start screen carries the card the sidebar has: the four steps, playing */
.nv .live-hero { display: none; }
@container rc (max-width: 540px) and (min-height: 600px) {
  .nv .rc-idle .live-hero { display: block; width: min(420px, 100%); margin: 26px 0 0; text-align: left; background: var(--bg2); }
  .nv .rc-idle .live-hero canvas { height: 92px; }
  .nv .rc-idle .live-hero .live-t { -webkit-line-clamp: 1; height: 1.4em; margin-top: 10px; }
  .nv .rc-idle { padding-bottom: 0; }
}

/* not the front window: its lights go quiet */
.nv.is-back .lights button { background: color-mix(in srgb, var(--ink) 18%, transparent); box-shadow: none; }
.nv.is-back .lights svg { opacity: 0 !important; }

.nv .fx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- Spotlight (Command-K) */
.nv .spot-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; margin-right: 4px; padding: 0 8px 0 10px; border-radius: 10px; font-size: 12.5px; font-weight: 550; color: var(--ink2); background: color-mix(in srgb, var(--ink) 6%, transparent); transition: background .15s ease, color .15s ease, transform .2s cubic-bezier(.34, 1.4, .64, 1); }
.nv .spot-btn:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); }
.nv .spot-btn:active { transform: scale(.96); }
.nv .spot-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.nv kbd { padding: 2px 6px; border-radius: 6px; font: 600 11px var(--f); color: var(--ink3); background: color-mix(in srgb, var(--ink) 8%, transparent); }
@media (max-width: 900px) { .nv .spot-btn span { display: none; } }
@media (max-width: 760px) { .nv .spot-btn { display: none; } }
.nv .spot { position: absolute; inset: 0; z-index: 60; display: grid; justify-items: center; align-content: start; padding: 18vh 16px 0; background: rgba(0, 0, 0, .28); }
.nv:not([data-theme="dark"]) .spot { background: rgba(20, 20, 30, .14); }
.nv .spot[hidden] { display: none; }
.nv .spot-box { width: min(600px, 100%); overflow: hidden; border-radius: 22px; background: color-mix(in srgb, var(--win) 72%, transparent); -webkit-backdrop-filter: blur(40px) saturate(1.9); backdrop-filter: blur(40px) saturate(1.9); box-shadow: 0 0 0 1px var(--hair), 0 40px 100px -24px rgba(0, 0, 0, .75); transform-origin: 50% 0; }
.nv .spot-in { display: flex; align-items: center; gap: 13px; height: 60px; padding: 0 16px 0 20px; }
.nv .spot-in svg { flex: none; width: 23px; height: 23px; fill: none; stroke: var(--ink3); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.nv .spot-in input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 500 21px var(--f); letter-spacing: -.02em; color: var(--ink); }
.nv .spot-in input::placeholder { color: var(--ink3); }
.nv .spot-list { list-style: none; margin: 0; padding: 0 8px 8px; }
.nv .spot-list:empty { display: none; }
.nv .spot-list li { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 10px; border-radius: 13px; cursor: pointer; }
.nv .spot-list li[aria-selected="true"] { background: #0A84FF; color: #fff; }
.nv .spot-list img { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--bg2); }
.nv .spot-list b { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 13.5px ui-monospace, "SF Mono", Menlo, monospace; }
.nv .spot-list em { margin-left: auto; flex: none; font-style: normal; font-size: 12px; color: var(--ink3); }
.nv .spot-list li[aria-selected="true"] em { color: rgba(255, 255, 255, .78); }
