* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f5f5f5;
}
.site-header {
  background: #1a1a2e;
  color: #fff;
  padding: 2rem;
  text-align: center;
}
.site-header h1 { margin: 0 0 0.5rem; font-size: 2rem; }
.tagline { margin: 0; opacity: 0.85; }
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
}
.card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.card h2 { margin-top: 0; }
.notice {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.dropzone {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 1rem;
}
.dropzone:hover, .dropzone:focus, .dropzone.dragover {
  border-color: #1a1a2e;
  background: #f0f0ff;
}
.dropzone p { margin: 0.25rem 0; }
.hint { font-size: 0.85rem; color: #666; }
.row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.btn {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
}
.btn:hover:not(:disabled) { background: #f0f0f0; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }
.btn-primary:hover:not(:disabled) { background: #2a2a4e; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover:not(:disabled) { background: #f0f0f0; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.8rem; }
.file-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
}
.file-name { flex: 1; }
.file-size { color: #666; font-size: 0.85rem; }
.status { min-height: 1.5rem; font-size: 0.9rem; color: #333; }
.split-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.split-controls label { font-weight: 500; }
.split-controls input[type="text"] {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9rem;
}
.example-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.example-list li { margin-bottom: 0.5rem; }
.site-footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer a { color: #8888ff; text-decoration: none; margin: 0 0.5rem; }
.site-footer a:hover { text-decoration: underline; }
.site-footer nav { margin-top: 0.5rem; }
@media (max-width: 600px) {
  .row { flex-direction: column; }
  .btn { width: 100%; }
}
