.repo-shell {
  width: min(calc(100% - clamp(2rem, 5.6vw, 5.5rem)), 94rem);
  min-height: calc(100svh - 5rem);
  padding-block: 1.75rem 4.5rem;
}
.repo-overview { padding-top: clamp(2.5rem, 5.65vw, 5.375rem); }
.repo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.75vw, 3.75rem);
  align-items: center;
}
.repo-hero-copy h1 {
  font: 680 clamp(3rem, 5.6vw, 5.375rem)/1.035 var(--sans);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.repo-hero-copy p {
  max-width: 43rem;
  margin-top: clamp(1rem, 2.25vw, 2rem);
  color: var(--muted);
  font-size: clamp(1.125rem, 1.85vw, 1.75rem);
  line-height: 1.45;
}
.repo-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(1.5rem, 2.5vw, 2.5rem); }
.repo-hero-actions .button {
  min-height: clamp(3rem, 4.6vw, 4.5rem);
  padding-inline: clamp(1rem, 1.6vw, 1.75rem);
  border-radius: .75rem;
  font-size: clamp(1rem, 1.55vw, 1.5rem);
}
.repo-shell svg { flex: none; vertical-align: middle; }
.repo-spotlight, .repo-stat, .repo-toolbar, .repo-list, .repo-detail-panel {
  border: 1px solid var(--rule);
  background: rgb(20 31 40 / .84);
}
.repo-spotlight {
  align-self: stretch;
  min-width: 0;
  min-height: clamp(24rem, 33.4vw, 32rem);
  padding: clamp(.875rem, 1.45vw, 1.375rem);
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
}
.repo-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 3.375rem;
  height: 3.375rem;
  border: 1px solid var(--rule);
  border-radius: .75rem;
  background: #27343f;
  color: var(--ink);
}
.repo-spotlight-heading {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .125rem .125rem clamp(.875rem, 1.2vw, 1.25rem);
}
.repo-spotlight-heading h2 {
  font-size: clamp(1.125rem, 1.7vw, 1.625rem);
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.25;
}
.repo-spotlight-heading p { margin-top: .25rem; color: var(--muted); font-size: clamp(.875rem, 1.3vw, 1.25rem); }
.repo-spotlight-list, .repo-list, .repo-file-list, .repo-topics, .repo-languages ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.repo-spotlight-row {
  min-height: clamp(4.5rem, 6.1vw, 5.875rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.625rem, 1.4vw, 1.5rem);
  padding: .625rem clamp(.625rem, 1.25vw, 1.25rem);
  border: 1px solid transparent;
  border-bottom-color: var(--subtle-rule);
  border-radius: .875rem;
}
.repo-spotlight-list li:first-child .repo-spotlight-row {
  border-color: #2c4c3f;
  background: #162c28;
}
.repo-spotlight-row:hover, .repo-spotlight-list li:first-child .repo-spotlight-row:hover {
  border-color: #4b625f;
  background: var(--hover);
}
.repo-spotlight-rank {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #677785;
  border-radius: 50%;
  color: var(--forest);
  font: 650 .875rem/1 var(--mono);
}
.repo-spotlight-list li:first-child .repo-spotlight-rank {
  border-color: #46bb65;
  background: #214833;
  color: #97f0a8;
}
.repo-spotlight-row strong {
  display: block;
  font-size: clamp(.9375rem, 1.4vw, 1.375rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.repo-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .875rem;
  margin-top: .375rem;
  color: var(--muted);
  font-size: clamp(.8125rem, 1.1vw, 1.125rem);
}
.repo-meta > span, .repo-language { display: inline-flex; align-items: center; gap: .375rem; }
.repo-public-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.875rem;
  padding: .125rem .625rem;
  border: 1px solid #485a67;
  border-radius: 2rem;
  color: var(--forest);
  font-size: .875rem;
  line-height: 1.3;
}
.repo-spotlight-actions { display: flex; justify-content: end; margin-top: auto; padding-top: 1.75rem; }
.repo-spotlight-actions .button { min-height: 3.5rem; padding-inline: 1.25rem; font-size: clamp(.9375rem, 1.25vw, 1.25rem); }
.repo-spotlight-empty, .repo-loading { padding: 1rem; color: var(--muted); }
.repo-overview-stats { margin-top: clamp(2.25rem, 6.9vw, 6.625rem); }
.repo-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 2.2vw, 2.125rem); }
.repo-stat {
  min-width: 0;
  min-height: clamp(6rem, 8.75vw, 8.375rem);
  display: flex;
  align-items: center;
  gap: clamp(.875rem, 2.65vw, 2.625rem);
  padding: 1.125rem clamp(.875rem, 2vw, 2rem);
  border-radius: 1.25rem;
}
.repo-stat .repo-icon { width: clamp(3.125rem, 4.8vw, 4.625rem); height: clamp(3.125rem, 4.8vw, 4.625rem); }
.repo-stat .repo-icon svg { width: clamp(2rem, 2.85vw, 2.75rem); height: clamp(2rem, 2.85vw, 2.75rem); }
.repo-stat strong, .repo-stat div > span { display: block; line-height: 1.15; }
.repo-stat strong { font-size: clamp(1.5rem, 2.8vw, 2.625rem); font-weight: 650; letter-spacing: -.04em; }
.repo-stat div > span { margin-top: .25rem; color: var(--muted); font-size: clamp(.8125rem, 1.7vw, 1.625rem); }
.repo-stat-caption, .repo-source-note { color: var(--muted); font-size: .8125rem; }
.repo-stat-caption { margin-top: 1rem; }
.repo-source-note { margin-top: .875rem; }
.repo-source-note ul { display: flex; flex-wrap: wrap; gap: .375rem 1rem; margin: .375rem 0 0; padding: 0; list-style: none; }
.repo-source-note .text-link { font-size: inherit; }

.repo-section-heading { margin-bottom: clamp(1.25rem, 2.3vw, 2.25rem); }
.repo-section-heading h1 {
  font: 680 clamp(2.25rem, 4vw, 3.875rem)/1.08 var(--sans);
  letter-spacing: -.045em;
}
.repo-section-heading p { margin-top: .875rem; color: var(--muted); font-size: clamp(1rem, 1.75vw, 1.625rem); line-height: 1.35; }
.repo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem clamp(.75rem, 1.5vw, 1.375rem);
  margin-bottom: clamp(1rem, 1.8vw, 1.75rem);
  padding: clamp(.75rem, 1.35vw, 1.25rem);
  border-radius: 1rem;
  background: #16212a;
}
.repo-periods {
  display: inline-flex;
  flex: none;
  max-width: 100%;
  padding: .125rem;
  border: 1px solid var(--rule);
  border-radius: .75rem;
}
.repo-periods button {
  min-height: 2.875rem;
  padding: .5rem clamp(.625rem, 1.55vw, 1.5rem);
  border: 0;
  border-radius: .625rem;
  background: transparent;
  color: var(--forest);
  font-size: clamp(.8125rem, 1.2vw, 1.125rem);
  font-weight: 550;
  line-height: 1.3;
}
.repo-periods button:hover { background: var(--hover); }
.repo-periods button[aria-pressed="true"] { background: #3a4a56; color: var(--ink); font-weight: 650; }
.repo-filter {
  display: flex;
  flex: 0 1 15.75rem;
  min-width: 0;
  align-items: center;
  padding-left: 1rem;
  border: 1px solid #40515d;
  border-radius: .75rem;
  background: #192630;
}
.repo-filter:focus-within { border-color: var(--focus); }
.repo-filter label { flex: none; color: var(--forest); font-size: clamp(.875rem, 1.25vw, 1.125rem); }
.repo-filter select {
  min-height: 3.0625rem;
  padding-left: .5rem;
  border: 0;
  background-color: transparent;
  font-size: clamp(.875rem, 1.25vw, 1.125rem);
  font-weight: 600;
}
.repo-filter select:focus-visible { outline-offset: -2px; }
.repo-filter select option { background: var(--sheet); }
.repo-search { flex: 1 1 13rem; min-width: 0; max-width: 20rem; margin-left: auto; }
.repo-search input[type="search"] { min-height: 3rem; border-color: #40515d; background: #192630; }
.repo-search svg { top: 50%; transform: translateY(-50%); color: var(--forest); }
.repo-list { padding: .375rem clamp(.75rem, 1.85vw, 1.75rem); border-radius: 1rem; }
.repo-row {
  min-height: 5.5rem;
  display: grid;
  grid-template-columns: 3.5rem minmax(11rem, 1fr) minmax(6.5rem, .34fr) minmax(4.1rem, .21fr) minmax(4rem, .21fr) minmax(7.8rem, .41fr) auto;
  align-items: center;
  gap: .625rem clamp(.625rem, 1.45vw, 1.375rem);
  padding-block: .875rem;
}
.repo-row + .repo-row { border-top: 1px solid var(--subtle-rule); }
.repo-rank { width: 3.5rem; height: 3.5rem; }
.repo-rank svg { width: 2.125rem; height: 2.125rem; }
.repo-row-main { min-width: 0; }
.repo-name {
  display: inline-block;
  color: var(--blue);
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.repo-name > span:not(.sr-only) { color: var(--muted); font-weight: 450; }
.repo-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.repo-description { margin-top: .25rem; color: var(--muted); font-size: clamp(.875rem, 1.25vw, 1.125rem); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repo-row-language, .repo-row-stars, .repo-row-forks, .repo-row-gain {
  font-size: clamp(.8125rem, 1.2vw, 1.125rem);
  line-height: 1.35;
}
.repo-row-language { color: var(--muted); }
.repo-row-stars, .repo-row-forks { display: flex; align-items: center; gap: .375rem; font-weight: 550; }
.repo-row-stars svg, .repo-row-forks svg { color: var(--forest); }
.repo-row-gain { color: var(--green); font-weight: 550; }
.repo-row-action .button { min-height: 2.75rem; padding-inline: .875rem; border-radius: 1rem; font-size: .875rem; }
.repo-language-dot { flex: none; width: .875rem; height: .875rem; border-radius: 50%; background: #9eabb5; }
.repo-language-dot[data-language="typescript"] { background: #3299f0; }
.repo-language-dot[data-language="javascript"] { background: #ffe45e; }
.repo-language-dot[data-language="python"], .repo-language-dot[data-language="css"] { background: #a874ff; }
.repo-language-dot[data-language="rust"], .repo-language-dot[data-language="c++"] { background: #f08775; }
.repo-language-dot[data-language="go"], .repo-language-dot[data-language="c"] { background: #64cbe6; }
.repo-language-dot[data-language="java"], .repo-language-dot[data-language="html"] { background: #f39163; }
.repo-language-dot[data-language="shell"], .repo-language-dot[data-language="c#"] { background: #79d779; }

.repo-detail-heading, .repo-detail-identity, .repo-detail-actions, .repo-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .625rem 1rem;
}
.repo-detail-heading { justify-content: space-between; margin-bottom: 1.375rem; }
.repo-detail-identity, .repo-detail-main { min-width: 0; }
.repo-detail-identity .back-link { min-height: 2.75rem; margin: 0; font-weight: 500; }
.repo-detail-identity .repo-icon { width: 3.25rem; height: 3.25rem; }
.repo-detail-identity h1 {
  min-width: 0;
  color: var(--forest);
  font: 500 clamp(1.5rem, 2.45vw, 2.375rem)/1.12 var(--sans);
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.repo-detail-identity h1 strong { color: var(--ink); font-weight: 700; }
.repo-detail-links {
  display: flex;
  gap: .375rem;
  max-width: 100%;
  margin-bottom: 1.125rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--subtle-rule);
}
.repo-detail-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: .5rem;
  min-height: 3.25rem;
  padding: .5rem clamp(.75rem, 1.35vw, 1.125rem);
  border-bottom: 3px solid transparent;
  border-radius: .625rem .625rem 0 0;
  color: var(--forest);
  font-weight: 550;
}
.repo-detail-link:hover { background: var(--hover); color: var(--ink); }
.repo-detail-link:focus-visible { outline-offset: -2px; }
.repo-code-link { border-bottom-color: #43ce67; background: #1b302d; color: var(--ink); }
.repo-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.65fr) minmax(15rem, 1fr);
  align-items: start;
  gap: clamp(1rem, 1.65vw, 1.5rem);
}
.repo-detail-toolbar { margin: .625rem 0 1rem; color: var(--blue); font-weight: 600; }
.repo-detail-toolbar > .button { margin-left: auto; }
.repo-branch {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .875rem;
  border: 1px solid var(--rule);
  border-radius: .625rem;
  background: #23313b;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.repo-detail-panel { min-width: 0; border-radius: 1rem; }
.repo-detail-panel + .repo-detail-panel { margin-top: 1rem; }
.repo-detail-panel h2 { display: flex; align-items: center; gap: .625rem; padding: .875rem 1.25rem; font-size: 1.0625rem; font-weight: 650; }
.repo-detail-panel > p { padding: .625rem 1.25rem 1.25rem; color: var(--muted); }
.repo-file-list li {
  display: flex;
  align-items: center;
  gap: .875rem;
  min-height: 2.75rem;
  padding: .5rem 1.25rem;
  border-top: 1px solid var(--subtle-rule);
  color: var(--muted);
}
.repo-file-list li:hover { background: rgb(40 57 70 / .65); }
.repo-file-list .text-link { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.repo-file-list .text-link:hover { color: var(--blue); text-decoration: underline; }
.repo-more-files > summary {
  min-height: 2.75rem;
  padding: .625rem 1.25rem;
  border-top: 1px solid var(--subtle-rule);
  border-radius: 0 0 calc(1rem - 1px) calc(1rem - 1px);
  color: var(--blue);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
.repo-more-files > summary:hover { background: var(--hover); }
.repo-more-files > summary:focus-visible { outline-offset: -3px; }
.repo-more-files[open] > summary { border-radius: 0; }
.repo-readme > div { padding: 1.5rem 1.25rem 1.75rem; border-top: 1px solid var(--subtle-rule); }
.repo-readme h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
.repo-readme p { margin-block: .375rem .75rem; color: var(--muted); }
.repo-detail-about { padding: 1.25rem clamp(1rem, 1.65vw, 1.5rem); }
.repo-detail-about h2 { padding: 0; font-size: 1.25rem; }
.repo-detail-about > p { margin-top: .625rem; padding: 0; overflow-wrap: anywhere; }
.repo-topics { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: .875rem; }
.repo-topics li { padding: .125rem .625rem; border: 1px solid #3c70a3; border-radius: 2rem; background: #122d47; color: var(--blue); font-size: .8125rem; }
.repo-languages { margin-top: 1.375rem; padding-top: 1.25rem; border-top: 1px solid var(--subtle-rule); }
.repo-languages ul, .repo-languages > p { margin-top: .75rem; color: var(--muted); }
.repo-languages li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .125rem .625rem; margin-bottom: .5rem; font-size: .875rem; }
.repo-language-meter { grid-column: 1 / -1; width: 100%; accent-color: var(--blue); }
.repo-language-meter::-webkit-meter-bar { border: 0; background: #34434f; }
.repo-language-meter::-webkit-meter-optimum-value { background: #409af6; }

@media (min-width: 55.001rem) {
  .repo-hero-copy { padding-top: clamp(0rem, 2.55vw, 2.5rem); }
}
@media (max-width: 70rem) {
  .repo-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .repo-row {
    grid-template-columns: 3rem minmax(0, 1fr) auto auto auto;
    grid-template-areas: "icon name stars forks action" "icon name language gain action";
  }
  .repo-rank { grid-area: icon; width: 3rem; height: 3rem; }
  .repo-row-main { grid-area: name; }
  .repo-row-language { grid-area: language; }
  .repo-row-stars { grid-area: stars; }
  .repo-row-forks { grid-area: forks; }
  .repo-row-gain { grid-area: gain; }
  .repo-row-action { grid-area: action; }
}
@media (max-width: 55rem) {
  .repo-hero { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 2rem; }
  .repo-hero-copy h1 { max-width: 16ch; }
  .repo-spotlight { min-height: 0; }
  .repo-detail-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 38rem) {
  .repo-shell { padding-bottom: 2.75rem; }
  .repo-hero-copy h1 { font-size: clamp(2.375rem, 8.7vw, 3rem); }
  .repo-spotlight-heading .repo-icon { width: 2.75rem; height: 2.75rem; }
  .repo-spotlight-row { grid-template-columns: auto minmax(0, 1fr); }
  .repo-spotlight-row .repo-public-pill { display: none; }
  .repo-spotlight-rank { width: 1.75rem; height: 1.75rem; }
  .repo-spotlight-actions { justify-content: start; padding-top: 1rem; }
  .repo-spotlight-actions .button { min-height: 2.75rem; }
  .repo-stats { grid-template-columns: 1fr; }
  .repo-stat { min-height: 4.5rem; padding-block: .625rem; }
  .repo-stat .repo-icon { width: 2.875rem; height: 2.875rem; }
  .repo-stat .repo-icon svg { width: 1.5rem; height: 1.5rem; }
  .repo-periods { flex: 1 0 100%; }
  .repo-periods button { flex: 1 1 auto; min-width: 0; padding-inline: .3125rem; }
  .repo-filter, .repo-search { flex: 1 1 9rem; max-width: none; }
  .repo-filter { padding-left: .75rem; }
  .repo-row {
    grid-template-columns: 2.375rem minmax(0, 1fr) auto;
    grid-template-areas: "icon name name" "icon language language" ". stars forks" ". gain action";
    gap: .4rem .625rem;
  }
  .repo-rank { align-self: start; width: 2.375rem; height: 2.375rem; }
  .repo-rank svg { width: 1.25rem; height: 1.25rem; }
  .repo-row-action .button { min-height: 2.375rem; padding-inline: .625rem; font-size: .8125rem; }
  .repo-detail-identity .back-link { flex-basis: 100%; }
  .repo-detail-toolbar { gap: .5rem; }
  .repo-detail-toolbar > .button { margin-left: 0; }
}