:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #637069;
  --line: #dfe6e1;
  --paper: #ffffff;
  --wash: #f2f6f3;
  --green: #176b4d;
  --green-dark: #0e5139;
  --amber: #9a6700;
  --red: #a12a2a;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--wash); }
a { color: var(--green); }
.site-header { height: 64px; padding: 0 max(24px, calc((100vw - 1080px) / 2)); display: flex; align-items: center; justify-content: space-between; background: #10271e; color: #fff; }
.brand { color: #fff; font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.user-actions, .actions, .section-heading { display: flex; align-items: center; gap: 16px; }
.user-actions form, .actions form { margin: 0; }
.page-shell { width: min(1080px, calc(100% - 32px)); margin: 40px auto 80px; }
.hero { margin-bottom: 24px; }
h1, h2 { margin: 0 0 12px; line-height: 1.25; }
h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: 20px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.muted, .hint, .empty { color: var(--muted); }
.card, .auth-card { margin-bottom: 24px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 30px rgba(20, 50, 38, .05); }
.auth-card { width: min(440px, 100%); margin: 10vh auto; }
.stack { display: grid; gap: 18px; margin-top: 24px; }
label { display: grid; gap: 8px; font-weight: 650; }
input[type="text"], input[type="password"], input:not([type]) { width: 100%; padding: 11px 12px; border: 1px solid #bdc9c1; border-radius: 8px; font: inherit; }
.upload-form { display: grid; justify-items: start; gap: 14px; }
.file-picker { width: 100%; padding: 22px; border: 1px dashed #8da298; border-radius: 10px; background: #f8fbf9; }
.file-picker input { margin-top: 10px; }
.button { display: inline-flex; min-height: 40px; padding: 9px 16px; align-items: center; justify-content: center; border: 0; border-radius: 8px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-quiet { min-height: 34px; color: #fff; background: rgba(255,255,255,.12); }
.section-heading { justify-content: space-between; align-items: flex-start; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 13px; }
.status { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #345247; background: #e7efea; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status-running, .status-queued { color: #765000; background: #fff1c9; }
.status-succeeded { color: #095b3e; background: #d9f3e8; }
.status-succeeded_with_warning { color: var(--amber); background: #fff1c9; }
.status-failed, .status-incomplete { color: var(--red); background: #fde7e7; }
.status-expired { color: var(--muted); background: #eef1ef; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px 0; }
.facts div { padding: 14px; border-radius: 8px; background: var(--wash); }
.facts dt { margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; font-weight: 650; word-break: break-word; }
.notice { margin: 16px 0; padding: 13px 15px; border-radius: 8px; background: #e8f0eb; }
.notice-error { color: #7e1e1e; background: #fde7e7; }
.hidden { display: none; }
.actions { min-height: 42px; flex-wrap: wrap; }
.hash, .monospace { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.breadcrumb { margin-bottom: 18px; }
@media (max-width: 720px) {
  .page-shell { margin-top: 24px; }
  .card, .auth-card { padding: 20px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .site-header { padding: 0 16px; }
}
