/* Skill Rank — token-only overrides on top of kit.css */
.sr-cats {
  flex-wrap: wrap;
  gap: 6px;
}
.sr-sort button[aria-pressed="true"] {
  color: var(--sig);
}
.sr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sr-toolbar #filterStatus {
  margin: 0;
  flex: 1 1 140px;
}
.sr-toolbar .sr-sort {
  flex: 0 0 auto;
}
#rankTable tbody tr[hidden] {
  display: none;
}
#rankTable .pp-table td,
#rankTable td {
  padding-top: 7px;
  padding-bottom: 7px;
  vertical-align: middle;
}
.sr-skill__name {
  font-weight: 580;
  color: inherit;
}
.sr-skill__repo {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  margin-top: 1px;
  line-height: 1.25;
}
.sr-score {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 88px;
}
.sr-score .pp-meter {
  flex: 1 1 48px;
  min-width: 36px;
  max-width: 72px;
}
.sr-score-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}
.sr-community {
  white-space: nowrap;
  line-height: 1.2;
}
.sr-col-act {
  width: 56px;
  text-align: right;
}
.sr-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.sr-copy {
  width: 32px;
  height: 32px;
  padding: 0;
}
.sr-copy svg {
  width: 16px;
  height: 16px;
}
.sr-ext {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--ink-3);
  font-size: 14px;
  border-radius: var(--r-2);
}
.sr-ext:hover {
  color: var(--ink);
  background: var(--hover);
}
.sr-more-row {
  align-items: center;
  gap: 12px;
}
.sr-table-note {
  margin: -4px 0 0;
}
.sr-mobile-meta {
  display: none;
}
.sr-around-item.pp-item {
  grid-template-columns: minmax(0, 1fr) 260px auto;
  align-items: start;
}
.sr-around-lead {
  min-width: 0;
}
.sr-around-meta {
  text-align: left;
  align-self: center;
  min-width: 0;
  word-break: break-word;
}
.sr-around-kind {
  flex-wrap: wrap;
}
.sr-cat-head {
  list-style: none;
  padding: 10px 14px 4px;
  border-top: 1px solid var(--line);
}
.sr-cat-head:first-child {
  border-top: 0;
  padding-top: 6px;
}
.sr-cat-head .pp-kicker {
  font-size: 11px;
  letter-spacing: 0.04em;
}
.sr-item .pp-code {
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow-x: auto;
}
.sr-stars {
  flex-wrap: wrap;
  gap: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 640px) {
  .sr-cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .sr-cats::-webkit-scrollbar {
    display: none;
  }
  #rankTable thead {
    display: none;
  }
  #rankTable tbody tr.sr-row {
    display: grid;
    grid-template-columns: 28px 1fr auto auto;
    grid-template-areas:
      "rank skill skill copy"
      "meta meta meta meta";
    gap: 4px 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
  }
  #rankTable tbody tr.sr-row td {
    padding: 0;
    border: 0;
  }
  #rankTable .sr-m-rank {
    grid-area: rank;
    align-self: start;
    padding-top: 2px;
  }
  #rankTable .sr-skill {
    grid-area: skill;
    min-width: 0;
  }
  #rankTable .sr-skill__repo {
    display: none;
  }
  #rankTable .sr-d-cat,
  #rankTable .sr-d-stars,
  #rankTable .sr-d-score,
  #rankTable .sr-ext {
    display: none !important;
  }
  #rankTable .sr-actions {
    grid-area: copy;
    justify-content: flex-end;
  }
  #rankTable .sr-mobile-meta {
    display: block !important;
    grid-area: meta;
  }
  .pp-table-wrap {
    overflow-x: visible;
  }
  #rankTable.pp-table {
    display: block;
  }
  #rankTable tbody {
    display: block;
  }
  .sr-around-item.pp-item {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "lead open"
      "meta meta";
  }
  .sr-around-lead {
    grid-area: lead;
  }
  .sr-around-meta {
    grid-area: meta;
  }
  .sr-around-item .pp-item__end {
    grid-area: open;
    align-self: start;
  }
}
