.os-gh-link {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.14s, color 0.14s;
}

.os-gh-link:hover {
  background: var(--hover);
  color: #fff;
}

.os-profile-bio {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 18px;
  max-width: 60ch;
}

.os-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}

.os-profile-meta a:hover {
  color: var(--text);
}

.os-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.os-profile-stats > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.os-profile-stats strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.os-profile-stats span {
  font-size: 12px;
  color: var(--muted);
}

.os-events {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.os-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: 9px;
  transition: background 0.14s ease;
}

.os-event-row:hover {
  background: var(--hover);
}

.os-event-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.os-event-badge {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  min-width: 58px;
  text-align: center;
}

.os-event-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.os-event-repo {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-event-summary {
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-detail-wide {
  max-width: 920px;
}

.os-repos-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.os-repos-head h1 {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0;
  color: #fff;
}

.os-repos-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.os-repos-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.os-repos-summary span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.os-sort-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  gap: 2px;
}

.os-sort-tabs a {
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.14s ease, color 0.14s ease;
}

.os-sort-tabs a:hover {
  color: var(--text);
}

.os-sort-tabs a.is-active {
  background: var(--active);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--border);
}

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

.os-repo-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.os-repo-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-color: var(--border-strong);
}

.os-repo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.os-repo-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.015em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-repo-star-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: #f4f4f6;
  font-variant-numeric: tabular-nums;
}

.os-repo-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.os-repo-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
}

.os-repo-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-weight: 500;
}

.os-lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}

.os-repo-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.os-repo-date {
  margin-left: auto;
}

@media (max-width: 760px) {
  .os-repo-grid {
    grid-template-columns: 1fr;
  }

  .os-profile-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .os-repos-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .os-repos-controls {
    align-items: flex-start;
  }
}
