* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f5f5f4;
  color: #1c1917;
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.5;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.1rem; margin-top: 2rem; }

input, textarea, button {
  font: inherit;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d6d3d1;
  border-radius: 6px;
}

textarea { width: 100%; resize: vertical; }

button {
  background: #1c1917;
  color: #fafaf9;
  border: none;
  cursor: pointer;
}
button:hover { background: #44403c; }

#gate-form { display: flex; gap: 0.5rem; }
#gate-form input { flex: 1; }

.save-row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.save-row input { flex: 1; }

.error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin: 0.75rem 0;
}

#file-list { list-style: none; padding: 0; }
#file-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e7e5e4;
}
#file-list .name { font-weight: 600; overflow-wrap: anywhere; }
#file-list .meta { color: #78716c; font-size: 0.85rem; margin-left: auto; white-space: nowrap; }
#file-list button { padding: 0.25rem 0.6rem; font-size: 0.85rem; }
#file-list button.delete { background: #b91c1c; }
#file-list button.delete:hover { background: #dc2626; }
