body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f4f4f9;
}

[hidden] {
  display: none !important;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  height: 50px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

h1 {
  margin: 0;
  color: #6d28d9;
}

.auth-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.github-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #1b1f24;
  background: #1b1f24;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.github-login-btn:hover {
  background: #2b3137;
  border-color: #2b3137;
}

.auth-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
}

.auth-name {
  font-size: 0.9rem;
  color: #333;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-logout {
  color: #6d28d9;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.auth-logout:hover {
  text-decoration: underline;
}

.search-container input {
  padding: 8px 12px;
  width: 250px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.package-card {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.package-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.package-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #6d28d9;
  text-decoration: none;
}

.package-title:hover {
  text-decoration: underline;
}

.package-version {
  background: #ede9fe;
  color: #5b21b6;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.package-description {
  margin-top: 8px;
  color: #586069;
  font-size: 0.95rem;
}

.package-meta {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #6a737d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.repo-link {
  color: #1b1f24;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #e1e4e8;
  background: #f6f8fa;
  padding: 2px 8px;
  border-radius: 999px;
}

.repo-link:hover {
  text-decoration: underline;
}

.download-link {
  display: inline-block;
  margin-top: 12px;
  color: #6d28d9;
  text-decoration: none;
  font-weight: 500;
}

.download-link:hover {
  text-decoration: underline;
}

.package-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.versions-list {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  display: none;
}

.versions-list h4 {
  margin: 0 0 12px 0;
  font-size: 0.9rem;
  color: #333;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #6d28d9;
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

.package-title-large {
  margin: 0;
  font-size: 1.75rem;
  color: #6d28d9;
}

.package-description-large {
  margin-top: 15px;
  font-size: 1.1rem;
  color: #444;
}

.package-meta-large {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 0.95rem;
}

.package-meta-large p {
  margin: 5px 0;
}

.versions-section {
  margin-top: 30px;
}

.versions-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.versions-section h3 {
  border-bottom: none;
  padding-bottom: 0;
  margin: 0;
}

.detail-versions-list {
  list-style: none;
  padding: 0;
}

.detail-versions-list li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.v-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.v-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.v-artifacts-toggle {
  appearance: none;
  border: 1px solid #e1e4e8;
  background: #fff;
  color: #1b1f24;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.v-artifacts-toggle:hover {
  background: #f6f8fa;
}

.v-artifacts-panel {
  width: 100%;
  background: #f8f9fa;
  border: 1px solid #eef1f4;
  border-radius: 8px;
  padding: 10px;
}

.v-artifacts-loading,
.v-artifacts-empty,
.v-artifacts-error {
  font-size: 0.85rem;
  color: #57606a;
}

.v-artifacts-error {
  color: #d13438;
}

.v-artifacts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.artifact-btn {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e1e4e8;
  background: #fff;
  color: #6d28d9;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artifact-btn:hover {
  background: #ede9fe;
  border-color: #d6bcfa;
}

.detail-versions-list li:last-child {
  border-bottom: none;
}

.detail-versions-list li:hover {
  background-color: #f8f9fa;
}

.versions-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.versions-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 4px;
}

.versions-list li:hover {
  background-color: #f8f9fa;
}

.v-number {
  font-family: monospace;
  font-weight: 600;
  color: #444;
}

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

.v-commit {
  font-size: 0.8rem;
  color: #57606a;
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.v-commit:hover {
  text-decoration: underline;
}

.v-download {
  font-size: 0.85rem;
  color: #6d28d9;
  text-decoration: none;
}

.v-download:hover {
  text-decoration: underline;
}

.loading,
.no-results {
  text-align: center;
  padding: 40px;
  color: #6a737d;
}

.error {
  text-align: center;
  padding: 40px;
  color: #d13438;
}
