:root {
  color-scheme: light;
  --bg: #f5f7f9;
  --panel: #ffffff;
  --ink: #17202a;
  --muted: #5c6975;
  --line: #d7dee5;
  --accent: #117a65;
  --accent-strong: #0d5f4e;
  --focus: #f1c40f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  align-items: center;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 18px 50px rgba(23, 32, 42, 0.08);
}

header {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

.form {
  display: grid;
  gap: 20px;
}

.file-zone {
  min-height: 150px;
  border: 1px dashed #96a4b1;
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px;
  cursor: pointer;
  background: #fbfcfd;
}

.file-zone:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.file-zone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.file-title {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.file-meta,
.status {
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 16px;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input[type="text"],
input[type="number"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
  background: white;
}

input:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  color: white;
  background: var(--accent);
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.status {
  min-height: 20px;
  margin: 0;
}

@media (max-width: 560px) {
  .shell {
    padding: 20px;
    align-items: start;
  }

  .panel {
    padding: 24px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
