:root {
  color-scheme: light;
  --ink: #10263d;
  --muted: #64748b;
  --blue: #176b87;
  --teal: #18a29b;
  --pale: #eef7f6;
  --line: #dce7eb;
  --danger: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(24,162,155,.13), transparent 28rem),
    linear-gradient(180deg, #f7fbfc 0%, #eef4f6 100%);
}
.shell { width: min(1060px, calc(100% - 36px)); margin: 0 auto; padding: 64px 0 46px; }
header { max-width: 760px; margin-bottom: 28px; }
.eyebrow { color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 8px 0 12px; font-size: clamp(34px, 6vw, 58px); line-height: 1.05; letter-spacing: -.04em; }
header p { color: var(--muted); font-size: 17px; line-height: 1.75; margin: 0; }
.status-strip, .panel, .flow { background: rgba(255,255,255,.9); border: 1px solid var(--line); box-shadow: 0 18px 45px rgba(40,73,91,.08); }
.status-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 16px; margin-bottom: 18px; overflow: hidden; }
.status-strip > div { padding: 18px 22px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; border-right: 1px solid var(--line); }
.status-strip > div:last-child { border-right: 0; }
.status-strip small { grid-column: 2; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #a8b2bd; grid-row: span 2; }
.dot.ready { background: #1ba672; box-shadow: 0 0 0 5px rgba(27,166,114,.1); }
.dot.missing { background: #db3a34; box-shadow: 0 0 0 5px rgba(219,58,52,.1); }
.panel { border-radius: 22px; padding: 28px; }
.dropzone { position: relative; border: 1.5px dashed #9ab7c3; border-radius: 16px; min-height: 230px; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 24px; background: linear-gradient(145deg, #fbfefe, var(--pale)); transition: .2s; }
.dropzone.drag { border-color: var(--teal); transform: translateY(-2px); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone h2 { margin: 12px 0 5px; font-size: 22px; }
.dropzone p { color: var(--muted); margin: 0 0 14px; }
.file-icon { font-size: 12px; font-weight: 900; color: white; letter-spacing: .08em; background: linear-gradient(135deg, var(--blue), var(--teal)); padding: 14px 11px; border-radius: 9px; box-shadow: 0 8px 18px rgba(23,107,135,.22); }
.filename { min-height: 20px; margin-top: 12px; color: var(--blue); font-weight: 700; }
button, .button-link { border: 0; border-radius: 10px; padding: 12px 19px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.primary { background: var(--ink); color: white; }
.primary:hover { background: #183d5d; }
.secondary { color: var(--blue); background: white; border: 1px solid #bfd3da; }
.dropzone .secondary { pointer-events: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
label span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
input[type=text] { width: 100%; border: 1px solid #cadbe1; border-radius: 10px; padding: 13px 14px; font: inherit; outline: none; }
input[type=text]:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(24,162,155,.1); }
select { width: 100%; border: 1px solid #cadbe1; border-radius: 10px; padding: 13px 14px; font: inherit; outline: none; background: white; }
select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(24,162,155,.1); }
.check-row { display: flex; align-items: center; gap: 9px; margin-top: 17px; color: var(--muted); }
.check-row span { margin: 0; font-weight: 500; }
.actions { display: flex; align-items: center; gap: 15px; margin-top: 22px; }
.text-link { color: var(--blue); font-weight: 700; text-decoration: none; }
.progress-panel { margin-top: 18px; }
.progress-head { display: flex; justify-content: space-between; align-items: end; }
.progress-head h2 { margin: 5px 0 0; }
#percent { font-size: 30px; font-weight: 800; }
.track { height: 10px; margin: 19px 0 13px; border-radius: 99px; background: #e5edef; overflow: hidden; }
#bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--teal)); transition: width .35s ease; }
#message { color: var(--muted); }
.counts { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }
.counts div { padding: 12px 16px; background: var(--pale); border-radius: 10px; }
.counts dt { color: var(--muted); font-size: 12px; }
.counts dd { margin: 4px 0 0; font-size: 21px; font-weight: 800; }
.error { color: var(--danger); background: #fff1f0; padding: 14px; border-radius: 10px; white-space: pre-wrap; }
.flow { margin-top: 18px; border-radius: 16px; display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.flow div { padding: 20px; border-right: 1px solid var(--line); }
.flow div:last-child { border-right: 0; }
.flow b, .flow span, .flow small { display: block; }
.flow b { color: var(--teal); font-size: 12px; }
.flow span { font-weight: 800; margin: 7px 0 4px; }
.flow small { color: var(--muted); }
.hidden { display: none !important; }
@media (max-width: 720px) {
  .shell { padding-top: 34px; }
  .status-strip, .flow, .form-grid { grid-template-columns: 1fr; }
  .status-strip > div, .flow div { border-right: 0; border-bottom: 1px solid var(--line); }
  .status-strip > div:last-child, .flow div:last-child { border-bottom: 0; }
  .panel { padding: 18px; }
  .actions { align-items: stretch; flex-direction: column; }
}
