#view-build h1 {
  margin-bottom: 8px;
  font-size: 1.875rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.list-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.list-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 650;
}

.file-list {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.file-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.file-row[draggable="true"] {
  cursor: grab;
}

.file-row.is-dragging {
  opacity: 0.5;
}

.file-row.is-drop-target {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.file-row.has-error {
  border-color: #d9a1a6;
  background: #fdf3f4;
}

.file-position {
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.file-info {
  display: grid;
  min-width: 0;
}

.file-row-name {
  font-size: 0.9375rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.file-row-meta {
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.file-row.has-error .file-row-meta {
  color: #9b2c37;
}

.file-actions {
  display: inline-flex;
  gap: 2px;
}

.file-actions .btn {
  --bs-btn-padding-x: 8px;
  --bs-btn-padding-y: 2px;
  line-height: 1.4;
}

#losses ul {
  margin-bottom: 12px;
  padding-left: 20px;
}

.start-hint:empty {
  display: none;
}

.result-details {
  margin-bottom: 20px;
}

.next-tool {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
}
