* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  min-height: 100vh;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

h1 a {
  color: inherit;
  text-decoration: none;
}

h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.subtitle {
  color: #888;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.card {
  background: #141414;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

label {
  font-size: 0.9rem;
  color: #aaa;
}

select,
.input-small {
  background: #1a1a1a;
  color: #e0e0e0;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
}

.input-small {
  width: 140px;
}

.input-small::placeholder {
  color: #555;
}

button {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

button:hover {
  opacity: 0.85;
}

button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

code {
  background: #1a1a1a;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85rem;
}

.drop-zone {
  border: 2px dashed #333;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 1rem;
  color: #888;
  font-size: 0.9rem;
}

.drop-zone.small {
  padding: 1rem;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: #555;
  background: #1a1a1a;
}

.file-remove {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  color: #aaa;
  border: none;
  padding: 0 0.5rem;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.file-remove:hover {
  color: #e57373;
  opacity: 1;
}


.file-list {
  list-style: none;
  font-size: 0.85rem;
  font-family: monospace;
}

.file-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.file-list a {
  color: #6cb4ff;
  text-decoration: none;
}

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

.hint {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.status {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  color: #888;
}

.status.success,
.success {
  color: #4caf50;
}

.status.error,
.error {
  color: #e57373;
}

.progress-area {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.progress-area p {
  padding: 0.2rem 0;
}

.link-row:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem;
  background: #1a1a1a;
  border-radius: 6px;
}

.link-row code {
  flex: 1;
  word-break: break-all;
  font-size: 0.85rem;
}

.btn-small {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 4px;
  white-space: nowrap;
}

.btn-go {
  background: #fff;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}

details.card summary {
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

details.card summary::before {
  content: '\25B6';
  font-size: 0.7rem;
  transition: transform 0.15s;
}

details[open].card summary::before {
  transform: rotate(90deg);
}

details.card .details-body {
  margin-top: 1rem;
}
