/* © 2014-2025 Ultralytics Inc. 🚀 All rights reserved. CONFIDENTIAL: Unauthorized use or distribution prohibited. */

:root {
  --bg: #ffffff;
  --fg: #0b0b0f;
  --muted: #6b7280;
  --border: #e5e7eb;
  --surface: #f7f7f9;
  --link: #042aff;
  --callout: #eef2ff;
  --radius: 14px;
  --container: 1200px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
html[data-theme="dark"] {
  --bg: #0a0a0b;
  --fg: #f5f5f5;
  --muted: #a1a1aa;
  --border: #232327;
  --surface: #131318;
  --link: #7aa2ff;
  --callout: #121826;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-top: max(0px, var(--safe-top));
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(10px + var(--safe-top)) 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand a {
  display: inline-flex;
  align-items: center;
}
.brand img {
  max-height: 34px;
  width: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-title {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-tagline {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.topbar-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
.chip-link {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--surface);
  color: var(--fg);
  font-weight: 600;
}
.page {
  max-width: var(--container);
  margin: 24px auto;
  padding: 0 16px 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}
@media (max-width: 960px) {
  .page {
    grid-template-columns: 1fr;
    margin: 14px auto;
  }
}
.sidebar {
  position: sticky;
  top: calc(68px + var(--safe-top));
  align-self: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  max-height: calc(100dvh - 110px);
  overflow: auto;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.08);
}
@media (max-width: 960px) {
  .sidebar {
    position: relative;
    top: 0;
    max-height: none;
  }
}
.nav-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.nav {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.nav li a {
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--fg);
}
.nav li a:hover {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  text-decoration: none;
}
.nav-callout {
  font-size: 13px;
  background: color-mix(in srgb, var(--callout) 70%, transparent);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.content {
  min-width: 0;
}
.hero {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.08);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 6px;
}
h1 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -0.02em;
}
@media (max-width: 640px) {
  h1 {
    font-size: 24px;
  }
}
.lead {
  color: var(--muted);
  margin: 0 0 14px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 10px;
}
.btn {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 18px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.12s ease,
    border-color 0.12s ease,
    background 0.12s ease;
}
.btn:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--surface) 80%, var(--bg));
  text-decoration: none;
}
.btn.primary {
  background: #e1ff25;
  border-color: #d2f415;
  color: #111f68;
}
.btn.ghost {
  background: color-mix(in srgb, var(--surface) 70%, var(--bg));
}
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}
.pill {
  border-radius: 999px;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--surface) 80%, var(--bg));
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.callout {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--callout);
  padding: 12px 14px;
  margin-top: 10px;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 4px 8px;
  display: inline-block;
  color: var(--fg);
}
.progress-wrapper {
  margin-top: 12px;
}
.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 60%, var(--bg));
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #042aff, #9a6bff);
  transition: width 0.2s ease;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 6px;
  color: var(--muted);
}
.repo-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}
.repo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  gap: 12px;
  box-shadow: 0 6px 16px rgba(2, 6, 23, 0.06);
}
.repo-item a {
  font-weight: 600;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-pill {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  flex-shrink: 0;
}
.status-pill.starred {
  background: #dcfce7;
  border-color: #86efac;
  color: #065f46;
}
.status-pill.already-starred {
  background: #e0e7ff;
  border-color: #a5b4fc;
  color: #1d4ed8;
}
.status-pill.pending {
  border-style: dashed;
}
.status-pill.error {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}
.status-pill.skipped {
  background: #fef9c3;
  border-color: #fde68a;
  color: #854d0e;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.list-steps {
  counter-reset: steps;
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-steps li {
  counter-increment: steps;
  margin-bottom: 10px;
  padding-left: 36px;
  position: relative;
}
.list-steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--bg);
}
.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-check li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.list-check svg {
  color: #10b981;
  margin-top: 2px;
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.stat-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: var(--bg);
}
.stat-value {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer {
  max-width: var(--container);
  margin: 24px auto 16px;
  padding: 0 16px max(16px, var(--safe-bottom));
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
