:root {
  color-scheme: dark;
  --bg: #0c0c0c;
  --card: #161616;
  --line: #2a2a2a;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --accent: #7dd3c0;
  --danger: #f07178;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 ui-sans-serif, system-ui, sans-serif;
}
a { color: var(--accent); }
h1 { margin: 0.15rem 0 0; font-size: 1.6rem; font-weight: 560; }
.eyebrow { margin: 0; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem; color: var(--muted); }
.card, .wide { margin: 8vh auto; padding: 1.5rem; }
.card { width: min(380px, calc(100% - 2rem)); background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.wide { width: min(920px, calc(100% - 2rem)); }
.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
input, button, .ghost {
  font: inherit;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #111;
  color: var(--text);
  padding: 0.55rem 0.75rem;
}
button, .ghost { cursor: pointer; background: var(--accent); color: #06221c; border: 0; text-decoration: none; }
button.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); padding: 0.45rem 0.7rem; }
form { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.upload { flex-direction: row; flex-wrap: wrap; align-items: center; }
.upload input[type="text"] { min-width: 220px; flex: 1; }
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { text-align: left; padding: 0.55rem 0.3rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.actions { display: flex; gap: 0.4rem; }
.err { color: var(--danger); }
.muted { color: var(--muted); min-height: 1.2em; }
@media (max-width: 640px) {
  .upload, .actions { flex-direction: column; align-items: stretch; }
  td:nth-child(2) { white-space: nowrap; }
}
