@font-face {
  font-family: "Fira Mono";
  src: url("./fonts/FiraMono-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #000000;
  --panel: #050505;
  --panel-2: #0d0d0d;
  --ink: #f5f5f5;
  --muted: #a3a3a3;
  --line: #2a2a2a;
  --line-strong: #525252;
  --inverse: #ffffff;
  --inverse-ink: #000000;
  --radius: 6px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  color: var(--ink);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: var(--page);
  color: var(--inverse);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.brand-separator {
  color: var(--line-strong);
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 500;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.live-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.48);
  animation: livePulse 2.4s ease-in-out infinite;
}

.last-updated-value {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}

.github-link {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition:
    color 120ms ease,
    opacity 120ms ease;
}

.github-link:hover,
.github-link:focus-visible {
  color: var(--inverse);
  opacity: 0.76;
  outline: none;
}

.github-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 0.54;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.34);
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot {
    animation: none;
    opacity: 0.9;
  }
}

.brand-name {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
}

.eyebrow,
.repo-owner,
.repo-table-header,
.account-table-header,
.trend-table-header {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) 48px;
}

.dashboard-head {
  display: block;
  padding: clamp(42px, 8vw, 86px) 0 34px;
}

.title-block {
  max-width: 980px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.ascii-title {
  position: relative;
  width: max-content;
  max-width: 100%;
  min-height: 60px;
  overflow: hidden;
}

.ascii-title.is-generating {
  animation: ascii-title-lift 900ms steps(7, end) both;
}

.ascii-title-layer {
  margin: 0;
  color: var(--inverse);
  font-family: "Fira Mono", var(--mono);
  font-size: 8px;
  font-weight: 400;
  line-height: 125%;
  letter-spacing: -1px;
  white-space: pre;
  user-select: none;
}

.ascii-title.is-generating .ascii-title-layer {
  clip-path: inset(100% 0 0 0);
  opacity: 0;
  transform: translateY(12px);
  animation: ascii-title-generate 980ms steps(9, end) both;
}

.ascii-title-shadow {
  color: #5f5f5f;
}

.ascii-title.is-generating .ascii-title-shadow {
  animation-delay: 60ms;
}

.ascii-title-face {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--inverse);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.22);
}

.ascii-title.is-generating .ascii-title-face {
  animation-delay: 150ms;
}

.ascii-title.is-generating::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -18%;
  left: 0;
  height: 22%;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.42) 38%,
      rgba(255, 255, 255, 0.1) 62%,
      rgba(255, 255, 255, 0)
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.2) 0 1px,
      rgba(255, 255, 255, 0) 1px 3px
    );
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateY(24%);
  animation: ascii-scanline 860ms steps(9, end) 110ms both;
}

.terminal-subtitle {
  margin: clamp(14px, 2vw, 22px) 0 0;
  color: var(--inverse);
  font-family: "Fira Mono", var(--mono);
  font-size: clamp(1rem, 1.75vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
}

@keyframes ascii-title-lift {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  26% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ascii-title-generate {
  0% {
    clip-path: inset(100% 0 0 0);
    opacity: 0;
    transform: translateY(12px);
    filter: brightness(1.45);
  }

  12% {
    opacity: 0.45;
  }

  36% {
    opacity: 0.78;
    filter: brightness(1.9);
  }

  68% {
    clip-path: inset(16% 0 0 0);
    opacity: 1;
    transform: translateY(3px);
  }

  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    transform: translateY(0);
    filter: brightness(1);
  }
}

@keyframes ascii-scanline {
  0% {
    opacity: 0;
    transform: translateY(34%);
  }

  12% {
    opacity: 0.95;
  }

  76% {
    opacity: 0.76;
  }

  100% {
    opacity: 0;
    transform: translateY(-510%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ascii-title.is-generating,
  .ascii-title.is-generating .ascii-title-layer,
  .ascii-title.is-generating::after {
    animation: none;
  }

  .ascii-title.is-generating .ascii-title-layer {
    clip-path: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .ascii-title.is-generating::after {
    content: none;
  }
}

@media (min-width: 640px) {
  .ascii-title {
    min-height: 88px;
  }

  .ascii-title-layer {
    font-size: 12px;
  }
}

@media (min-width: 960px) {
  .ascii-title {
    min-height: 110px;
  }

  .ascii-title-layer {
    font-size: 15px;
  }
}

.controls-band {
  position: sticky;
  top: 79px;
  z-index: 15;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 0 0 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(18px);
}

.period-tabs {
  display: flex;
  min-width: max-content;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--page);
  padding: 4px;
}

.tab,
.view-toggle {
  min-height: 38px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 800;
}

.tab {
  min-width: 86px;
  background: transparent;
  color: var(--muted);
  padding: 0 14px;
}

.tab.is-active {
  background: var(--inverse);
  color: var(--inverse-ink);
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr);
  gap: 10px;
  min-width: 0;
}

.search-field {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--page);
}

.search-field {
  gap: 10px;
  padding: 0 12px;
}

.search-field span {
  color: var(--muted);
  font-family: var(--mono);
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-field input::placeholder {
  color: #777777;
}

.view-toggle {
  border: 1px solid var(--line);
  background: var(--page);
  color: var(--ink);
  padding: 0 16px;
  white-space: nowrap;
}

.view-toggle[aria-pressed="true"] {
  background: var(--inverse);
  color: var(--inverse-ink);
}

.content-grid {
  display: block;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.view-tabs {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--page);
  padding: 4px;
}

.view-tabs[hidden] {
  display: none;
}

.view-tab {
  min-height: 34px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 850;
  padding: 0 14px;
}

.view-tab.is-active {
  background: var(--inverse);
  color: var(--inverse-ink);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.42rem, 2.2vw, 2rem);
  line-height: 1.1;
}

.loading-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.loader-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--inverse);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.72);
  animation: pulse-dot 950ms ease-out infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.72);
    transform: scale(0.92);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    transform: scale(0.92);
  }
}

.table-header,
.repo-row,
.account-row,
.trend-row {
  display: grid;
  gap: 16px;
  align-items: center;
}

.repo-table-header,
.repo-row {
  grid-template-columns: 72px minmax(0, 1fr) 120px 120px 128px;
}

.trend-table-header,
.trend-row {
  grid-template-columns: 72px minmax(0, 1fr) 120px 120px 128px;
}

.account-table-header,
.account-row {
  grid-template-columns: 72px minmax(0, 1fr) 92px 120px 92px minmax(180px, 260px) 128px;
}

.table-header {
  display: none;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--page);
}

.table-header.is-active {
  display: grid;
}

.sort-button {
  appearance: none;
  width: fit-content;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  padding: 0;
  text-align: left;
  text-transform: inherit;
}

.sort-button:hover,
.sort-button.is-active {
  color: var(--ink);
}

.repo-list {
  display: grid;
}

.repo-row,
.account-row,
.trend-row {
  min-height: 92px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--panel);
  padding: 16px 18px;
}

.repo-row:last-child,
.account-row:last-child,
.trend-row:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.repo-row:hover,
.account-row:hover,
.trend-row:hover {
  background: var(--panel-2);
}

.repo-rank {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 800;
}

.repo-identity {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.repo-avatar {
  display: block;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  object-fit: cover;
}

.trend-row .repo-identity {
  grid-template-columns: minmax(0, 1fr);
}

.repo-copy {
  min-width: 0;
}

.repo-owner {
  margin: 0 0 4px;
}

.repo-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.2;
}

.repo-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title-popout {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
}

.title-popout svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.title-popout:hover {
  border-color: var(--inverse);
  color: var(--inverse);
}

.repo-description {
  margin: 6px 0 0;
  max-width: 82ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.metric-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.96rem;
  font-weight: 700;
}

.metric-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: 0 0 auto;
}

.repo-actions {
  position: relative;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.account-type,
.account-repos,
.account-top-repo {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 760;
}

.account-type {
  color: var(--muted);
  text-transform: uppercase;
}

.account-top-repo {
  min-width: 0;
}

.account-row.is-expanded {
  background: var(--panel-2);
}

.trend-row.is-expanded {
  background: var(--panel-2);
}

.top-repo-link {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-repo-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-expand-button {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--page);
  color: var(--inverse);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 860;
  padding: 0 12px;
  white-space: nowrap;
}

.account-expand-button:hover,
.account-expand-button[aria-expanded="true"] {
  border-color: var(--inverse);
  background: var(--inverse);
  color: var(--inverse-ink);
}

.account-expand-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.account-repos-panel {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--page);
  padding: 0 18px 16px 90px;
}

.account-repos-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  padding: 14px 0 10px;
  text-transform: uppercase;
}

.account-repo-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 120px;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.account-repo-copy {
  min-width: 0;
}

.account-repo-name {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-repo-name:hover,
.account-repo-visit:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-repo-description {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.account-repo-stats {
  display: flex;
  gap: 16px;
}

.account-repo-visit {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
  justify-self: end;
  white-space: nowrap;
}

.trend-repos-panel {
  padding-left: 18px;
}

.trend-repos-panel .account-repos-heading {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 120px 120px 128px;
}

.trend-repos-panel .account-repos-heading span:first-child {
  grid-column: 2;
}

.trend-repos-panel .account-repo-item {
  grid-template-columns: 72px minmax(0, 1fr) 120px 120px 128px;
}

.trend-repos-panel .account-repo-copy {
  grid-column: 2;
}

.trend-repos-panel .account-repo-stats {
  display: contents;
}

.trend-repos-panel .account-repo-stats .metric-cell:first-child {
  grid-column: 3;
}

.trend-repos-panel .account-repo-stats .metric-cell:last-child {
  grid-column: 4;
}

.trend-repos-panel .account-repo-visit {
  grid-column: 5;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: var(--radius);
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 860;
  white-space: nowrap;
}

.action.primary {
  border: 1px solid var(--inverse);
  background: var(--inverse);
  color: var(--inverse-ink);
}

.action.primary:hover {
  border-color: var(--inverse);
  background: var(--page);
  color: var(--inverse);
  filter: none;
}

.clone-menu {
  position: relative;
  width: 100%;
}

.clone-summary {
  display: inline-flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--inverse);
  border-radius: var(--radius);
  background: var(--inverse);
  color: var(--inverse-ink);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 860;
  list-style: none;
  padding: 0 12px;
  white-space: nowrap;
}

.clone-summary::-webkit-details-marker {
  display: none;
}

.clone-summary svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.clone-menu[open] .clone-summary,
.clone-summary:hover {
  border-color: var(--inverse);
  background: var(--page);
  color: var(--inverse);
}

.clone-menu[open] .clone-summary svg {
  transform: rotate(180deg);
}

.clone-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  width: min(420px, calc(100vw - 32px));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #050505;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
  padding: 8px;
}

.clone-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-radius: 4px;
  padding: 10px;
}

.clone-option + .clone-option {
  border-top: 1px solid var(--line);
}

.clone-option-copy {
  min-width: 0;
}

.clone-option-label {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  margin-bottom: 5px;
}

.clone-option code {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-clone-button {
  min-height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--page);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 0 10px;
}

.copy-clone-button:hover:not(:disabled) {
  border-color: var(--inverse);
  background: var(--inverse);
  color: var(--inverse-ink);
}

.copy-clone-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.load-more-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--page);
  padding: 14px 18px;
}

.repo-row:last-child,
.account-row:last-child,
.trend-row:last-child {
  border-radius: 0;
}

.pagination-status {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.4;
  text-transform: uppercase;
}

.load-more-button {
  min-height: 40px;
  border: 1px solid var(--inverse);
  border-radius: var(--radius);
  background: var(--page);
  color: var(--inverse);
  cursor: pointer;
  font-weight: 860;
  padding: 0 16px;
  white-space: nowrap;
}

.load-more-button:hover:not(:disabled) {
  background: var(--inverse);
  color: var(--inverse-ink);
}

.load-more-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.load-more-button[hidden] {
  display: none;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 28px;
  color: var(--muted);
  font-weight: 760;
}

.repo-list.is-compact .repo-row,
.repo-list.is-compact .account-row,
.repo-list.is-compact .trend-row {
  min-height: 72px;
  padding-block: 12px;
}

.repo-list.is-compact .repo-description {
  display: none;
}

.skeleton-row {
  pointer-events: none;
}

.skeleton-avatar,
.skeleton-line,
.skeleton-button {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius);
  background: #171717;
}

.skeleton-avatar::after,
.skeleton-line::after,
.skeleton-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-100%);
  animation: skeleton-sweep 1.3s ease-in-out infinite;
}

@keyframes skeleton-sweep {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
}

.skeleton-line {
  height: 12px;
}

.skeleton-line.short {
  width: 130px;
}

.skeleton-line.title {
  width: min(260px, 60%);
  height: 20px;
  margin-top: 10px;
}

.skeleton-line.wide {
  width: min(680px, 86%);
  margin-top: 10px;
}

.skeleton-line.metric {
  width: 72px;
}

.skeleton-button {
  justify-self: end;
  width: 120px;
  height: 40px;
}

@media (max-width: 1120px) {
  .controls-band {
    grid-template-columns: 1fr;
  }

  .repo-table-header,
  .repo-row,
  .trend-table-header,
  .trend-row,
  .trend-repos-panel .account-repos-heading,
  .trend-repos-panel .account-repo-item {
    grid-template-columns: 56px minmax(0, 1fr) 100px 100px 118px;
  }

  .account-table-header,
  .account-row {
    grid-template-columns: 56px minmax(0, 1fr) 72px 100px 72px minmax(150px, 1fr) 128px;
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 14px 16px;
  }

  .topbar-actions {
    gap: 10px;
  }

  .live-updated {
    font-size: 0.68rem;
  }

  .controls-band {
    top: 71px;
    padding: 8px;
  }

  .period-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    width: 100%;
    min-width: 0;
    padding: 3px;
  }

  .tab {
    min-height: 32px;
    font-size: 0.7rem;
    line-height: 1;
    min-width: 0;
    padding: 0 2px;
    white-space: nowrap;
  }

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

  .section-heading {
    align-items: end;
    flex-direction: row;
  }

  .table-header,
  .table-header.is-active {
    display: none;
  }

  .repo-list {
    gap: 12px;
  }

  .repo-row,
  .account-row,
  .trend-row,
  .repo-list.is-compact .repo-row,
  .repo-list.is-compact .account-row,
  .repo-list.is-compact .trend-row {
    grid-template-columns: 44px auto auto minmax(0, 1fr);
    gap: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
  }

  .repo-identity {
    grid-column: 2 / -1;
    align-items: start;
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .repo-avatar,
  .skeleton-avatar {
    width: 72px;
    height: 72px;
  }

  .repo-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .repo-stars,
  .repo-forks,
  .trend-stars,
  .trend-forks,
  .account-type,
  .account-stars,
  .account-repos,
  .account-top-repo,
  .repo-actions,
  .skeleton-button,
  .skeleton-line.metric {
    grid-column: 1 / -1;
  }

  .repo-stars,
  .repo-forks,
  .trend-stars,
  .trend-forks,
  .account-type,
  .account-stars,
  .account-repos,
  .account-top-repo {
    padding-left: 0;
  }

  .repo-stars,
  .trend-stars,
  .account-stars {
    grid-column: 2;
  }

  .repo-forks,
  .trend-forks,
  .account-repos {
    grid-column: 3;
  }

  .repo-stars,
  .repo-forks,
  .trend-stars,
  .trend-forks,
  .account-stars,
  .account-repos {
    align-self: center;
  }

  .repo-stars .metric-cell,
  .repo-forks .metric-cell,
  .trend-stars .metric-cell,
  .trend-forks .metric-cell {
    font-size: 0.88rem;
  }

  .account-type,
  .account-top-repo {
    grid-column: 2 / -1;
  }

  .account-row .repo-owner,
  .account-row .account-type,
  .account-row .account-repos,
  .account-row .account-top-repo {
    display: none;
  }

  .account-row .repo-rank {
    grid-row: 1 / span 2;
  }

  .account-row .repo-identity {
    display: contents;
  }

  .account-row .repo-avatar {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .account-row .repo-copy {
    align-self: end;
    grid-column: 3 / -1;
  }

  .account-row .account-stars {
    align-self: start;
    grid-column: 3 / -1;
    padding-left: 0;
  }

  .account-top-repo {
    min-width: 0;
  }

  .repo-actions {
    flex-direction: column;
    justify-content: stretch;
  }

  .clone-summary,
  .clone-menu,
  .account-expand-button,
  .skeleton-button,
  .load-more-button {
    width: 100%;
  }

  .clone-panel {
    left: 0;
    right: auto;
    width: 100%;
  }

  .account-repos-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 14px 12px;
  }

  .account-repos-heading,
  .account-repo-item {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .trend-repos-panel .account-repos-heading,
  .trend-repos-panel .account-repo-item {
    grid-template-columns: 1fr;
  }

  .trend-repos-panel .account-repos-heading span:first-child,
  .trend-repos-panel .account-repo-copy,
  .trend-repos-panel .account-repo-stats .metric-cell:first-child,
  .trend-repos-panel .account-repo-stats .metric-cell:last-child,
  .trend-repos-panel .account-repo-visit {
    grid-column: auto;
  }

  .trend-repos-panel .account-repo-stats {
    display: flex;
  }

  .account-repos-heading {
    display: grid;
    gap: 6px;
  }

  .account-repo-stats {
    flex-wrap: wrap;
  }

  .account-repo-visit {
    justify-self: start;
  }

  .load-more-row {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .live-updated {
    display: none;
  }
}

@media (max-width: 420px) {
  main {
    padding-inline: 12px;
  }

  .dashboard-head {
    padding-top: 26px;
  }
}

@media (max-width: 360px) {
  .tab {
    min-height: 30px;
    font-size: 0.64rem;
  }

  .repo-identity {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .repo-avatar,
  .skeleton-avatar {
    width: 64px;
    height: 64px;
  }

}
