* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.5;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem;
  color: #1a1a1a;
  background: #fafafa;
}

header {
  margin-bottom: 1.5rem;
}

header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 600;
}

header p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

.tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.tab {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.tab:hover {
  background: #f0f0f0;
}

.tab.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.panel p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #444;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.field input[type="file"] {
  display: block;
  width: 100%;
  font-size: 0.9rem;
}

.field .hint,
.hint {
  font-size: 0.8rem;
  color: #666;
  margin: 0.25rem 0 0;
}

.capacity {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.75rem;
  min-height: 1.25rem;
}

button[type="button"] {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border: 1px solid #1a1a1a;
  background: #1a1a1a;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

button[type="button"]:hover:not(:disabled) {
  background: #333;
}

button[type="button"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.25rem;
}

.status.error {
  color: #c00;
}

.status.success {
  color: #060;
}

.results {
  margin-top: 1rem;
}

.results ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.results li {
  margin-bottom: 0.5rem;
}

.results a {
  color: #06c;
  text-decoration: none;
}

.results a:hover {
  text-decoration: underline;
}

.loading {
  font-style: italic;
  color: #666;
}

.resources-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.resources-list li {
  margin-bottom: 0.5rem;
}

.resources-list a {
  color: #06c;
  text-decoration: none;
}

.resources-list a:hover {
  text-decoration: underline;
}

.resources-desc {
  font-size: 0.9rem;
  color: #555;
}

.panel code {
  font-size: 0.85em;
  background: #eee;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}
