:root {
  --paper: #fbf7ef;
  --ink: #17201b;
  --muted: #667269;
  --line: #d8cdb9;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --warm: #eab308;
  --danger: #b42318;
  --success: #176b3a;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(90deg, rgba(23, 32, 27, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(23, 32, 27, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.submit-panel {
  width: min(100%, 560px);
  padding: 34px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.94);
  box-shadow: 10px 10px 0 rgba(23, 32, 27, 0.14);
}

.headline {
  margin-bottom: 26px;
}

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

h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
}

.upload-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 2px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fffefa;
  font: inherit;
}

.field input:focus,
.drop-zone:focus-within {
  border-color: var(--accent);
  outline: 3px solid rgba(15, 118, 110, 0.18);
}

.drop-zone {
  min-height: 190px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 24px;
  border: 2px dashed var(--accent);
  border-radius: 8px;
  background: #f2fbf8;
  text-align: center;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  transform: translateY(-2px);
  background: #e5f7f2;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.drop-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--warm);
  font-size: 34px;
  line-height: 1;
}

.drop-title {
  font-size: 20px;
  font-weight: 800;
}

.drop-hint {
  max-width: 32ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

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

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

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

.status {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.admin-shell {
  width: min(100%, 960px);
}

.admin-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.secondary-button {
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  background: #fffefa;
  font-weight: 800;
  text-decoration: none;
}

.table-wrap {
  overflow-x: auto;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffefa;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: #f3ead8;
  font-size: 14px;
}

td {
  color: var(--muted);
  font-weight: 700;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.status.success {
  color: var(--success);
}

.status.error {
  color: var(--danger);
}

@media (max-width: 520px) {
  .submit-panel {
    padding: 24px;
    box-shadow: 6px 6px 0 rgba(23, 32, 27, 0.14);
  }

  .admin-bar {
    align-items: stretch;
    flex-direction: column;
  }
}
