:root {
  color-scheme: light;
  --ink: #20272d;
  --muted: #68747d;
  --line: #dce2e6;
  --paper: #ffffff;
  --canvas: #f3f5f7;
  --accent: #16795f;
  --accent-soft: #e2f2ec;
  --warning: #9b512e;
  --warning-soft: #fbefe8;
  --blue: #356885;
  font-family: Inter, "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
button, input, select { font: inherit; }
button, a, select, input { outline-offset: 3px; }
.topbar { height: 62px; padding: 0 max(24px, calc((100% - 1040px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--paper); }
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: #20272d; color: #fff; font-size: 11px; font-weight: 750; }
.account { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.account img { width: 28px; height: 28px; border-radius: 50%; }
.account button { border: 0; padding: 6px 8px; color: var(--muted); background: transparent; cursor: pointer; }
main { width: min(100% - 32px, 900px); margin: 35px auto 0; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 0 0 23px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--blue); margin: 0 0 8px; font-size: 10px; font-weight: 750; letter-spacing: 1px; }
h1 { margin: 0; font-size: 25px; font-weight: 650; }
.intro-note { max-width: 350px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.auth-panel, .builder, .progress-panel { margin-top: 20px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.auth-panel { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.auth-panel h2, .form-section h2, .progress-panel h2 { margin: 0; font-size: 16px; font-weight: 650; }
.auth-panel p, .section-heading p { color: var(--muted); font-size: 13px; margin: 6px 0 0; line-height: 1.5; }
.builder { overflow: hidden; }
.form-section { padding: 23px 25px 25px; }
.form-section + .form-section { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-start; gap: 14px; }
.step-number { color: var(--blue); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 750; padding-top: 2px; }
.segmented { display: inline-flex; margin: 22px 0 17px 34px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: #f7f9fa; }
.segment { min-width: 104px; padding: 7px 13px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; }
.segment.active { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px #26323b21; font-weight: 650; }
.mode-panel { margin-left: 34px; }
label { color: var(--ink); font-size: 12px; font-weight: 620; }
input[type="url"], select { display: block; width: min(100%, 610px); margin-top: 8px; height: 40px; border: 1px solid #cbd4d9; border-radius: 5px; padding: 0 11px; background: white; color: var(--ink); font-size: 13px; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #3568851b; outline: none; }
.upload-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.field-hint { max-width: 570px; color: var(--muted); font-size: 12px; line-height: 1.5; margin: 7px 0 0; }
.file-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.file-list li { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid #edf0f2; padding: 8px 2px 2px; color: var(--muted); font-size: 12px; }
.file-list b { color: var(--ink); font-weight: 580; overflow-wrap: anywhere; }
.profile-row { display: flex; align-items: center; gap: 18px; margin: 20px 0 0 34px; }
.profile-row select { margin: 0; width: min(100%, 350px); }
.notice { margin: 20px 0 0 34px; padding: 10px 12px; border-left: 3px solid #d08646; background: var(--warning-soft); color: #68482f; font-size: 12px; line-height: 1.55; }
.notice strong { display: block; color: #783b21; margin-bottom: 2px; }
.privacy-line { display: flex; align-items: center; gap: 9px; margin: 20px 0 19px 34px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.privacy-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; font-size: 12px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.button-dark { color: white; background: #20272d; }
.button-light { color: #34424a; background: white; border-color: var(--line); }
.button-accent { margin-left: 34px; color: #fff; background: var(--accent); }
.button:hover { filter: brightness(.96); }
.button:disabled { opacity: .56; cursor: wait; }
.fine-print { color: var(--muted); font-size: 11px; margin: 12px 0 0 34px; line-height: 1.5; }
.progress-panel { padding: 23px 25px 25px; }
.progress-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.progress-head h2 { font-size: 17px; }
.text-link { color: var(--blue); font-size: 12px; text-decoration: none; white-space: nowrap; }
.repo-line { margin: 13px 0 18px; color: var(--muted); font: 12px ui-monospace, SFMono-Regular, monospace; overflow-wrap: anywhere; }
.timeline { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.timeline li { min-height: 61px; display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 11px; border-bottom: 1px solid #edf0f2; }
.timeline strong { display: block; font-size: 12px; font-weight: 630; }
.timeline small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.phase-mark { width: 9px; height: 9px; border: 1px solid #c1cbd0; border-radius: 50%; background: white; }
.timeline li.running .phase-mark { border: 2px solid var(--blue); border-right-color: transparent; animation: spin .8s linear infinite; }
.timeline li.done .phase-mark { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 2px white; }
.timeline li.failed .phase-mark { border-color: #b64b3d; background: #b64b3d; box-shadow: inset 0 0 0 2px white; }
.phase-state { color: var(--muted); font-size: 11px; white-space: nowrap; }
.timeline li.running .phase-state { color: var(--blue); }
.timeline li.done .phase-state { color: var(--accent); }
.timeline li.failed .phase-state { color: #a13b30; }
.run-result { margin-top: 15px; padding: 11px 12px; background: #f5f7f8; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
footer { padding: 20px 0 34px; color: #79848b; font-size: 11px; line-height: 1.55; }
[hidden] { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  main { margin-top: 24px; }
  .intro { display: block; }
  .intro-note { margin-top: 11px; }
  .auth-panel { align-items: stretch; flex-direction: column; }
  .form-section { padding: 19px 16px 20px; }
  .progress-panel { padding: 19px 16px; }
  .section-heading { gap: 10px; }
  .segmented, .mode-panel, .profile-row, .notice, .privacy-line, .button-accent, .fine-print { margin-left: 0; }
  .profile-row { align-items: stretch; flex-direction: column; gap: 8px; }
  .profile-row select { width: 100%; }
  .upload-row { align-items: flex-start; flex-direction: column; }
  .progress-head { align-items: flex-start; flex-direction: column; }
  .timeline li { grid-template-columns: 14px 1fr; padding: 11px 0; }
  .phase-state { grid-column: 2; }
  .button-accent { width: 100%; }
}
