:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --sunken: #f2f2f0;
  --line: #e6e5e2;
  --line-strong: #d4d3cf;
  --fg: #121211;
  --muted: #55554f;
  --subtle: #6e6e68;
  --accent: #f44e00;
  --accent-ink: #b83a00;
  --on-accent: #0a0a0a;
  --mark: #ffe1cf;
  --hover: #f4f3f0;
  --shadow: 0 1px 0 rgb(18 18 17 / .04), 0 8px 24px -12px rgb(18 18 17 / .12);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --r: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a;
    --surface: #111111;
    --sunken: #151515;
    --line: #1f1f1f;
    --line-strong: #2e2e2e;
    --fg: #f4f4f2;
    --muted: #a3a39e;
    --subtle: #85857f;
    --accent-ink: #ff7a3d;
    --mark: #4a1f08;
    --hover: #141414;
    --shadow: 0 1px 0 rgb(255 255 255 / .03), 0 12px 32px -16px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --surface: #111111;
  --sunken: #151515;
  --line: #1f1f1f;
  --line-strong: #2e2e2e;
  --fg: #f4f4f2;
  --muted: #a3a39e;
  --subtle: #85857f;
  --accent-ink: #ff7a3d;
  --mark: #4a1f08;
  --hover: #141414;
  --shadow: 0 1px 0 rgb(255 255 255 / .03), 0 12px 32px -16px rgb(0 0 0 / .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
html:has(.list a:focus-visible) { scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: color .2s var(--ease), text-decoration-color .2s var(--ease); }
a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
button, input { font: inherit; color: inherit; touch-action: manipulation; }
code { font: 500 .85em var(--mono); background: var(--sunken); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; }
.wrap { width: min(1176px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(1176px, 100% - 64px); } }

.skip { position: absolute; left: 16px; top: -48px; z-index: 30; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 999px; font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand:hover { color: inherit; }
.mark { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: var(--on-accent); font: 600 16px/1 var(--mono); }
.brand-name { font: 500 13px/1 var(--mono); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-nav { display: flex; align-items: center; gap: 4px; flex: none; }
.top-nav a, .theme {
  font: 500 13px/1 var(--sans); text-decoration: none; color: var(--muted);
  padding: 9px 12px; border-radius: 999px; border: 1px solid transparent; background: none; cursor: pointer;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.top-nav a:hover, .theme:hover { color: var(--fg); background: var(--hover); }
.theme { font-family: var(--mono); font-size: 12px; border-color: var(--line); min-width: 62px; }
@media (max-width: 559px) {
  .brand-name { display: none; }
}

.hero { display: grid; gap: 40px; padding-block: 40px 48px; }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: end; padding-block: 56px 64px; }
}
h1 {
  font: 600 clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem)/1 var(--sans);
  letter-spacing: -.045em;
  margin: 0 0 24px;
  max-width: 14ch;
  text-wrap: balance;
}
.lede { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.55; color: var(--muted); max-width: 52ch; margin: 0 0 32px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; white-space: nowrap;
  font: 500 14px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent; color: var(--fg);
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { color: var(--fg); background: var(--hover); border-color: var(--subtle); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #ff5f14; border-color: #ff5f14; color: var(--on-accent); }

.hero-stats { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.big { display: flex; align-items: baseline; gap: 14px; margin: 0; }
.big .num { font: 500 clamp(4.5rem, 3rem + 5vw, 7rem)/.85 var(--sans); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.big-label { font: 500 12px/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.refreshed { font: 400 12px/1 var(--mono); color: var(--subtle); margin: 16px 0 20px; }
.refreshed time { color: var(--fg); }
.agent-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.agent-list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); font-size: 13.5px; font-weight: 500; min-width: 0; }
.agent-list li span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-list svg { width: 16px; height: 16px; flex: none; fill: currentColor; }
.agent-list .num { font-size: 12px; color: var(--muted); }

.browse { padding-bottom: 96px; outline: none; }
.browse-grid { display: grid; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
@media (min-width: 960px) {
  .browse-grid { grid-template-columns: 232px minmax(0, 1fr); gap: 48px; padding-top: 32px; }
}
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.side-label, .chips-label { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); padding: 0; }

.cats { min-width: 0; }
.cats .side-label { margin-bottom: 12px; }
.cat-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; overscroll-behavior-x: contain; }
.cat-list::-webkit-scrollbar { display: none; }
.cat { position: relative; display: flex; align-items: center; gap: 8px; flex: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: var(--muted); transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease); }
.cat input, .chip input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.cat:hover { color: var(--fg); background: var(--hover); }
.cat-n { font-size: 11.5px; color: var(--subtle); }
.cat:has(input:checked) { color: var(--fg); border-color: var(--fg); background: var(--surface); }
.cat:has(input:checked) .cat-n { color: var(--accent-ink); }
.cat:has(input:focus-visible), .chip:has(input:focus-visible), .seg label:has(input:focus-visible), .toggle:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.cat.is-zero:not(:has(input:checked)) { opacity: .5; }
@media (min-width: 960px) {
  .cats { position: sticky; top: 24px; align-self: start; }
  .cat-list { flex-direction: column; gap: 1px; overflow: visible; margin: 0; padding: 0; }
  .cat { border: 0; border-radius: 8px; padding: 8px 10px; justify-content: space-between; }
  .cat:has(input:checked) { background: var(--sunken); }
  .cat:has(input:checked)::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--accent); }
}

.results { min-width: 0; }
.toolbar { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .toolbar { position: sticky; top: 0; z-index: 10; grid-template-columns: minmax(0, 1fr) auto; padding-block: 12px; margin-block: -12px; background: var(--bg); } }
.search { position: relative; }
.search input {
  width: 100%; height: 48px; padding: 0 44px 0 16px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r);
  font-size: 15px; box-shadow: var(--shadow);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--subtle); }
.search input:hover { border-color: var(--subtle); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(244 78 0 / .18); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-strong); border-radius: 6px; font: 500 12px/1 var(--mono); color: var(--subtle); background: var(--sunken); pointer-events: none; transition: opacity .15s var(--ease); }
.search input:focus + kbd, .search input:not(:placeholder-shown) + kbd { opacity: 0; }

.seg { display: inline-flex; padding: 4px; gap: 2px; height: 48px; background: var(--sunken); border: 1px solid var(--line); border-radius: var(--r); justify-self: start; }
.seg label { position: relative; display: grid; place-items: center; padding: 0 14px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--muted); cursor: pointer; transition: color .2s var(--ease), background-color .2s var(--ease); }
.seg label:hover { color: var(--fg); }
.seg label:has(input:checked) { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 0 0 1px var(--line); }

.subbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 16px 0 8px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chips-label { float: left; margin-right: 6px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease); }
.chip svg { width: 14px; height: 14px; fill: currentColor; }
.chip:hover { color: var(--fg); border-color: var(--line-strong); }
.chip:has(input:checked) { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); cursor: pointer; border-radius: 999px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span::before { content: ""; display: inline-block; vertical-align: -5px; width: 32px; height: 20px; margin-right: 10px; border-radius: 999px; background: var(--line-strong); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color .2s var(--ease); }
.toggle span::after { content: ""; position: absolute; left: 3px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform .25s var(--ease); }
.toggle input:checked + span::before { background: var(--accent); box-shadow: none; }
.toggle input:checked + span::after { transform: translateX(12px); background: #fff; }
.toggle:hover { color: var(--fg); }

.count { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); margin: 0; }
.list-head { padding: 20px 0 12px; }
.list-head > span { display: none; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list:empty { border-top: 0; }

.row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main stars" "meta meta"; gap: 8px 16px; padding: 16px 12px; margin-inline: -12px; border-radius: 10px; background: linear-gradient(var(--line), var(--line)) 50% 100% / calc(100% - 24px) 1px no-repeat; transition: background-color .2s var(--ease); }
.row:hover { background-color: var(--hover); }
.row-main { grid-area: main; min-width: 0; }
.repo { display: inline; font-size: 15.5px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; overflow-wrap: anywhere; }
.repo::after { content: ""; position: absolute; inset: 0; }
.repo:hover { color: inherit; }
.repo:focus-visible { outline: none; }
.row:has(.repo:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
.row:hover .name { color: var(--accent-ink); }
.owner { color: var(--subtle); font-weight: 400; }
.name { transition: color .2s var(--ease); }
.desc { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.row-cat { display: none; margin-left: 10px; vertical-align: 1px; font: 400 11.5px/1 var(--mono); color: var(--subtle); white-space: nowrap; }
.flag { position: relative; display: inline-block; margin-left: 8px; vertical-align: 2px; padding: 3px 7px; border: 1px solid var(--accent-ink); border-radius: 999px; font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); }
.is-dim .repo, .is-dim .desc { opacity: .78; }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }
.row-agents { grid-area: meta; display: flex; align-items: center; gap: 10px; }
.row-agents svg { width: 15px; height: 15px; fill: var(--muted); flex: none; }
.row-agents i { display: none; }
.row-stars { grid-area: stars; justify-self: end; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.row-stars::before { content: "★"; margin-right: 5px; color: var(--accent); font-family: var(--sans); }
.row-date { grid-area: meta; justify-self: end; align-self: center; font: 400 12px/1 var(--mono); color: var(--subtle); white-space: nowrap; }

@media (min-width: 768px) {
  .list-head { display: grid; grid-template-columns: minmax(0, 1fr) 104px 76px 112px; gap: 24px; align-items: end; padding: 24px 0 12px; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--subtle); }
  .list-head > span { display: block; text-align: center; }
  .list-head .r { text-align: right; }
  .row { grid-template-columns: minmax(0, 1fr) 104px 76px 112px; grid-template-areas: "main agents stars date"; gap: 24px; align-items: center; padding: 18px 12px; }
  .row-cat { display: inline-block; }
  .row-agents { grid-area: agents; gap: 0; display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center; }
  .row-agents i { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
  .row-stars { grid-area: stars; align-self: center; }
  .row-date { grid-area: date; }
}

.skel { height: 84px; pointer-events: none; }
.skel::before, .skel::after { content: ""; position: absolute; left: 12px; border-radius: 6px; background: var(--sunken); }
.skel::before { top: 20px; width: 34%; height: 14px; }
.skel::after { top: 46px; width: 62%; height: 12px; }

.empty { padding: 56px 0 40px; max-width: 46ch; }
.empty .empty-title { color: var(--fg); font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; margin: 0 0 8px; overflow-wrap: anywhere; }
.empty p { color: var(--muted); margin: 0 0 20px; }
.results:has(#empty:not([hidden])) .list-head > span { visibility: hidden; }

.foot { border-top: 1px solid var(--line); padding-block: 48px 40px; margin-top: 0; display: grid; gap: 32px; }
@media (min-width: 768px) {
  .foot { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .foot-legal { grid-column: 1 / -1; }
}
.foot-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; margin: 0 0 8px; }
.foot-main p:last-child { color: var(--muted); max-width: 56ch; margin: 0; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.foot-links a { text-decoration: none; font-weight: 500; }
.foot-legal { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); font: 400 12px/1.6 var(--mono); color: var(--subtle); }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-stats { animation: rise .9s var(--ease) both; }
  .hero-stats { animation-delay: .08s; }
  .skel::before, .skel::after { animation: pulse 1.4s ease-in-out infinite alternate; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes pulse { to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
