:root {
  color-scheme: light;
  --canvas: #f6f8fa;
  --paper: #ffffff;
  --ink: #1f2328;
  --muted: #59636e;
  --line: #d0d7de;
  --soft-line: #e8edf1;
  --accent: #0969da;
  --accent-dark: #0756af;
  --success: #1a7f37;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1120px) / 2)); background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; font-weight: 700; letter-spacing: -.4px; }
.brand:hover { text-decoration: none; }
.quiet-link { color: var(--muted); font-size: 14px; }
.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0; }
.hero { max-width: 660px; margin-bottom: 40px; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; letter-spacing: -.035em; }
.hero > p:last-child { color: var(--muted); margin: 12px 0 0; font-size: 17px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.repo-card { display: flex; min-height: 176px; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.repo-card:hover { border-color: #8c959f; box-shadow: 0 2px 6px rgb(31 35 40 / 8%); text-decoration: none; }
.repo-icon { color: var(--muted); font-family: ui-monospace, monospace; font-size: 14px; }
.repo-name { display: block; margin-top: 14px; color: var(--accent); font-size: 16px; font-weight: 600; }
.repo-description { flex: 1; margin: 8px 0 18px; color: var(--muted); font-size: 14px; }
.repo-meta { color: var(--muted); font-size: 12px; }
.muted { color: var(--muted); }

.admin-layout { padding-top: 56px; }
.auth-card { width: min(400px, 100%); margin: 40px auto; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.auth-card h1 { margin-bottom: 24px; font-size: 28px; }
.stack { display: grid; gap: 16px; }
label { display: grid; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 600; }
input { width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 400; }
input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
button { min-height: 36px; padding: 7px 14px; border: 1px solid rgb(27 31 36 / 15%); border-radius: 6px; background: #1f883d; color: white; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; }
button:hover { background: #1a7f37; }
button:disabled { cursor: wait; opacity: .65; }
.button-secondary { background: var(--paper); color: var(--ink); }
.button-secondary:hover { background: #f3f4f6; }
.button-danger { border-color: #cf222e; background: var(--paper); color: #cf222e; }
.button-danger:hover { background: #ffebe9; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-heading h1 { font-size: 30px; }
.upload-panel { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 16px; padding: 20px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 400; }
.status { min-height: 24px; margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.status.error { color: #cf222e; }.status.success { color: var(--success); }
.admin-card { min-height: 0; }
.admin-card .repo-description { margin-bottom: 12px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--soft-line); padding-top: 14px; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #afb8c1; }.status-dot.running { background: var(--success); }
@media (max-width: 700px) { .container { width: min(100% - 32px, 1120px); padding: 40px 0; }.site-header { padding: 0 16px; }.upload-panel { grid-template-columns: 1fr; }.upload-panel button { width: 100%; } }
