:root {
  color-scheme: light;
  --bg: #f4f2ed;
  --panel: #fffefa;
  --panel-soft: #faf9f5;
  --ink: #252b2d;
  --muted: #6d706c;
  --line: #dedbd2;
  --soft: #eef0e8;
  --accent: #5f7447;
  --accent-ink: #4f623d;
  --selection-surface: #e9efec;
  --selection-border: #9fb5ae;
  --selection-ink: #285f58;
  --nav-icon: #344050;
  --blue: #315bff;
  --warn: #a15c05;
  --shadow: 0 12px 34px rgba(55, 51, 42, .055);
  --project-summary-size: 14.5px;
  --project-summary-leading: 1.42;
  --project-summary-spacing: 5px 0 7px;
  --title-font: "Microsoft YaHei", "微软雅黑", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  --directory-font: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
  font-family: var(--title-font);
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--title-font);
}

button, input, select, textarea {
  font: inherit;
  font-family: var(--title-font);
}

button { cursor: pointer; }

:where(a, button, input, textarea, select, [role="link"]):focus-visible {
  outline: 2px solid rgba(79, 98, 61, .58) !important;
  outline-offset: 2px;
}

:where(input, textarea, select):focus-visible {
  border-color: #899777 !important;
  outline: 2px solid rgba(95, 116, 71, .28) !important;
  outline-offset: 1px;
  box-shadow: 0 0 0 3px rgba(95, 116, 71, .07);
}

.radar-shell {
  min-height: 100vh;
  padding: 0 0 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  flex: 0 0 46px;
  border: 0;
  border-radius: 9px;
  background: #24292f;
  color: #fff;
}

.brand-mark svg { width: 28px; height: 28px; }

.brand strong, .brand em {
  display: block;
  line-height: 1.2;
}

.brand strong {
  font-family: "Microsoft YaHei", "微软雅黑", "Noto Sans SC", sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.brand em {
  margin-top: 7px;
  color: var(--muted);
  color: #606562;
  font-size: 13px;
  font-weight: 650;
  font-style: normal;
  white-space: nowrap;
}

.top-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, auto));
  gap: clamp(12px, 1.35vw, 24px);
  justify-content: flex-start;
  min-width: 0;
  overflow-x: auto;
}

.primary-nav {
  justify-self: start;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.top-nav-scroll-hint {
  display: none;
}

.top-nav button, .ghost-btn, .back-btn, .filter-panel button, .search-box button, .selector-form button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.top-nav button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 68px;
  border: 0;
  border-radius: 0;
  padding: 10px 14px;
  background: transparent;
  white-space: nowrap;
  text-align: center;
  font-family: var(--title-font);
  transition: color .18s ease, background .18s ease;
}

.top-nav button.active {
  background: transparent;
  color: var(--accent-ink);
}

.top-nav button::after {
  position: absolute;
  right: 18px;
  bottom: -11px;
  left: 18px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(.55);
  transition: opacity .18s ease, transform .18s ease;
}

.top-nav button.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.top-nav button:hover,
.top-nav button:focus-visible {
  background: rgba(109, 129, 86, .075);
  color: var(--accent-ink);
  outline: none;
}

.svg-icon {
  --icon-color: #315bff;
  display: inline-grid;
  place-items: center;
  color: var(--icon-color);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible;
  transition: color .16s ease, transform .16s ease, opacity .16s ease;
}

.svg-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 1px rgba(15, 23, 42, .1));
}

.svg-icon .icon-soft {
  opacity: .58;
}

.top-nav button > .svg-icon {
  width: 28px;
  height: 28px;
  align-self: center;
  color: var(--nav-icon);
  stroke-width: 2;
}

.entry-card > .svg-icon,
.category-tab-nav .svg-icon,
.category-tab-head .svg-icon,
.ranking-tabs button > .svg-icon {
  width: 26px;
  height: 26px;
}

.ranking-tabs button > .svg-icon {
  grid-area: icon;
  width: 34px;
  height: 34px;
  align-self: center;
}

.category-tab-nav .svg-icon,
.category-tab-head .svg-icon {
  flex: 0 0 28px;
}

[data-icon="rank"] { --icon-color: #556575; }
[data-icon="daily"] { --icon-color: #6f8458; }
[data-icon="daily"] .icon-arrow { stroke: #a83b35; }
[data-icon="weekly"] { --icon-color: #3f6fae; }
[data-icon="monthly"] { --icon-color: #675aa0; }
[data-icon="rising"] { --icon-color: #b06c2e; }
[data-icon="newcomer"] { --icon-color: #c05b3e; }
[data-icon="streak"] { --icon-color: #9a7327; }
[data-icon="forks"] { --icon-color: #327b74; }
[data-icon="comeback"] { --icon-color: #8b5b9d; }
[data-icon="recommended"] { --icon-color: #925c91; }
[data-icon="alltime"] { --icon-color: #a75a4f; }
[data-icon="collection"] { --icon-color: #4d6271; }
[data-icon="tool"] { --icon-color: #397566; }
[data-icon="list"] { --icon-color: #52687a; }
[data-icon="repo"] { --icon-color: #566777; }
[data-icon="template"] { --icon-color: #7b658e; }
[data-icon="tutorial"] { --icon-color: #9a7335; }
[data-icon="category"] { --icon-color: #4b7180; }
[data-icon="scenario"] { --icon-color: #267f91; }
[data-icon="search"] { --icon-color: #33768c; }
[data-icon="data"] { --icon-color: #52729a; }
[data-icon="analytics"] { --icon-color: #3e7185; }
[data-icon="gateway"] { --icon-color: #5d6d94; }
[data-icon="ingestion"] { --icon-color: #497898; }
[data-icon="skill"] { --icon-color: #65589b; }
[data-icon="ai"] { --icon-color: #626996; }
[data-icon="agent"] { --icon-color: #6d5797; }
[data-icon="mcp"] { --icon-color: #2f8375; }
[data-icon="workflow"] { --icon-color: #4d7c66; }
[data-icon="devSkill"] { --icon-color: #516b9f; }
[data-icon="mcpSkill"] { --icon-color: #2f8375; }
[data-icon="ragSkill"] { --icon-color: #3f739a; }
[data-icon="modelOps"] { --icon-color: #5a6675; }
[data-icon="productSkill"] { --icon-color: #7a668f; }
[data-icon="creativeSkill"] { --icon-color: #a05778; }
[data-icon="local"] { --icon-color: #4d7a5d; }
[data-icon="chat"] { --icon-color: #3e7890; }
[data-icon="desktopChat"] { --icon-color: #5268a0; }
[data-icon="enterprise"] { --icon-color: #6a7051; }
[data-icon="delivery"] { --icon-color: #5f7183; }
[data-icon="office"] { --icon-color: #667092; }
[data-icon="meetingNotes"] { --icon-color: #55749a; }
[data-icon="subtitles"] { --icon-color: #87639b; }
[data-icon="agentFlow"] { --icon-color: #6a5799; }
[data-icon="productivity"] { --icon-color: #9a6b32; }
[data-icon="saas"] { --icon-color: #3f7a86; }
[data-icon="support"] { --icon-color: #a06355; }
[data-icon="beginner"] { --icon-color: #5b7a4b; }
[data-icon="commercial"] { --icon-color: #9a6b2f; }
[data-icon="alternatives"] { --icon-color: #4b7e75; }
[data-icon="china"] { --icon-color: #b54b43; }
[data-icon="rag"] { --icon-color: #3f739a; }
[data-icon="prompt"] { --icon-color: #7b5a96; }
[data-icon="coding"] { --icon-color: #40566f; }
[data-icon="eval"] { --icon-color: #9a7a2f; }
[data-icon="infra"] { --icon-color: #586574; }
[data-icon="image"] { --icon-color: #a24f7a; }
[data-icon="video"] { --icon-color: #b76535; }
[data-icon="audio"] { --icon-color: #4b8369; }
[data-icon="shorts"] { --icon-color: #b76535; }
[data-icon="voice"] { --icon-color: #4b8369; }
[data-icon="browser"] { --icon-color: #3b7c72; }
[data-icon="shield"] { --icon-color: #9a6a33; }

.top-nav button.active .svg-icon,
.ranking-tabs button.active .svg-icon,
.category-tab-nav button.active .svg-icon {
  color: var(--accent);
}

.top-nav button:hover .svg-icon,
.top-nav button:focus-visible .svg-icon {
  color: var(--accent);
}

.top-nav button:hover .svg-icon,
.top-nav button:focus-visible .svg-icon,
.ranking-tabs button:hover .svg-icon,
.ranking-tabs button:focus-visible .svg-icon {
  transform: translateY(-1px) scale(1.04);
}

.entry-card:hover .svg-icon,
.entry-card:focus-visible .svg-icon {
  transform: translateY(-1px) scale(1.04);
}

.top-nav button strong {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.top-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.ghost-btn, .back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.back-btn {
  gap: 8px;
  justify-self: end;
  min-height: 38px;
  border: 0;
  background: rgba(55, 51, 42, .045);
  color: #626866;
  font-size: 13px;
  font-weight: 750;
}

.back-btn:hover,
.back-btn:focus-visible {
  border: 0;
  background: rgba(109, 129, 86, .08);
  color: #4f5f45;
  box-shadow: none;
  outline: none;
}

.back-btn:active {
  border: 0;
  background: rgba(109, 129, 86, .12);
  color: #46553e;
  box-shadow: none;
  transform: none;
}

main {
  max-width: none;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  column-gap: clamp(36px, 3.2vw, 64px);
  align-items: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 94px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(185, 180, 168, .62);
  padding: 10px clamp(18px, 3.6vw, 52px);
  background: var(--panel);
  box-shadow: 0 5px 18px rgba(61, 57, 47, .035);
  isolation: isolate;
}

.hero-hot-card, .radar-summary, .filter-panel, .main-panel, .selector-panel, .detail-page {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 900px;
  margin-bottom: 8px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  font-family: var(--title-font);
  font-weight: 700;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 860px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.hero-stats {
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.hero-stats div {
  min-width: 0;
  border: 1px solid #edf1f7;
  border-radius: 8px;
  padding: 9px;
  background: #fbfdff;
}

.hero-stats span,
.hero-hot-card span,
.hero-hot-card em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.hero-stats strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.hero-hot-card {
  position: relative;
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 15px;
  border-top: 3px solid #7f9568;
  border-radius: 12px;
  padding: 17px;
  background: var(--panel);
  overflow: hidden;
}

.hero-hot-card::after {
  position: absolute;
  top: -17px;
  right: -10px;
  width: 82px;
  height: 82px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 84'%3E%3Cg transform='rotate(180 42 42)' fill='%237d8973'%3E%3Cpath d='M22 49c0-11 9-19 20-19s20 8 20 19v17H22z'/%3E%3Cpath d='M25 25 23 12l12 7c2.2-1 4.6-1.5 7-1.5s4.8.5 7 1.5l12-7-2 13c3.2 3.2 5 7.3 5 11.8C64 46.5 55.2 52 42 52s-22-5.5-22-15.2c0-4.5 1.8-8.6 5-11.8Z'/%3E%3Crect x='24' y='55' width='10' height='14' rx='5'/%3E%3Crect x='50' y='55' width='10' height='14' rx='5'/%3E%3Cpath d='M10 65h64v4H10z'/%3E%3C/g%3E%3Cg transform='rotate(180 42 42)' fill='none' stroke='%237d8973' stroke-width='5' stroke-linecap='round'%3E%3Cpath d='M59 49c14-2 17-15 9-23'/%3E%3C/g%3E%3Cg transform='rotate(180 42 42)' fill='%23f7f6f1'%3E%3Ccircle cx='34' cy='33' r='2'/%3E%3Ccircle cx='50' cy='33' r='2'/%3E%3Cpath d='m42 37-2.5 2h5z'/%3E%3C/g%3E%3Cg transform='rotate(180 42 42)' fill='none' stroke='%23f7f6f1' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m36 54-4 4 4 4m12-8 4 4-4 4m-4-10-4 12M29 39l-8 2m8 2-8 4m34-8 8 2m-8 2 8 4'/%3E%3C/g%3E%3C/svg%3E");
  content: "";
  opacity: .18;
  pointer-events: none;
  transform: rotate(45deg);
  transform-origin: center;
}

.hero-hot-card[data-detail-url] {
  cursor: pointer;
}

.hero-hot-card[data-detail-url]:hover,
.hero-hot-card[data-detail-url]:focus-visible {
  border-color: rgba(109, 129, 86, .48);
  box-shadow: 0 15px 34px rgba(55, 51, 42, .09);
  outline: none;
}

.hero-hot-card strong {
  display: block;
  margin: 8px 0;
  font-size: 21px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.hero-hot-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  position: relative;
  z-index: 1;
}

.hero-hot-name strong { margin: 0; }

.hero-hot-avatar {
  width: 38px;
  height: 38px;
}

.hero-hot-card p:not(.eyebrow) {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: #4d5553;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hero-hot-reason b,
.hero-hot-reason span {
  display: inline;
}

.hero-hot-reason b {
  margin-right: 7px;
  border-radius: 5px;
  padding: 2px 6px;
  background: #e9eee2;
  color: var(--accent-ink);
  font-size: 14px;
}

.hero-hot-reason span {
  color: #4d5553;
  font-size: 14px;
  font-weight: 650;
}

.hero-hot-card p.hero-hot-reason {
  display: block;
  margin-top: 12px;
  border-top: 1px solid #e5e2da;
  padding-top: 11px;
  overflow: visible;
  -webkit-box-orient: initial;
  -webkit-line-clamp: none;
}

.hero-hot-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-hot-metrics span {
  border: 0;
  border-top: 2px solid #dce2d4;
  border-radius: 8px;
  padding: 8px;
  background: #f7f6f2;
}

.hero-hot-metrics b {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.hero-hot-card em {
  margin-top: 6px;
  color: var(--accent);
  font-style: normal;
}

.hero-hot-card a {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 16px 0 8px;
  max-width: 960px;
}

.search-box input, .selector-form textarea, .filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.search-box input {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
}

.search-box button, .selector-form button {
  padding: 0 18px;
  border-color: rgba(15, 159, 149, .38);
  background: var(--accent);
  color: #fff;
  transition: background .15s ease, border-color .15s ease, filter .15s ease;
}

.search-box button:hover,
.search-box button:focus-visible,
.selector-form button:hover,
.selector-form button:focus-visible {
  background: #52663c;
  border-color: rgba(15, 159, 149, .55);
  filter: none;
}

.search-box button:active,
.selector-form button:active {
  filter: brightness(.94);
}

.search-hint {
  max-width: 960px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 820px;
  margin: 0 0 12px;
}

.search-suggestions span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.search-suggestions button {
  flex: 0 0 auto;
  border: 1px solid rgba(15, 159, 149, .2);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.quick-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.quick-tags button {
  flex: 0 0 auto;
  border: 1px solid rgba(15, 159, 149, .22);
  border-radius: 999px;
  padding: 7px 11px;
  background: #f4fbfb;
  color: var(--accent-ink);
  font-weight: 800;
  white-space: nowrap;
}

.radar-summary, .quality-summary {
  display: none;
}

.radar-summary > span {
  color: var(--muted);
  font-weight: 800;
}

.radar-summary > strong {
  display: block;
  margin: 14px 0 8px;
  font-size: 48px;
  line-height: 1;
}

.radar-summary p {
  color: var(--muted);
  line-height: 1.65;
}

.radar-summary .refresh-status {
  margin: 14px 0 0;
  border: 1px solid rgba(15, 159, 149, .2);
  border-radius: 8px;
  padding: 10px;
  background: var(--soft);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
}

.radar-summary dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 0;
}

.radar-summary dl div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fafcff;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

dd {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 900;
}

.content-grid {
  display: block;
  width: min(calc(100% - clamp(32px, 7.2vw, 104px)), 1360px);
  margin: 0 auto;
}

.selector-panel,
.detail-page {
  width: min(calc(100% - clamp(32px, 7.2vw, 104px)), 1360px);
  margin: 0 auto;
}

.project-pagination {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.project-pagination button {
  border: 1px solid rgba(15, 159, 149, .3);
  border-radius: 7px;
  padding: 9px 16px;
  background: #fff;
  color: var(--accent-ink);
  font-weight: 900;
  cursor: pointer;
}

.project-pagination button:hover {
  border-color: var(--accent);
  background: var(--soft);
}

.pagination-error {
  color: #b42318;
  font-style: normal;
  font-weight: 900;
}

.filter-panel {
  display: none;
  margin-bottom: 14px;
  padding: 16px;
}

body[data-githubai-view="categories"].filters-open .filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.advanced-filter-mount .filter-panel {
  margin: 14px 0 2px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.panel-head, .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.filter-panel label {
  display: block;
  margin-top: 0;
}

.filter-panel [data-filter-field="collection"],
.filter-panel [data-filter-field="scenario"],
.filter-panel [data-filter-field="skill"],
.filter-panel [data-filter-field="resource"] {
  display: none;
}

body[data-githubai-view="categories"].filters-open .filter-panel [data-filter-field="collection"],
body[data-githubai-view="categories"].filters-open .filter-panel [data-filter-field="scenario"],
body[data-githubai-view="categories"].filters-open .filter-panel [data-filter-field="category"],
body[data-githubai-view="categories"].filters-open .filter-panel [data-filter-field="deployment"],
body[data-githubai-view="categories"].filters-open .filter-panel [data-filter-field="license"],
body[data-githubai-view="categories"].filters-open .filter-panel [data-filter-field="resource"] {
  display: block;
}

.filter-panel label span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.filter-panel select {
  min-height: 40px;
  padding: 0 10px;
  background: var(--panel);
  color: var(--ink);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.filter-panel select.has-value {
  border-color: #39766d;
  background: var(--selection-surface);
  color: var(--selection-ink);
  font-weight: 900;
  box-shadow: inset 0 -2px 0 #39766d;
}

.filter-panel button {
  padding: 7px 10px;
}

.filter-reset-btn {
  align-self: end;
  min-height: 40px;
  border: 1px solid #cfd8e5;
  border-radius: 8px;
  background: #f8f7f3;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.filter-reset-btn:hover,
.filter-reset-btn:focus-visible {
  border-color: #a6af99;
  background: #ecefe7;
  color: var(--accent-ink);
}

.filter-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.main-panel, .selector-panel {
  padding: 14px;
  min-width: 0;
}

.main-panel,
.selector-panel,
.detail-page {
  background: var(--panel);
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.main-panel .eyebrow:empty {
  display: none;
}

body:not([data-githubai-view="selector"]) .section-actions {
  display: none;
}

.section-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.result-count, .rule-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.spotlight-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  min-width: 0;
  }

.status-panel {
  display: none;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.status-grid div {
  min-width: 0;
  border: 1px solid rgba(15, 159, 149, .2);
  border-radius: 8px;
  padding: 10px;
  background: #f8fffd;
}

.status-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-ink);
  font-size: 12px;
}

.status-grid span {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.view-note {
  flex: 0 0 360px;
  margin: 0;
  border: 1px solid rgba(15, 159, 149, .2);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--soft);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.ranking-tabs {
  display: grid;
  gap: 14px;
  margin-bottom: 4px;
}

.ranking-tab-group > h3 {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 13px;
}

.ranking-tab-group > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 10px;
}

.ranking-tabs button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas: "icon title" "icon source" "icon fresh";
  align-items: center;
  gap: 2px 9px;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.ranking-tabs button strong {
  grid-area: title;
  color: var(--ink);
  line-height: 1.25;
}

.ranking-tabs button em,
.ranking-tabs button small {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-tabs button em {
  grid-area: source;
}

.ranking-tabs button small {
  grid-area: fresh;
  color: #64748b;
}

.ranking-note {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  border: 1px solid rgba(15, 159, 149, .18);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f7fffd;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.ranking-note strong {
  color: var(--accent-ink);
  font-weight: 950;
}

.ranking-note span {
  flex: 1 1 360px;
  font-weight: 760;
}

.ranking-note em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.ranking-tabs button.active {
  border-color: rgba(15, 159, 149, .32);
  background: var(--soft);
  color: var(--accent-ink);
}

.ranking-tabs button:hover,
.ranking-tabs button:focus-visible {
  border-color: rgba(15, 159, 149, .35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
  transform: translateY(-1px);
  outline: none;
}

.compact-note {
  display: -webkit-box;
  max-width: 520px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.trend-direction-strip {
  grid-column: 1 / -1;
  border: 1px solid rgba(15, 159, 149, .18);
  border-radius: 8px;
  padding: 10px;
  background: #fbfffd;
}

.trend-direction-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.trend-direction-head h3 {
  margin: 0;
  font-size: 15px;
}

.trend-direction-head p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.trend-direction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.trend-direction-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #fff;
  text-align: left;
}

.trend-direction-card strong,
.trend-direction-card span,
.trend-direction-card em {
  display: block;
}

.trend-direction-card strong {
  color: var(--ink);
  font-size: 14px;
}

.trend-direction-card span {
  margin-top: 4px;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 900;
}

.trend-direction-card em {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.spotlight-card, .project-card, .selector-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.entry-group {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 13px 12px;
  background: var(--panel);
  overflow: hidden;
}

body[data-githubai-view="home"] .spotlight-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

body[data-githubai-view="home"] .entry-head {
  display: block;
}

body[data-githubai-view="home"] .entry-head p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-githubai-view="home"] .entry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

body[data-githubai-view="home"] .entry-card {
  min-height: 56px;
  padding: 9px 5px;
}

body[data-githubai-view="home"] .entry-card em {
  -webkit-line-clamp: 1;
}

.entry-group-primary {
  border-color: var(--line);
  background: var(--panel);
}

.entry-group-skills {
  border-color: var(--line);
  background: var(--panel);
}

.entry-group-wide {
  grid-column: 1 / -1;
}

.entry-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.entry-head h3 {
  margin: 0;
  font-size: 16px;
}

.entry-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 16px;
  min-width: 0;
  max-width: 100%;
}

.entry-card {
  min-height: 56px;
  border: 0;
  border-bottom: 1px solid #e2dfd6;
  border-radius: 0;
  padding: 10px 5px;
  background: #f8f8f3;
  text-align: left;
  box-shadow: none;
  transition: color .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  font-family: var(--directory-font);
}

.entry-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-areas: "icon title" "body body" "path path";
  align-content: start;
  column-gap: 8px;
}

.entry-card:hover,
.entry-card:focus-visible {
  border-bottom-color: #aeb7a3;
  background: #f1f4eb;
  box-shadow: none;
  transform: none;
  outline: none;
}

.entry-card.active {
  border-bottom-color: #39766d;
  background: var(--selection-surface);
  color: var(--selection-ink);
  box-shadow: inset 0 -1px 0 #39766d;
}

.entry-card > .svg-icon {
  color: var(--icon-color);
}

.entry-card[data-id="anthropic"] > .svg-icon { color: #9a6748; }
.entry-card[data-id="openai"] > .svg-icon { color: #397166; }
.entry-card[data-id="gemini"] > .svg-icon { color: #725c9f; }
.entry-card[data-id="deepseek"] > .svg-icon { color: #3f6d9d; }

.entry-card.active .svg-icon {
  color: #39766d;
}

.entry-card strong {
  grid-area: title;
  display: flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

.entry-card em {
  grid-area: body;
  display: -webkit-box;
  overflow: hidden;
  color: #626966;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.entry-card small {
  grid-area: path;
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.entry-group-compact .entry-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 14px;
}

.entry-group-collections .entry-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-height: 292px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1px 4px 0 0;
}

.entry-group-scroll {
  overflow: hidden;
}

.category-tabs {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.category-tab-nav {
  display: inline-grid;
  grid-template-columns: repeat(3, max-content);
  gap: 8px;
  justify-self: start;
  width: max-content;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #e1ded6;
  border-radius: 8px;
  padding: 4px;
  background: #f7f6f2;
}

.category-tab-nav button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  border: 1px solid #e7e3da;
  border-radius: 5px;
  padding: 7px 20px 8px;
  background: #fbfaf7;
  color: #4d5554;
  text-align: center;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
  font-family: var(--directory-font);
  min-height: 40px;
}

.category-tab-nav button::after {
  position: absolute;
  right: 32%;
  bottom: 2px;
  left: 32%;
  height: 2px;
  border-radius: 999px;
  background: #39766d;
  content: "";
  opacity: 0;
  transform: scaleX(.55);
  transition: opacity .16s ease, transform .16s ease;
}

.category-tab-nav button.active {
  border-color: rgba(91, 119, 110, .16);
  background: var(--selection-surface);
  color: var(--selection-ink);
  box-shadow: none;
}

.category-tab-nav button.active .svg-icon {
  color: #39766d;
}

.category-tab-nav button.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.category-tab-nav button:not(.active) {
  border-color: #e7e3da;
  background: #fbfaf7;
  color: #4d5554;
}

.category-tab-nav button:hover,
.category-tab-nav button:focus-visible {
  border-color: #d3ddd2;
  background: #eff3ee;
  color: #285f58;
  box-shadow: none;
  transform: none;
  outline: none;
}

.category-tab-nav strong {
  min-width: max-content;
  flex: 0 0 auto;
  overflow: visible;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: clip;
  white-space: nowrap;
}

.category-tab-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px 14px;
  background: var(--panel);
}

.category-tab-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 900;
}

.category-tab-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 16px;
  max-height: 260px;
  overflow-y: auto;
  padding: 1px 2px 0 0;
}

.category-tab-grid-project-types {
  /* Five columns make the current 16 project types exactly four rows. */
  max-height: 276px;
}

.category-tab-card {
  min-height: 68px;
}

.githubai-loading .hero-hot-card,
.githubai-loading .spotlight-grid,
.githubai-loading .project-list {
  pointer-events: none;
}

.githubai-skeleton {
  border-radius: 6px;
  background: #dfddd7;
  animation: githubai-skeleton-pulse 1.35s ease-in-out infinite alternate;
}

@keyframes githubai-skeleton-pulse {
  from { opacity: .58; }
  to { opacity: .9; }
}

.hero-hot-skeleton {
  min-height: 170px;
}

.directory-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.directory-skeleton-grid span {
  min-height: 50px;
}

.directory-skeleton-grid.two-line span {
  min-height: 68px;
}

body:not([data-githubai-view="trends"]) .directory-skeleton-grid span,
body[data-githubai-view]:not([data-githubai-view="trends"]) .directory-skeleton-grid span {
  min-height: 68px;
}

body:not([data-githubai-view="trends"]) #rankingInsights,
body[data-githubai-view]:not([data-githubai-view="trends"]) #rankingInsights {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .githubai-skeleton {
    animation: none;
    opacity: .74;
  }
}

body[data-initial-githubai-view="selector"] #selectorPanel.hidden {
  display: block !important;
}

body[data-initial-githubai-view="selector"] .content-grid {
  display: none !important;
}

.project-skeleton-card {
  min-height: 250px;
  border: 1px solid var(--line);
}

.project-loading-status {
  grid-column: 1 / -1;
  margin: 0;
  color: #626966;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.ranking-insight-skeleton {
  min-height: 520px;
}

.category-filter-card {
  display: grid;
  width: 100%;
  min-height: 180px;
  align-content: center;
  justify-items: start;
  border: 1px dashed rgba(15, 159, 149, .35);
  border-radius: 8px;
  padding: 12px;
  background: #f8fffd;
  color: var(--ink);
  text-align: left;
}

.category-filter-card span {
  font-size: 20px;
}

.category-filter-card strong {
  margin-top: 8px;
  font-size: 15px;
}

.category-filter-card em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.4;
}

.spotlight-card {
  flex: 0 0 210px;
  min-height: 72px;
  padding: 10px 12px;
  background: #fff;
  text-align: left;
}

.spotlight-card b, .spotlight-card i {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
}

.spotlight-card b {
  color: var(--accent);
}

.spotlight-card i {
  color: #7a8699;
}

.spotlight-card-sectioned {
  min-height: 72px;
}

.spotlight-card strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.35;
}

.spotlight-card span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.spotlight-card em, .spotlight-card small {
  display: block;
  margin-top: 8px;
  color: #334155;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.45;
}

.spotlight-card small {
  color: var(--accent);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfcff;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
}

.empty-state p {
  margin-bottom: 12px;
  color: var(--muted);
}

.empty-state button {
  min-height: 38px;
  border: 1px solid rgba(15, 159, 149, .35);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.project-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  text-align: left;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: border-color .15s ease, box-shadow .15s ease;
  cursor: default;
}

.project-card:hover, .project-card:focus-within {
  border-color: rgba(15, 159, 149, .35);
  box-shadow: 0 12px 34px rgba(15, 23, 42, .08);
  transform: none;
  outline: none;
}

.project-avatar-link {
  align-self: start;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.project-avatar-link:focus-visible,
.project-title:focus-visible,
.tag-row a:focus-visible {
  outline: 3px solid rgba(49, 91, 255, .26);
  outline-offset: 2px;
}

.project-avatar {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #eceee9;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.project-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #edf2f7;
  object-fit: cover;
  opacity: 0;
  transition: opacity .16s ease;
}

.project-avatar b {
  display: block;
  padding: 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-avatar b {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 0;
}

.skill-avatar .avatar-fallback-icon {
  width: 58%;
  height: 58%;
  color: var(--accent);
}

.project-avatar.avatar-loaded img {
  opacity: 1;
}

.project-avatar.avatar-loaded b {
  visibility: hidden;
}

.project-avatar.avatar-failed b {
  visibility: visible;
}

.detail-avatar {
  width: 56px;
  height: 56px;
  font-size: 15px;
}

.project-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

.project-title strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card p,
.project-summary {
  display: -webkit-box;
  overflow: hidden;
  margin: var(--project-summary-spacing);
  color: #4d5760;
  font-size: var(--project-summary-size);
  line-height: var(--project-summary-leading);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-card:not(.skill-card) .project-summary {
  display: block;
  overflow: visible;
  max-width: 88ch;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  -webkit-line-clamp: unset;
}

.card-why-watch {
  display: block;
  margin: 2px 0 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.card-why-watch b {
  margin-right: 6px;
  color: var(--accent-ink);
  font-size: 14px;
}

.project-copy-link {
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
}

.project-copy-link:hover {
  color: var(--accent-ink);
}

.project-copy-link:focus-visible {
  outline: 2px solid rgba(49, 91, 255, .22);
  outline-offset: 2px;
}

.meta-row, .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-row span, .tag-row span, .tag-row a {
  border-radius: 999px;
  padding: 4px 7px;
  background: #f1f5f9;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.ranking-reason {
  display: block;
  margin: 8px 0;
  border-left: 3px solid rgba(15, 159, 149, .34);
  padding-left: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.quality-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 7px 0 2px;
}

.ranking-evidence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 7px 0 2px;
}

.ranking-evidence-row > span {
  border: 1px solid #d9e4ef;
  border-radius: 999px;
  padding: 3px 7px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.ranking-evidence-row > span[data-kind="official"] {
  border-color: rgba(37, 99, 235, .2);
  background: #eff6ff;
  color: #1d4ed8;
}

.ranking-evidence-row > span[data-kind="measured"],
.ranking-evidence-row > span[data-kind="classic"] {
  border-color: rgba(22, 101, 52, .2);
  background: #f0fdf4;
  color: #166534;
}

.ranking-evidence-row > span[data-kind="estimated"],
.ranking-evidence-row > span[data-kind="review"],
.ranking-evidence-row > span[data-kind="risk"] {
  border-color: rgba(202, 138, 4, .22);
  background: #fff9e8;
  color: #92400e;
}

.quality-row span {
  border: 1px solid rgba(15, 159, 149, .18);
  border-radius: 999px;
  padding: 3px 7px;
  background: #f8fffd;
  color: #0b5f67;
  font-size: 12px;
  font-weight: 900;
}

.quality-row span[data-kind="risk"] {
  border-color: rgba(220, 38, 38, .2);
  background: #fff7f7;
  color: #b42318;
}

.quality-row span[data-kind="review"] {
  border-color: rgba(202, 138, 4, .22);
  background: #fff9e8;
  color: #92400e;
}

.search-result-group {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.search-result-group h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.search-result-group > div {
  display: grid;
  gap: 10px;
}

.tag-row span, .tag-row a {
  border: 1px solid transparent;
  background: var(--soft);
  color: var(--accent-ink);
}

.tag-row b {
  margin-right: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tag-row [data-kind="category"] { border-color: #b9d9f7; background: #f1f8ff; }
.tag-row [data-kind="audience"] { border-color: #f0c98d; background: #fff8ea; color: #7a4812; }
.tag-row [data-kind="collection"] { border-color: #a9ddd5; background: #effbf8; }
.tag-row [data-kind="scenario"] { border-color: #cfd3fb; background: #f5f5ff; }
.tag-row [data-kind="skill"] { border-color: #e2c7f3; background: #fbf4ff; }
.tag-row [data-kind="resource"] { border-color: #d7dee8; background: #f8fafc; }

.tag-row a:hover,
.tag-row a:focus-visible {
  border-color: currentColor;
}

.skills-library-intro {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(109, 129, 86, .22);
  border-radius: 6px;
  padding: 12px;
  background: var(--panel);
}

.skills-control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skills-control-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: #475467;
  font-size: 12px;
  font-weight: 850;
}

.skills-control-row button.active {
  border-color: rgba(49, 91, 255, .3);
  background: #eef1ff;
  color: #2346c7;
}

.skill-card {
  position: relative;
  grid-template-columns: 52px minmax(0, 1fr);
  border-color: var(--line);
  border-radius: 10px;
  padding: 16px;
  background: var(--panel);
  box-shadow: 0 2px 10px rgba(15, 23, 42, .035);
}

.skill-card .project-main {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.skill-card-title {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.skill-card-title strong {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.skill-card-title > span {
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-detail-title {
  display: grid;
  gap: 3px;
}

.skill-detail-title > span {
  color: #667085;
  font-size: .55em;
  font-weight: 750;
  line-height: 1.35;
}

.skill-card .project-summary {
  margin: var(--project-summary-spacing);
  color: #4d5760;
  font-size: var(--project-summary-size);
  line-height: var(--project-summary-leading);
  -webkit-line-clamp: 3;
}

.skill-card-detail-link::after {
  position: absolute;
  inset: 0;
  content: "";
}

.skill-source-line {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin: auto 0 0;
  border-top: 1px solid #edf0f5;
  padding-top: 11px;
  color: #667085;
  font-size: 12px;
  font-weight: 750;
}

.skill-source-repo,
.skill-source-more {
  color: #2346c7;
  text-decoration: none;
}

.skill-card .tag-row {
  margin-top: 10px;
}

.skill-card .tag-row [data-kind="skill-evidence"] {
  border-color: transparent;
  background: #f6e8d9;
  color: #875122;
}

.evidence-level[data-install-status="directory_only"] strong {
  color: #667085;
}

.skill-source-repo:hover,
.skill-source-more:hover {
  text-decoration: underline;
}

.skill-source-more {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 4px;
  padding: 4px 7px;
  background: #f1f4ff;
  color: #3554b8;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
  text-decoration: none;
}

.skill-avatar {
  display: grid;
  place-items: center;
  background: #ecefe5;
  color: var(--accent-ink);
}

.skill-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.evidence-level strong { color: #2346c7; }

.skill-source-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.skill-source-stats > div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.skill-source-stats strong { font-size: 22px; color: #2346c7; }
.skill-source-stats span { color: var(--muted); font-size: 12px; }
.skill-source-list { display: grid; gap: 10px; }

.skill-source-filters {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(150px, 1fr) minmax(150px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faff;
}

.skill-source-filters label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.skill-source-filters input, .skill-source-filters select, .skill-source-filters button { min-height: 40px; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; background: #fff; }
.skill-source-filters button { border-color: #315bff; background: #315bff; color: #fff; font-weight: 850; cursor: pointer; }
.skill-source-filters button.secondary { border-color: var(--line); background: #fff; color: #475467; }

.project-main {
  min-width: 0;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.project-actions a, .project-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.project-actions a:first-child {
  border-color: rgba(15, 159, 149, .35);
  background: #0b5f67;
  color: #fff;
}

.selector-panel {
  margin-bottom: 14px;
  padding: 24px;
}

.selector-panel.hidden { display: none; }

.tool-stack {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: var(--panel);
}

.selector-kicker {
  margin: 7px 0 0;
  color: #4d5b5b;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
}

.selector-guidance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.selector-guidance > span {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 9px;
  align-items: baseline;
  border-top: 1px solid #dcded7;
  padding: 11px 4px 0;
}

.selector-guidance b {
  color: var(--selection-ink);
  font-size: 14px;
  font-weight: 850;
}

.selector-guidance em {
  color: #626966;
  font-size: 14px;
  font-style: normal;
  line-height: 1.45;
}

.hidden-search-input {
  display: none;
}

.selector-form {
  position: relative;
  display: block;
}

.selector-form textarea {
  width: 100%;
  min-height: 156px;
  padding: 18px 18px 68px;
  resize: none;
  border-color: #cfd9e5;
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  font-family: var(--title-font);
  font-size: 17px;
  line-height: 1.62;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .035);
}

.selector-form textarea:focus {
  border-color: #899777;
  outline: 2px solid rgba(95, 116, 71, .2);
}

.selector-form button {
  min-height: 44px;
  padding-inline: 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 850;
}

.unified-finder-form {
  display: block;
}

.selector-actions {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
}

.selector-ai-toggle {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.selector-ai-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.selector-result {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.selector-risk {
  color: #9a4d12;
}

.selector-next-steps ul {
  margin-bottom: 0;
}

.selector-card {
  padding: 12px;
}

.skill-detail-readable pre {
  overflow-x: auto;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  padding: 10px 12px;
  background: #0f172a;
  color: #e2e8f0;
  white-space: pre-wrap;
}

.skill-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.skill-command button {
  min-height: 40px;
  margin-top: 0;
}

.selector-card > strong {
  display: block;
  margin-bottom: 8px;
}

.selector-constraint-list li > span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.selector-muted-card {
  background: #fafafa;
}

.selector-muted-card p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 0;
  border-top: 1px solid #edf1f7;
  padding-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.selector-muted-card b {
  color: var(--ink);
}

.selector-solution-card .project-card {
  width: 100%;
}

.selector-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.selector-mini-grid .project-card {
  grid-template-columns: 36px minmax(0, 1fr);
  padding: 10px;
}

.selector-mini-grid .project-avatar {
  width: 36px;
  height: 36px;
}

.selector-mini-grid .project-title {
  align-items: flex-start;
  flex-direction: column;
}

.project-dialog {
  width: min(920px, calc(100vw - 28px));
  max-height: min(860px, calc(100vh - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(15, 23, 42, .22);
}

.detail-page {
  padding: 18px;
}

body[data-githubai-view="detail"] .hero-grid,
body[data-githubai-view="detail"] .primary-nav,
body[data-initial-githubai-view="detail"] .hero-grid,
body[data-initial-githubai-view="detail"] .primary-nav,
body[data-initial-githubai-view="detail"] .selector-panel,
body[data-initial-githubai-view="detail"] .content-grid,
body[data-initial-githubai-view="detail"] .project-dialog {
  display: none;
}

.selector-examples {
  display: grid;
  gap: 11px;
}

.selector-capability-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.selector-examples-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.selector-examples-head strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
}

.selector-examples-head span {
  color: #737873;
  font-size: 13px;
  line-height: 1.45;
}

.selector-example-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.selector-examples button {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 82px;
  align-content: center;
  border: 1px solid #dedbd2;
  border-radius: 8px;
  padding: 13px 14px;
  background: #faf9f5;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.selector-examples button strong {
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
}

.selector-examples button em {
  color: #6a706d;
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.selector-examples button:hover,
.selector-examples button:focus-visible {
  border-color: #b9c6c0;
  background: #f1f4f1;
  color: var(--selection-ink);
}

.selector-examples button.active {
  border-color: var(--selection-border);
  background: var(--selection-surface);
  color: var(--selection-ink);
  box-shadow: inset 0 -1px 0 #39766d;
}

.selector-examples button.active em {
  color: #496661;
}

.selector-panel .section-head {
  margin-bottom: 12px;
}

.selector-panel .section-head h2 {
  font-size: 26px;
  font-weight: 850;
}

.selector-panel .search-hint {
  margin: 0;
  max-width: 1040px;
  color: #47545a;
  font-size: 16px;
  line-height: 1.68;
}

.selector-capability-note {
  margin: 0;
  line-height: 1.55;
}

.archived-project-note {
  margin-bottom: 14px;
  border: 1px solid #f0c36b;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff8e6;
  color: #7a4b00;
  font-weight: 850;
}

.detail-back-to-top {
  position: sticky;
  bottom: 16px;
  display: block;
  width: fit-content;
  margin: 18px 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.detail-back-to-top:hover,
.detail-back-to-top:focus-visible {
  border-color: #c4c0b3;
  background: #f6f5ef;
  color: #3c4a2f;
}

.detail-page.hidden,
.hidden {
  display: none !important;
}

body[data-initial-githubai-view="detail"] .detail-page.hidden {
  display: block !important;
}

.detail-boot-skeleton {
  display: grid;
  gap: 22px;
  min-height: min(560px, calc(100vh - 48px));
  align-content: start;
  padding: 8px 0 24px;
}

.detail-skeleton-brand {
  width: min(280px, 58vw);
  height: 48px;
}

.detail-loading-shell {
  display: grid;
  gap: 22px;
  min-height: 420px;
  align-content: start;
  padding: 6px 0 24px;
}

.detail-skeleton-head {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: var(--panel);
}

.detail-skeleton-head > span {
  width: 68px;
  height: 68px;
  border-radius: 9px;
}

.detail-skeleton-head > div {
  display: grid;
  gap: 11px;
  align-content: center;
}

.detail-skeleton-head i {
  display: block;
  height: 13px;
  border-radius: 4px;
}

.detail-skeleton-head i:first-child { width: min(360px, 68%); height: 22px; }
.detail-skeleton-head i:nth-child(2) { width: min(760px, 92%); }
.detail-skeleton-head i:last-child { width: min(600px, 76%); }

.detail-skeleton-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-skeleton-sections > span {
  height: 132px;
  border-radius: 10px;
}

.detail-minimal-topbar {
  position: sticky;
  top: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -18px -18px 18px;
  border-bottom: 1px solid var(--line);
  padding: 18px;
  background: var(--panel);
  box-shadow: 0 5px 18px rgba(61, 57, 47, .05);
  isolation: isolate;
}

.detail-page-actions {
  display: flex;
  margin-bottom: 12px;
}

.standalone-detail-head {
  margin-bottom: 6px;
}

.project-dialog::backdrop {
  background: rgba(15, 23, 42, .36);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
}

#projectDetail {
  padding: 24px;
}

.detail-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  padding-right: 42px;
}

.detail-head > div,
.detail-section,
.detail-section li,
.detail-section p,
.skill-source-list li,
.skill-source-list a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-section p,
.detail-section li {
  font-size: 15px;
  line-height: 1.7;
}

.detail-head-readable {
  border: 1px solid #d9ded8;
  border-radius: 14px;
  padding: 24px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(55, 51, 42, .035);
}

.detail-head > img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
}

.detail-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.detail-head p:not(.eyebrow) {
  max-width: 900px;
  color: #4d585b;
  font-size: 16px;
  line-height: 1.68;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.detail-badges span {
  border: 1px solid #cfe3d4;
  border-radius: 4px;
  padding: 4px 9px;
  background: #f1f8f0;
  color: #3f5a30;
  font-size: 13px;
  font-weight: 800;
}

.detail-badges span[data-kind="risk"] {
  border-color: rgba(161, 92, 5, .24);
  background: #fff8ed;
  color: var(--warn);
}

.detail-badges span[data-kind="license-high"], .detail-badges span[data-kind="license-review"] {
  border-color: rgba(161, 92, 5, .24);
  background: #fff8ed;
  color: var(--warn);
}

.detail-badges span[data-kind="license-ok"] {
  border-color: rgba(22, 101, 52, .22);
  background: #f0fdf4;
  color: #166534;
}

.license-decision {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  border: 1px solid rgba(15, 159, 149, .2);
  border-radius: 8px;
  padding: 12px;
  background: #f4fbfb;
}

.license-decision strong {
  color: var(--accent-ink);
  font-size: 15px;
}

.license-decision span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.license-decision-review, .license-decision-high {
  border-color: rgba(161, 92, 5, .24);
  background: #fff8ed;
}

.license-decision-review strong, .license-decision-high strong {
  color: var(--warn);
}

.detail-section {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.detail-section-plain {
  border-top: 0;
}

.detail-review-summary {
  border: 1px solid rgba(15, 159, 149, .18);
  border-radius: 8px;
  padding: 14px;
  background: #fbfffe;
}

.detail-verdict {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid rgba(15, 159, 149, .26);
  border-radius: 8px;
  padding: 16px;
  background: #f8f8f4;
}

.detail-verdict[data-level="explore"] {
  border-color: rgba(202, 138, 4, .24);
  background: #fffaf0;
}

.detail-verdict-head {
  display: grid;
  gap: 5px;
}

.detail-verdict-head span {
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 950;
}

.detail-verdict-head strong {
  max-width: 920px;
  color: #172033;
  font-size: 18px;
  line-height: 1.45;
}

.detail-verdict-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.detail-verdict-grid > div {
  min-width: 0;
  border: 1px solid rgba(15, 159, 149, .14);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, .88);
}

.detail-verdict-grid span,
.detail-verdict-grid strong {
  display: block;
}

.detail-verdict-grid span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.detail-verdict-grid strong {
  color: #172033;
  font-size: 13px;
  line-height: 1.4;
}

.detail-readable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-readable-grid > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--panel);
}

.detail-readable-grid h3,
.detail-section-plain h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.detail-readable-grid p,
.detail-section-plain p {
  color: var(--muted);
  line-height: 1.65;
}

.detail-fit-section {
  border-top: 0;
  padding-top: 0;
}

.detail-not-for {
  border: 1px solid rgba(202, 138, 4, .2);
  border-radius: 8px;
  padding: 13px;
  background: #fffaf0;
}

.detail-not-for ul {
  margin: 0;
  padding-left: 18px;
  color: #6b4e16;
  font-weight: 760;
  line-height: 1.6;
}

.detail-fit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.detail-fit-grid > div,
.checklist-grid > div,
.knowledge-grid > div,
.decision-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
}

.detail-fit-grid strong,
.checklist-grid strong,
.knowledge-grid strong,
.decision-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.detail-fit-grid ul,
.detail-readable-grid ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.detail-fit-grid > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-soft);
}

.detail-fit-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.decision-card {
  min-width: 0;
  border: 1px solid rgba(15, 159, 149, .24);
  border-radius: 8px;
  padding: 12px;
  background: #f5fffc;
}

.decision-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-ink);
  font-size: 13px;
}

.decision-card span {
  color: #172033;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.detail-section :is(h2, h3) {
  margin-bottom: 8px;
  font-size: 18px;
}

.detail-facts-shell {
  margin-top: 24px;
  border: 1px solid #dcded8;
  border-radius: 14px;
  padding: 24px;
  background: #faf9f5;
}

.detail-facts-shell > header {
  border-bottom: 1px solid #dedfd9;
  padding-bottom: 16px;
}

.detail-facts-shell > header > span {
  color: var(--selection-ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
}

.detail-facts-shell > header h2 {
  margin: 5px 0 0;
  color: #17262b;
  font-size: 23px;
  line-height: 1.35;
}

.detail-facts-shell > header p {
  margin: 5px 0 0;
  color: #65706e;
  font-size: 14px;
  line-height: 1.6;
}

.detail-facts-shell > .detail-section {
  margin-top: 20px;
  border-top: 0;
  padding-top: 0;
}

.detail-facts-shell > .license-decision {
  margin-top: 20px;
}

.detail-facts-shell .detail-readable-grid > div,
.detail-facts-shell .knowledge-grid > div {
  background: var(--panel);
}

.detail-related-shell > p {
  margin: -2px 0 14px;
  color: #65706e;
  font-size: 15px;
  line-height: 1.55;
}

.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-head-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.detail-head-row .detail-badges {
  margin: 0;
}

.detail-head-row .detail-actions {
  margin-left: auto;
}

.detail-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid rgba(15, 159, 149, .38);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, filter .15s ease;
}

.detail-primary-action:hover,
.detail-primary-action:focus-visible {
  background: #52663c;
  border-color: rgba(15, 159, 149, .55);
  color: #fff;
}

.detail-primary-action:active {
  filter: brightness(.94);
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-list-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel-soft);
}

.knowledge-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr 1fr;
  gap: 10px;
}

.knowledge-grid > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-soft);
}

.knowledge-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.knowledge-grid p {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.checklist-grid > div {
  min-width: 0;
  border: 1px solid rgba(15, 159, 149, .22);
  border-radius: 8px;
  padding: 12px;
  background: #f8fffd;
}

.checklist-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-ink);
  font-size: 13px;
}

.checklist-grid span {
  display: block;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.pill-row, .activity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-row span, .activity-row span {
  border-radius: 999px;
  padding: 4px 7px;
  background: #f1f5f9;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

.detail-section .pill-row a,
.detail-section .pill-row span {
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.detail-section .pill-row a {
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.detail-section .pill-row a[data-kind="category"] {
  border-color: #b9d9f7;
  background: #f1f8ff;
  color: #315d8a;
}

.detail-section .pill-row a[data-kind="scenario"] {
  border-color: #cfd3fb;
  background: #f5f5ff;
  color: #3f3d8a;
}

.detail-section .pill-row a[data-kind="category"]:hover,
.detail-section .pill-row a[data-kind="category"]:focus-visible,
.detail-section .pill-row a[data-kind="scenario"]:hover,
.detail-section .pill-row a[data-kind="scenario"]:focus-visible {
  border-color: currentColor;
  outline: none;
}

.detail-section .pill-row a:focus-visible {
  outline: 3px solid rgba(49, 91, 255, .26);
  outline-offset: 2px;
}

.detail-section .pill-row span[data-kind="audience"] {
  border-color: #f0c98d;
  background: #fff8ea;
  color: #7a4812;
}

.detail-section .pill-row span[data-kind="neutral"] {
  border-color: #d7dee8;
  background: #f8fafc;
  color: #475467;
}

.risk-tag {
  border-color: rgba(180, 83, 9, .28);
  background: #fff7ed;
  color: #9a3412;
}

.language-bars {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.language-row {
  display: grid;
  grid-template-columns: minmax(62px, .8fr) minmax(80px, 1fr) 42px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.language-row meter {
  width: 100%;
  height: 8px;
}

.language-row em {
  font-style: normal;
  text-align: right;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  border-radius: 8px;
  padding: 10px 12px;
  background: #172033;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 36px rgba(15, 23, 42, .22);
}

@media (max-width: 1280px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 18px;
    padding-block: 10px 0;
  }

  .site-header .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-header .back-btn {
    grid-column: 2;
    grid-row: 1;
  }

  .site-header .top-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 3px;
  }

  .site-header .top-nav button::after {
    bottom: -2px;
  }
}

@media (max-width: 980px) {
  .skill-source-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .top-nav {
    display: flex;
    justify-content: flex-start;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 18px;
    padding-block: 10px 0;
  }

  .site-header .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-header .back-btn {
    grid-column: 2;
    grid-row: 1;
  }

  .site-header .top-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 3px;
  }

  .site-header .top-nav button::after {
    bottom: -2px;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel {
    display: none;
    position: static;
  }

  body[data-githubai-view="selector"].filters-open .filter-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-githubai-view="categories"].filters-open .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .spotlight-grid, .project-list, .detail-list, .detail-list-three, .knowledge-grid, .decision-grid, .selector-mini-grid, .detail-fit-grid, .checklist-grid, .status-grid, .detail-readable-grid {
    grid-template-columns: 1fr;
  }

  .detail-verdict-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .selector-example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-skeleton-sections {
    grid-template-columns: 1fr;
  }

  .trend-direction-head {
    display: block;
  }

  .trend-direction-head p {
    margin-top: 4px;
  }

  .trend-direction-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .trend-direction-card {
    flex: 0 0 210px;
  }

  body[data-githubai-view="home"] .spotlight-grid {
    grid-template-columns: 1fr;
  }

  .category-tab-nav {
    display: flex;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .category-tab-nav button {
    flex: 0 0 auto;
  }

  .category-tab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-group-collections .entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    overflow-x: hidden;
    overflow-y: auto;
  }

  .entry-grid {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .entry-card {
    flex: 0 0 210px;
  }

  .entry-group-compact .entry-card {
    flex-basis: 168px;
  }

}

@media (max-width: 560px) {
  body[data-githubai-view="categories"].filters-open .filter-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .skill-source-filters {
    grid-template-columns: 1fr;
  }

  .detail-verdict-grid {
    grid-template-columns: 1fr;
  }

  .tool-stack {
    padding: 16px;
  }

  .selector-guidance,
  .selector-example-grid {
    grid-template-columns: 1fr;
  }

  .selector-examples-head {
    display: grid;
    gap: 4px;
  }

  .detail-skeleton-head {
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 16px;
  }

  .detail-skeleton-head > span {
    width: 54px;
    height: 54px;
  }

  .detail-facts-shell {
    padding: 18px;
  }

  .detail-minimal-topbar {
    gap: 8px;
    padding: 12px;
  }

  .detail-minimal-topbar .brand {
    min-width: 0;
  }

  .detail-minimal-topbar .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .detail-minimal-topbar .brand > span:last-child {
    min-width: 0;
  }

  .detail-minimal-topbar .brand strong {
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .detail-minimal-topbar .brand em {
    display: none;
  }

  .detail-minimal-topbar .back-btn {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 8px;
    font-size: 13px;
  }
  .radar-shell {
    padding: 0 0 32px;
  }

  .site-header {
    min-height: 0;
    margin-bottom: 12px;
    padding: 10px 10px 0;
  }

  .site-header .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .site-header .brand > span:last-child {
    min-width: 0;
  }

  .site-header .brand strong {
    font-size: 17px;
    white-space: nowrap;
  }

  .site-header .brand em {
    max-width: min(60vw, 310px);
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header .back-btn {
    min-height: 34px;
    padding: 6px 8px;
  }

  .site-header .back-btn span:last-child {
    display: none;
  }

  .top-nav {
    display: flex;
    flex-wrap: nowrap;
    margin-inline: -2px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
    scrollbar-color: #8d997d #e4e2dc;
    scrollbar-width: thin;
  }

  .top-nav::-webkit-scrollbar { height: 3px; }
  .top-nav::-webkit-scrollbar-track { background: #e4e2dc; }
  .top-nav::-webkit-scrollbar-thumb { border-radius: 999px; background: #8d997d; }

  .top-nav-scroll-hint {
    display: inline-flex;
    grid-column: 1 / -1;
    grid-row: 3;
    align-items: center;
    justify-self: end;
    gap: 5px;
    margin: -1px 2px 5px 0;
    color: #687066;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
  }

  .top-nav-scroll-hint > span {
    color: var(--accent-ink);
    font-size: 14px;
  }

  .top-nav button {
    flex: 0 0 120px;
    min-width: 120px;
    min-height: 54px;
    padding-inline: 8px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .top-nav button::after {
    bottom: -2px;
  }

  .search-box, .selector-form, .unified-finder-form {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .search-box input {
    min-height: 44px;
  }

  .search-box button {
    min-height: 42px;
  }

  .search-suggestions {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .radar-summary dl {
    grid-template-columns: 1fr;
  }

  .quality-summary {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 24px;
    line-height: 1.12;
  }

  .entry-group {
    padding: 9px;
  }

  body[data-githubai-view="home"] .spotlight-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .category-tab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 360px;
  }

  .entry-group-collections .entry-grid {
    grid-template-columns: 1fr;
  }

  .hero-hot-metrics {
    grid-template-columns: 1fr;
  }

  body[data-githubai-view="home"] .entry-group {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  body[data-githubai-view="home"] .entry-grid {
    display: flex;
    overflow-x: auto;
  }

  .entry-head {
    display: block;
  }

  .entry-head p {
    display: none;
  }

  .main-panel, .selector-panel {
    padding: 12px;
  }

  .content-grid,
  .selector-panel,
  .detail-page {
    width: calc(100% - 20px);
  }

  .section-head {
    align-items: flex-start;
  }

  .section-head h2 {
    font-size: 19px;
  }

  .spotlight-card {
    flex-basis: 150px;
    min-height: 54px;
    padding: 8px 9px;
  }

  .spotlight-card span {
    display: none;
  }

  .project-card {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 10px;
  }

  .project-avatar {
    width: 38px;
    height: 38px;
  }
}
