:root {
  --bg: #f5f5f1;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #111827;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; }
.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px;
}
.wrap.wide { max-width: 1100px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.hero h1 { margin: 0 0 8px; font-size: 2rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  color: var(--muted);
  margin: 0 0 10px;
}
.lede { color: var(--muted); margin-top: 0; }
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.meta-grid span, .notice strong, .status, .muted { color: var(--muted); font-size: .9rem; }
.meta-grid strong { display: block; margin-top: 4px; }
.notice {
  margin-top: 16px;
  border-left: 4px solid var(--line);
  padding: 12px 14px;
  background: #fafafa;
  border-radius: 10px;
}
.form { display: grid; gap: 14px; }
.form.narrow { max-width: 420px; }
label { display: grid; gap: 6px; font-weight: 600; }
input, textarea, select, button {
  font: inherit;
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--accent);
  color: white;
  cursor: pointer;
}
button.secondary { background: #374151; }
button.danger { background: #b91c1c; }
small { color: var(--muted); font-weight: 400; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.inline { display: flex; gap: 10px; align-items: center; }
.inline input { width: auto; }
.uploads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.upload-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.upload-preview {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #f3f4f6;
  display: block;
  object-fit: cover;
}
.upload-info {
  padding: 10px;
  display: grid;
  gap: 8px;
}
.upload-info span { font-size: .82rem; color: var(--muted); word-break: break-word; }
.row-between { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.list { display: grid; gap: 12px; }
.item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.item h3 { margin: 0 0 6px; }
.item .muted { font-size: .92rem; }
.item .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.hidden { display: none; }
.closed {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fafafa;
}
.status { min-height: 1.2em; }
.downloads { display: grid; gap: 8px; margin-top: 10px; }
.downloads a { color: #0f766e; text-decoration: none; }
.steps { margin: 0; padding-left: 20px; color: var(--text); }
@media (max-width: 640px) {
  .wrap { padding: 12px; }
  .card { padding: 16px; }
  .hero h1 { font-size: 1.7rem; }
}
.notice p {
  white-space: pre-line;
}
.lede {
  white-space: pre-line;
}
.pdf-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-weight: 600;
  background: #f5f5f5;
}
#submissionsList .item p {
  white-space: pre-line;
}
.status.success {
  font-weight: 600;
  background: #e6f4ea;
  color: #1a7f37;
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 12px;
}