:root {
  --ink: #1a1d21;
  --muted: #6b7280;
  --accent: #0f6e5c;
  --bg: #fafaf9;
  --line: #e5e7eb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  flex-wrap: wrap;
  gap: 8px;
}
header .brand { font-weight: 700; text-decoration: none; color: var(--ink); }
header nav a { margin-left: 20px; text-decoration: none; color: var(--accent); font-weight: 600; }
main { max-width: 780px; margin: 0 auto; padding: 32px 24px; }
h1 { font-size: 1.6rem; margin-top: 0; }
.hero p { line-height: 1.5; }
.button, .dl-url a {
  display: inline-block;
  word-break: break-all;
}
.button {
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.form { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.form label { display: flex; flex-direction: column; font-size: 0.9rem; gap: 4px; font-weight: 600; }
.form input {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 1rem;
}
.form button {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.dl-url { font-size: 1rem; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; }
.barcodes { display: flex; gap: 32px; margin: 24px 0; flex-wrap: wrap; }
.barcodes figure { margin: 0; text-align: center; }
.barcodes img { border: 1px solid var(--line); background: #fff; padding: 8px; }
table.history { width: 100%; border-collapse: collapse; margin-top: 16px; }
table.history th, table.history td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
table.history th { color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); font-size: 0.8rem; }
footer { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 24px; }
